/* Dayfare landing page styles. Tokens + sections ported from the design handoff prototype.
   Source of truth: internal/design-handoff/design/Dayfare Landing.html */
:root {
  --green:#2D6A4F; --green-deep:#1F4D38; --green-darker:#163A2A;
  --light-green:#D8F3DC; --mint:#F0F7F4; --amber:#E09F3E;
  --accent:#E09F3E; --accent-soft:#F6E4C8;
  --cream:#F5F0E8; --paper:#FBFAF7; --ink:#16150F; --ink-soft:#4B4A41; --ink-faint:#6B6A5D;
  --line:rgba(22,21,15,0.10);
  --serif:"Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:-apple-system,"SF Pro Text","Helvetica Neue",system-ui,sans-serif;
  --round:-apple-system,"SF Pro Rounded","Helvetica Neue",system-ui,sans-serif;
  --maxw:1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.eyebrow.block { display: block; margin-bottom: 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.06; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5.6vw, 62px); text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 48px); text-wrap: balance; }
h3 { font-size: clamp(22px, 2.6vw, 30px); }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); line-height: 1.62; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--green); }
.text-link.amber { color: var(--accent); }
.text-link .arrow { transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(4px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,0.8); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brandlink { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a.link:hover { color: var(--ink); }

/* phone holder */
.ph { display: inline-block; }

/* Hero */
.hero { position: relative; padding: 64px 0 86px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(820px 580px at 80% 6%, var(--mint) 0%, transparent 60%), radial-gradient(660px 480px at 4% 96%, rgba(245,240,232,0.85) 0%, transparent 60%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hero-copy h1 { margin: 0 0 22px; max-width: 13ch; }
.hero-copy .lede { max-width: 45ch; margin-bottom: 32px; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.cta-row.center { justify-content: center; }
.trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-faint); font-weight: 500; }
.trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); opacity: 0.5; }
.trust .ck { color: var(--green); font-weight: 700; margin-right: 5px; }
.hero-device { position: relative; justify-self: center; }
.hero-stage { position: relative; width: 380px; height: 606px; display: flex; justify-content: center; }
.hero-stage .ph-front { position: relative; z-index: 2; filter: drop-shadow(0 30px 48px rgba(22,40,30,0.22)); }
/* real-UI floating callouts */
.hfloat { position: absolute; background: #fff; border: 1px solid rgba(22,21,15,0.07); border-radius: 18px; box-shadow: 0 22px 48px -18px rgba(22,40,30,0.32), 0 0 0 1px rgba(22,21,15,0.04); z-index: 5; }
.hfloat-expense { top: 104px; left: -64px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; width: 288px; }
.hfe-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(224,159,62,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hfe-body { flex: 1; min-width: 0; }
.hfe-title { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); }
.hfe-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hfe-amt { text-align: right; flex-shrink: 0; }
.hfe-local { font-family: var(--round); font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hfe-home { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: 1px; }
.hfloat-convert { bottom: 88px; right: -10px; padding: 12px 16px 13px; text-align: left; }
.hfc-amt { font-family: var(--round); font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.hfc-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.hfc-usd { font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hfc-pill { font-size: 10.5px; font-weight: 600; color: var(--green); background: var(--light-green); border-radius: 9px; padding: 3px 8px; }

/* Bands */
.band { position: relative; padding: clamp(70px, 9vw, 112px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(46px, 6vw, 74px); text-align: center; }
.section-head h2 { margin-bottom: 18px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 92px); align-items: center; }
.feature + .feature { margin-top: clamp(76px, 10vw, 132px); }
.feature.flip .feat-media { order: 2; }
.feat-media { display: flex; justify-content: center; }
.feat-copy h3 { margin-bottom: 16px; max-width: 16ch; }
.feat-copy p { color: var(--ink-soft); font-size: 17px; max-width: 42ch; margin-bottom: 24px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.feat-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.tick { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: var(--light-green); color: var(--green); display: flex; align-items: center; justify-content: center; }
.tick svg { width: 13px; height: 13px; }

/* Dark bands */
.dark { background: linear-gradient(165deg, var(--green-deep) 0%, var(--green-darker) 100%); color: #EAF3EC; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--accent); }
.dark .lede, .dark p { color: rgba(234,243,236,0.78); }

/* Wrapped */
.wrapped-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.wrapped-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 480px; }
.wrapped-phones .back { position: absolute; left: 6%; bottom: 26px; transform: rotate(-6deg); opacity: 0.96; z-index: 1; }
.wrapped-phones .front { position: relative; z-index: 2; transform: rotate(3deg) translateX(16%); }
.pill-stat { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; color: #fff; }
.wrapped-copy .lede { margin: 0 0 22px; }
.stat-row { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.stat-row .s .n { font-family: var(--round); font-size: 30px; font-weight: 700; color: #fff; }
.stat-row .s .n.amber { color: var(--accent); }
.stat-row .s .l { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(234,243,236,0.6); font-weight: 600; margin-top: 4px; }

/* Widget */
.widget-band { padding: clamp(54px, 7vw, 84px) 0; }
.widget-inner { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 72px) 0; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; overflow: hidden; }
.widget-copy { padding-bottom: clamp(36px, 5vw, 60px); }
.widget-copy h3 { margin: 0 0 14px; max-width: 18ch; }
.widget-copy p { color: var(--ink-soft); font-size: 17px; max-width: 44ch; }
.widget-shot { align-self: end; display: flex; justify-content: center; margin-bottom: -170px; }

/* Privacy */
.privacy { background: var(--mint); }
.privacy .section-head { margin-bottom: clamp(40px, 5vw, 58px); }
.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; }
.pcard .pic { width: 46px; height: 46px; border-radius: 13px; background: var(--light-green); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pcard .pic svg { width: 24px; height: 24px; }
.pcard h3 { font-size: 20px; margin-bottom: 9px; }
.pcard p { font-size: 14.5px; color: var(--ink-soft); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 24px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq .sign { width: 26px; height: 26px; flex-shrink: 0; position: relative; color: var(--green); transition: transform .25s ease; }
details.faq .sign::before, details.faq .sign::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
details.faq .sign::before { left: 50%; top: 4px; width: 2px; height: 18px; transform: translateX(-50%); }
details.faq .sign::after { top: 50%; left: 4px; height: 2px; width: 18px; transform: translateY(-50%); }
details.faq[open] .sign { transform: rotate(135deg); }
details.faq .answer { padding: 0 4px 26px; font-size: 16px; color: var(--ink-soft); max-width: 64ch; }

/* Final */
.final { text-align: center; }
.final-phone { width: max-content; margin: 0 auto 32px; }
.final h2 { margin-bottom: 18px; }
.final .lede { max-width: 40ch; margin: 0 auto 32px; }

/* Footer */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-faint); max-width: 30ch; }
.foot-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 11px; transition: color .15s; }
.foot-col a:hover { color: var(--green); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }

/* Reveal: visible by default; animate to .in only when JS confirms in-view. */
.reveal { opacity: 1; transform: none; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(20px); }
.js .reveal { transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy h1, .hero-copy .lede { max-width: none; }
  .cta-row, .trust { justify-content: center; }
  .hero-device { order: -1; }
  .feature, .wrapped-grid { grid-template-columns: 1fr; gap: 38px; text-align: center; }
  .feature.flip .feat-media { order: 0; }
  .feat-copy h3, .feat-copy p { max-width: none; }
  .feat-list { display: inline-flex; }
  .feat-media { order: -1; }
  .stat-row { justify-content: center; }
  .wrapped-phones { min-height: 0; padding: 6px 0 10px; }
  .wrapped-phones .front { transform: rotate(2deg); }
  .wrapped-phones .back { display: none; }
  .triple { grid-template-columns: 1fr; max-width: 420px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links .link { display: none; }
  .widget-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .widget-copy { padding-bottom: 0; }
  .widget-copy h3, .widget-copy p { max-width: none; }
  .widget-shot { margin-bottom: -150px; }
}
@media (max-width: 520px) {
  .hero-stage { transform: scale(0.8); transform-origin: top center; height: 510px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 20px; }
  .feat-media .ph { transform: scale(0.86); transform-origin: top center; }
  .hero-stage { transform: scale(0.7); height: 440px; }
  .foot-grid { grid-template-columns: 1fr; }
}

a:focus-visible, summary:focus-visible, details.faq summary:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px;
}

/* Wordmark */
.brandlink { display:flex; align-items:center; gap:11px; }
.brand-mark { width:32px; height:32px; border-radius:9px; background:var(--green); color:var(--cream);
  display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:17px; font-weight:700;
  letter-spacing:-0.05em; box-shadow:0 2px 6px rgba(45,106,79,0.28); }
.brand-mark .f { color:var(--amber); }
.wordmark { font-family:var(--serif); font-size:21px; font-weight:700; letter-spacing:-0.01em; color:var(--ink); }
.wordmark .amber { color:var(--amber); }
.dark .wordmark { color:#fff; }

/* App Store badge */
.appstore { display:inline-flex; align-items:center; gap:11px; border-radius:13px; padding:10px 17px 10px 15px;
  text-decoration:none; transition:transform .2s ease, box-shadow .2s ease; }
.appstore--dark { background:var(--ink); color:#fff; box-shadow:0 6px 18px rgba(22,21,15,0.18); }
.appstore--light { background:#fff; color:var(--ink); border:1px solid rgba(22,21,15,0.14); box-shadow:0 6px 18px rgba(22,21,15,0.08); }
.appstore:hover { transform:translateY(-2px); box-shadow:0 12px 26px rgba(22,21,15,0.22); }
.appstore-text { display:flex; flex-direction:column; line-height:1.1; }
.appstore-text small { font-family:var(--sans); font-size:10px; opacity:.82; font-weight:500; }
.appstore-text b { font-family:var(--sans); font-size:18px; font-weight:600; letter-spacing:-0.01em; }
.nav-badge { transform:scale(.78); transform-origin:right center; }
.nav-badge:hover { transform:scale(.78) translateY(-2px); }

/* Image-based iPhone bezel (screenshots already include the status bar) */
.imgframe { width:var(--w); background:#0c0c0d; padding:calc(var(--w) * 0.026);
  border-radius:calc(var(--w) * 0.135) / calc(var(--w) * 0.137);
  box-shadow:0 2px 1px 1px rgba(255,255,255,0.10) inset, 0 50px 90px -34px rgba(22,40,30,0.42), 0 18px 40px -22px rgba(22,21,15,0.28); }
.imgframe picture, .imgframe img { display:block; width:100%; }
.imgframe img { height:auto; border-radius:calc(var(--w) * 0.11) / calc(var(--w) * 0.113); }

/* Document pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px,6vw,80px) 0; }
.doc h1 { font-size: clamp(30px,4.2vw,44px); margin-bottom: 12px; }
.doc h2 { font-size: clamp(20px,2.4vw,26px); margin: 32px 0 10px; }
.doc h3 { font-size: clamp(18px,2vw,21px); margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.doc ul { margin: 8px 0 8px 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--green); text-decoration: underline; }
.doc-head { padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 15px; line-height: 1.6; vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }

/* Language switcher */
.langpick { position: relative; font-family: var(--sans); }
.langpick > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 6px 11px; border: 1px solid var(--line);
  border-radius: 999px; transition: color .15s, border-color .15s; white-space: nowrap; }
.langpick > summary::-webkit-details-marker { display: none; }
.langpick > summary::marker { content: ""; }
.langpick > summary:hover { color: var(--ink); border-color: rgba(22,21,15,0.20); }
.langpick[open] > summary { color: var(--ink); border-color: rgba(22,21,15,0.20); }
.langpick .globe { width: 16px; height: 16px; flex: none; }
.langpick .caret { width: 11px; height: 11px; opacity: .6; }
.langmenu { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(22,21,15,0.12); min-width: 172px; z-index: 200; }
.langmenu li { margin: 0; }
.langmenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); transition: background .12s, color .12s; }
.langmenu a:hover { background: var(--mint); color: var(--ink); }
.langmenu a[aria-current="true"] { color: var(--green); font-weight: 600; }
.doc-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
