/* Envoi website. One light look on purpose, matching the app (DECISIONS #6, src/theme/tokens.ts):
   periwinkle hero, lime highlight, cream ground, pastel cards with a chunky ink outline and a hard sticker shadow.
   Layout: one wrapper per band; hero = copy beside a tilted phone, then numbered steps, alternating feature rows. */

@font-face { font-family: 'Bagel Fat One'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/BagelFatOne.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700 800; font-style: normal; font-display: swap; src: url(fonts/BricolageGrotesque.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400 700; font-style: normal; font-display: swap; src: url(fonts/Inter.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --base: #F6F0E8;
  --card: #FFFFFF;
  --ink: #17151F;
  --soft: #4D4858;
  --muted: #6E6878;
  --coral: #FF5A1F;
  --blue: #6266F1;
  --lime: #D6F24B;
  --blush: #F9C6E2;
  --sky: #C2E0FC;
  --mint: #BFEF96;
  --butter: #FCE48C;
  --line: rgba(23, 21, 31, 0.16);

  --wordmark: 'Bagel Fat One', 'Bricolage Grotesque', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --outline: 2px solid var(--ink);
  --sticker: 0 3px 0 var(--ink);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--base); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
/* Page and section titles in Bagel Fat One, like the app's screen and card titles. */
h1, h2, .feature-copy h3 { font-family: var(--wordmark); font-weight: 400; letter-spacing: 0; }
h2 { font-size: clamp(28px, 4.4vw, 44px); }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

.eyebrow { font: 700 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.eyebrow.on-blue { color: var(--lime); }
.mail { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.small { font-size: 14px; color: var(--soft); }
.fineprint { font-size: 13px; color: var(--muted); text-align: center; }

/* nav */
nav.top { background: var(--blue); border-bottom: var(--outline); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
nav.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--wordmark); font-size: 30px; line-height: 1; color: var(--card); text-decoration: none; text-shadow: 0 3px 0 var(--ink); }
.brand.small { font-size: 24px; }
/* Wordmark: "envo" + dotless i, the cowboy hat resting on the i's stem in place of the dot. */
.wm { display: inline-block; white-space: nowrap; letter-spacing: 0.01em; padding-top: 0.32em; }
.wm-i { position: relative; display: inline-block; }
.wm .hat { position: absolute; width: 0.85em; height: auto; left: 50%; bottom: 0.58em; transform: translateX(-50%) rotate(-8deg); transform-origin: 50% 95%; overflow: visible; }
.brand.hero-mark { display: block; width: max-content; font-size: clamp(64px, 10vw, 112px); margin-bottom: 16px; text-shadow: 0 0.05em 0 var(--ink); }
nav.top ul { display: flex; gap: 6px 18px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
nav.top li a { color: var(--card); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.top li a:hover, nav.top li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 640px) { nav.top li:nth-child(n+2):nth-child(-n+2) { display: none; } nav.top ul { gap: 4px 14px; } nav.top li a { font-size: 14px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--coral); color: var(--card); font: 700 16px/1 var(--body); padding: 16px 22px; border: var(--outline); border-radius: 999px; box-shadow: var(--sticker); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.is-soon { cursor: default; }
.btn.is-soon:hover { transform: none; box-shadow: var(--sticker); }
.soon { background: var(--lime); color: var(--ink); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1.5px solid var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='330' height='380'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.2' stroke-width='34' stroke-linecap='round'%3E%3Cpath d='M30 70 q45 -66 90 0 t90 0 t90 0'/%3E%3Cpath d='M-135 260 q45 -66 90 0 t90 0 t90 0'/%3E%3Cpath d='M195 260 q45 -66 90 0 t90 0 t90 0'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 330px 380px repeat, radial-gradient(ellipse 75% 60% at 30% 35%, #8487FF, transparent), linear-gradient(to bottom, var(--blue) 55%, #4C50D6); color: var(--card); border-bottom: var(--outline); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-block: 64px 0; }
.hero-copy { min-width: 0; padding-bottom: 64px; }
.hero h1 { font-family: var(--wordmark); font-weight: 400; font-size: clamp(46px, 7.6vw, 92px); line-height: 0.98; letter-spacing: -0.01em; margin-top: 18px; color: var(--card); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.hero h1 .hl { color: var(--lime); }
.lede { font-size: 19px; line-height: 1.55; max-width: 34em; margin-top: 22px; color: var(--card); }
.hero .phone { align-self: end; margin-bottom: -60px; }

/* phones */
.phone { margin: 0; width: min(100%, 300px); justify-self: center; border: 3px solid var(--ink); border-radius: 44px; padding: 10px; background: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.phone img { border-radius: 34px; width: 100%; height: auto; background: var(--base); }
.phone.tilt { transform: rotate(4deg); }

/* occasion chips */
.kinds { border-bottom: var(--outline); background: var(--lime); padding-block: 0; }
.chips { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { background: var(--card); border: var(--outline); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; box-shadow: var(--sticker); }

/* sections */
section { padding-block: 80px; }
.sec-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.sec-head p { color: var(--soft); font-size: 17px; }
.problem { text-align: center; }
.problem h2 { margin-bottom: 18px; }
.problem p { font-size: 18px; color: var(--soft); max-width: 36em; margin: 0 auto; }

.card { border: var(--outline); border-radius: var(--radius); box-shadow: var(--sticker); padding: 26px; min-width: 0; }
.card p { color: var(--soft); margin-top: 10px; }
.c-white { background: var(--card); } .c-butter { background: var(--butter); } .c-sky { background: var(--sky); }
.c-blush { background: var(--blush); } .c-mint { background: var(--mint); } .c-lime { background: var(--lime); }
.c-butter p, .c-sky p, .c-blush p, .c-mint p, .c-lime p { color: var(--ink); }

.how { background: var(--card); border-block: var(--outline); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: var(--outline); font: 800 18px/1 var(--display); margin-bottom: 16px; }

.tour .wrap { display: grid; gap: 72px; }
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.feature.flip .phone { order: 2; }
.feature-copy { display: grid; gap: 14px; max-width: 30em; min-width: 0; }
.feature-copy h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.feature-copy p { font-size: 17px; color: var(--soft); }
.feature .phone { width: min(100%, 270px); }

.more { padding-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.status { background: var(--sky); border-block: var(--outline); }
.status .sec-head p { color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.two .small { margin-top: 16px; color: var(--ink); }
.tick::before { content: ""; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2317151F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 16px; background-repeat: no-repeat; background-position: center; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--mint); border: var(--outline); font-size: 14px; vertical-align: 2px; }
.soonh::before { content: "\2192"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--card); border: var(--outline); font-size: 14px; vertical-align: 2px; }

.get h2 { margin-bottom: 14px; }
.get p { color: var(--soft); font-size: 17px; }

/* legal + support */
.doc { max-width: 760px; margin: 0 auto; padding-block: 56px 80px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 12px 0 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--soft); max-width: 65ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.doc b { color: var(--ink); }
.updated { font-size: 14px; color: var(--muted); }
.short { margin-top: 24px; background: var(--butter); border: var(--outline); border-radius: var(--radius); box-shadow: var(--sticker); padding: 20px 22px; }
.short p { color: var(--ink); }
details { background: var(--card); border: var(--outline); border-radius: 16px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style-position: inside; }
details p { padding: 0 18px 16px; }
.muted { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* footer */
footer { background: var(--ink); color: var(--base); padding-block: 32px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }
footer a { color: var(--base); }
footer .brand { -webkit-text-stroke: 0; text-shadow: none; }

/* narrow */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding-block: 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; }
  .hero-copy { padding-bottom: 32px; }
  .hero .phone { width: min(78%, 260px); margin-bottom: -90px; }
  .lede { font-size: 17px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .phone { order: 0; }
  .two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tour .wrap { gap: 56px; }
  footer nav { margin-left: 0; }
}
