/* ═══════════════════════════════════════════════════════════════════════════
   StallPOS shared marketing stylesheet — the one source of truth for the public
   site's tokens, type, header/footer shell, buttons and shared components.

   Extracted from the approved homepage (commit 8bec08cb) so the homepage look is
   unchanged; homepage.css layers only homepage-specific sections on top.

   Load order on every marketing page:  site.css  →  page CSS.
   The blog renderer links this same file (see partials/README.md for the contract).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --brand:#762c35;
  --brand-dark:#57202a;
  --paper:#f6f4ee;
  --paper-deep:#eeeae1;
  --panel:#faf8f2;
  --ink:#292623;
  --muted:#6e6962;
  --line:#e5e1d9;
  --green:#295d4b;
  --serif:Georgia,'Times New Roman','Songti SC','Noto Serif CJK SC',SimSun,serif;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'PingFang SC','Microsoft YaHei',sans-serif;
}

/* ── base ─────────────────────────────────────────────────────────────────── */
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:110px; }
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.65 var(--sans);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,p,figure { margin:0; }
a { color:inherit; text-underline-offset:5px; }
button,summary,a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; color:inherit; cursor:pointer; background:none; border:0; }
img { display:block; max-width:100%; height:auto; }
[hidden] { display:none!important; }
:focus-visible { outline:3px solid #a67532; outline-offset:5px; }
::selection { color:var(--brand-dark); background:#eadbd4; }

/* ── layout ───────────────────────────────────────────────────────────────── */
.container { width:min(1240px,calc(100% - 96px)); margin-inline:auto; }
.container-narrow { width:min(800px,calc(100% - 48px)); margin-inline:auto; }
.section-space { padding-block:112px; }
.section-tight { padding-block:68px; }

/* ── type ─────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size:11px; line-height:1.5; font-weight:650; letter-spacing:.12em;
  text-transform:uppercase; color:var(--brand);
}
h1,h2 { font-family:var(--serif); font-weight:400; letter-spacing:-.047em; }
h2 { font-size:clamp(35px,3.7vw,51px); line-height:1.1; margin-top:18px; text-wrap:balance; }
h3 { font-weight:600; letter-spacing:-.025em; line-height:1.3; }
.fineprint { font-size:11px; line-height:1.8; color:var(--muted); }
.lede { font-size:15px; line-height:1.85; color:var(--muted); max-width:62ch; }
.section-heading {
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:60px; margin-bottom:40px;
}
.section-intro { max-width:340px; font-size:14px; line-height:1.85; color:var(--muted); padding-bottom:4px; }

/* ── buttons + links ──────────────────────────────────────────────────────── */
.button {
  display:inline-flex; align-items:center; justify-content:center; gap:28px;
  min-height:54px; padding:14px 24px; border-radius:7px; text-decoration:none;
  font-size:14px; font-weight:600; line-height:1.5;
  transition:background .18s,border-color .18s,transform .18s;
}
.button:hover { transform:translateY(-2px); }
.button-primary { background:var(--brand); color:#fff; border:1px solid var(--brand); }
.button-primary:hover { background:var(--brand-dark); border-color:var(--brand-dark); }
.button-outline { background:transparent; border:1px solid #c8c0b5; gap:10px; }
.button-outline:hover { border-color:var(--brand); background:#f0ebe3; }
.button-cream { color:var(--brand-dark); background:#fffaf0; }
.button-cream:hover { background:#eae1d3; }
.button-quiet { color:var(--brand); background:transparent; border:1px solid #d9cfc2; }
.button-quiet:hover { border-color:var(--brand); background:#f0ebe3; }
.actions { display:flex; flex-wrap:wrap; gap:10px; }
.text-link {
  display:inline-flex; gap:22px; align-items:center;
  font-size:13px; line-height:1.6; font-weight:600; color:var(--brand);
  text-decoration:none; padding-block:9px; border-bottom:1px solid #bda398; min-height:44px;
}
.text-link:hover { border-color:var(--brand); }
.inline-link { color:var(--brand); font-weight:600; }
.inline-link:hover { color:var(--brand-dark); }

/* ── skip link ────────────────────────────────────────────────────────────── */
.skip-link { position:fixed; top:-100px; left:20px; z-index:100; padding:10px 20px; background:#fff; color:var(--ink); }
.skip-link:focus { top:10px; }

/* ── site header ──────────────────────────────────────────────────────────── */
.site-header {
  background:#f6f4eef2; border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:40; backdrop-filter:blur(16px);
}
.header-inner { min-height:88px; display:flex; align-items:center; gap:30px; }
.wordmark {
  display:inline-flex; align-items:center; text-decoration:none;
  font-size:27px; font-weight:750; letter-spacing:-1.2px; line-height:1.2;
  color:var(--brand); white-space:nowrap;
}
.brand-mark {
  width:25px; height:25px; border-radius:7px 7px 12px 12px; position:relative;
  background:var(--brand); margin-right:9px;
}
.brand-mark:after { content:''; position:absolute; inset:8px 5px auto; height:5px; border-block:1px solid #fff; }
.brand-dot { color:#b18557; }
.wordmark-context {
  font-size:11px; color:var(--muted); font-weight:600; letter-spacing:.02em;
  margin-left:-14px; padding-top:6px; white-space:nowrap;
}
.desktop-nav { display:flex; align-items:center; gap:27px; margin-left:auto; }
.desktop-nav a,.login-link { font-size:13px; text-decoration:none; white-space:nowrap; }
.desktop-nav a:hover,.login-link:hover { color:var(--brand); text-decoration:underline; }
.desktop-nav a[aria-current=page] { color:var(--brand); font-weight:650; }
.header-actions { display:flex; align-items:center; gap:22px; }
.header-cta { min-height:44px; font-size:12px; padding:10px 18px; gap:23px; }
.language-switch { display:flex; align-items:center; gap:2px; }
.language-switch button,.language-switch a,.language-switch span.lang {
  background:none; border:0; font-size:11px; padding:10px 6px; min-height:44px;
  color:var(--muted); text-decoration:none; display:inline-block;
}
.language-switch button[aria-pressed=true],.language-switch .lang-active {
  color:var(--brand); font-weight:750; text-decoration:underline; text-underline-offset:5px;
}
.language-switch button+button,.language-switch .lang+.lang,.language-switch a+button,.language-switch button+a { border-left:1px solid var(--line); }
.menu-toggle { display:none; }
.mobile-nav a { display:block; text-decoration:none; padding:11px 0; border-top:1px solid var(--line); font-size:14px; }
.mobile-nav a[aria-current=page] { color:var(--brand); font-weight:650; }

/* ── page hero (compact editorial opener for inner pages) ─────────────────── */
.page-hero { padding-block:65px 56px; border-bottom:1px solid var(--line); }
.page-hero h1 {
  font-size:clamp(40px,4.4vw,62px); line-height:1.04; letter-spacing:-.045em;
  margin:20px 0 22px; text-wrap:balance;
}
.page-hero .lede { max-width:560px; }
.page-hero .actions { margin-top:26px; }
/* compact offer treatment (approved homepage hero-price; a Pricing page must
   show the amount in the first viewport) */
.hero-price { display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:12px; margin:24px 0 21px; }
.hero-price strong { font-size:22px; font-weight:650; letter-spacing:-.04em; }
.price-divider { width:1px; height:13px; background:#c8bdb0; margin:0 6px; }
.page-hero .fineprint { margin-top:14px; }
.hero-zh { font-size:15px; color:var(--brand); letter-spacing:.08em; margin-top:14px; }

/* ── status chips (honest labels) ─────────────────────────────────────────── */
.status-chip {
  display:inline-flex; align-items:center; gap:7px;
  font-size:10px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  border-radius:4px; padding:4px 9px; white-space:nowrap;
}
.status-chip:before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.status-live { background:#e9f1eb; color:var(--green); }
.status-demo { background:#f0e7da; color:#7a5a2e; }
.status-concept { background:#f6f4ee; color:var(--muted); border:1px dashed #c9c0b2; }
.sample-note {
  display:inline-flex; align-items:center; gap:8px;
  font-size:10px; color:var(--muted); letter-spacing:.06em; text-transform:uppercase;
}
.sample-note:before { content:''; width:5px; height:5px; border-radius:50%; background:var(--green); }

/* ── shared components ────────────────────────────────────────────────────── */
.check-list { list-style:none; padding:0; margin:23px 0; }
.check-list li { position:relative; padding-left:22px; font-size:12px; margin-top:12px; line-height:1.6; }
.check-list li:before { content:'✓'; position:absolute; left:0; color:var(--green); font-size:13px; }
.check-list li b { font-weight:650; }
.plain-list { list-style:none; padding:0; margin:23px 0; }
.plain-list li { padding:12px 0; border-bottom:1px solid var(--line); font-size:13px; line-height:1.7; }
.plain-list li:last-child { border-bottom:0; }

.steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:48px; padding:0; margin:46px 0 0; list-style:none; }
.steps li { border-top:1px solid #d8cfc2; padding-top:19px; }
.step-number { font-family:var(--serif); font-size:36px; font-style:italic; color:#977254; }
.steps h3 { font-size:19px; margin-top:14px; margin-bottom:13px; }
.steps p { color:var(--muted); font-size:14px; line-height:1.85; }
.step-detail { display:block; color:var(--brand); font-size:11px; margin-top:20px; font-weight:550; }

.panel-card {
  background:#eeebe3; border:1px solid #e1dcd1; border-radius:10px; padding:38px;
}
.panel-card > :last-child { margin-bottom:0; }
.panel-accent { background:#fbf9f2; border:1px solid #cbb9ad; box-shadow:0 18px 40px rgba(118,44,53,.07); }
.panel-accent h3 { font-size:21px; }
.panel-sub { font-size:12.5px; color:var(--muted); margin-top:5px; margin-bottom:19px; line-height:1.75; }
.split-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:40px; }

/* cross-link / cross-language band */
.crossband {
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  border:1px dashed #c9a075; border-radius:10px; padding:22px 26px; background:#f8f4e9;
}

/* ── dark proof band ──────────────────────────────────────────────────────── */
.dark-band { background:var(--ink); color:#f2ebe0; }
.dark-band .eyebrow { color:#c9a075; }
.dark-band h2 { color:#fff; }
.dark-band .lede { color:#cfc6ba; }
.fact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:34px; }
.fact { border:1px solid #3d3831; border-radius:9px; padding:20px; background:#312d28; }
.fact b { display:block; font-size:14px; color:#fff; margin-top:9px; }
.fact p { font-size:12.5px; margin-top:8px; color:#b4aa97; line-height:1.7; }
.rail-note {
  margin-top:26px; font-size:13px; color:#b4aa97; border-left:3px solid #c9a075;
  padding-left:14px; max-width:70ch; line-height:1.8;
}

.crossband b { font-size:16px; }
.crossband p { font-size:13px; color:var(--muted); margin-top:5px; max-width:64ch; }

.faq-list { border-top:1px solid #cfc4b5; }
.faq-list details { border-bottom:1px solid #d6ccbd; }
summary { cursor:pointer; list-style:none; }
summary::-webkit-details-marker { display:none; }
.faq-list summary { display:flex; justify-content:space-between; gap:20px; padding:24px 0; font-size:14px; font-weight:550; }
.faq-list summary>span:last-child { color:var(--brand); font-size:21px; font-weight:400; line-height:1; }
.faq-list details[open] summary>span:last-child { transform:rotate(45deg); }
.faq-list details>p { font-size:14px; color:var(--muted); padding:0 30px 24px 0; line-height:1.85; }
.faq-list details>p:last-child { margin-bottom:0; }

.data-table-wrap { overflow-x:auto; margin-top:26px; border:1px solid #ddd6c9; border-radius:8px; background:#fbf9f4; }
.data-table { border-collapse:collapse; width:100%; min-width:640px; font-size:13px; }
.data-table th {
  text-align:left; padding:13px 16px; border-bottom:1px solid #ddd6c9;
  background:#eeeae1; font-size:10.5px; font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; color:var(--muted); white-space:nowrap;
}
.data-table td { padding:13px 16px; border-bottom:1px solid #e8e3d8; vertical-align:top; line-height:1.7; }
.data-table tr:last-child td { border-bottom:0; }
.data-table td b { color:var(--brand-dark); }
.table-note { margin-top:12px; font-size:11px; color:var(--muted); max-width:78ch; line-height:1.8; }

.note-box {
  display:flex; gap:13px; margin-top:20px; border-top:1px solid #d4ccbe; padding-top:19px;
}
.note-box>span { color:var(--brand); font-size:23px; line-height:1.1; }
.note-box p { color:var(--muted); font-size:12px; line-height:1.85; }

/* ── editorial prose (guides, legal, blog article bodies) ─────────────────── */
.prose { font-size:17px; line-height:1.8; }
.prose h2 {
  font-size:clamp(27px,2.6vw,34px); margin:52px 0 18px; letter-spacing:-.035em; line-height:1.15;
}
.prose h3 { font-size:19px; margin:34px 0 10px; }
.prose p,.prose ul,.prose ol { color:#4c473f; margin:0 0 18px; }
.prose ul,.prose ol { padding-left:24px; }
.prose li { margin-bottom:9px; }
.prose a { color:var(--brand); font-weight:600; text-decoration-thickness:1px; }
.prose a:hover { color:var(--brand-dark); }
.prose blockquote {
  margin:26px 0; padding:6px 0 6px 22px; border-left:3px solid #c9a075;
  font-family:var(--serif); font-size:19px; font-style:italic; color:#57514a;
}
.prose strong { color:var(--ink); }
.prose table { width:100%; border-collapse:collapse; margin:22px 0; font-size:14px; }
.prose th,.prose td { border:1px solid #ddd6c9; padding:10px 12px; text-align:left; vertical-align:top; line-height:1.65; }
.prose th { background:#eeeae1; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.prose td b { color:var(--brand-dark); }
.prose .table-wrap { overflow-x:auto; margin:22px 0; }
.prose .table-wrap table { margin:0; min-width:640px; }
.prose .ill {
  border-left:3px solid #c9a075; background:#f3efe4; padding:15px 19px;
  border-radius:0 8px 8px 0; font-size:14px; color:#5c564e; margin:22px 0;
}
.prose .faq .q { border:1px solid #ddd6c9; border-radius:8px; padding:17px 20px; margin:12px 0; background:#fbf9f4; }
.prose .faq .q b { display:block; margin-bottom:5px; }
.prose .faq .q p { font-size:14px; margin:0; }
.prose .ctalist li { margin-bottom:11px; }
.prose img { border:1px solid #ddd6c9; border-radius:8px; margin:22px 0; }
.prose hr { border:0; border-top:1px solid var(--line); margin:40px 0; }
.prose code { background:#eeeae1; border-radius:4px; padding:1px 6px; font-size:14px; }

/* article opener shared by guides + blog */
.article-head { padding-block:58px 44px; border-bottom:1px solid var(--line); }
.article-head h1 {
  font-size:clamp(31px,3.6vw,46px); line-height:1.12; letter-spacing:-.04em;
  margin:16px 0 14px; text-wrap:balance;
}
.article-meta { font-size:12px; color:var(--muted); margin-top:16px; }
.article-disclosure {
  margin-top:22px; border:1px dashed #c9a075; border-radius:8px; padding:14px 18px;
  background:#f8f4e9; font-size:13px; color:#5c564e; line-height:1.8;
}
.article-disclosure b { color:var(--ink); }

/* ── site footer ──────────────────────────────────────────────────────────── */
.site-footer { background:#eae6dc; padding-block:58px 27px; border-top:1px solid #ddd4c6; }
.footer-grid { display:grid; grid-template-columns:1.45fr .8fr 1fr .85fr 1.05fr; gap:45px 30px; padding-bottom:42px; }
.footer-brand p { font-size:13px; color:var(--muted); margin-top:16px; line-height:1.85; }
.footer-brand .footer-local { font-size:11px; color:var(--brand); margin-top:21px; }
.footer-grid h3 { font-size:13px; font-weight:600; margin-bottom:15px; }
.footer-grid>div:not(.footer-brand)>a {
  display:block; padding-block:6px; font-size:12px; text-decoration:none; color:#625a50;
}
.footer-grid>div:not(.footer-brand)>a:hover { text-decoration:underline; color:var(--brand); }
.footer-bottom {
  border-top:1px solid #d5cbbc; padding-top:22px; display:flex;
  justify-content:space-between; align-items:flex-end; gap:25px;
  font-size:10px; color:#6b645a;
}
.footer-bottom>div { display:flex; gap:24px; }
.footer-bottom a { text-decoration:none; padding-block:8px; }

/* ── Chinese typography ───────────────────────────────────────────────────── */
html[lang=zh-Hans] body { line-height:1.8; }
html[lang=zh-Hans] .eyebrow { letter-spacing:.08em; }
html[lang=zh-Hans] h2 { line-height:1.3; letter-spacing:-.025em; }
html[lang=zh-Hans] .lede,html[lang=zh-Hans] .section-intro { line-height:2; }
html[lang=zh-Hans] .page-hero h1 { line-height:1.22; letter-spacing:-.03em; }
html[lang=zh-Hans] .prose { line-height:2; }
html[lang=zh-Hans] .steps p,html[lang=zh-Hans] .faq-list details>p { line-height:1.95; }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media(min-width:1500px) { .page-hero { padding-top:82px; } }
@media(max-width:1150px) {
  .container { width:calc(100% - 64px); }
  .desktop-nav { gap:18px; }
  .header-actions { gap:14px; }
  .header-inner { gap:20px; }
  .login-link { display:none; }
  .section-heading { gap:45px; }
  .footer-grid { gap:26px; }
}
@media(max-width:900px) {
  .desktop-nav { display:none; }
  .header-actions { margin-left:auto; }
  /* native <details> mobile menu — no JavaScript required */
  .menu-toggle { display:block; }
  .menu-toggle > summary {
    min-width:65px; min-height:44px; padding:8px 8px; display:flex;
    align-items:center; justify-content:center; gap:10px; font-size:12px;
    cursor:pointer; list-style:none; border-radius:8px;
  }
  .menu-toggle > summary::-webkit-details-marker { display:none; }
  .menu-toggle > summary:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
  .menu-toggle[open] > summary { color:var(--brand); }
  .menu-toggle > summary > span { display:inline-flex; align-items:center; gap:10px; }
  .menu-lines { width:16px; height:7px; border-block:1px solid currentColor; }
  .menu-toggle[open] .menu-lines { border-block-style:double; }
  .menu-toggle .mobile-nav {
    position:absolute; left:0; right:0; top:100%;
    background:#f6f4ee; border-bottom:1px solid var(--line);
    box-shadow:0 26px 40px -30px rgba(28,25,21,.4); padding:6px 32px 18px;
  }
  .section-space { padding-block:80px; }
  .section-heading { display:block; margin-bottom:30px; }
  .section-intro { margin-top:19px; max-width:350px; }
  .steps { gap:30px; }
  .steps h3 { font-size:17px; }
  .steps p { font-size:12px; }
  .panel-card { padding:29px; }
  .split-grid { grid-template-columns:1fr; }
  .fact-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr 1fr 1fr; gap:34px 22px; }
  .footer-grid .footer-brand { grid-column:1 / -1; }
  .footer-grid>div:not(.footer-brand)>a { font-size:11px; }
  .page-hero { padding-block:48px 42px; }
  .page-hero h1 { font-size:clamp(37px,6.4vw,52px); }
}
@media(max-width:680px) {
  html { scroll-padding-top:90px; }
  .container { width:calc(100% - 40px); }
  .container-narrow { width:calc(100% - 40px); }
  .header-inner { min-height:73px; gap:10px; }
  .wordmark { font-size:24px; }
  .brand-mark { width:22px; height:23px; margin-right:7px; }
  .header-actions { gap:9px; }
  .header-cta { display:none; }
  .language-switch button,.language-switch a { font-size:11px; padding-inline:5px; }
  .menu-toggle > summary { min-width:59px; font-size:11px; gap:7px; }
  .menu-toggle .mobile-nav { padding-inline:20px; }
  .mobile-nav a { font-size:15px; }
  .section-space { padding-block:64px; }
  .section-tight { padding-block:50px; }
  .eyebrow { font-size:10px; }
  .status-chip { white-space:normal; line-height:1.6; }
  h2 { font-size:38px; margin-top:15px; }
  .lede { font-size:14px; }
  .steps { display:flex; flex-direction:column; margin-top:30px; gap:29px; }
  .steps li { position:relative; padding:22px 0 0 47px; }
  .step-number { position:absolute; left:0; top:15px; font-size:31px; }
  .steps h3 { margin-top:0; font-size:18px; }
  .steps p { font-size:14px; }
  .page-hero { padding-block:38px 34px; }
  .page-hero h1 { font-size:clamp(34px,9vw,44px); }
  .button { min-height:50px; padding:12px 20px; font-size:13px; }
  .data-table-wrap { margin-inline:0; }
  .crossband { padding:19px 20px; }
  .site-footer { padding-block:45px 112px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:31px 25px; padding-bottom:33px; }
  .footer-grid .footer-brand { grid-column:1 / -1; }
  .footer-grid>div:last-child { grid-column:1 / -1; }
  .footer-brand p { font-size:14px; margin-top:14px; }
  .footer-brand .footer-local { font-size:12px; margin-top:15px; }
  .footer-grid h3 { font-size:14px; margin-bottom:10px; }
  .footer-grid>div:not(.footer-brand)>a { font-size:12px; min-height:36px; padding-block:7px; }
  .footer-bottom { flex-direction:column; align-items:flex-start; gap:20px; font-size:10px; }
  .footer-bottom>div { width:100%; gap:22px; align-items:center; }
  .footer-bottom>div>span { margin-left:auto; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*:before,*:after { transition:none!important; animation:none!important; }
}
@media print {
  .site-header,.button,.text-link { display:none; }
  .container { width:100%; }
  .section-space { padding-block:25px; }
}
