:root {
  --bg: #f4f1ec;
  --panel: rgba(255,255,255,0.78);
  --panel-strong: rgba(255,255,255,0.92);
  --text: #1d1b19;
  --muted: #615b54;
  --accent: #5d47b8;
  --accent-2: #1f5f42;
  --ink: #111014;
  --sage: #dfe9de;
  --line: rgba(30,26,23,0.10);
  --shadow: 0 24px 70px rgba(30,26,23,0.14);
  --shadow-soft: 0 16px 40px rgba(30,26,23,0.10);
  --radius: 22px;
  --mx: 0px;
  --my: 0px;
  --px: 50%;
  --py: 18%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --hero-bg-image: url('/assets/landing/plac.png');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(93,71,184,.13), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(31,95,66,.13), transparent 30%),
    var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  isolation: isolate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: -12vh -12vw;
  z-index: 0;
  background: var(--hero-bg-image) calc(50% + var(--mx) * -0.035) calc(50% + var(--my) * -0.03)/cover no-repeat;
  opacity: .58;
  filter: saturate(1.1) contrast(1.03) brightness(1.02);
  transform:
    translate3d(calc(var(--mx) * -0.105), calc(var(--my) * -0.095), 0)
    scale(1.22)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-origin: center;
  will-change: transform, background-position, filter;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244,241,236,.34), rgba(244,241,236,.75) 56%, rgba(244,241,236,.94)),
    radial-gradient(circle at var(--px) var(--py), rgba(255,255,255,.48), transparent 24%);
  will-change: background;
}
.background-depth {
  position: fixed;
  inset: -8vh -8vw;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(30,26,23,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,26,23,.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  transform: translate3d(calc(var(--mx) * .065), calc(var(--my) * .055), 0);
  will-change: transform;
}
.ambient { display: none; }
.ambient-a { left: -12vw; top: 12vh; background: #d7b58d; }
.ambient-b { right: -12vw; top: 42vh; background: #9eb29b; transform: translate3d(calc(var(--mx) * -.115), calc(var(--my) * -.105), 0); }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 24px; }
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 32px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  padding: 14px 18px;
  backdrop-filter: blur(18px) saturate(1.16);
}
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing: 0; }
.brand img { width: 42px; height: 42px; border-radius: 14px; box-shadow: 0 10px 24px rgba(30,26,23,.12); }
.cta, button.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #24202d, var(--accent));
  color:#fff;
  padding:12px 18px;
  border-radius: 999px;
  font-weight:800;
  box-shadow: 0 14px 34px rgba(93,71,184,.24);
  border: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, filter .28s ease;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.34), transparent);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.cta:hover::after { transform: translateX(120%); }
.cta:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(93,71,184,.28); filter: saturate(1.06); }
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(30,26,23,.11);
  background:rgba(255,255,255,.72);
  font-weight:800;
  box-shadow: 0 10px 24px rgba(30,26,23,.07);
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}
.secondary:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 18px 38px rgba(30,26,23,.12); }
.hero {
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items:center;
  margin-bottom: 28px;
  min-height: calc(100vh - 150px);
}
.card {
  position: relative;
  background: var(--panel);
  border:1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.12);
  overflow: hidden;
  transition: transform .36s cubic-bezier(.2,.8,.2,1), box-shadow .36s ease, background .36s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.46), transparent 34%, rgba(111,78,55,.045));
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-5px); box-shadow: 0 30px 80px rgba(30,26,23,.18); background: rgba(255,255,255,.82); }
.hero-copy {
  padding: clamp(24px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.05fr);
  grid-template-rows: auto auto auto;
  gap: clamp(16px, 2.4vw, 30px);
  align-items: end;
}
.hero-copy .label,
.hero-copy h1 { grid-column: 1; }
.hero-copy .label { grid-row: 1; }
.hero-copy h1 {
  grid-row: 2 / span 2;
  align-self: end;
}
.hero-copy .sub {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
}
.hero-copy .actions {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  margin-bottom: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.hero-copy .proof {
  grid-column: 1 / -1;
  grid-row: 4;
  align-self: stretch;
  justify-self: center;
  width: min(100%, 920px);
}
.label { display:inline-flex; align-items:center; gap:8px; margin-bottom: 18px; color: var(--accent-2); font-weight:800; font-size:14px; letter-spacing: 0; }
.label::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--accent-2); box-shadow: 0 0 18px rgba(36,60,47,.42); }
h1 { font-size: 52px; line-height: 1.04; margin: 0 0 14px; letter-spacing: 0; }
h2, .section-title { font-size: 38px; line-height: 1.08; letter-spacing: 0; }
.sub { font-size: 18px; color: var(--muted); margin-bottom: 18px; max-width: 60ch; }
.actions { display:flex; flex-wrap:wrap; gap:14px; margin-bottom: 22px; }
.proof { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px; margin-top: 0; }
.proof div, .trust-strip div, .shared-points div, .step, .faq-item {
  padding:14px;
  background: rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.68);
  border-radius: 18px;
  color: var(--muted);
  box-shadow: 0 12px 30px rgba(30,26,23,.06);
  backdrop-filter: blur(10px);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.proof div { font-size: 14px; }
.proof div strong { color: var(--text); }
.proof div:hover, .trust-strip div:hover, .shared-points div:hover, .step:hover, .faq-item:hover { transform: translateY(-5px); background: rgba(255,255,255,.8); box-shadow: 0 20px 44px rgba(30,26,23,.11); }
.hero-showcase {
  min-height: 575px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  perspective: 1400px;
  overflow: hidden;
  padding: 20px 4px 34px;
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}
.phone-shot {
  --entry-x: 0px;
  --entry-y: 0px;
  --scroll-shift: 0px;
  --scroll-depth: 1;
  margin: 0;
  width: min(25vw, 250px);
  flex: 0 0 auto;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(17,16,20,.95), rgba(17,16,20,.84));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 70px rgba(17,16,20,.28);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  transform: translate3d(calc(var(--entry-x) + var(--scroll-shift)), var(--entry-y), 0) scale(var(--scroll-depth));
  transition: transform .18s linear, opacity .72s ease, filter .72s ease;
  will-change: transform;
}
.phone-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.phone-shot-profile {
  order: 2;
  width: min(29vw, 292px);
  z-index: 2;
}
.phone-shot-today { order: 1; }
.phone-shot-tracking { order: 3; }
.motion-shot[data-motion="left"] { --entry-x: -28px; }
.motion-shot[data-motion="right"] { --entry-x: 28px; }
.motion-shot[data-motion="up"] { --entry-y: -18px; }
.motion-shot { opacity: 0; filter: blur(8px) saturate(.85); }
.motion-shot.in { opacity: 1; filter: none; }
.product-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  justify-items: center;
  padding: 14px 0;
}
.product-pair .phone-shot { width: min(22vw, 240px); min-height: 520px; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; margin: 20px 0; }
.feature { padding: 26px; }
.feature h3 { margin:0 0 10px; font-size: 22px; }
.feature p { margin:0; color: var(--muted); }
.split { display:grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items:center; margin: 28px 0; }
.content { padding: 34px; }
.content h2, .section-title { margin: 0 0 14px; }
.section-intro { color: var(--muted); margin: 0 0 18px; max-width: 65ch; }
ul { margin: 0; padding-left: 18px; color: var(--muted); }
li + li { margin-top: 10px; }
.shared-care { display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin: 28px 0; }
.shared-points { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; margin-top: 18px; }
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; margin: 24px 0; }
.step-number { width:38px; height:38px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background: rgba(111,78,55,.12); color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.audience { display:grid; grid-template-columns: repeat(2,1fr); gap:20px; margin: 24px 0; }
.audience .feature { min-height: 220px; }
.trust-strip { display:grid; grid-template-columns: repeat(4,1fr); gap:12px; margin: 24px 0 28px; }
.footer-cta { padding: 38px; margin: 30px 0 50px; }
.footer-cta h2 { margin:0 0 12px; font-size: 38px; }
.footer-cta p { color: var(--muted); max-width: 700px; margin:0 0 18px; }
.signup-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items:start; }
.signup-panel { padding: 26px; border-radius: 22px; background: rgba(255,255,255,.68); border:1px solid rgba(255,255,255,.72); box-shadow: 0 14px 34px rgba(30,26,23,.07); }
.signup-form { display:grid; gap:14px; }
.signup-form label { display:grid; gap:8px; font-weight:700; }
.signup-form input, .signup-form select { width: 100%; padding: 14px 16px; border-radius: 16px; border:1px solid rgba(30,26,23,.12); background:rgba(255,255,255,.85); font: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.signup-form input:focus, .signup-form select:focus { outline: none; transform: translateY(-1px); border-color: rgba(111,78,55,.35); box-shadow: 0 0 0 4px rgba(111,78,55,.10); }
.signup-form button { justify-self:start; }
.honey-field { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-message { min-height: 22px; color: var(--muted); font-size: 14px; font-weight: 700; }
.form-message.error { color: #8b1e1e; }
.tiny { font-size: 13px; color: var(--muted); margin-top: 12px; }
.faq { display:grid; gap:14px; margin: 24px 0; }
.faq-item h3 { margin:0 0 8px; font-size: 18px; }
.faq-item p { margin:0; color: var(--muted); }
.mobile-cta { display:none; position:fixed; left:16px; right:16px; bottom:16px; z-index:50; }
.mobile-cta a { display:block; text-align:center; background: var(--accent); color:#fff; padding:14px 18px; border-radius:999px; font-weight:800; box-shadow: 0 18px 40px rgba(30,26,23,.18); }
.legal-section { margin: 28px 0; scroll-margin-top: 24px; }
.legal-modal[hidden] { display: none !important; }
.legal-modal { position: fixed; inset: 16px; z-index: 1000; overflow: auto; border: none; padding: 0; background: var(--panel-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.legal-modal::backdrop, .legal-modal-backdrop { background: rgba(30,26,23,.45); backdrop-filter: blur(4px); }
.legal-modal-backdrop { position: fixed; inset: 0; z-index: 999; }
.legal-header { display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; margin-bottom: 14px; flex-wrap:wrap; }
.legal-header .section-title { margin-bottom: 0; }
.legal-header-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:flex-end; }
.footer-links { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.footer-links a, .footer-links button { padding: 10px 14px; border-radius: 999px; border:1px solid var(--line); background:#fff; font-weight:800; cursor:pointer; }
.legal-doc { display: grid; gap: 14px; padding: 4px 26px 28px; }
.legal-doc h2, .legal-doc h3, .legal-doc h4 { margin: 0; line-height: 1.2; letter-spacing: 0; color: var(--text); }
.legal-doc h2 { font-size: 30px; margin-top: 6px; }
.legal-doc h3 { font-size: 21px; margin-top: 10px; }
.legal-doc h4 { font-size: 16px; margin-top: 6px; }
.legal-doc p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal-doc ul { margin: 0; padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal-doc li + li { margin-top: 8px; }
.legal-doc hr { width: 100%; height: 1px; border: 0; margin: 4px 0; background: var(--line); }
.site-footer { display:flex; justify-content:space-between; gap: 16px; flex-wrap:wrap; align-items:center; margin: 18px 0 34px; padding: 18px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size:14px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.reveal { opacity: 0; transform: translate3d(0, 30px, 0) scale(.985); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1); transition-delay: var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: translate3d(0,0,0) scale(1); }
@media (hover: none), (pointer: coarse) { .card:hover, .cta:hover, .secondary:hover, .proof div:hover, .trust-strip div:hover, .shared-points div:hover, .step:hover, .faq-item:hover { transform: none; } }
@media (max-width: 900px) {
  .hero, .split, .grid-3, .audience, .shared-care, .steps, .signup-grid, .trust-strip, .product-pair { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy, .content, .footer-cta { padding: 28px; }
  .hero-copy { display: block; }
  .hero-copy .sub { margin-bottom: 22px; }
  h1 { font-size: 42px; }
  h2, .section-title, .footer-cta h2 { font-size: 31px; }
  .proof, .shared-points { grid-template-columns: 1fr; }
  .proof { margin-top: 16px; }
  .hero-copy .actions { flex-wrap: wrap; justify-content: flex-start; margin-bottom: 22px; }
  .hero-showcase {
    min-height: 520px;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    mask-image: linear-gradient(90deg, black 86%, transparent);
    padding: 20px 0 26px;
  }
  .hero-showcase::-webkit-scrollbar { display: none; }
  .phone-shot,
  .phone-shot-profile,
  .product-pair .phone-shot {
    width: min(70vw, 300px);
    min-height: auto;
    scroll-snap-align: center;
  }
  .phone-shot-profile,
  .phone-shot-today,
  .phone-shot-tracking { order: initial; }
  .product-pair {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
  }
  .product-pair::-webkit-scrollbar { display: none; }
  .nav { align-items:flex-start; flex-direction:column; }
  .nav > .cta {
    max-height: 52px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height .24s ease, opacity .2s ease, transform .24s ease, margin .24s ease, padding .24s ease;
  }
  .nav.is-scrolled > .cta {
    max-height: 0;
    margin: -6px 0 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }
  .mobile-cta { display:block; }
  body { padding-bottom: 88px; }
}
@media (max-width: 520px) {
  .wrap { padding: 16px; }
  h1 { font-size: 36px; }
  h2, .section-title, .footer-cta h2 { font-size: 28px; }
  .sub { font-size: 17px; }
  .hero-showcase { min-height: 470px; }
  .phone-shot,
  .phone-shot-profile,
  .product-pair .phone-shot { width: min(76vw, 280px); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } body::before, .ambient, .phone-shot { transform: none !important; } .reveal { opacity: 1; transform: none; } }
