/* ZayTrax website, new design (2026-10-22).
   Base: the owner's design (paper, forest green, clay, amber, lime; heavy
   capitals with one italic accent; hard offset shadows; real photos).
   Phone first: everything is laid out for a phone, then widened. */

@font-face { font-family: Lexend; src: url('fonts/lexend-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Lexend; src: url('fonts/lexend-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Lexend; src: url('fonts/lexend-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Lexend; src: url('fonts/lexend-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --paper: #f2eee4;
  --paper-2: #e8dfcf;
  --green: #075f35;
  --green-2: #0a422a;
  --ink: #18221b;
  --muted: #4c5349;      /* darker than the original grey: readable on paper */
  --clay: #d9643a;
  --clay-ink: #a8431f;   /* clay dark enough for text */
  --amber: #ef9f26;
  --lime: #dcea72;
  --line: #d6cdb9;
  --sans: Lexend, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --gutter: 20px;
}
@media (min-width: 760px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html:lang(ja) body { line-height: 1.85; font-size: 16px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--lime); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display { font: 700 clamp(40px, 10.5vw, 96px)/.95 var(--sans); text-transform: uppercase; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.display em { display: block; font: italic 400 clamp(40px, 9.5vw, 88px)/1 var(--serif); text-transform: none; letter-spacing: -0.03em; color: var(--green); margin-top: 6px; }
html:lang(ja) .display { font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.25; font-size: clamp(32px, 7.4vw, 64px); word-break: keep-all; }
html:lang(ja) .display em { font: inherit; color: var(--green); display: inline; margin: 0; }
h2 { font: 700 clamp(30px, 6.4vw, 52px)/1.02 var(--sans); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
html:lang(ja) h2 { line-height: 1.35; letter-spacing: 0; font-size: clamp(26px, 5.4vw, 40px); word-break: auto-phrase; }
h3 { font: 600 20px/1.3 var(--sans); margin: 0; }
.lede { font-size: 18px; color: var(--muted); max-width: 32em; text-wrap: pretty; }
html:lang(ja) .lede { font-size: 16px; word-break: auto-phrase; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; background: var(--green); color: #fff; font: 600 16px/1 var(--sans); text-decoration: none; border: 0; border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.lime { background: var(--lime); color: var(--ink); }
.textlink { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(242, 238, 228, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 600 20px/1 var(--sans); margin-right: auto; }
.brand img { width: 34px; height: 28px; }
.brand b { font-weight: 600; color: var(--green); }
.links { display: none; gap: 24px; font-size: 14px; font-weight: 500; margin-right: 16px; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; font: 600 13px/1 var(--sans); text-decoration: none; }
.nav .btn { min-height: 44px; padding: 0 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.login { display: none; font-size: 14px; font-weight: 600; text-decoration: none; margin: 0 8px; }
.menu { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 4px; background: var(--ink); cursor: pointer; }
.menu span, .menu span::before, .menu span::after { content: ""; display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
.menu span::before { position: absolute; top: -6px; } .menu span::after { position: absolute; top: 6px; }
.nav.open .menu span { background: transparent; }
.nav.open .menu span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu span::after { transform: translateY(-6px) rotate(-45deg); }
.sheet { display: none; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
.nav.open .sheet { display: grid; }
.sheet a { min-height: 48px; display: flex; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet a:last-child { border-bottom: 0; }
@media (min-width: 960px) {
  .links, .login { display: flex; }
  .menu, .sheet, .nav.open .sheet { display: none; }
}
.short { display: inline; } .full { display: none; }
@media (min-width: 960px) { .short { display: none; } .full { display: inline; } }
/* Very small phones (320 px): keep the logo, language, Join and menu on one line. */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .nav .wrap { gap: 6px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand img { width: 28px; height: 23px; }
  .lang { padding: 0 10px; }
  .nav .btn { padding: 0 10px; font-size: 13px; white-space: nowrap; }
}

/* ---------- hero ---------- */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.hero .lede { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 28px; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.photo { position: relative; margin: 0 8px 0 0; }
.photo .frame { border-radius: 200px 200px 6px 6px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--amber); aspect-ratio: 4 / 4.4; }
.photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.flag { position: absolute; left: -4px; bottom: 24px; width: min(270px, 78%); background: #fff; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px; }
.flag .tag { position: absolute; top: -12px; right: 12px; background: var(--paper-2); border: 1.5px solid var(--ink); font-size: 12px; font-weight: 600; padding: 2px 8px; }
.flag .st { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #a3261c; }
.flag .st i { width: 9px; height: 9px; border-radius: 50%; background: #d23a2a; }
.flag b { display: block; font-size: 18px; font-weight: 600; margin: 2px 0; }
.flag p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.stamp { position: absolute; right: -6px; top: 18px; width: 104px; height: 104px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; text-align: center; font: 600 13px/1.25 var(--sans); padding: 12px; transform: rotate(-10deg); }
@media (min-width: 960px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
  .flag { left: -48px; }
  .stamp { right: -24px; width: 120px; height: 120px; }
}

/* ---------- how it works (green) ---------- */
.how { background: var(--green); color: #f4f1e8; padding: 64px 0 72px; }
.how .lede { color: #cfe0d4; margin-top: 16px; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 40px; counter-reset: s; }
.steps li { display: grid; gap: 16px; }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 700; }
.steps h3 { font-size: 22px; }
.steps p { color: #d6e5da; }
.steps .shot { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--green-2); overflow: hidden; border-radius: 14px; aspect-ratio: 390 / 500; background: #fff; max-width: 330px; }
.steps .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.steps .shot.mid img { object-position: 50% 18%; }
.steps .shot.low img { object-position: 50% 60%; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } .steps li:nth-child(2) { margin-top: 48px; } }

/* ---------- client side (clay + photo) ---------- */
.client { display: grid; }
.client .text { background: var(--clay); color: #fff8f0; padding: 56px var(--gutter); }
.client .text p { margin-top: 16px; max-width: 30em; }
.client .text ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.client .text li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.client .text li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.client .pic { min-height: 380px; background: #555 url('img/client-phone.jpg') 50% 30% / cover no-repeat; }
@media (min-width: 900px) { .client { grid-template-columns: 1fr 1fr; } .client .text { padding: 88px 56px 88px max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); } .client .pic { min-height: 560px; } }

/* ---------- fat loss and prep ---------- */
.section { padding: 72px 0; }
.prep { display: grid; gap: 48px; }
.prep .lede { margin-top: 16px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li span:last-child { color: var(--green); font-weight: 600; text-align: right; }
@media (min-width: 900px) { .prep { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* ---------- replies ---------- */
.voice { background: var(--paper-2); }
.voice-grid { display: grid; gap: 40px; margin-top: 32px; }
.style-note { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 16px 0; }
.style-note small { display: block; font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 6px; }
.rules { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.rules li { padding-left: 24px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.drafts { display: grid; gap: 24px; }
.draft { position: relative; padding: 20px; border: 2px solid var(--ink); background: #fff; box-shadow: 6px 6px 0 var(--ink); }
.draft.ja { background: var(--green); color: #f4f1e8; box-shadow: 6px 6px 0 var(--lime); margin-left: 24px; }
.draft .lab { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--green); }
.draft.ja .lab { color: var(--lime); }
.draft p[lang="ja"] { font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif; line-height: 1.85; word-break: auto-phrase; }
@media (min-width: 900px) { .voice-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } .draft.ja { margin-left: 56px; } }

/* ---------- health + Japan ---------- */
.duo { display: grid; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.duo > div { padding: 36px 24px; }
.duo .care { background: var(--green); color: #f4f1e8; }
.duo .care ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.duo .care li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; }
.duo .care li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--lime); }
.duo .care a { color: var(--lime); font-weight: 600; }
.duo .japan { background: var(--lime); position: relative; overflow: hidden; }
.duo .japan p { margin-top: 16px; max-width: 26em; }
.duo .japan .a { position: absolute; right: -10px; bottom: -40px; font: 700 180px/1 'Noto Sans JP', sans-serif; color: rgba(7, 95, 53, .12); }
@media (min-width: 900px) { .duo { grid-template-columns: 1.15fr 1fr; } .duo > div { padding: 48px; } }

/* ---------- faq ---------- */
.faq { margin-top: 28px; border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 40em; }

/* ---------- pilot (green) ---------- */
.pilot { background: var(--green-2); color: #f4f1e8; padding: 72px 0; }
.pilot .grid { display: grid; gap: 40px; }
.pilot .display { color: #fff; font-size: clamp(38px, 9vw, 80px); }
.pilot .display em { color: var(--lime); }
html:lang(ja) .pilot .display em { color: var(--lime); }
.pilot .lede { color: #cfe0d4; margin-top: 20px; }
.pilot .lede a { color: #fff; font-weight: 600; }
.form { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--lime); padding: 24px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } .form { padding: 32px; } }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.status { font-weight: 600; min-height: 1.6em; }
.status.ok { color: var(--green); }
.status.err { color: #a3261c; }
.form-note { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .pilot { padding: 104px 0; } .pilot .grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }

/* ---------- footer ---------- */
.foot { background: var(--green-2); color: #cfe0d4; border-top: 1px solid rgba(255,255,255,.12); padding: 28px 0 40px; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-left: auto; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ================= two phones: client and coach ================= */
.duo-phones { position: relative; width: min(520px, 100%); aspect-ratio: 520 / 600; margin: 0 auto; container-type: inline-size; }
.disc { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 200deg, var(--clay) 0 14%, var(--amber) 14% 62%, #f5c766 62% 100%); border: 2px solid var(--ink); }
.disc::after { content: ""; position: absolute; inset: 33%; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.device { position: absolute; width: 41%; aspect-ratio: 9 / 18.6; background: var(--ink); border-radius: 9cqi; padding: 1.6cqi; box-shadow: 2.4cqi 2.4cqi 0 var(--green); }
.device::before { content: ""; position: absolute; top: 2.6cqi; left: 50%; width: 30%; height: 3cqi; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 2cqi 2cqi; z-index: 2; }
.screen { width: 100%; height: 100%; border-radius: 7.4cqi; overflow: hidden; background: #fff; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.device.cphone { left: 3%; top: 9%; transform: rotate(-7deg); }
.device.kphone { right: 3%; top: 21%; transform: rotate(6deg); box-shadow: 2.4cqi 2.4cqi 0 var(--clay); }
.cap { position: absolute; left: 50%; bottom: -9cqi; transform: translateX(-50%); white-space: nowrap; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .8cqi 2.6cqi; font: 600 2.8cqi/1.3 var(--sans); color: var(--ink); }
.chip { position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 1.2cqi; white-space: nowrap; padding: 1.2cqi 2.6cqi; border: 2px solid var(--ink); border-radius: 999px; font: 600 2.9cqi/1 var(--sans); box-shadow: .8cqi .8cqi 0 var(--ink); opacity: 0; }
.chip i { width: 2cqi; height: 2cqi; border-radius: 50%; border: 2px solid var(--ink); }
.chip.go { background: var(--lime); } .chip.go i { background: #2fae63; }
.chip.back { background: #fff; } .chip.back i { background: var(--amber); }

/* ================= motion ================= */
@media (prefers-reduced-motion: no-preference) {
  /* hero: one orchestrated entrance */
  .intro-lines { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
  .intro-lines em { animation: rise .8s .25s cubic-bezier(.2,.8,.2,1) both; }
  .hero .lede { animation: rise .7s .4s cubic-bezier(.2,.8,.2,1) both; }
  .hero .actions, .hero .note { animation: rise .7s .5s cubic-bezier(.2,.8,.2,1) both; }
  .photo .frame { animation: arch 1.1s .15s cubic-bezier(.7,0,.2,1) both; }
  .photo .frame img { animation: settle 1.6s .15s cubic-bezier(.2,.8,.2,1) both; }
  .flag { animation: slide-in .7s 1s cubic-bezier(.2,1.3,.4,1) both; }
  .flag .st i { animation: pulse 2.4s 1.8s ease-in-out infinite; }
  .stamp { animation: stamp .5s 1.3s cubic-bezier(.2,1.6,.4,1) both; }

  /* reveals on scroll (added by site.js) */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); }
  .js .reveal-group.in > * { opacity: 1; transform: none; }
  .js .reveal-group.in > *:nth-child(2) { transition-delay: .12s; }
  .js .reveal-group.in > *:nth-child(3) { transition-delay: .24s; }
  .js .reveal-group.in > *:nth-child(4) { transition-delay: .32s; }
  .js .reveal-group.in > *:nth-child(5) { transition-delay: .40s; }
  .js .reveal-group.in > *:nth-child(6) { transition-delay: .48s; }

  /* steps: the numbers pop, the screens scroll by themselves like a thumb is moving them */
  .js .steps.in .num { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
  .js .steps.in li:nth-child(2) .num { animation-delay: .15s; }
  .js .steps.in li:nth-child(3) .num { animation-delay: .3s; }
  .steps.in .shot:not(.mid):not(.low) img { animation: scroll-screen 9s 1s ease-in-out infinite alternate; }

  /* two phones: they float, the coach list scrolls, the check-in flies over and a reply flies back */
  .duo-phones.in .device.cphone { animation: float-a 6s ease-in-out infinite; }
  .duo-phones.in .device.kphone { animation: float-b 7s ease-in-out infinite; }
  .duo-phones.in .pan { animation: scroll-screen 8s 1s ease-in-out infinite alternate; }
  .duo-phones.in .route path { animation: march 1.2s linear infinite; }
  .duo-phones.in .chip.go { offset-path: path('M150 210 C 210 70 330 70 380 190'); animation: travel 6s ease-in-out infinite; }
  .duo-phones.in .chip.back { offset-path: path('M370 420 C 320 540 200 540 150 430'); animation: travel 6s 3s ease-in-out infinite; }
  .duo-phones .chip { offset-rotate: 0deg; offset-anchor: center; }

  /* drafts: the English one types itself */
  .type.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: caret .8s steps(1) infinite; }
  .duo.in .japan .a { animation: rise .9s .3s cubic-bezier(.2,.8,.2,1) both; }
  .faq details[open] p { animation: rise .35s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes arch { from { clip-path: inset(100% 0 0 0 round 200px 200px 6px 6px); } to { clip-path: inset(0 0 0 0 round 200px 200px 6px 6px); } }
@keyframes settle { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-40px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.8) rotate(-30deg); } to { opacity: 1; transform: rotate(-10deg); } }
@keyframes spin-slow { to { rotate: 360deg; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(210, 58, 42, .18); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes scroll-screen { 0%, 15% { object-position: 50% 0; } 85%, 100% { object-position: 50% 100%; } }
@keyframes float-a { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-10px); } }
@keyframes float-b { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-12px); } }
@keyframes march { to { stroke-dashoffset: -11; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 42% { offset-distance: 100%; opacity: 1; } 50%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes caret { 50% { opacity: 0; } }
/* without offset-path support, show the chips still, next to the route */
@supports not (offset-path: path('M0 0')) {
  .chip.go { left: 190px; top: 60px; opacity: 1; }
  .chip.back { left: 180px; top: 505px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .chip.go { left: 190px; top: 60px; opacity: 1; }
  .chip.back { left: 180px; top: 505px; opacity: 1; }
}

/* the flying cards live on a 520 x 600 layer that is scaled to the scene's real size */
.lane { position: absolute; left: 0; top: 0; width: 520px; height: 600px; transform-origin: 0 0; transform: scale(var(--s, 1)); pointer-events: none; z-index: 3; }
.lane .chip { font-size: 15px; padding: 7px 14px; gap: 7px; box-shadow: 4px 4px 0 var(--ink); }
.lane .chip i { width: 11px; height: 11px; }
main > section, .pilot { overflow-x: clip; }

/* a ripple where a card lands: on the coach phone when the check-in arrives,
   on the client phone when the reply arrives (same 6 s rhythm as the cards) */
.ripple { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 3px solid var(--green); opacity: 0; }
.ripple.at-coach { left: 380px; top: 190px; border-color: #2fae63; }
.ripple.at-client { left: 150px; top: 430px; border-color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .duo-phones.in .ripple.at-coach { animation: land 6s ease-out infinite; }
  .duo-phones.in .ripple.at-client { animation: land 6s 3s ease-out infinite; }
}
@keyframes land { 0%, 40% { opacity: 0; transform: scale(.3); } 44% { opacity: .9; transform: scale(.5); } 62% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }

/* ---------- legal pages (privacy, 404) ---------- */
.legal { padding-block: 48px 88px; }
.legal h1 { font: 700 clamp(34px, 7vw, 52px)/1.08 var(--sans); letter-spacing: -0.02em; margin: 0; }
.legal h2 { font-size: 22px; line-height: 1.3; letter-spacing: 0; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h2 + p, .legal h2 + ul { margin-top: 12px; }
.legal p, .legal li { max-width: 44em; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-bottom: 0; }
.legal .updated { margin-top: 10px; color: var(--muted); }
.legal .notice { margin-top: 20px; padding: 14px 18px; background: #eef3c4; border: 1.5px solid var(--ink); border-radius: 4px; max-width: 40em; }
.legal a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
html:lang(ja) .legal h2 { font-size: 20px; }
html:lang(ja) .legal h1 { font-size: clamp(26px, 6vw, 44px); line-height: 1.3; letter-spacing: 0; word-break: keep-all; }
