/* OakMenu public website. Colours match the dashboard (brown + gold). */
:root {
  --brand: #5b3a1e;
  --brand-deep: #3f2714;
  --brand-ink: #ffffff;
  --accent: #e9c46a;
  --accent-deep: #c9962e;
  --bg: #f7f3ee;
  --bg-tint: #efe7dc;
  --surface: #ffffff;
  --ink: #2a2118;
  --ink-soft: #6b5a48;
  --muted: #7a6d60;
  --line: #e6ddd2;
  --wood: #8a5a32;
  --screen: #fbf8f4;
  --card: #ffffff;
  --food1: #f1c98b;
  --food2: #d9876a;
  --food3: #a8c38a;
  --shadow: rgba(60, 40, 20, .12);
  --radius: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #c8925a; --brand-deep: #2b1f15; --brand-ink: #1b140e; --accent: #e9c46a; --accent-deep: #d6a845;
    --bg: #17120d; --bg-tint: #1f1811; --surface: #221a13; --ink: #f1e8de; --ink-soft: #cdbba7; --muted: #a8998a; --line: #3a2e23;
    --wood: #5a3a20; --screen: #2a2118; --card: #352a1f; --shadow: rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #c8925a; --brand-deep: #2b1f15; --brand-ink: #1b140e; --accent: #e9c46a; --accent-deep: #d6a845;
  --bg: #17120d; --bg-tint: #1f1811; --surface: #221a13; --ink: #f1e8de; --ink-soft: #cdbba7; --muted: #a8998a; --line: #3a2e23;
  --wood: #5a3a20; --screen: #2a2118; --card: #352a1f; --shadow: rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:lang(zh) h1, :lang(zh) h2 { letter-spacing: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none; font-size: 1rem; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: var(--brand-ink); }
.btn.light { background: var(--accent); border-color: var(--accent); color: #3a2510; }
.btn.light:hover { background: #f3d27e; border-color: #f3d27e; color: #3a2510; }
.btn.small { padding: 7px 16px; font-size: .92rem; }
.btn.big { padding: 16px 32px; font-size: 1.1rem; }
.btn.big .icon { width: 26px; height: 26px; stroke: currentColor; margin: 0; padding: 0; background: none; }
.btn.disabled { opacity: .55; cursor: not-allowed; }
.btn.disabled:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.menu { display: flex; align-items: center; gap: 14px; flex: 1; }
.main-nav { display: flex; gap: 2px; flex: 1; justify-content: center; white-space: nowrap; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 8px; border-radius: 8px; font-weight: 550; font-size: .95rem; }
.main-nav a:hover { background: var(--bg-tint); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--bg-tint); }
.langs { display: flex; gap: 2px; font-size: .85rem; white-space: nowrap; }
.langs a { text-decoration: none; color: var(--muted); padding: 4px 7px; border-radius: 6px; }
.langs a[aria-current="true"] { color: var(--ink); background: var(--bg-tint); font-weight: 700; }
.account { display: flex; gap: 8px; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1200px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 14px; box-shadow: 0 12px 24px var(--shadow); }
  .menu.open { display: flex; }
  .main-nav { flex-direction: column; }
  .main-nav a { padding: 10px 8px; font-size: 1.05rem; }
  .langs { justify-content: flex-start; }
  .account .btn { flex: 1; }
}

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero.with-art .wrap { grid-template-columns: 1.1fr .9fr; }
.hero-text > p { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.hero:not(.with-art) .hero-text { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important; font-weight: 700; color: var(--accent-deep) !important; margin-bottom: 12px; }
.hero-note { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 1rem !important; color: var(--ink) !important; font-weight: 600; }
.hero-art { width: 100%; height: auto; filter: drop-shadow(0 18px 30px var(--shadow)); }
@media (max-width: 860px) {
  .hero { padding: 44px 0 40px; }
  .hero.with-art .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 440px; }
}

/* Blocks */
.block { padding: 64px 0; }
.block.tint { background: var(--bg-tint); }
.intro { color: var(--ink-soft); max-width: 720px; margin-bottom: 28px; font-size: 1.05rem; }
.cards { display: grid; gap: 20px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: var(--bg-tint); border-radius: 10px; padding: 7px; margin-bottom: 14px; }
.tint .icon { background: var(--bg); }
@media (max-width: 900px) { .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.split p { color: var(--ink-soft); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 8px; } }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #3a2510; font-weight: 800; font-size: 1.15rem; }
.steps p { color: var(--ink-soft); }
.steps p:last-child, .steps ul:last-child { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent-deep); border-bottom: 2.5px solid var(--accent-deep); transform: rotate(-45deg); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.plan.best { border-color: var(--accent-deep); }
.badge { position: absolute; top: -14px; left: 28px; background: var(--accent); color: #3a2510; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.price { margin: 8px 0 4px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.price .per { color: var(--muted); font-weight: 600; }
.plan .ticks { margin-top: 20px; }
.plans + .fine + .buttons, .plans + .buttons { justify-content: center; }
.fine { color: var(--muted); font-size: .92rem; margin-top: 20px; text-align: center; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-tint); font-size: .92rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }

/* FAQ */
.faq-group { margin-top: 40px; font-size: 1.35rem; }
.faq-group:first-child { margin-top: 0; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-deep); font-weight: 400; }
.faq[open] summary::after { content: '–'; }
.faq > div { padding: 0 20px 6px; color: var(--ink-soft); }

/* Prose */
.prose p { color: var(--ink-soft); }

/* Forms */
.mailform .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.mailform label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.mailform label.wide { grid-column: 1 / -1; }
.mailform em { font-weight: 400; color: var(--muted); font-style: normal; }
.mailform input, .mailform select, .mailform textarea { font: inherit; font-weight: 400; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.mailform input:focus, .mailform select:focus, .mailform textarea:focus { border-color: var(--brand); outline: none; }
.sent { margin-top: 16px; background: var(--surface); border-left: 4px solid var(--accent-deep); padding: 12px 16px; border-radius: 8px; }
@media (max-width: 620px) { .mailform .fields { grid-template-columns: 1fr; } }
.mail { font-weight: 700; word-break: break-all; }

/* Download */
.download { display: flex; justify-content: center; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; text-align: center; max-width: 620px; width: 100%; }
.dl-card p { color: var(--ink-soft); margin-top: 16px; }

/* CTA */
.cta { background: var(--brand); color: var(--brand-ink); padding: 64px 0; text-align: center; }
:root[data-theme="dark"] .cta, .cta { background: #5b3a1e; color: #fff; }
.cta p { color: #f2e6d8; font-size: 1.1rem; max-width: 640px; margin: 0 auto 1em; }
.cta .buttons { justify-content: center; }
.cta .btn { background: var(--accent); border-color: var(--accent); color: #3a2510; }
.cta .btn:hover { background: #f3d27e; border-color: #f3d27e; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.cta a:not(.btn) { color: var(--accent); }

/* Footer */
.foot { padding: 48px 0 32px; border-top: 1px solid var(--line); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 10px; max-width: 280px; }
.foot h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.foot-grid a:not(.logo) { display: block; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.foot-grid a:not(.logo):hover { color: var(--brand); text-decoration: underline; }
.legal { color: var(--muted); font-size: .85rem; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .wrap { padding: 0 16px; } body { font-size: 16px; } .steps > li { grid-template-columns: 1fr; gap: 10px; padding: 18px; } .block { padding: 48px 0; } }
