@import url('./fonts/fonts.css');

/* Hona landing — Warm Editorial Pastel, compact radii to match the app. */
:root {
  color-scheme: light;
  --canvas: #F9F6F3; --surface: #FFFFFF; --subtle: #F3EDE9; --accent: #ECE5E1;
  --ink: #1B1624; --secondary: #54505B; --muted: #76737C;
  --line: rgba(27,22,36,.09); --line-strong: rgba(27,22,36,.18);
  --mint: #79D287; --mint-soft: #B3E8BB; --coral: #FD976D; --coral-soft: #FDC7B1;
  --yellow: #FDD46B; --yellow-soft: #FEE7A8; --sky: #5DCDF1; --sky-soft: #BFE7F7;
  --lavender: #C9B1FB; --lavender-soft: #E3D6FD; --positive: #0F7A45;
  --r-sm: 4px; --r: 6px; --r-lg: 10px; --r-xl: 14px;
  --shadow: 0 1px 2px rgba(27,22,36,.04), 0 8px 24px rgba(27,22,36,.06);
  --shadow-hover: 0 2px 4px rgba(27,22,36,.05), 0 14px 32px rgba(27,22,36,.1);
  --ease: cubic-bezier(.2,.7,.2,1);
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Be Vietnam Pro', system-ui, sans-serif;
}
[data-tone='mint'] { --tone: var(--mint-soft); --tone-strong: var(--mint); }
[data-tone='coral'] { --tone: var(--coral-soft); --tone-strong: var(--coral); }
[data-tone='sky'] { --tone: var(--sky-soft); --tone-strong: var(--sky); }
[data-tone='lavender'] { --tone: var(--lavender-soft); --tone-strong: var(--lavender); }
[data-tone='yellow'] { --tone: var(--yellow-soft); --tone-strong: var(--yellow); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--lavender-soft); }
.i { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - 32px, 1160px); margin: 0 auto; }
.narrow { width: min(100% - 32px, 760px); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); border-radius: var(--r); background: var(--ink); padding: 8px 14px; color: white; transition: transform 160ms ease; }
.skip-link:focus { transform: none; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); padding: 0 16px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--ease), box-shadow 180ms ease; }
.btn:hover { border-color: var(--ink); background: var(--subtle); }
.btn .i { transition: transform 200ms var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-lg { min-height: 48px; padding: 0 20px; font-size: 16px; }
.btn-primary { border-color: var(--ink); background: var(--ink); color: white; }
.btn-primary:hover { border-color: #3A3343; background: #3A3343; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(27,22,36,.18); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { border-color: transparent; background: var(--subtle); }
.btn-light { border-color: white; background: white; color: var(--ink); }
.btn-light:hover { border-color: var(--lavender-soft); background: var(--lavender-soft); }
.btn-outline-light { border-color: rgba(255,255,255,.4); background: transparent; color: white; }
.btn-outline-light:hover { border-color: white; background: rgba(255,255,255,.1); }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-sm); background: var(--tone, var(--subtle)); padding: 3px 9px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.chip .i { width: 14px; height: 14px; }
.icon-tile { display: inline-grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--surface); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(249,246,243,.82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.nav.is-scrolled { background: rgba(249,246,243,.95); border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(27,22,36,.04); }
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 6px; font: 700 21px/1 var(--display); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); transition: transform 300ms var(--ease); }
.brand:hover .brand-dot { transform: scale(1.5); }
.nav-links { display: none; gap: 2px; margin-left: 12px; }
.nav-links a { position: relative; border-radius: var(--r); padding: 8px 12px; color: var(--secondary); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.nav-links a:hover { background: var(--subtle); color: var(--ink); }
.nav-actions { display: flex; gap: 6px; margin-left: auto; }

/* Hero */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow { margin-bottom: 16px; }
.hero h1 { font: 700 clamp(2.1rem, 5.2vw, 3.6rem)/1.12 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--ink); background: linear-gradient(transparent 62%, var(--yellow-soft) 62%); padding: 0 4px; }
.lead { max-width: 36rem; margin-top: 16px; color: var(--secondary); font-size: clamp(1rem, 1.5vw, 1.12rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-shot { position: relative; margin: 0; }
.browser { overflow: hidden; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 2px 6px rgba(27,22,36,.05), 0 30px 60px rgba(27,22,36,.12); transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); transition: transform 600ms var(--ease); }
.hero-shot:hover .browser { transform: none; }
.browser-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--line); background: var(--subtle); padding: 10px 12px; }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.browser-bar span:nth-child(1) { background: var(--coral); } .browser-bar span:nth-child(2) { background: var(--yellow); } .browser-bar span:nth-child(3) { background: var(--mint); }
.float-card { position: absolute; display: none; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 20px 44px rgba(27,22,36,.16); animation: float 6s ease-in-out 1.2s 2 alternate both; }
.float-budget { right: -20px; bottom: -36px; width: 46%; }

/* Envelopes: the visitor's own salary split 50/30/20; flaps open once on first view. */
.split { margin-top: 56px; }
.split-head { display: grid; gap: 22px; }
.split-head h2 { font: 700 clamp(1.55rem, 3vw, 2.15rem)/1.15 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.split-head p { max-width: 34rem; margin-top: 8px; color: var(--secondary); }
.split-input { display: grid; gap: 10px; align-content: end; }
.split-input label { color: var(--secondary); font-size: 14px; font-weight: 600; }
.split-field { display: flex; align-items: baseline; gap: 6px; max-width: 320px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.split-field:focus-within { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 2px; }
.split-field input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 0; color: var(--ink); font: 700 clamp(1.7rem, 3.2vw, 2.3rem)/1.15 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; outline: none; }
.split-field span { color: var(--muted); font: 600 1.25rem/1 var(--display); }
.split-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.split-presets button { border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; padding: 5px 12px; color: var(--secondary); font: 600 13px/1.3 var(--body); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.split-presets button:hover { border-color: var(--ink); color: var(--ink); }
.split-presets button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: white; }
.envelopes { display: grid; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.envelope { position: relative; display: flex; flex-direction: column; min-width: 0; padding-top: 76px; perspective: 800px; filter: drop-shadow(0 10px 18px rgba(27,22,36,.08)) drop-shadow(0 1px 1px rgba(27,22,36,.05)); }
.envelope:nth-child(2) { --d: 140ms; }
.envelope:nth-child(3) { --d: 280ms; }
.env-body { position: relative; z-index: 3; display: grid; flex: 1 1 auto; align-content: end; gap: 2px; min-height: 164px; border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--tone); padding: 48px 16px 16px; clip-path: polygon(0 0, 50% 34px, 100% 0, 100% 100%, 0 100%); }
.env-pct { font: 700 clamp(2.2rem, 4.4vw, 3.2rem)/1 var(--display); letter-spacing: -.03em; }
.env-name { margin-top: 6px; font-size: 15px; font-weight: 700; }
.env-eg { color: var(--secondary); font-size: 13px; line-height: 1.4; }
.env-flap { position: absolute; top: 76px; left: 0; right: 0; z-index: 1; height: 74px; background: var(--tone-strong); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: rotateX(180deg); transform-origin: top; transition: transform 700ms var(--ease) var(--d, 0ms), z-index 0s linear calc(var(--d, 0ms) + 350ms); }
.env-slip { position: absolute; top: 76px; left: 14px; right: 14px; z-index: 2; height: 84px; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--surface); padding: 9px 12px; color: var(--muted); font: 600 14px/1 var(--display); white-space: nowrap; box-shadow: 0 0 0 1px rgba(27,22,36,.06); transform: translateY(-46px); transition: transform 620ms var(--ease) calc(var(--d, 0ms) + 420ms); }
.env-slip b { color: var(--ink); font: 700 clamp(1.05rem, 2.2vw, 1.5rem)/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.js .split:not(.is-open) .env-flap { z-index: 4; transform: none; }
.js .split:not(.is-open) .env-slip { transform: translateY(10px); }
.split-note { max-width: 44rem; margin-top: 18px; color: var(--secondary); font-size: 15px; }
.split-note b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 32px 0 72px; }
.section-white { background: var(--surface); }
.section-tint { background: var(--tone); }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--secondary); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.kicker::before { content: ''; width: 20px; height: 3px; border-radius: 2px; background: var(--coral); }
.section h2 { font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.18 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.section h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }


/* Showcase */
.section-title { margin-bottom: 8px; }
.feature { display: grid; gap: 24px; align-items: center; padding: 32px 0; }
.feature-copy p { max-width: 34rem; margin-top: 10px; color: var(--secondary); }
.feature-copy h3 { font: 700 clamp(1.3rem, 2.2vw, 1.65rem)/1.25 var(--display); letter-spacing: -.01em; }
.checks { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 28px; color: var(--secondary); }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: var(--r-sm); background: var(--tone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1624' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.feature-shot { overflow: hidden; margin: 0; border-radius: var(--r-xl); background: var(--tone); padding: 14px; }
.feature-shot img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.feature-shot-phone { display: flex; justify-content: center; max-height: 460px; padding: 28px 14px 0; }
.feature-shot-phone picture { width: min(300px, 80%); }
.feature-shot-phone img { border-radius: 18px 18px 0 0; box-shadow: 0 0 0 6px var(--ink), 0 18px 40px rgba(27,22,36,.18); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 22px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 6px; width: 2px; background: var(--accent); }
.tl-item { position: relative; display: grid; gap: 4px; }
.tl-item::before { content: ''; position: absolute; top: 7px; left: -28px; width: 14px; height: 14px; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--line-strong); }
.tl-item.is-now::before { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.tl-mark { color: var(--secondary); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tl-item p { margin-top: 2px; color: var(--secondary); }


/* Privacy */
.privacy-grid { display: grid; gap: 28px; align-items: center; }
.privacy-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.privacy-list li { display: flex; align-items: center; gap: 14px; border-radius: var(--r-lg); background: rgba(255,255,255,.7); padding: 14px 16px; transition: background-color 200ms ease, transform 200ms var(--ease); }
.privacy-list p { color: var(--secondary); font-size: 14.5px; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform 240ms var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 16px 16px; color: var(--secondary); }
.faq details[open] p { animation: fade-down 260ms var(--ease) both; }

/* CTA + footer */
.cta-card { display: grid; gap: 20px; align-items: center; border-radius: var(--r-xl); background: var(--ink); padding: 32px 24px; color: white; }
.cta-card h2 { color: white; }
.cta-card p { margin-top: 6px; color: rgba(255,255,255,.75); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--secondary); font-size: 14px; }
.footer-inner { display: grid; gap: 16px; }
.footer-inner p { margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Motion: scroll reveal with stagger; content stays visible without JS. */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in, .js [data-stagger] > .is-in { opacity: 1; transform: none; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

@media (min-width: 640px) {
  .split-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
  .envelopes { display: flex; gap: 12px; margin-top: 12px; }
  .envelope { flex: var(--share) 1 0; }
  .cta-card { grid-template-columns: 1fr auto; padding: 40px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-copy { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; }
  .float-card { display: block; }
  .section { padding: 88px 0; }
  .feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; padding: 40px 0; }
  .feature-reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .feature-reverse .feature-copy { order: 2; }
  .section-title { margin-bottom: 16px; }
  .privacy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 479px) {
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .brand { font-size: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; }
  .browser { transform: none; }
}
