/* Institutional site (scripts/build-site.js). Same palette and font as the app. */
@font-face { font-family: Lexend; src: url(/fonts/Lexend_400Regular.woff2) format("woff2"), url(/fonts/Lexend_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lexend; src: url(/fonts/Lexend_700Bold.woff2) format("woff2"), url(/fonts/Lexend_700Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --bg: #FBF7F0; --surface: #FFFFFF; --text: #2A211C; --muted: #6B5E55; --tint: #A8461F; --tint-text: #FFFFFF;
  --soft: #F1E8DC; --border: #E6DACB; --ok: #3F7A4A; --late: #B7791F; --meal: #A8461F;
  --shadow: 0 10px 30px rgba(60, 40, 20, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1512; --surface: #241D19; --text: #F3ECE4; --muted: #B5A89D; --tint: #E58A62; --tint-text: #1A1512;
    --soft: #332A24; --border: #3D332C; --ok: #7FBF8A; --late: #E2B25C; --meal: #E58A62;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Lexend, system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.6; }
/* Japanese: Lexend has no kana or kanji, so name good Japanese fonts first for them. */
html[lang="ja"] body { font-family: Lexend, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { word-break: auto-phrase; letter-spacing: 0; }
a { color: var(--tint); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 20px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); }
section { padding: 64px 0; }
.band { background: var(--soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.logo { font-weight: 700; font-size: 30px; color: var(--tint); text-decoration: none; letter-spacing: -1px; line-height: 1; }
.logo.small { font-size: 26px; }
.links { display: flex; gap: 18px; margin-left: auto; }
.links a { color: var(--text); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--tint); }
.lang { position: relative; font-size: 14px; font-weight: 700; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 170px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); z-index: 20; }
.lang-menu li a, .lang-menu li span { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 400; }
.lang-menu li a:hover { background: var(--soft); color: var(--tint); }
.lang-menu li [aria-current] { font-weight: 700; color: var(--tint); }
@media (max-width: 720px) { .links { display: none; } .lang { margin-left: auto; } }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 24px 0 12px; }
.store, .button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 16px; text-decoration: none; }
.button { background: var(--tint); color: var(--tint-text); }

/* Mock of the app and of the share page */
.mock { position: relative; min-height: 420px; }
.phone, .page { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.phone { width: 270px; border-radius: 34px; padding: 26px 18px 22px; margin: 0 auto 0 8%; }
.page { position: absolute; right: 0; bottom: -10px; width: 230px; border-radius: 18px; padding: 16px; }
@media (max-width: 860px) { .mock { min-height: 0; max-width: 420px; } .phone { margin: 0; width: min(290px, 82%); } .page { position: relative; right: auto; bottom: auto; width: min(240px, 70%); margin: -70px 0 0 auto; } }
.m-title { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.m-card { background: var(--soft); border-radius: 18px; padding: 14px; margin-bottom: 16px; }
.m-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-bottom: 6px; }
.m-med { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.m-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.m-actions { display: flex; gap: 6px; }
.m-btn { flex: 1; white-space: nowrap; text-align: center; font-size: 12px; font-weight: 700; padding: 9px 6px; border-radius: 12px; background: var(--tint); color: var(--tint-text); }
.m-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.m-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--border); }
.m-time { margin-left: auto; color: var(--muted); font-size: 13px; }
.m-brand { font-weight: 700; color: var(--tint); font-size: 18px; margin-bottom: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.late { background: var(--late); } .dot.meal { background: var(--meal); }

/* Sections */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border-radius: 20px; padding: 24px; border: 1px solid var(--border); }
.num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint); color: var(--tint-text); font-weight: 700; margin-bottom: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cards { display: grid; gap: 20px; }
.three { grid-template-columns: repeat(3, 1fr); }
.features { grid-template-columns: repeat(3, 1fr); }
.two-cards { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.feature { padding: 8px 0; }
.feature p { color: var(--muted); }
.plan.featured { border: 2px solid var(--tint); }
.check { list-style: none; padding: 0; margin: 12px 0 0; }
.check li { position: relative; padding: 8px 0 8px 30px; }
.check li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--tint); border-bottom: 2.5px solid var(--tint); transform: rotate(-45deg); }
@media (max-width: 860px) { .steps, .three, .features, .two, .two-cards { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--tint); }
details[open] summary::after { content: "−"; }
.lang-menu summary::after, .lang-menu[open] summary::after { content: none; }
details p { margin: 10px 0 0; color: var(--muted); }
.closing { background: var(--soft); }
.closing .stores { justify-content: center; }

/* Legal and support */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); }
.doc h2 { font-size: 23px; margin-top: 36px; }
.doc h3 { margin-top: 24px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.draft { display: inline-block; background: var(--soft); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--muted); }
.table { overflow-x: auto; margin: 12px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--soft); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { color: var(--tint); }
.foot p { margin: 4px 0; font-size: 14px; }

/* Trust band (home) and About */
.trustband { padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trustband .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.trustband ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: 15px; }
.trustband li::before { content: "✓ "; color: var(--tint); }
.trustband a { font-size: 15px; }
.principles { grid-template-columns: repeat(2, 1fr); margin: 8px 0 8px; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* Waitlist (until the store links exist) */
.waitlist { margin: 22px 0 10px; max-width: 460px; }
.closing .waitlist { margin-left: auto; margin-right: auto; }
.wl-title { font-weight: 700; margin-bottom: 10px; }
.wl-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.closing .wl-buttons { justify-content: center; }
button.store { border: 2px solid var(--text); cursor: pointer; font-family: inherit; }
button.store[aria-pressed="false"] { background: transparent; color: var(--text); }
button.store img { display: block; }
.wl-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.wl-form[hidden] { display: none; }
.wl-form input { flex: 1; min-width: 200px; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.wl-form .button { border: 0; cursor: pointer; font-family: inherit; }
.wl-form .button:disabled { opacity: .6; }
.wl-msg { margin: 10px 0 4px; font-weight: 700; }
.wl-msg:empty { display: none; }

/* SEO copy and hero eyebrow */
.eyebrow { font-size: 15px; font-weight: 700; color: var(--tint); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
html[lang="ja"] .eyebrow { text-transform: none; letter-spacing: 0; }
.seo p { color: var(--muted); }

/* Landing pages (scripts/site/landing) and the links to them */
.landing .hero { padding: 48px 0 56px; }
.landing .hero h1 { margin-top: 0; }
.landing .hero .waitlist { margin-top: 24px; }
.for-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.for-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; }
.for-links a:hover { color: var(--tint); border-color: var(--tint); }
.foot nav.for a { color: var(--muted); }
