/* ============================================================
   Halvies Landing v2 — sections 2 (marquee) · 3 (about)
   plus NEW: 4 (Five Systems) · 5 (Demo / iPhone)
   Palette: cream #ECE4D4 · ink #1F2A24 · italic-tan #A88A6F · forest #2A4138
   ============================================================ */

/* ---------- Section 2: Marquee ---------- */
.s-marquee {
  background: #2A4138;
  position: relative;
  z-index: 4;
  padding: 56px 0 48px;
  overflow: hidden;
  isolation: isolate;
}
.s-marquee::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(15,22,18,0.40) 0%,
    rgba(15,22,18,0.15) 12%,
    rgba(15,22,18,0) 28%);
}
.marquee-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.marquee-row { margin-bottom: 12px; }
.marquee-row:last-child { margin-bottom: 0; }

.tile {
  flex: 0 0 auto;
  width: 420px; height: 270px;
  border-radius: 16px;
  background: #ECE4D4;
  border: 1px solid rgba(236,228,212,0.06);
  box-shadow:
    0 1px 0 rgba(15,22,18,0.20),
    0 30px 60px -30px rgba(15,22,18,0.55),
    0 14px 28px -18px rgba(15,22,18,0.35);
  position: relative;
  overflow: hidden;
}
.tile-surface {
  position: absolute; inset: 0;
  background-size: cover !important;
  background-position: center !important;
}
.tile-surface::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 30% 30%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(120% 100% at 70% 80%, rgba(0,0,0,0.18), transparent 60%);
  pointer-events: none;
}

/* ---------- Section 3: About ---------- */
.s-about {
  background: #ECE4D4;
  color: #1F2A24;
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-corner {
  position: absolute;
  border-radius: 8px;
  background: #E0D6C2;
  border: 1px solid rgba(42,65,56,0.10);
  box-shadow:
    0 24px 60px -28px rgba(42,65,56,0.30),
    0 8px 18px -12px rgba(42,65,56,0.18);
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.1s var(--ease-warm), transform 1.1s var(--ease-warm);
}
.about-corner.in { opacity: 1; transform: translateX(0) !important; }

.about-corner.tl { top: 8vh; left: 4vw; width: clamp(120px, 14vw, 210px); aspect-ratio: 4/5; transform: translateX(-80px); }
.about-corner.bl { bottom: 8vh; left: 6vw; width: clamp(100px, 12vw, 180px); aspect-ratio: 1/1; transform: translateX(-80px); }
.about-corner.tr { top: 9vh; right: 5vw; width: clamp(120px, 14vw, 210px); aspect-ratio: 5/4; transform: translateX(80px); }
.about-corner.br { bottom: 7vh; right: 4vw; width: clamp(130px, 15vw, 220px); aspect-ratio: 4/5; transform: translateX(80px); }

.about-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 64px);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-h {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 700;
  font-size: clamp(48px, 12vw, 160px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #1F2A24;
  margin: 0;
  text-wrap: balance;
}
.about-h .em {
  font-style: italic;
  color: #A88A6F;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.04em;
}
.about-p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
  color: #1F2A24;
  max-width: 560px;
  margin: 0;
  text-wrap: pretty;
}
.about-p .ch { opacity: 0.20; transition: opacity 0.4s linear; display: inline; }
.about-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  background: #2A4138; color: #ECE4D4;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(42,65,56,0.20), 0 18px 38px -18px rgba(42,65,56,0.45);
  transition: transform 0.28s var(--ease-warm), background 0.28s var(--ease-warm);
  margin-top: clamp(28px, 4vw, 56px);
}
.about-cta .arrow { transition: transform 0.28s var(--ease-warm); }
.about-cta:hover { transform: translateY(-2px); background: #1F302A; }
.about-cta:hover .arrow { transform: translateX(4px); }

/* ---------- Section 4 (NEW): FIVE SYSTEMS ---------- */
.s-fivesys {
  background: #ECE4D4;
  color: #1F2A24;
  position: relative;
  z-index: 6;
  border-top-left-radius: clamp(40px, 5vw, 60px);
  border-top-right-radius: clamp(40px, 5vw, 60px);
  padding: clamp(80px, 10vw, 128px) 40px clamp(64px, 8vw, 96px);
  margin-top: -1px;
}
.fivesys-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.fivesys-head {
  display: grid;
  grid-template-columns: minmax(180px, 22%) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.fivesys-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(31,42,36,0.55);
  display: inline-flex; align-items: center; gap: 12px;
}
.fivesys-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #A88A6F;
}
.fivesys-h {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #1F2A24;
  margin: 0;
  grid-column: 1 / -1;
  text-wrap: balance;
}
.fivesys-h .em {
  font-style: italic;
  color: #A88A6F;
  font-weight: 400;
}
.fivesys-lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(31,42,36,0.70);
  max-width: 56ch;
  margin: 0;
  grid-column: 2 / -1;
}
@media (max-width: 880px) {
  .fivesys-head { grid-template-columns: 1fr; gap: 18px; }
  .fivesys-lede { grid-column: 1 / -1; }
}

.fivesys-list {
  list-style: none;
  margin: 0; padding: 0;
}
.fivesys-item {
  display: grid;
  grid-template-columns: minmax(110px, 14%) 1fr auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid rgba(31,42,36,0.18);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-warm), transform 0.9s var(--ease-warm), background 0.4s var(--ease-warm);
  position: relative;
  cursor: default;
}
.fivesys-item.in { opacity: 1; transform: translateY(0); }
.fivesys-item:last-child { border-bottom: 1px solid rgba(31,42,36,0.18); }
.fivesys-item:hover { background: rgba(168,138,111,0.06); }
.fivesys-num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #1F2A24;
  font-feature-settings: "tnum";
}
.fivesys-name {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(15px, 1.4vw, 18px);
  color: #1F2A24;
  margin: 0 0 14px;
}
.fivesys-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(31,42,36,0.72);
  max-width: 60ch;
  margin: 0;
}
.fivesys-arrow {
  align-self: center;
  color: rgba(31,42,36,0.45);
  transition: color 0.3s var(--ease-warm), transform 0.3s var(--ease-warm);
}
.fivesys-item:hover .fivesys-arrow {
  color: #A88A6F;
  transform: translate(3px, -3px);
}
@media (max-width: 720px) {
  .fivesys-item { grid-template-columns: 70px 1fr; }
  .fivesys-arrow { display: none; }
  .fivesys-num { font-size: 48px; }
}

/* ---------- Section 5 (NEW): DEMO / iPHONE THREAD ---------- */
.s-demo {
  background: #1F2A24;
  color: #ECE4D4;
  position: relative;
  z-index: 7;
  border-top-left-radius: clamp(40px, 5vw, 60px);
  border-top-right-radius: clamp(40px, 5vw, 60px);
  padding: clamp(80px, 10vw, 128px) 40px clamp(80px, 10vw, 128px);
  overflow: hidden;
}
.demo-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.demo-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #A88A6F;
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.demo-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #A88A6F;
}
.demo-h {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: #ECE4D4;
  text-wrap: balance;
}
.demo-h .em { font-style: italic; color: #A88A6F; font-weight: 400; }
.demo-lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(236,228,212,0.78);
  max-width: 52ch;
  margin: 0 0 36px;
}
.demo-callouts { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.demo-callout {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 18px;
  align-items: start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-warm), transform 0.7s var(--ease-warm);
}
.demo-callout.in { opacity: 1; transform: translateY(0); }
.demo-callout-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #A88A6F;
  margin-top: 9px;
  box-shadow: 0 0 0 3px rgba(168,138,111,0.18);
}
.demo-callout h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #ECE4D4;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.demo-callout p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(236,228,212,0.70);
  margin: 0;
  max-width: 48ch;
}
.demo-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  background: #ECE4D4; color: #1F2A24;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  border-radius: 999px;
  transition: transform 0.28s var(--ease-warm), background 0.28s var(--ease-warm);
}
.demo-cta:hover { transform: translateY(-2px); background: #A88A6F; color: #1F2A24; }
.demo-cta .arrow { transition: transform 0.28s var(--ease-warm); }
.demo-cta:hover .arrow { transform: translateX(4px); }

/* iPhone */
.demo-phone-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.demo-phone {
  width: 360px; height: 740px;
  background: #0E1612;
  border-radius: 56px;
  padding: 14px;
  box-shadow:
    inset 0 0 0 2px #2B3631,
    0 1px 0 rgba(236,228,212,0.06),
    0 60px 90px -50px rgba(0,0,0,0.7),
    0 30px 60px -30px rgba(0,0,0,0.5);
  position: relative;
}
.demo-phone::before { /* dynamic island */
  content: '';
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.demo-phone-screen {
  width: 100%; height: 100%;
  background: #ECE4D4;       /* bone, not white */
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px 0; height: 54px;
  font-family: 'SF Pro Text', -apple-system, system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1F2A24;
  flex-shrink: 0;
}
.demo-time { letter-spacing: -0.01em; }
.demo-status-icons { display: flex; align-items: center; gap: 6px; color: #1F2A24; }

.demo-thread-head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  padding: 6px 14px 12px;
  border-bottom: 1px solid rgba(31,42,36,0.10);
  flex-shrink: 0;
}
.demo-back {
  font-size: 28px; line-height: 1;
  color: #2A6BD3;
  font-weight: 300;
  padding: 0; cursor: pointer;
}
.demo-info {
  font-size: 18px; color: #2A6BD3; padding: 0; cursor: pointer;
}
.demo-contact {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: 'SF Pro Text', -apple-system, system-ui, sans-serif;
}
.demo-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #A88A6F, #2A4138);
  color: #ECE4D4;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px;
}
.demo-contact-name {
  font-size: 11px;
  font-weight: 400;
  color: rgba(31,42,36,0.85);
  display: inline-flex; align-items: center; gap: 4px;
}
.demo-contact-arrow { color: rgba(31,42,36,0.55); }

.demo-thread {
  flex: 1;
  padding: 12px 12px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-day {
  text-align: center;
  font-family: 'SF Pro Text', -apple-system, system-ui, sans-serif;
  font-size: 11px;
  color: rgba(31,42,36,0.50);
  margin: 4px 0 8px;
  font-weight: 500;
}
.demo-bubble {
  position: relative;
  max-width: 78%;
  padding: 9px 14px;
  font-family: 'SF Pro Text', -apple-system, system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.32;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.5s var(--ease-warm), transform 0.5s var(--ease-warm);
}
.demo-bubble.in-view { opacity: 1; transform: translateY(0) scale(1); }
.demo-bubble p { margin: 0; }
.demo-bubble.in {
  align-self: flex-start;
  background: #E5E5EA;
  color: #1F2A24;
  border-radius: 18px 18px 18px 4px;
}
.demo-bubble.out {
  align-self: flex-end;
  background: #2A6BD3;       /* iMessage blue */
  color: #fff;
  border-radius: 18px 18px 4px 18px;
}
.demo-time-stamp {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: rgba(31,42,36,0.45);
}
.demo-bubble.out .demo-time-stamp {
  color: rgba(255,255,255,0.78);
  text-align: right;
}
.demo-bubble.out .demo-time-stamp.delivered::before { content: ''; }
.demo-bubble-link {
  display: inline-block;
  margin-top: 6px;
  color: #2A6BD3;
  font-weight: 500;
  text-decoration: underline;
}

.demo-input-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(31,42,36,0.08);
}
.demo-input-camera {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(31,42,36,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #1F2A24; font-size: 18px; font-weight: 300;
}
.demo-input-field {
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,36,0.18);
  padding: 0 14px;
  display: flex; align-items: center;
  font-size: 13px;
  color: rgba(31,42,36,0.45);
  font-family: 'SF Pro Text', -apple-system, system-ui, sans-serif;
}
.demo-input-mic {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(31,42,36,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #1F2A24; font-size: 10px;
}
.demo-home-indicator {
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px;
  background: rgba(31,42,36,0.65);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .demo-inner { grid-template-columns: 1fr; gap: 56px; }
  .demo-phone { width: 320px; height: 660px; }
}
@media (max-width: 540px) {
  .s-demo { padding: 64px 20px; border-top-left-radius: 32px; border-top-right-radius: 32px; }
  .demo-phone { width: 290px; height: 600px; padding: 12px; }
  .demo-phone-screen { border-radius: 36px; }
}

/* ---------- New Footer (3 columns) ---------- */
.s-footer-v2 {
  background: #1F2A24;
  color: rgba(236,228,212,0.70);
  padding: clamp(64px, 8vw, 96px) 40px clamp(28px, 3vw, 40px);
  position: relative;
  z-index: 8;
}
.footer-v2-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(236,228,212,0.10);
}
.footer-v2-mark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.5px;
  color: #ECE4D4;
  display: inline-flex; align-items: baseline;
}
.footer-v2-mark .dot { color: #A88A6F; margin-left: 1px; }
.footer-v2-tag {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(236,228,212,0.85);
  max-width: 26ch;
}
.footer-v2-tag em { font-style: italic; color: #A88A6F; font-weight: 400; }
.footer-v2-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(236,228,212,0.50);
  margin: 0 0 22px;
  font-weight: 500;
}
.footer-v2-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-v2-col ul li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: rgba(236,228,212,0.78);
}
.footer-v2-col ul li a { transition: color 0.28s var(--ease-warm); }
.footer-v2-col ul li a:hover { color: #A88A6F; }

.footer-v2-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  margin-top: 24px;
  background: #ECE4D4; color: #1F2A24;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  border-radius: 999px;
  transition: transform 0.28s var(--ease-warm), background 0.28s var(--ease-warm);
}
.footer-v2-cta:hover { transform: translateY(-2px); background: #A88A6F; }
.footer-v2-cta .arrow { transition: transform 0.28s var(--ease-warm); }
.footer-v2-cta:hover .arrow { transform: translate(3px, -3px); }

.footer-v2-rule {
  max-width: 1280px;
  margin: 28px auto 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236,228,212,0.40);
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer-v2-rule a { transition: color 0.28s var(--ease-warm); }
.footer-v2-rule a:hover { color: #A88A6F; }

@media (max-width: 880px) {
  .footer-v2-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .tile { width: 300px; height: 200px; }
}
@media (max-width: 560px) {
  .s-marquee { padding: 40px 0 28px; }
  .tile { width: 240px; height: 160px; }
  .s-about { padding: 64px 20px; min-height: auto; }
  .about-corner { display: none; }
  .s-fivesys { padding: 64px 20px; }
  .s-demo { padding: 64px 20px; }
  .s-footer-v2 { padding: 48px 20px 24px; }
}
