/* Masar website. One typeface (Hanken Grotesk, self-hosted), the app's olive and gold, and no third-party requests. */
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0E150B;
  --paper: #FBF8F1;
  --cream: #F7FBEF;
  --ink: #141A11;
  --body: #2B3326;
  --muted: #5E6657;
  --olive: #566B3E;
  --olive-deep: #2F3E22;
  --sage: #DDE6CC;
  --sage-soft: #EEF2E3;
  --gold: #E5B450;
  --line: rgba(20, 26, 17, 0.12);
  --danger: #B3202E;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--olive-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; color: var(--cream); background: var(--night); overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -4; transform: scale(var(--s, 1)); transition: opacity 0.8s; }
.aurora { position: absolute; inset: 0; z-index: -3; filter: blur(64px) saturate(1.15); }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 78vmax; height: 78vmax; left: -22vmax; top: -30vmax; background: radial-gradient(circle at 35% 35%, rgba(122, 156, 78, 1), rgba(122, 156, 78, 0) 62%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 62vmax; height: 62vmax; right: -24vmax; bottom: -26vmax; background: radial-gradient(circle at 60% 60%, rgba(229, 180, 80, 0.62), rgba(229, 180, 80, 0) 62%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 48vmax; height: 48vmax; left: 30%; top: 25%; background: radial-gradient(circle, rgba(84, 118, 52, 0.95), rgba(84, 118, 52, 0) 65%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-12vmax, -9vmax, 0) scale(1.15); } }
@keyframes drift3 { to { transform: translate3d(-10vmax, 8vmax, 0) scale(0.9); } }
.map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.9; }
.map path { fill: none; stroke: rgba(247, 251, 239, 0.2); stroke-width: 1; }
.map .st-b { opacity: 0.55; }
.map .park { fill: rgba(120, 150, 70, 0.16); }
.route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.route path { fill: none; stroke-linecap: round; }
.route-line { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: draw 8s var(--ease) 0.5s forwards; filter: drop-shadow(0 0 10px rgba(229, 180, 80, 0.7)); }
.route-dot { fill: #fff7dd; filter: drop-shadow(0 0 8px rgba(229, 180, 80, 1)); }
.route-halo { fill: rgba(229, 180, 80, 0.28); }
.route-tall { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) { .route-wide { display: none; } .route-tall { display: block; } .route-line { stroke-width: 2.2; opacity: 0.55; } .map { opacity: 0.7; } }
.hud { position: absolute; right: clamp(24px, 6vw, 96px); bottom: clamp(90px, 14vh, 150px); display: none; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 20px; background: rgba(247, 251, 239, 0.1); border: 1px solid rgba(247, 251, 239, 0.22); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6); animation: rise 1.1s var(--ease) 1.1s both; }
@media (min-width: 900px) { .hud { display: flex; } }
.hud-tick { width: 40px; height: 40px; border-radius: 50%; background: rgba(229, 180, 80, 0.95); display: grid; place-items: center; }
.hud-tick svg { width: 20px; height: 20px; fill: none; stroke: var(--night); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hud small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 251, 239, 0.65); }
.hud strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.hud b { margin-left: 10px; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.hud b i { font-style: normal; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: rgba(247, 251, 239, 0.65); }
.shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 6, 0.5) 0%, rgba(8, 12, 6, 0.1) 38%, rgba(8, 12, 6, 0.72) 100%); }

.hero-inner { min-height: 100svh; max-width: 1180px; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 24px max(30px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { background: var(--paper); border-radius: 10px; padding: 2px; }
.hero-copy { padding: 10vh 0 6vh; max-width: 62rem; }
.hero h1, .hero .lede { text-shadow: 0 2px 22px rgba(8, 12, 6, 0.55); }
h1 { font-weight: 500; font-size: clamp(3.3rem, 12.5vw, 8.2rem); line-height: 0.96; letter-spacing: -0.04em; margin: 0 0 26px; }
h1 .l1, h1 .l2 { display: inline-block; }
h1 .l2 { color: var(--gold); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 31rem; margin: 0 0 30px; color: rgba(247, 251, 239, 0.84); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.status-pill { font-size: 0.875rem; letter-spacing: 0.02em; color: rgba(247, 251, 239, 0.7); }
.status-pill::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(229, 180, 80, 0.22); vertical-align: 1px; }
.scroll { align-self: flex-start; color: rgba(247, 251, 239, 0.7); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll::after { content: ""; width: 1px; height: 38px; background: currentColor; transform-origin: top; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: scaleY(0.35); opacity: 0.45; } 50% { transform: scaleY(1); opacity: 1; } }

/* hero entrance: one calm moment, on load */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.brand { animation: rise 0.9s var(--ease) both; }
h1 .l1 { animation: rise 1s var(--ease) 0.1s both; }
h1 .l2 { animation: rise 1s var(--ease) 0.28s both; }
.lede { animation: rise 1s var(--ease) 0.48s both; }
.hero-cta { animation: rise 1s var(--ease) 0.62s both; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 1rem; padding: 14px 28px; min-height: 52px; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-light { background: var(--cream); color: var(--night); }
.btn-light:hover { background: #fff; color: var(--night); }
.btn-green { background: var(--olive); color: #fff; }
.btn-green:hover { background: var(--olive-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sage-soft); }

/* ---------- sections ---------- */
.sect { position: relative; padding: clamp(80px, 13vw, 150px) 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.grid2 { display: grid; gap: 56px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 80px; } }
h2 { font-weight: 500; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.035em; margin: 0 0 30px; }
h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; margin: 0; }
.big { font-size: clamp(1.1rem, 2.1vw, 1.3rem); line-height: 1.55; color: var(--body); max-width: 34rem; margin: 0 0 18px; }
.muted { color: var(--muted); max-width: 34rem; margin: 0; }

.summary { overflow: hidden; padding-bottom: clamp(30px, 5vw, 70px); }
.glow { position: absolute; left: 50%; top: -22vmax; width: 110vmax; height: 52vmax; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(185, 201, 154, 0.55), rgba(229, 180, 80, 0.12) 60%, rgba(251, 248, 241, 0)); filter: blur(30px); pointer-events: none; }
.summary .wrap { position: relative; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: flex; align-items: center; gap: 18px; }
.ico { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); box-shadow: inset 0 0 0 1px rgba(86, 107, 62, 0.18); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--olive); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps small { display: block; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 0.98rem; }

.join { padding-top: clamp(50px, 8vw, 100px); }
.join .accent { color: var(--olive); }
.card { background: #fff; border-radius: 26px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(20, 26, 17, 0.35); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dots { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.dots li { width: 11px; height: 11px; border-radius: 50%; background: var(--sage); transition: background 0.3s, transform 0.3s; }
.dots li.on { background: var(--olive); transform: scale(1.1); }
.step { display: grid; gap: 14px; }
.step[hidden] { display: none; }
label, legend { display: block; font-weight: 600; font-size: 0.98rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
input[type="email"], input[type="text"], select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 54px; transition: border-color 0.2s, box-shadow 0.2s; }
input[type="email"]:focus, select:focus { border-color: var(--olive); outline: 0; box-shadow: 0 0 0 4px rgba(86, 107, 62, 0.18); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.choice { margin: 0; font-weight: 600; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 11px 17px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; min-height: 46px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.choice input:checked + span { background: var(--olive); border-color: var(--olive); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.row { display: flex; gap: 10px; margin-top: 6px; }
.row .btn-green { flex: 1; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; font-size: 0.95rem; }
.status.err { color: var(--danger); }
.fine { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }
.done { text-align: center; padding: 18px 0 6px; }
.done[hidden] { display: none; }
.tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; animation: pop 0.5s var(--ease) both; }
.tick svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done p { margin: 6px 0 0; color: var(--muted); }

.faq-sect { background: var(--sage-soft); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; padding: 18px 34px 18px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 1.7rem; font-weight: 300; color: var(--olive); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); max-width: 40rem; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: #D9DFCF; padding: 56px 0 max(44px, env(safe-area-inset-bottom)); }
.foot { display: grid; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: 1.2rem; color: var(--cream); }
.foot-brand img { background: var(--paper); border-radius: 9px; padding: 2px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer a { color: #D9DFCF; }
.footer a:hover { color: #fff; }
.footer .fine { color: #8C9682; margin: 0; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages (Privacy, Terms) ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.legal .back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.2rem; color: var(--olive-deep); margin-bottom: 32px; }
.legal .back img { border-radius: 10px; background: var(--sage-soft); padding: 2px; }
.legal h1 { color: var(--ink); font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 8px; animation: none; }
.legal h2 { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; margin: 38px 0 10px; font-weight: 600; }
.legal p { margin: 0 0 14px; }
.legal .updated { color: var(--muted); }
.legal .note { background: var(--sage-soft); border-left: 4px solid var(--olive); padding: 12px 16px; border-radius: 8px; margin: 18px 0 8px; }
.legal .tbc { color: var(--olive-deep); font-style: italic; background: var(--sage); padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .route-line, .scroll::after, .brand, h1 .l1, h1 .l2, .lede, .hero-cta, .tick, .hud { animation: none !important; }
  .route-line { stroke-dashoffset: 0; }
  .route-dot, .route-halo { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .dots li { transition: none; }
}
