/* Yabu landing mockups: shared tokens (palette C) + primitives */
:root {
  --cream: #fbf1e6;
  --surface: #ffffff;
  --ink: #4e070b;
  --forest: #042f1b;
  --forest-2: #0a3d25;
  --lime: #e7ec48;
  --fresh: #4ec46e;
  --orange: #f4842d;
  --pink: #feb3d2;
  --sky: #b4e7f6;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; }

.wrap { width: min(1320px, 100% - 48px); margin-inline: auto; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav ul { display: flex; gap: 28px; list-style: none; padding: 0; font-weight: 500; font-size: 15px; }
.nav ul a { opacity: 0.85; transition: opacity 0.2s; }
.nav ul a:hover { opacity: 1; }
@media (max-width: 820px) { .nav ul { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 600 15px/1 var(--body); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--fresh); color: var(--forest);
  transition: color 0.25s ease, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn.lime { background: var(--lime); }
.btn.forest { background: var(--forest); color: var(--lime); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 16px;
  background: var(--forest); color: var(--cream); transition: color 0.25s ease;
}
.store i { font-size: 28px; color: var(--lime); transition: color 0.25s ease; }
.store small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.1; }
.store b { display: block; font: 600 17px/1.15 var(--body); }
.store.on-dark { background: var(--cream); color: var(--forest); }
.store.on-dark i { color: var(--forest); }

/* phone with a real app screenshot inside */
.phone {
  width: var(--pw, 280px); aspect-ratio: 1080 / 2424; padding: 7px; border-radius: calc(var(--pw, 280px) * 0.15);
  background: #07140d; box-shadow: 0 40px 80px -30px rgba(4, 47, 27, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  flex: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--pw, 280px) * 0.125); }

footer.foot { background: var(--forest); color: var(--cream); padding: 28px 0; font-size: 14px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; opacity: 0.8; }

/* mockup note strip (not part of the design) */
.mock-note { background: #111; color: #ddd; font: 13px/1.5 ui-monospace, monospace; padding: 14px 24px; }
.mock-note b { color: var(--lime); }

/* floating pill nav, echoes the app's tab bar */
.nav.pill { top: 14px; height: auto; pointer-events: none; }
.nav.pill .wrap { pointer-events: auto; width: min(760px, 100% - 32px); background: var(--forest-2); color: var(--cream); border-radius: 999px; padding: 8px 8px 8px 24px; box-shadow: 0 18px 40px -18px rgba(4, 47, 27, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.nav.pill .btn { padding: 12px 18px; }
@media (max-width: 820px) { .nav.pill .wrap { gap: 10px; padding-left: 16px; } .nav.pill .btn { padding: 11px 14px; font-size: 14px; } .nav .logo { width: 84px; } }
.logo { display: block; flex: none; width: 104px; height: 30px; background: currentColor; -webkit-mask: url(/assets/logo-lockup.svg) left center / contain no-repeat; mask: url(/assets/logo-lockup.svg) left center / contain no-repeat; }

/* themed cursor: GPS arrow, slightly larger over anything clickable; text fields keep the I-beam */
@media (pointer: fine) {
  html { cursor: url(/assets/cursor-arrow.svg) 4 4, auto; }
  a, button, summary, .btn, .store, .chip span { cursor: url(/assets/cursor-arrow-lg.svg) 5 5, pointer; }
}

/* forms */
form { background: var(--surface); color: var(--ink); border-radius: var(--r-l); padding: 34px; display: grid; gap: 18px; box-shadow: 0 40px 70px -40px rgba(4, 47, 27, 0.35); }
fieldset { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
legend, label > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: block; margin: 0; padding: 11px 18px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(78, 7, 11, 0.2); font-weight: 500; font-size: 15px; transition: background 0.25s, color 0.25s; }
.chip input:checked + span { background: var(--lime); color: var(--forest); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--fresh); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type='text'], input[type='email'], textarea { width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--cream); border: 1.5px solid rgba(78, 7, 11, 0.2); border-radius: 14px; padding: 13px 16px; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--fresh); outline-offset: 1px; border-color: var(--forest); }
.err { display: none; color: #a3121a; font-size: 13px; margin-top: 6px; }
label.bad .err { display: block; }
label.bad input, label.bad textarea { border-color: #a3121a; }
form small { font-size: 13px; opacity: 0.8; }
form small a { text-decoration: underline; }
form .btn { justify-self: start; padding: 16px 28px; font-size: 16px; }
.sent { display: none; text-align: center; padding: 30px 10px; }
.sent img { width: 170px; margin: 0 auto 14px; }
.sent b { display: block; font: 800 40px/1 var(--display); margin-bottom: 8px; }
form.done > *:not(.sent) { display: none; }
form.done .sent { display: block; }
a.link { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }

/* motion tokens */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }

/* smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* curtain between pages: lime sheet, forest sheet, logo */
.curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.curtain i { position: absolute; inset: 0; border-radius: 40px 40px 0 0; transform: translateY(101%); transition: transform 0.62s var(--ease-in-out); }
.curtain i:nth-child(1) { background: var(--lime); }
.curtain i:nth-child(2) { background: var(--forest); transition-delay: 0.1s; }
.curtain .logo { position: absolute; left: 50%; top: 50%; width: 190px; height: 55px; margin: -27px 0 0 -95px; color: var(--lime); -webkit-mask-position: center; mask-position: center; opacity: 0; transition: opacity 0.25s ease 0.3s; }
.leaving .curtain i, .entering .curtain i { transform: none; }
.leaving .curtain .logo, .entering .curtain .logo { opacity: 1; }
.entering .curtain i, .entering .curtain .logo { transition: none; }
html.entering { background: var(--forest); }
.entering.entered .curtain i { border-radius: 0 0 40px 40px; transform: translateY(-101%); transition: transform 0.7s var(--ease-in-out); }
.entering.entered .curtain i:nth-child(1) { transition-delay: 0.1s; }
.entering.entered .curtain i:nth-child(2) { transition-delay: 0s; }
.entering.entered .curtain .logo { opacity: 0; transition: opacity 0.2s ease; }
.curtain-reset .curtain i, .curtain-reset .curtain .logo { transition: none; }

/* shared footer / finale: lime, Yabu drives in and parks above the claim */
.final { position: sticky; bottom: 0; z-index: 1; min-height: 100dvh; overflow: hidden; display: grid; grid-template-rows: 1fr auto; text-align: center; color: var(--forest); background: var(--lime); }
.final .mid { position: relative; z-index: 2; align-self: center; padding: 84px 24px 56px; }
.final .car { width: clamp(280px, 30vw, 480px); max-height: 26dvh; object-fit: contain; margin: 0 auto 6px; }
.final h2 { font-size: clamp(44px, 6vw, 104px); line-height: 0.95; margin-bottom: clamp(44px, 9vh, 100px); }
.final .stores { position: relative; justify-content: center; }
.final .arrow { position: absolute; left: calc(50% + 184px); bottom: -4px; width: 118px; scale: -1 1; rotate: 40deg; }
.final .base { position: relative; z-index: 2; padding-bottom: 4vh; }
.final .base .wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px 6vw; align-items: end; text-align: left; padding: 4vh 0 0; border-top: 1.5px solid rgba(4, 47, 27, 0.22); }
.final .brand { display: grid; gap: 14px; }
.final .brand .logo { width: 150px; height: 44px; -webkit-mask-position: left center; mask-position: left center; }
.final .copy { font-size: 14px; opacity: 0.7; }
.final .menu { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 14px clamp(28px, 4vw, 64px); }
.final .base b { display: block; font: 800 18px/1.2 var(--display); margin-bottom: 10px; }
.final .base a { display: block; width: fit-content; font-size: 16px; padding: 4px 0; background: linear-gradient(var(--forest), var(--forest)) no-repeat 0 100% / 0% 2px; transition: background-size 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .final .base a:hover { background-size: 100% 2px; } }
.final.static { position: relative; height: auto; min-height: 0; border-radius: 0; }
@media (max-width: 820px) {
  .final { position: relative; height: auto; padding-top: 20px; }
  .final .mid { padding-bottom: 30px; }
  .final .arrow { display: none; }
  .final .base .wrap { grid-template-columns: 1fr; gap: 28px; }
  .final .menu { grid-template-columns: 1fr 1fr; justify-content: start; gap: 20px 24px; }
  .final .base a { font-size: 15px; }
  .store { padding: 8px 14px 8px 12px; }
  .stores { flex-wrap: nowrap; }
}
@media (max-width: 380px) { .store { gap: 8px; padding: 7px 11px 7px 9px; } .store i { font-size: 24px; } .store b { font-size: 15px; } }

/* hover: ink spreads from where the cursor entered (site.js adds .ink and sets --x/--y/--s) */
.ink { position: relative; overflow: hidden; isolation: isolate; }
.ink::before { content: ''; position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: -1; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: var(--ink-bg, var(--forest)); scale: 0; transition: scale 0.5s var(--ease-out); }
.nav ul a.ink { --ink-bg: var(--lime); display: inline-block; padding: 9px 16px; margin: 0 -16px; border-radius: 999px; transition: color 0.25s ease, opacity 0.2s; }
.btn.forest.ink { --ink-bg: var(--lime); }
.store.ink { --ink-bg: var(--orange); }
@media (hover: hover) and (pointer: fine) {
  .ink:hover::before { scale: var(--s, 30); }
  .btn.ink:hover { color: var(--lime); }
  .btn.forest.ink:hover, .nav ul a.ink:hover, .store.ink:hover, .store.ink:hover i { color: var(--forest); }
}
@media (prefers-reduced-motion: reduce) { .ink::before { transition: none; } }

/* sub-pages: "also in the app" hint */
.inapp { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; background: var(--sky); color: var(--forest); border-radius: var(--r-m); padding: 26px 0 0 26px; overflow: hidden; }
.inapp div { padding-bottom: 26px; }
.inapp b { display: block; font: 800 24px/1.1 var(--display); margin-bottom: 8px; }
.inapp p { font-size: 15px; }
.inapp img { width: clamp(110px, 10vw, 150px); margin: 0 14px 14px 0; }
.final.static .mid { padding-bottom: 72px; }
.nav .btn.ink { --ink-bg: var(--orange); }
@media (hover: hover) and (pointer: fine) { .nav .btn.ink:hover { color: var(--forest); } }
.final .car { display: block; }
@media (max-height: 820px) { .final .mid { padding: 72px 24px 40px; } .final .car { max-height: 19dvh; } .final h2 { font-size: clamp(40px, 5vw, 84px); } }

/* header hides while scrolling down, comes back on scroll up or at the top (site.js) */
.nav { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.nav.away { transform: translateY(calc(-100% - 20px)); }
