/* WAN#154 — hellowannii.com in the app's direction: tokens, fonts and logo from wannii.app.
   Day = the app's theme-day; night (prefers-color-scheme: dark) = theme-night (navy + cyan, WAN#158). Fonts are the app's own
   self-hosted Anuphan (body) and Mitr 600 (headings), OFL, served from /assets/fonts (CSP font-src 'self'). */

@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("fonts/anuphan-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("fonts/anuphan-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mitr"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/mitr-600-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Mitr"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/mitr-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --page: #fff8ec;
  --section: #f2ede3;
  --surface: #fffdf8;
  --surface-soft: #f8f1e5;
  --ink: #2d2416;
  --muted: #5f554a;
  --line: #2d2416;
  --soft-line: rgba(45, 36, 22, .16);
  --shadow-ink: #2d2416;
  --coral: #ff5941;
  --coral-soft: #ffe2da;
  --on-coral: #2d2416;
  --teal: #0b7476;
  --teal-soft: #e7f5ef;
  --sun: #ffc56a;
  --header-bg: rgba(255, 248, 236, .94);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1160px;
  --head: "Mitr", "Leelawadee UI", "Noto Sans Thai", Thonburi, system-ui, sans-serif;
  --body: "Anuphan", "Leelawadee UI", "Noto Sans Thai", Thonburi, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    /* WAN#158 — the app's night (app/globals.css .app-shell.theme-night): navy + cyan action. */
    --page: #0d1725;
    --section: #111e2e;
    --surface: #19283a;
    --surface-soft: #21344a;
    --ink: #f4f8fc;
    --muted: #b9c8d8;
    --line: rgba(214, 232, 246, .6);
    --soft-line: rgba(214, 232, 246, .16);
    --shadow-ink: #050b14;
    --coral: #79e0ea;
    --coral-soft: #103b55;
    --on-coral: #081824;
    --teal: #79e0ea;
    --teal-soft: #103b55;
    --header-bg: rgba(13, 23, 37, .94);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); background: var(--page);
  font-family: var(--body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 10px 14px; z-index: 99; border-radius: 10px; border: 2px solid var(--line); }

/* Header — same bar as the app: cream glass, logo lockup, one coral action. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--soft-line); }
.nav { min-height: 72px; display: flex; align-items: center; gap: 22px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; font-size: .94rem; font-weight: 700; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--coral); }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  color: var(--on-coral); background: var(--coral); border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow-ink); font-weight: 800;
  transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow-ink); }
.cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; font-size: 1.2rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; border-bottom: 1px solid var(--soft-line);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 89, 65, .16) 0 70px, transparent 72px),
    radial-gradient(circle at 70% 78%, rgba(14, 130, 132, .12) 0 120px, transparent 122px),
    var(--page); }
/* WAN#158 — night: sun-gold and cyan circles (no coral at night). */
@media (prefers-color-scheme: dark) { .hero { background:
    radial-gradient(circle at 88% 14%, rgba(255, 197, 106, .12) 0 70px, transparent 72px),
    radial-gradient(circle at 70% 78%, rgba(121, 224, 234, .08) 0 120px, transparent 122px),
    var(--page); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hello { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: .9rem; margin-bottom: 18px; }
.hello::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--line); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 18px; }
.hero h1 .accent { color: var(--teal); }
@media (prefers-color-scheme: dark) { .hero h1 .accent { color: #adf0d2; } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 600px; margin: 0 0 26px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.small-note { color: var(--muted); font-size: .92rem; }

/* Phone sample — the app's answer-first screen (WAN#129), sample values only. */
.phone-wrap { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.phone { width: min(320px, 100%); background: var(--ink); border-radius: 40px; padding: 10px; box-shadow: 6px 6px 0 var(--coral); }
@media (prefers-color-scheme: dark) { .phone { background: #081420; border: 2px solid var(--line); } }
.phone-screen { border-radius: 31px; background: var(--page); padding: 16px 14px 18px; overflow: hidden; }
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.phone-top img { height: 22px; width: auto; }
.phone-place { font-size: .7rem; font-weight: 700; padding: 4px 9px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.answer { border: 2px solid var(--line); border-radius: 18px; background: var(--surface); padding: 12px; box-shadow: 3px 3px 0 var(--shadow-ink); }
.answer-date { font-size: .7rem; color: var(--muted); font-weight: 700; }
.answer-kicker { font-size: .72rem; font-weight: 800; color: var(--teal); margin-top: 2px; }
@media (prefers-color-scheme: dark) { .answer-kicker { color: #adf0d2; } }
.answer-line { font-family: var(--head); font-weight: 600; font-size: 1.02rem; line-height: 1.4; margin: 4px 0 10px; }
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.proof div { border: 1.5px solid var(--soft-line); border-radius: 12px; padding: 7px 8px; font-size: .66rem; line-height: 1.35; color: var(--muted); min-width: 0; }
.proof div.lead-cell { border-color: var(--coral); background: var(--coral-soft); }
.proof b { display: block; font-size: 1.15rem; color: var(--ink); font-family: var(--head); font-weight: 600; line-height: 1.3; }
.dish { display: flex; gap: 10px; align-items: center; margin-top: 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); padding: 8px; }
.dish img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.dish strong { display: block; font-family: var(--head); font-weight: 600; font-size: .9rem; line-height: 1.3; }
.dish span { font-size: .66rem; color: var(--muted); }
.example-caption { max-width: 320px; text-align: center; font-size: .85rem; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section.soft { background: var(--section); border-bottom: 1px solid var(--soft-line); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; }
.section-intro { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 0 30px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: 4px 4px 0 var(--shadow-ink); }
.card .big-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; background: var(--teal-soft); border: 1.5px solid var(--line); }
.card:nth-child(2) .big-icon { background: var(--surface-soft); }
.card:nth-child(3) .big-icon { background: var(--coral-soft); }
.card:nth-child(4) .big-icon { background: #fff1cf; }
@media (prefers-color-scheme: dark) { .card:nth-child(4) .big-icon { background: #2c3a3a; } }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card .limitation-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--soft-line); font-size: .9rem; }
/* WAN#153 — ทุกเช้า: four steps of one day, from habits the app already has. */
.mornings { border-bottom: 1px solid var(--soft-line); }
.morning-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.morning-steps li { position: relative; padding: 18px 18px 18px 20px; background: var(--surface); border: 1px solid var(--soft-line); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); }
.morning-steps li:last-child { border-left-color: var(--coral); }
.morning-time { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--ink); font-size: .8rem; font-weight: 800; }
.morning-steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.morning-steps p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .morning-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .morning-steps { grid-template-columns: 1fr; gap: 10px; } }

/* Sources — one place for where data comes from and its limits. */
.trust-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.eyebrow { display: inline-block; color: var(--teal); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #adf0d2; } }
.source-list { display: grid; gap: 10px; }
.source { display: grid; gap: 6px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.source span { color: var(--muted); font-size: .92rem; }
.disclosure { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 4px 4px 0 var(--shadow-ink); }
.disclosure h3 { margin-top: 0; font-size: 1.15rem; }
.disclosure p { color: var(--muted); margin-bottom: 0; }
.text-link { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.source-action { margin-top: 16px; }

/* Final call */
.final-cta { padding: 64px 0; background: var(--section); border-top: 1px solid var(--soft-line); }
.final-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 26px; padding: 34px 38px; background: var(--teal); color: #fff; border: 2px solid var(--line); box-shadow: 5px 5px 0 var(--shadow-ink); }
.final-box h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.final-box p { margin: 0; color: rgba(255, 255, 255, .9); }
/* WAN#158 — night: the app's summary blue (`--summary-bg` #103b55); cyan is for actions only. */
@media (prefers-color-scheme: dark) { .final-box { background: var(--teal-soft); } }

/* Footer */
.site-footer { border-top: 1px solid var(--soft-line); padding: 30px 0 24px; background: var(--page); }
.footer-top { display: flex; align-items: center; gap: 24px; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--muted); font-size: .9rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: 18px; border-top: 1px solid var(--soft-line); padding-top: 16px; display: flex; gap: 20px; justify-content: space-between; color: var(--muted); font-size: .82rem; }

/* About / privacy / terms */
.page-hero { padding: 56px 0 44px; background: var(--section); border-bottom: 1px solid var(--soft-line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; }
.page-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.prose { width: min(calc(100% - 32px), 840px); margin: 0 auto; padding: 56px 0 84px; line-height: 1.85; overflow-wrap: anywhere; }
.prose h2 { margin-top: 44px; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--muted); }
.prose a { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; color: var(--ink); }
.placeholder { border: 2px dashed var(--coral); background: var(--coral-soft); padding: 14px 16px; border-radius: 14px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.about-card { min-width: 0; border: 2px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); box-shadow: 4px 4px 0 var(--shadow-ink); }
.about-card h3 { margin-top: 0; }

@media (max-width: 940px) {
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav-links { flex-basis: 100%; order: 4; margin: 0; flex-wrap: wrap; gap: 0 20px; }
  .nav > .cta { margin-left: auto; }
  .hero-grid, .trust-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 940px) and (scripting: enabled) {
  .menu-btn { display: block; margin-left: auto; flex-shrink: 0; }
  .nav > .cta { margin-left: 0; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; padding: 8px 0; }
  .nav-links.open { display: flex; }
}
@media (max-width: 640px) {
  .brand img { height: 28px; }
  .nav { min-height: 64px; }
  .nav > .cta { min-height: 44px; padding: 0 12px; font-size: .875rem; border-radius: 12px; }
  .hero { padding: 32px 0 44px; }
  .hero-grid { gap: 32px; }
  .section { padding: 52px 0; }
  .cards { grid-template-columns: 1fr; }
  .final-box { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { margin-left: 0; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .page-hero { padding: 36px 0; }
  .prose { padding-block: 36px; }
}
@media (max-width: 360px) {
  .nav > .cta > span { display: none; }
  .nav > .cta { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
  .cta:hover, .cta:active { transform: none; }
}
@media print {
  .site-header, .site-footer, .phone-wrap { display: none; }
  .cta, .card, .disclosure, .about-card { box-shadow: none; }
}
.prose .cta { text-decoration: none; color: var(--on-coral); }
