/* Kalamooo landing page — "Bahay Kubo & Carabao" palette (light mode only). */
:root {
  --primary: #66BB6A;
  --primary-strong: #388E3C;
  --primary-dark: #1B5E20;
  --tan: #F1E7D2;
  --brown: #5D4037;
  --surface: #FFFFFF;
  --surface-alt: #F7F4F0;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --border: rgba(0, 0, 0, 0.08);

  --success: #146C43; --success-bg: #E6F4EA;
  --warning: #8A5300; --warning-bg: #FFF1D6;
  --error: #B3261E;   --error-bg: #F9DEDC;

  --gradient: linear-gradient(135deg, #66BB6A 0%, #1B5E20 100%);
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --r-card: 22px;
  --r-btn: 14px;
  --r-chip: 10px;
  --shadow: 0 10px 30px rgba(27, 94, 32, 0.10);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--primary-dark); }
h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ─── Buttons & badges ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--r-btn);
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(27, 94, 32, .25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(27, 94, 32, .3); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.store-badges-center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 168px; padding: 9px 18px 9px 14px;
  background: #111; color: #fff; text-decoration: none;
  border-radius: var(--r-btn); transition: transform .15s ease, background .15s ease;
}
.store-badge:hover { transform: translateY(-1px); background: #000; }
.store-badge small { display: block; font-size: .66rem; letter-spacing: .04em; opacity: .85; line-height: 1.1; }
.store-badge strong { display: block; font-size: 1.12rem; line-height: 1.15; }
.badge-icon svg { width: 26px; height: 26px; display: block; }

/* ─── Nav ─── */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: auto; height: 42px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--primary-dark); }
.nav-links { display: none; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--primary-dark); }
.site-nav .btn { margin-left: auto; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .site-nav .btn { margin-left: 0; }
}

/* ─── Hero ─── */
.hero { padding: 48px 0 72px; background: radial-gradient(1200px 500px at 85% 0%, var(--tan) 0%, transparent 60%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; margin-bottom: 18px;
  background: var(--tan); color: var(--brown);
  border-radius: var(--r-chip); font-weight: 700; font-size: .85rem;
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34em; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--text-muted); font-size: .92rem; }
.hero-points li::before { content: "✓"; color: var(--primary-strong); font-weight: 800; margin-right: 6px; }
.hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 24px; }
.hero-mascot { position: absolute; width: 120px; left: max(0px, calc(50% - 210px)); bottom: 0; filter: drop-shadow(0 12px 18px rgba(0,0,0,.15)); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-mascot { width: 190px; left: calc(50% - 250px); }
}

/* ─── Phone mockup ─── */
.phone {
  position: relative; width: 272px; aspect-ratio: 9 / 19;
  padding: 12px; background: #111; border-radius: 42px;
  box-shadow: 0 30px 60px rgba(27, 94, 32, .22), inset 0 0 0 2px #333;
  flex-shrink: 0;
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 12px; background: #111; z-index: 2; }
.phone-sm { width: 232px; }
.ui-screen {
  height: 100%; overflow: hidden; border-radius: 30px;
  background: var(--surface-alt); padding: 46px 14px 14px;
  display: flex; flex-direction: column; gap: 8px; font-size: .78rem;
}
.ui-title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 2px; }
.ui-item, .ui-person, .ui-stock, .ui-stat {
  background: var(--surface); border-radius: 14px; padding: 9px 10px;
  box-shadow: 0 1px 0 var(--border);
}
.ui-item { display: flex; align-items: center; gap: 10px; }
.ui-item strong, .ui-person strong, .ui-stock strong { display: block; font-size: .82rem; }
.ui-item small, .ui-stock small, .ui-stat small, .ui-kpis small { color: var(--text-muted); }
.ui-emoji { font-size: 1.2rem; width: 30px; height: 30px; display: grid; place-items: center; background: var(--tan); border-radius: 9px; }
.ui-footer { margin-top: auto; background: var(--surface); border-radius: 16px; padding: 10px; display: grid; gap: 8px; }
.ui-row { display: flex; justify-content: space-between; }
.ui-total { font-weight: 800; font-size: .95rem; }
.ui-chips { display: flex; gap: 6px; }
.ui-chip { flex: 1; text-align: center; padding: 5px; border-radius: var(--r-chip); background: var(--primary-dark); color: #fff; font-weight: 700; }
.ui-chip-alt { background: var(--tan); color: var(--brown); }
.ui-btn { background: var(--gradient); color: #fff; text-align: center; border-radius: 12px; padding: 9px; font-weight: 800; }
.ui-stat strong { display: block; font-size: 1.15rem; color: var(--primary-dark); }
.ui-person { display: flex; align-items: center; gap: 10px; }
.ui-person strong { flex: 1; }
.ui-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tan); color: var(--brown); font-weight: 800; }
.ui-pill { padding: 3px 8px; border-radius: 8px; font-weight: 700; font-size: .72rem; }
.ok   { background: var(--success-bg); color: var(--success); }
.warn { background: var(--warning-bg); color: var(--warning); }
.err  { background: var(--error-bg);   color: var(--error); }
.ui-banner { background: var(--warning-bg); color: var(--warning); border-radius: 12px; padding: 7px 10px; font-weight: 700; }
.ui-stock { display: grid; gap: 6px; }
.ui-bar { height: 6px; border-radius: 3px; background: var(--surface-alt); overflow: hidden; }
.ui-bar-fill { height: 100%; border-radius: 3px; }
.ui-bar-fill.ok { background: var(--primary); }
.ui-bar-fill.warn { background: #E0A030; }
.ui-bar-fill.err { background: var(--error); }
.ui-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-kpis > div { background: var(--surface); border-radius: 14px; padding: 9px 10px; }
.ui-kpis strong { display: block; font-size: 1rem; color: var(--primary-dark); }
.ui-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; background: var(--surface); border-radius: 14px; padding: 12px 10px 8px; }
.ui-chart div { flex: 1; background: var(--gradient); border-radius: 5px 5px 2px 2px; }
.ui-days { display: flex; justify-content: space-around; color: var(--text-muted); font-size: .7rem; margin-top: -4px; }

/* ─── Sections ─── */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow); }
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.feature p { color: var(--text-muted); margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; font-size: 1.5rem; background: var(--tan); border-radius: 14px; }

/* Carousel scrolls inside itself, never the page. */
.carousel {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 28px; margin: 0 -16px; padding-inline: 16px;
  scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.carousel:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: var(--r-card); }
.shot { margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.shot figcaption { font-weight: 700; color: var(--brown); background: var(--tan); padding: 6px 14px; border-radius: var(--r-chip); }
@media (min-width: 1080px) { .carousel { justify-content: center; margin: 0; } }

.band { background: var(--tan); }
.band h2 { color: var(--brown); }
.band-copy p { color: var(--brown); font-size: 1.05rem; }
.band-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.1fr .9fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { background: var(--surface); color: var(--brown); padding: 8px 14px; border-radius: var(--r-chip); font-weight: 600; font-size: .92rem; border: 1px solid rgba(93, 64, 55, .15); }
.band-side .card p { color: var(--text-muted); }
.chat { display: grid; gap: 8px; margin-top: 16px; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--surface-alt); font-size: .92rem; }
.bubble-me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--primary-dark); color: #fff; }

.trust-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.trust { display: flex; gap: 14px; }
.trust h3 { margin-bottom: .25em; }
.trust p { color: var(--text-muted); margin: 0; }
.trust-icon { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 12px; background: var(--success-bg); }

.cta-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: var(--gradient); border-radius: var(--r-card); padding: 40px 24px; color: #fff;
  max-width: 1076px;
}
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.cta-card .store-badges { margin-top: 12px; }
.cta-mascot { width: 150px; margin-top: -90px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.2)); }
#download { padding-top: 120px; }
@media (min-width: 900px) {
  .cta-card { flex-direction: row; text-align: left; gap: 32px; padding: 48px 56px; }
  .cta-card .store-badges { justify-content: flex-start; }
  .cta-mascot { width: 220px; margin: -40px 0 -48px; }
  #download { padding-top: 72px; }
}

/* ─── Footer ─── */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--border); padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--text-muted); max-width: 22em; margin-top: 10px; }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
}
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--primary-dark); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; }
.footer-base p { margin: 0; }

.btn { white-space: nowrap; }
@media (max-width: 360px) {
  .brand span { font-size: 1.25rem; }
  .brand img { width: auto; height: 36px; }
  .btn-sm { padding: 8px 12px; font-size: .85rem; }
}

/* ─── Offline vs online ─── */
.section-tight { padding-top: 0; }
.mode-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.mode { padding: 30px; }
.mode-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mode-head h3 { font-size: 1.5rem; margin: 0; }
.mode-tagline { margin: 0; font-weight: 600; }
.mode-icon { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 14px; }
.mode-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mode-list li { position: relative; padding-left: 30px; }
.mode-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 6px; font-size: .75rem; font-weight: 800;
}
.mode-offline { background: var(--tan); border-color: rgba(93, 64, 55, .12); box-shadow: none; }
.mode-offline h3, .mode-offline .mode-tagline, .mode-offline li { color: var(--brown); }
.mode-offline .mode-icon { background: var(--surface); }
.mode-offline li::before { background: var(--surface); color: var(--brown); }
.mode-online { background: var(--gradient); border: 0; color: #fff; }
.mode-online h3 { color: #fff; }
.mode-online .mode-tagline { color: rgba(255, 255, 255, .85); }
.mode-online .mode-icon { background: rgba(255, 255, 255, .18); }
.mode-online li::before { background: #fff; color: var(--primary-dark); }

/* ─── User guide ─── */
.center { text-align: center; }
.center .feature-grid { text-align: left; margin-bottom: 32px; }
.container-narrow { max-width: 780px; }
.guide-top { padding-top: 40px; }
.guide-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.guide-hero h1 { margin-bottom: .2em; }
.guide-hero .lead { margin: 0; }
.guide-hero-mascot { width: 96px; flex-shrink: 0; }
@media (min-width: 720px) { .guide-hero-mascot { width: 150px; } }
.guide-card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(27, 94, 32, .16); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-strong); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); }
.faq-more { text-align: center; margin-top: 24px; color: var(--text-muted); }

.guide-layout { display: grid; gap: 40px; }
.guide-sidebar { display: none; }
@media (min-width: 960px) {
  .guide-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .guide-sidebar { display: block; }
  .guide-nav { position: sticky; top: 92px; }
}
.guide-nav h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.guide-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.guide-nav a { display: block; padding: 8px 12px; border-radius: var(--r-chip); color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.guide-nav a:hover { background: var(--surface-alt); color: var(--primary-dark); }
.guide-nav a.active { background: var(--tan); color: var(--brown); }

.guide-article { max-width: 720px; min-width: 0; }
.guide-article h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.back-link { display: block; width: fit-content; margin-bottom: 20px; font-weight: 600; text-decoration: none; }
.toc { background: var(--surface-alt); border-radius: var(--r-card); padding: 18px 22px; margin: 8px 0 12px; }
.toc strong { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.toc ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.guide-section { padding-top: 28px; scroll-margin-top: 84px; }
.guide-section h2 { font-size: 1.6rem; }
.ui-label { color: var(--primary-dark); font-weight: 700; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 30px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; font-size: .9rem;
}
.guide-list { padding-left: 20px; margin: 0 0 1em; display: grid; gap: 8px; }
.guide-list li::marker { color: var(--primary-strong); }

.callout { border-radius: 14px; padding: 14px 18px; margin: 0 0 1em; }
.callout > strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.callout p { margin: 0; }
.callout-tip { background: var(--success-bg); color: var(--success); }
.callout-tip .ui-label, .callout-tip a { color: var(--success); }
.callout-note { background: var(--warning-bg); color: var(--warning); }
.callout-note .ui-label, .callout-note a { color: var(--warning); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; font-weight: 700; }
.pager a:hover { border-color: var(--primary); }
.pager small { color: var(--text-muted); font-weight: 500; }
.pager .next { text-align: right; grid-column: 2; }

/* ─── Support, forms, legal, releases ─── */
.btn-soft { background: var(--tan); color: var(--brown); }
.btn-soft:hover { background: #E9DCC0; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #971F18; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.footer-badges { margin-top: 18px; }
.footer-badges .store-badge { min-width: 0; padding: 7px 14px 7px 10px; }
.footer-badges .store-badge strong { font-size: .95rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }

.form-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } }
.form-single { max-width: 560px; }
.form-card { display: grid; gap: 18px; padding: 28px; }
.form-card .btn { justify-self: start; }
.form-aside { display: grid; gap: 16px; }
.side-card { padding: 22px; box-shadow: none; }
.side-card h3 { font-size: 1.1rem; }
.side-card p { color: var(--text-muted); }
.side-card .guide-list { margin: 0; }
.field { display: grid; align-content: start; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { font-weight: 700; font-size: .95rem; padding: 0; }
.field-hint { color: var(--text-muted); font-size: .85rem; }
.field-error { color: var(--error); font-weight: 600; font-size: .85rem; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 11px 14px; border: 1.5px solid rgba(0, 0, 0, .14); border-radius: var(--r-chip);
  background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-strong); box-shadow: 0 0 0 3px rgba(102, 187, 106, .25);
}
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.form-note { color: var(--text-muted); font-size: .88rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 9px 14px; border-radius: var(--r-chip); border: 1.5px solid rgba(0,0,0,.14); font-weight: 600; }
.choice input:checked + span { background: var(--tan); border-color: var(--brown); color: var(--brown); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(102, 187, 106, .35); }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star { cursor: pointer; }
.star input { position: absolute; opacity: 0; }
.star span { font-size: 2rem; line-height: 1; color: #D9D2C5; transition: color .1s ease; }
.star input:checked ~ span, .star:hover span, .star:hover ~ .star span, .star:has(input:checked) ~ .star span { color: #E0A030; }
.star input:checked + span { color: #E0A030; }
.star input:focus-visible + span { outline: 2px solid var(--primary); border-radius: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--error); flex-shrink: 0; }

.alert { border-radius: 14px; padding: 12px 16px; }
.alert p { margin: 0; }
.alert-error { background: var(--error-bg); color: var(--error); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); margin-bottom: 20px; }

.done-card { text-align: center; padding: 40px 28px; }
.done-mascot { width: 140px; margin: 0 auto 8px; }
.ref-box { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: var(--tan); color: var(--brown); border-radius: 14px; padding: 12px 18px; margin: 8px 0 16px; }
.ref-box small { width: 100%; }
.ref-box strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.5rem; letter-spacing: .06em; }

.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ticket-head h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 4px 0; }
.ticket-head small { color: var(--text-muted); }
.status-pill { flex-shrink: 0; font-size: .85rem; padding: 6px 12px; margin-top: 6px; }
.ticket-meaning { color: var(--text-muted); margin: 8px 0 20px; }
.thread { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.msg { border-radius: 16px; padding: 16px 18px; background: var(--surface-alt); }
.msg > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.msg small { color: var(--text-muted); }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-support { background: var(--success-bg); border-left: 4px solid var(--primary-strong); }
.msg-support strong { color: var(--primary-dark); }
.guide-article > h2 { margin-top: 32px; font-size: 1.6rem; }
.guide-article > h2:first-child { margin-top: 0; }
.guide-article .form-card { margin: 8px 0 12px; }

.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); min-width: 140px; }
.prose th { background: var(--surface-alt); color: var(--brown); }

.releases { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.release { padding: 28px; }
.release-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.release-version { font-weight: 800; color: var(--brown); }
.release-meta small { color: var(--text-muted); }
.release h2 { font-size: 1.5rem; }
.release h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); margin-top: 18px; }

/* ─── Mobile menu (phones only) ─── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary:hover, .mobile-menu[open] summary { background: var(--surface-alt); }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--primary-dark); position: relative; transition: transform .2s ease, background .2s ease; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.mobile-menu[open] .burger { background: transparent; }
.mobile-menu[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu nav {
  position: absolute; right: 0; top: 52px; width: min(260px, calc(100vw - 32px));
  display: grid; padding: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
}
.mobile-menu nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.mobile-menu nav a:hover { background: var(--surface-alt); color: var(--primary-dark); }
.nav-inner .btn { margin-left: auto; }
@media (min-width: 820px) {
  .mobile-menu { display: none; }
  .nav-inner .btn { margin-left: 0; }
}
@media (max-width: 360px) { .nav-inner { gap: 10px; } }
.mobile-menu { margin-left: auto; }
.mobile-menu nav a.menu-cta { background: var(--gradient); color: #fff; text-align: center; margin-top: 6px; }
@media (max-width: 519px) { .nav-inner > .btn { display: none; } }
@media (min-width: 520px) and (max-width: 819px) { .mobile-menu { margin-left: 0; } }
