/* How My Pet — page styles on top of the taste kit (system.css / layout.css). Brand: blue #0001e9, pink #ff4fa3, white, black. */
:root {
  --p-bg: #ffffff; --p-surface: #f4f4f8; --p-ink: #0a0a14; --p-muted: #46474e;
  --p-accent: #0001e9; --p-accent-ink: #ffffff; --p-action: #0001e9; --p-action-ink: #ffffff;
  --p-inv-bg: #0a0a14; --p-inv-surface: #171721; --p-inv-ink: #ffffff; --p-inv-muted: #a3a4ab;
  --p-inv-accent: #ff4fa3; --p-inv-accent-ink: #0a0a14; --p-inv-action: #ffffff; --p-inv-action-ink: #0a0a14;
  --font-display: "Mona Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-text: "Mona Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --display-weight: 500; --display-tracking: -0.03em; --display-tracking-xl: -0.04em; --display-stretch: 104%;
  --ly-scale: 0.96;
  --pink: #ff4fa3; --blue: #0001e9;
}
body { background: var(--bg, #fff); }
html[data-lang="zh"] { --display-tracking: -0.01em; --display-tracking-xl: -0.02em; }

/* logo */
.nav__logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--pink); }
#acctSlot { display: contents; }
.lang-btn { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }

/* grounds */
.ground-pink { --bg: var(--pink); --surface: #ff7cba; --ink: #0a0a14; --muted: #3b2030; --line: rgba(10,10,20,.18); --line-strong: rgba(10,10,20,.32);
  --action: #0a0a14; --action-ink: #ffffff; --accent: #0001e9; background: var(--bg); color: var(--ink); }
.ground-pink .card { background: #fff; border-color: transparent; }

/* photo frames */
.ph-frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.ph-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ph-frame:hover img { transform: scale(1.025); }

/* phone frame holding a real app screenshot */
.phone { position: relative; aspect-ratio: 390 / 844; width: 100%; border-radius: 46px; background: #0a0a14; padding: 9px;
  box-shadow: 0 30px 70px rgba(10,10,20,.28), 0 0 0 1px rgba(255,255,255,.08) inset; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.phone img { display: block; width: 100%; height: 100%; border-radius: 38px; object-fit: cover; object-position: top; background: #fff; }
.phone-card:hover .phone, a.phone:hover { transform: translateY(-6px) rotate(-1deg); }
@media (max-width: 639px) { .phone { border-radius: 30px; padding: 6px; } .phone img { border-radius: 25px; } }

/* hero */
.hero__phone { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap, 1280px)) / 2)); bottom: 7vh; width: clamp(190px, 16vw, 250px); z-index: 2; }
.hero__phone .phone { transform: rotate(5deg); }
.hero__bubble { position: absolute; z-index: 3; background: #fff; color: #0a0a14; border-radius: 999px; padding: 8px 14px 8px 10px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 12px 30px rgba(10,10,20,.18); white-space: nowrap; }
.hero__bubble i { width: 22px; height: 22px; border-radius: 50%; background: var(--pink); display: inline-grid; place-items: center; font-style: normal; color: #fff; font-size: 12px; }
.hero__bubble--a { left: -46%; top: 18%; }
.hero__bubble--b { left: -30%; top: 56%; }
.hero__bubble--b i { background: var(--blue); }
@media (max-width: 1023px) { .hero__phone { display: none; } }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
.split-w.done { overflow: visible; }
.split-w > span { display: inline-block; will-change: transform; }

/* moving word band */
.band { background: var(--blue); color: #fff; padding-block: 18px; overflow: hidden; }
.band .mo-mq__track li { font: 500 clamp(22px, 2.6vw, 34px)/1.1 var(--font-display); letter-spacing: -0.02em; display: flex; align-items: center; gap: .6em; }
.band .mo-mq__track li::after { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--pink); margin-left: .6em; }

/* story */
.story__pics { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gutter); height: 440px; }
.story__pics .ph-frame:last-child { margin-top: 18%; }
.story__words p + p { margin-top: var(--s-4); }
.big-year { font-family: var(--font-display); font-weight: 500; font-size: clamp(56px, 9vw, 136px); line-height: .92; letter-spacing: -0.05em; }
.big-year .pk { color: var(--pink); }
#story .section-head { margin-bottom: var(--s-7); }
@media (max-width: 1023px) { .story__pics { height: 420px; } }
@media (max-width: 639px) { .story__pics { height: 300px; } }

/* features list on blue */
.feat-list { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.feat-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); }
.feat-list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); margin-top: 2px; }
.feat-list b { display: block; font-weight: 500; }
.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; max-width: 620px; margin-left: auto; }
.duo > :last-child { margin-top: 64px; }
@media (max-width: 639px) { .duo { margin: var(--s-7) auto 0; } }

/* app tour */
.tour { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-7); }
.tour .phone { max-width: 214px; }
.tour .phone-card:nth-child(even) { margin-top: 28px; }
.phone-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.phone-card p { font-size: 14px; color: var(--muted); margin-bottom: var(--s-3); max-width: 214px; }
.app-head { align-items: end; }
@media (max-width: 1023px) { .tour { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tour .phone-card:nth-child(even) { margin-top: 0; } }
@media (max-width: 639px) { .tour { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* clothing vs collar */
.vs .card { gap: var(--s-4); }
.body-map { position: relative; aspect-ratio: 16/10; border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.body-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dot { fill: var(--pink); stroke: #0a0a14; stroke-width: 2; }
.dot.pulse { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.acts span { border: 1px solid var(--line-strong); border-radius: 99px; padding: 4px 10px; font-size: 13px; transition: background .25s, color .25s, border-color .25s; }
.acts span.off { opacity: .6; text-decoration: line-through; }
.acts span.lit { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 1023px) { .vs > .span-6 { grid-column: 1 / -1; } }

/* statement */
.statement .mo-wh__text { font: 500 clamp(30px, 4.2vw, 60px)/1.12 var(--font-display); letter-spacing: -0.03em; max-width: 22ch; }
html[data-lang="zh"] .statement .mo-wh__text { max-width: 20em; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.3; }
.statement .mo-wh__text strong { color: var(--pink); font-weight: 500; }

/* funding */
.fund-line { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; margin: var(--s-4) 0 var(--s-3); }
.fund-line .t-stat { font-size: clamp(40px, 5vw, 64px); }
.fund-bar { height: 12px; border-radius: 99px; background: rgba(10,10,20,.14); overflow: hidden; }
.fund-bar i { display: block; height: 100%; width: 0; background: #0a0a14; border-radius: 99px; }
.fund-meta { display: flex; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-3); font-size: 15px; }
.fund-meta b { font: 500 22px/1 var(--font-display); margin-right: 6px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-7); }
.tiers .card { display: flex; flex-direction: column; gap: var(--s-3); }
.tiers .card .btn { margin-top: auto; }
.tiers .is-featured { box-shadow: 0 0 0 3px var(--blue); }
.tiers .soldout { opacity: .6; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price .t-stat { font-size: 40px; }
.left-n { font-size: 13px; color: var(--muted); }
.flag { align-self: flex-start; background: var(--blue); color: #fff; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.more-tiers { margin-top: var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.more-tiers button { all: unset; cursor: pointer; background: rgba(255,255,255,.55); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; transition: background .2s, transform .2s; }
.more-tiers button:hover { background: #fff; transform: translateY(-2px); }
.more-tiers button:focus-visible { outline: 2px solid #0a0a14; outline-offset: 2px; }
.more-tiers b { font-weight: 500; } .more-tiers span { font-size: 14px; color: var(--muted); }
.ship-note { font-size: 14px; color: var(--muted); margin-top: var(--s-4); }
@media (max-width: 1023px) { .tiers { grid-template-columns: minmax(0,1fr); } .more-tiers { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* roadmap with paw prints */
.road-wrap { position: relative; }
.paws { position: absolute; left: -6px; top: 0; bottom: 0; width: 34px; pointer-events: none; }
.paws svg { position: absolute; left: 0; width: 22px; height: 22px; fill: var(--pink); }
.road { padding-left: 44px; }
.road li { grid-template-columns: minmax(0,1fr); }
.road .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.road .done .rows__name::after { content: " ✓"; color: var(--pink); }
.road .now .rows__name { color: var(--blue); }

/* updates + wall */
.upd article { padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.upd time { font-size: 13px; color: var(--muted); }
.upd h3 { font-size: 18px; font-weight: 500; margin: 4px 0; }
.upd p { color: var(--muted); }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.wall > div { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; }
.wall b { display: block; font-weight: 500; } .wall span { font-size: 13px; color: var(--muted); }
.wall .empty { grid-column: 1 / -1; }
@media (max-width: 639px) { .wall { grid-template-columns: minmax(0,1fr); } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 500; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; transition: transform .25s; color: var(--blue); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* closing */
.close-big { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; }
html[data-lang="zh"] .close-big { line-height: 1.1; }
.trail-zone { position: relative; }
.trail-img { position: absolute; width: 160px; height: 200px; object-fit: cover; border-radius: 18px; pointer-events: none; z-index: 0; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.trail-zone > :not(.trail-img) { position: relative; z-index: 1; }

/* click sparks */
.spark { position: fixed; width: 3px; height: 12px; border-radius: 2px; background: var(--pink); pointer-events: none; z-index: 9999; }

/* simple page head (inner pages) */
.page-head { padding-top: calc(var(--s-9, 96px) + 40px); padding-bottom: var(--s-7); }
.page-head h1 { font: 500 clamp(44px, 6.4vw, 96px)/1 var(--font-display); letter-spacing: -0.04em; max-width: 16ch; }
html[data-lang="zh"] .page-head h1 { line-height: 1.12; }
.page-head p { margin-top: var(--s-5); max-width: 60ch; }

/* product page */
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--gutter); margin-top: var(--s-7); }
.feat-grid .card { gap: var(--s-3); }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.feat-ic svg { width: 24px; height: 24px; }
.feat-grid .card:nth-child(4n+2) .feat-ic, .feat-grid .card:nth-child(4n+4) .feat-ic { background: var(--pink); color: #0a0a14; }
@media (max-width: 1023px) { .feat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 639px) { .feat-grid { grid-template-columns: minmax(0,1fr); } }
.cmp { width: 100%; border-collapse: collapse; margin-top: var(--s-6); font-size: 16px; }
.cmp th, .cmp td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 500 20px/1.2 var(--font-display); }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 24%; }
.yes { color: var(--blue); font-weight: 700; } .no { color: var(--muted); }
.sizes { width: 100%; border-collapse: collapse; font-size: 15px; }
.sizes th, .sizes td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.mo-pc__visual .phone { max-width: 300px; margin-inline: auto; }

/* story page */
.longread { max-width: 680px; }
.longread p { font-size: 19px; line-height: 1.7; margin-top: var(--s-5); }
html[data-lang="zh"] .longread p { font-size: 18px; line-height: 1.9; }
.longread .pull { font: 500 clamp(28px, 3.4vw, 44px)/1.15 var(--font-display); letter-spacing: -0.03em; color: var(--blue); margin-block: var(--s-7); }
.years { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gutter); }
.years .t-stat { font-size: clamp(56px, 7vw, 104px); line-height: 1; }
.years p { color: var(--muted); margin-top: 8px; }
.pet4 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--gutter); }
.pet4 figure { background: var(--surface); border-radius: var(--r-lg); aspect-ratio: 4/5; display: grid; place-items: center; text-align: center; padding: var(--s-6); position: relative; overflow: hidden; }
.pet4 figure img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.pet4 figcaption b { display: block; font: 500 28px/1.1 var(--font-display); }
.pet4 .pending { color: var(--muted); font-size: 14px; }
.pet4 .has .pending { display: none; }
.pet4 .has figcaption { position: absolute; left: 0; right: 0; bottom: var(--s-5); }
@media (max-width: 639px) { .years, .pet4 { grid-template-columns: minmax(0,1fr); } }
.sign { font-weight: 500; margin-top: var(--s-6); }

/* help */
.help-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s-6); }
.help-nav a { border: 1px solid var(--line-strong); border-radius: 99px; padding: 8px 16px; text-decoration: none; color: inherit; transition: background .2s, color .2s; }
.help-nav a:hover { background: var(--ink); color: var(--bg); }
.legal h2 { margin-top: var(--s-8); }
.legal p, .legal li { max-width: 70ch; margin-top: var(--s-3); color: var(--ink); }
.legal ul { padding-left: 1.2em; list-style: disc; }

/* ---------- modal (checkout and admin order detail) ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,20,.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal .sheet { background: #fff; color: #0a0a14; border-radius: 28px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; position: relative; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f4f4f8; cursor: pointer; font-size: 16px; }
.modal h3 { font: 500 26px/1.15 var(--font-display); margin-bottom: 4px; padding-right: 40px; }
.modal .field { margin-top: 16px; }
.modal .lbl { font-size: var(--t-small); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid #d5d5de; background: #fff; border-radius: 99px; padding: 8px 14px; cursor: pointer; font: 500 14px var(--font-text); display: inline-flex; align-items: center; gap: 6px; color: #0a0a14; }
.chips button.on { background: #0a0a14; color: #fff; border-color: #0a0a14; }
.chips .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; stroke: none; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto !important; height: auto !important; }
.m-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6e6ee; font: 500 24px var(--font-display); }
.err { color: #c4271b; font-size: 14px; min-height: 1em; margin-top: 10px; }
.ok { color: #0a7a3a; font-size: 14px; }
.secure { font-size: 13px; color: #5d5e66; text-align: center; margin-top: 10px; }
.pay { width: 100%; margin-top: 12px; }
.hint { font-size: 13px; color: var(--muted); }

/* ---------- account / admin (markup from account.js / admin.js) ---------- */
.acc-main { padding-top: calc(72px + var(--s-8)); padding-bottom: var(--s-9, 96px); min-height: 80vh; }
.acc-main h1 { font: 500 clamp(36px, 4.6vw, 64px)/1.05 var(--font-display); letter-spacing: -0.03em; margin-bottom: var(--s-6); }
.acc-main .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); margin-bottom: var(--gutter); display: block; }
.acc-main .card h2, .acc-main .section-h { font: 500 24px/1.2 var(--font-display); margin-bottom: var(--s-4); }
.acc-main .section-h { margin-top: var(--s-7); }
.acc-main .field { margin-top: var(--s-4); }
.acc-main .tabs { display: flex; gap: 6px; background: var(--surface); padding: 5px; border-radius: 99px; width: fit-content; margin-bottom: var(--s-4); flex-wrap: wrap; }
.acc-main .tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 99px; cursor: pointer; font: 500 15px var(--font-text); color: var(--ink); }
.acc-main .tabs button.on { background: var(--ink); color: var(--bg); }
.notice { background: #fff4fa; border: 1px solid #ffc4e0; border-radius: var(--r-md); padding: 14px 18px; margin-bottom: var(--gutter); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-pink { background: var(--pink); color: #0a0a14; border-color: var(--pink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.small { height: var(--btn-h-sm, 38px); padding: 0 var(--s-4); font-size: var(--t-small); }
.btn.wide { width: 100%; margin-top: var(--s-4); }
.btn.danger { background: #c4271b; color: #fff; border-color: #c4271b; }
.or { text-align: center; color: var(--muted); margin: 16px 0 4px; font-size: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 var(--gutter); align-items: end; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0 var(--gutter); align-items: end; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--gutter); }
details.sub { margin-top: var(--s-5); } details.sub summary { cursor: pointer; font-weight: 500; }
.order { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin-bottom: 12px; }
.meta { color: var(--muted); font-size: 14px; }
.status, .pill { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 500; background: var(--surface); }
.st-paid { background: #e6e7ff; color: #0001e9; } .st-processing { background: #fff4d6; color: #8a5a00; } .st-shipped { background: #e1f5ff; color: #00557a; }
.st-delivered { background: #dcf7e6; color: #0a6b33; } .st-cancel_requested { background: #ffe4f1; color: #a10b55; } .st-refunded { background: #eee; color: #555; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gutter); margin-bottom: var(--gutter); }
.kpi { background: var(--surface); border-radius: var(--r-lg); padding: 20px; }
.kpi b { display: block; font: 500 34px/1.1 var(--font-display); letter-spacing: -0.02em; margin-top: 6px; }
.kpi:first-child { background: var(--blue); color: #fff; } .kpi:first-child .meta { color: rgba(255,255,255,.75); }
.kpi:nth-child(2) { background: var(--pink); }
.bar { height: 8px; background: rgba(10,10,20,.1); border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--blue); }
.spark { }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 12px; font: inherit; background: #fff; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { background: var(--surface); font-weight: 500; }
.tbl tbody tr { cursor: pointer; } .tbl tbody tr:hover { background: #f8f8fc; }
.tier-edit, .upd-edit { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin-bottom: 14px; }
.empty { color: var(--muted); padding: 18px 0; }
.admin-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-5); }
.admin-head .pill { background: var(--pink); }
.static { color: var(--muted); }
@media (max-width: 1023px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 639px) { .grid2, .cards2 { grid-template-columns: minmax(0,1fr); } }

@media (prefers-reduced-motion: reduce) { .dot.pulse { animation: none; } .phone, .ph-frame img { transition: none; } }

/* sections grow past their screens instead of laying their last rows over the next one (the kit does this up to 1279px) */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero, .section--hero):not([data-moment="pinned-chapters"]), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); }
  :where(main > :is(section, .section):not(.hero, .section--hero):not([data-moment="pinned-chapters"]), footer.closing) { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero):not([data-moment="pinned-chapters"]) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
#records > .wrap, #isle > .wrap, #app > .wrap { align-content: center; }
.statement > .wrap { justify-content: center; }
.page-head { height: auto !important; min-height: 0 !important; }
.band { --muted: #ffffff; --ink: #ffffff; --bg: var(--blue); }
.band .mo-mq { --mo-gap: 44px; padding-block: 0; }
.band .mo-mq__track { color: #fff; }

.strip { height: auto !important; min-height: 0 !important; padding-block: var(--s-8) !important; }
main > section > .wrap.grid--middle { align-content: center; }
.pet4 figure > img.stand { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.9); opacity: .55; }
.pet4 figure figcaption { position: relative; z-index: 1; background: rgba(255,255,255,.88); border-radius: var(--r-md); padding: 14px 18px; }

.skip:focus { position: fixed; z-index: 2000; top: 10px; left: 10px; }
.band button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wall .empty { background: #fff; border: 1px dashed var(--line-strong); }

.promise { background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: var(--s-7); --ink: #fff; --muted: rgba(255,255,255,.8); }
.promise h3 { font: 500 30px/1.1 var(--font-display); margin-bottom: var(--s-5); }
.promise .checks li { margin-top: var(--s-3); }
.promise .checks li::before { background: var(--pink) !important; color: #0a0a14 !important; }
.nf { text-align: left; }
.nf .big { font: 500 clamp(120px, 22vw, 320px)/.85 var(--font-display); letter-spacing: -0.06em; color: var(--blue); }
/* the band at rest (phones, reduced motion): a tidy wrapped row */
.band .mo-mq:not(.is-live) .mo-mq__track { justify-content: center; column-gap: 18px; row-gap: 8px; padding-inline: 16px; }
.band .mo-mq:not(.is-live) .mo-mq__track li { font-size: 20px; }
.band .mo-mq:not(.is-live) .mo-mq__track li::after { margin-left: 18px; }
.band .mo-mq:not(.is-live) .mo-mq__track li:last-child::after { display: none; }

/* ---------- details ---------- */
/* reading progress under the bar */
.nav { position: fixed; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--pink)); transform-origin: left; transform: scaleX(0); }
/* soft cross-fade between pages (browsers that support it) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
/* cards and tiers lift a little under the pointer */
.tiers .card, .feat-grid .card, .vs .card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
@media (hover: hover) {
  .tiers .card:hover, .feat-grid .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,10,20,.12); }
  .tiers .card.is-featured:hover { box-shadow: 0 0 0 3px var(--blue), 0 18px 40px rgba(0,1,233,.25); }
}
.tiers .is-featured .flag { background: var(--pink); color: #0a0a14; }
/* the live bubble's word swaps */
#nowMove { display: inline-block; min-width: 9ch; }
/* faq: smooth open */
.faq details > p { overflow: hidden; }
/* checkout on a phone: a sheet from the bottom */
@media (max-width: 639px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal .sheet { border-radius: 24px 24px 0 0; width: 100%; max-height: 92vh; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
  .cmp { font-size: 14px; } .cmp th, .cmp td { padding: 10px 6px; } .cmp thead th { font-size: 16px; }
  .cmp td:first-child { min-width: 9.5em; }
}
/* tap highlight off, our own pressed state is enough */
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--pink); color: #0a0a14; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .tiers .card, .feat-grid .card { transition: none; }
}
/* the 中文 switch uses the system's Chinese font, so English pages never download Noto Sans SC */
html[data-lang="en"] .lang-btn { font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; }
/* iris-opens: its hairline ring grows by width/height, which counts as layout shift; the opening itself stays */
#isle .mo-io__ring { display: none; }

.p-phone { position: absolute; left: -18%; bottom: -6%; width: 42%; }
@media (max-width: 1023px) { .p-phone { left: auto; right: 4%; bottom: -8%; width: 34%; } }
.feat-grid .card { height: auto; }
.cmp th small { white-space: normal; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 379px) { .nav__actions #acctSlot { display: none; } }
.years--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 639px) { .years--4 { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: var(--s-6); } .years:not(.years--4) { grid-template-columns: repeat(3, minmax(0,1fr)); } .years:not(.years--4) .t-stat { font-size: 48px; } }
/* email updates */
.notify { margin-top: var(--s-7); max-width: 560px; display: grid; gap: var(--s-3); }
.notify label { font-size: 15px; color: var(--muted); }
.notify__row { display: flex; gap: 10px; }
.notify__row input { flex: 1; min-width: 0; height: var(--btn-h); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 14px; font: inherit; background: #fff; color: #0a0a14; }
.notify__row input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.notify__status { font-size: 14px; min-height: 1.4em; }
.notify.is-bad .notify__status { color: #c4271b; }
.notify.is-done .notify__status { color: var(--blue); font-weight: 500; }
@media (max-width: 479px) { .notify__row { flex-direction: column; } }

/* share row */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--s-6); }
.share-row__label { font-size: 14px; color: var(--muted); margin-right: 4px; }
.share-btn { border: 1px solid var(--line-strong); border-radius: 99px; padding: 7px 14px; font: 500 14px var(--font-text); background: transparent; color: inherit; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.share-btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* order progress in My account */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0 12px; padding: 0; counter-reset: s; }
.track li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.track li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track li:first-child::before { display: none; }
.track li i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line-strong); }
.track li.done i, .track li.now i { background: var(--blue); border-color: var(--blue); }
.track li.done::before, .track li.now::before { background: var(--blue); }
.track li.now i { box-shadow: 0 0 0 5px rgba(0,1,233,.18); }
.track li.now span { color: var(--ink); font-weight: 500; }
.order .row-between b { font-size: 18px; font-weight: 500; }
.order { background: #fff; }

/* recent backer notice */
.toast { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; gap: 10px; max-width: min(360px, calc(100vw - 32px));
  background: #fff; color: #0a0a14; border-radius: 16px; padding: 12px 12px 12px 14px; box-shadow: 0 16px 40px rgba(10,10,20,.18);
  transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; pointer-events: none; }
.toast.on { transform: none; opacity: 1; pointer-events: auto; }
.toast__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex: none; box-shadow: 0 0 0 4px rgba(255,79,163,.2); }
.toast__text { font-size: 14px; line-height: 1.35; }
.toast__text b { font-weight: 500; }
.toast__text small { display: block; color: var(--muted); font-size: 12px; }
.toast__x { border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--muted); padding: 6px; margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .2s; transform: none; } }

/* thank-you confetti */
.confetti { position: fixed; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; z-index: 1500; }
.confetti svg { width: 100%; height: 100%; display: block; }
/* updates page */
.fund-mini { margin-top: var(--s-5); font-size: 16px; }
.fund-mini b { font: 500 26px/1 var(--font-display); }
.upd--full article { padding-block: var(--s-6); }
.upd--full h3 { font-size: 24px; }
.wall--full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .wall--full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .wall--full { grid-template-columns: minmax(0, 1fr); } }
