/* Fudi landing: tokens, layout and drawing colours. Movement lives in motion.css. */

:root {
  /* brand (navy sampled from the mascot artwork) */
  --navy: #212A6D;
  --navy-deep: #161C4D;
  --navy-soft: #EDEFF8;
  --ink: #1B2140;
  --muted: #5F6686;
  --line: #DFE2EE;
  --surface: #F5F6FB;
  --card: #FFFFFF;
  --mango: #FF7A1A;
  --mango-soft: #FFF0E3;
  --leaf: #17875A;
  --leaf-soft: #E6F4EE;
  --chili: #C72E2E;
  --chili-dark: #9C2222;

  --font-display: "Fredoka", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --r-card: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(27, 33, 64, .05), 0 6px 20px rgba(27, 33, 64, .06);
  --shadow-lift: 0 2px 6px rgba(27, 33, 64, .12), 0 18px 40px rgba(8, 11, 40, .28);
  --ease-out: cubic-bezier(.22, .8, .3, 1);
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--head-h); }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-deep);
  text-wrap: balance;
}
p { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--mango); color: var(--navy-deep); font-weight: 700;
}
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill);
  font: 700 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn-accent { background: var(--mango); color: var(--navy-deep); }
.btn-light { background: var(--card); color: var(--navy); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--head-h); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 24px/1 var(--font-display); color: var(--navy); text-decoration: none;
}
.wordmark img { width: 38px; height: 38px; border-radius: 11px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav .link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-pill); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.site-nav .link:hover { background: var(--navy-soft); }
@media (max-width: 420px) { .site-nav .link { display: none; } }

/* -------------------------------------------------------------------- hero */
.hero { background: var(--navy); color: #fff; }
.hero .wrap {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 32px 48px;
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 48px; padding-block: 24px 40px; }
}
.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .12);
  font-size: 13px; font-weight: 700;
}
.hero h1 { color: #fff; font-size: clamp(36px, 3.9vw, 52px); line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--mango); }
.lede { margin-top: 16px; max-width: 46ch; font-size: clamp(16px, 1.5vw, 18px); color: #D5D9F2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fineprint { margin-top: 14px; font-size: 13px; color: #B4BBE3; }

/* ------------------------------------------------------------------ street */
.street { min-width: 0; }
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(#10153F 0%, #27327F 62%, #4B4C94 100%);
  padding-top: clamp(24px, 5vh, 72px);
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .7; }
.sky .moon {
  width: clamp(28px, 5vw, 46px); height: auto; aspect-ratio: 1; right: 8%; top: 6%;
  background: #FFE7A8; opacity: 1; box-shadow: 0 0 36px 6px rgba(255, 231, 168, .28);
}
.houses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding-inline: 4px; }
.house {
  position: relative; display: grid; gap: 0; min-width: 0;
  margin: 0; padding: 0; border: 0; background: none; color: #fff;
  font: inherit; cursor: pointer;
}
.house:disabled { cursor: default; }
.house-art { position: relative; display: block; }
.house-art > svg { display: block; width: 100%; height: auto; overflow: visible; }
.house-label {
  justify-self: center; z-index: 3; margin-bottom: 6px; padding: 3px 10px;
  border-radius: var(--r-card); background: rgba(255, 255, 255, .14);
  font-size: clamp(11px, 1.4vw, 13px); line-height: 1.35; text-align: center;
}
.house-label b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12em; }
.house[aria-pressed="true"] .house-label { background: var(--mango); color: var(--navy-deep); }
.house:focus-visible { outline-offset: -3px; border-radius: var(--r-card); }

/* the seller who waits behind each door */
.keeper { position: absolute; left: 49%; bottom: 1%; width: 47%; z-index: 2; pointer-events: none; }
.keeper .fudi { display: block; }

.roof { fill: var(--roof); }
.roof-line { fill: none; stroke: rgba(0, 0, 0, .18); stroke-width: 2.5; }
.wall { fill: var(--wall); }
.trim { fill: #fff; }
.glass { fill: #6B74B5; }
.lit .glass { fill: #FFC65C; }
.grill { fill: none; stroke: #fff; stroke-width: 3; }
.doorway { fill: #FFD98A; }
.door { fill: var(--door); }
.knob { fill: #FFE7A8; }
.fence { fill: none; stroke: #E4E7F6; stroke-width: 4; stroke-linecap: round; }
.leafy { fill: #2FA372; }
.pot { fill: #B8552F; }
.smoke { fill: #fff; opacity: .0; }
.badge { fill: #fff; stroke: var(--navy-deep); stroke-width: 2.5; }

.road {
  position: relative; height: clamp(72px, 11vh, 110px);
  background: linear-gradient(#585E80 0 8px, #333858 8px 100%);
}
.road::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 24%; height: 4px;
  background: repeating-linear-gradient(90deg, #FFE7A8 0 26px, transparent 26px 52px); opacity: .5;
}
.walker {
  position: absolute; z-index: 4; left: 0; bottom: 5px;
  width: clamp(58px, 10.5vh, 100px); padding: 0; border: 0; background: none; cursor: pointer;
}
.walker .fudi { display: block; }

/* ------------------------------------------------------------- order panel */
.order {
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-lift);
  padding: 12px 18px 12px; min-height: 176px;
}
.order h2 { font-size: 20px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-top > div { min-width: 0; }
.price { font: 600 18px/1.2 var(--font-display); color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.meta { font-size: 14px; color: var(--muted); }
.tag {
  display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--leaf-soft); color: #0F6B46; font-size: 12px; font-weight: 800;
}
.tag.pre { background: var(--mango-soft); color: #8A3F08; }
.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.track li { border-top: 5px solid var(--line); border-radius: 3px; padding-top: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.track li.is-done { border-color: var(--leaf); color: var(--ink); }
.track li.is-now { border-color: var(--mango); color: var(--ink); }
.order-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; }
.say { flex: 1 1 220px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.sample { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ how it works */
.how { background: var(--surface); padding-block: clamp(48px, 7vw, 88px) 40px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #B4530C; }
.how h2 { margin-top: 8px; font-size: clamp(28px, 4vw, 42px); }
.how-sub { margin-top: 10px; max-width: 58ch; color: var(--muted); }
.tabs { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border-radius: var(--r-pill); background: var(--navy-soft); }
.tabs button {
  min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--navy); font: 700 15px/1 var(--font-body); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabs button[data-tab="seller"][aria-selected="true"] { background: var(--chili); }

.how-grid { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

.how-stage { position: sticky; top: calc(var(--head-h) + 12px); z-index: 5; align-self: start; }
@media (min-width: 860px) { .how-stage { order: 2; top: calc(var(--head-h) + max(16px, (100vh - var(--head-h) - 440px) / 2)); } }
.scene {
  position: relative; overflow: hidden; height: clamp(230px, 36vh, 440px); container-type: size;
  border-radius: var(--r-lg); background: var(--navy); box-shadow: var(--shadow-card);
}
@media (min-width: 860px) { .scene { height: min(440px, calc(100vh - var(--head-h) - 40px)); } }
.how[data-who="seller"] .scene { background: #7E2430; }
.scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: rgba(0, 0, 0, .22); }
/* sized so the actor's raised hand never covers the prop beside it */
.actor { position: absolute; z-index: 2; left: 2%; bottom: 7%; height: min(76cqh, 55cqw); aspect-ratio: 212 / 248; }
.actor .fudi { display: block; width: 100%; }
.prop { position: absolute; z-index: 1; right: 3%; top: 10%; width: 46%; height: 72%; display: none; }
.prop.is-on { display: block; }
.prop svg { display: block; width: 100%; height: 100%; overflow: visible; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: step; }
[data-list] + [data-list] { margin-top: 32px; }
.js [data-list] + [data-list] { margin-top: 0; }
.step {
  counter-increment: step; display: grid; align-content: center; gap: 6px;
  padding: 22px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--card);
}
.js .step { min-height: 30vh; cursor: pointer; }
@media (min-width: 860px) { .js .step { min-height: 34vh; } }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--mango); color: var(--navy-deep); font: 600 17px/1 var(--font-display);
}
.step h3 { font-size: 21px; }
.step p { color: var(--muted); max-width: 48ch; }
.js .step.is-on { border-color: var(--navy); box-shadow: var(--shadow-card); }
.js .how[data-who="seller"] .step.is-on { border-color: var(--chili); }
.steps-label { font: 600 18px/1.2 var(--font-display); color: var(--navy); margin-bottom: 12px; }
.js .steps-label { display: none; }

.site-foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ------------------------------------------------------- mascot colouring */
.fudi { display: inline-block; line-height: 0; }
.fudi svg, .fudi img { display: block; width: 100%; height: auto; overflow: visible; }
.m-under, .m-over, .m-ink, .m-line, .m-strap, .m-stitch, .m-seam, .m-bag-handle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-under { stroke: var(--navy-deep); stroke-width: 15; }
.m-over { stroke: #fff; stroke-width: 9.5; }
.m-ink { stroke: var(--navy-deep); stroke-width: 3.2; }
.m-line { stroke: var(--navy-deep); stroke-width: 3; }
.m-fill { fill: #fff; }
.m-shade { fill: #E9EBF4; }
.m-eye { fill: var(--navy-deep); }
.m-hand { fill: #fff; stroke: var(--navy-deep); stroke-width: 2.75; stroke-linejoin: round; }
.m-shadow { fill: #070A26; opacity: .3; }
.m-red { fill: var(--chili); }
.m-red-dark { fill: var(--chili-dark); }
.m-strap { stroke: var(--chili); stroke-width: 5; }
.m-stitch { stroke: #fff; stroke-width: 1.8; opacity: .8; }
.m-seam { stroke: var(--chili-dark); stroke-width: 2; }
.m-cap { fill: var(--chili); stroke: var(--navy-deep); stroke-width: 3; stroke-linejoin: round; }
.m-brim { fill: var(--chili-dark); stroke: var(--navy-deep); stroke-width: 3; stroke-linejoin: round; }
.m-bag, .m-pan, .m-arm-up, .m-side { display: none; }
.is-walk .m-side { display: inline; }
.is-walk .m-front { display: none; }
.m-side-leg-far .m-over, .m-side-arm-far .m-over { stroke: #D5D9EA; } /* limbs on the far side */
.has-bag .m-bag, .has-pan .m-pan { display: inline; }
.is-cheer:not(.has-bag) .m-arm-up { display: inline; }
.is-cheer:not(.has-bag) .m-arm-rest { display: none; } /* the bag hand stays down */
.m-steam { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.m-pan-body { fill: #5B6284; stroke: var(--navy-deep); stroke-width: 3; stroke-linejoin: round; }
.m-bag-handle { stroke: var(--navy-deep); stroke-width: 4; }
.m-bag-body { fill: var(--mango); stroke: var(--navy-deep); stroke-width: 3; stroke-linejoin: round; }
.m-bag-dot { fill: #fff; }
