/* Somi — getsomi.app. Brand: Somi blue #5AB0FF, blush #FFAD90, butter #F6D77A, dark #1C1F26 (Somi-brand-art/README.md). */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f8ff;
  --bg-sky: #e8f3ff;
  --card: #ffffff;
  --text: #14161b;
  --muted: #5a6370;
  --line: #e3eaf3;
  --somi: #5ab0ff;
  --link: #1f74cf;
  --blush: #ffad90;
  --butter: #f6d77a;
  --ok: #1f9d6a;
  --err: #d14343;
  --btn: #14161b;
  --btn-text: #ffffff;
  --shadow: 0 18px 40px rgba(38, 92, 158, 0.12);
  --radius: 22px;
  --radius-lg: 30px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Arabic", "Noto Sans Thai", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", var(--font);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1217;
    --bg-soft: #151a22;
    --bg-sky: #18202b;
    --card: #1c1f26;
    --text: #f3f6fa;
    --muted: #a6afbd;
    --line: #2a313c;
    --link: #8cc8ff;
    --btn: #f3f6fa;
    --btn-text: #0f1217;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
}
:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ko) { word-break: keep-all; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-round); letter-spacing: -0.02em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(th) h1, :lang(th) h2, :lang(th) h3 { letter-spacing: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--font-round); color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 860px) { .top nav, .top .btn { display: none; } }

/* Language picker */
.lang { position: relative; margin-inline-start: 4px; }
@media (max-width: 860px) { .lang { margin-inline-start: auto; } }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--card); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 180px; z-index: 40; }
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current="page"] { background: var(--bg-sky); }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font: 600 16px/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn-dark { background: var(--btn); color: var(--btn-text); }
.btn-dark:hover { opacity: 0.9; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 470px; }
.waitlist input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 15px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 16px var(--font); }
.waitlist input[type="email"]:focus { outline: 2px solid var(--somi); outline-offset: 1px; }
.waitlist .btn { flex: 0 0 auto; }
.waitlist .hp { position: absolute; inset-inline-start: -9999px; }
.waitlist.busy .btn { opacity: 0.6; pointer-events: none; }
.waitlist.done input[type="email"], .waitlist.done .btn { display: none; }
.form-msg { flex-basis: 100%; margin: 0; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.err { color: var(--err); }
.fine { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -30% -25% auto; height: 130%; background:
  radial-gradient(closest-side at 70% 40%, color-mix(in srgb, var(--somi) 26%, transparent), transparent 72%),
  radial-gradient(closest-side at 92% 78%, color-mix(in srgb, var(--blush) 22%, transparent), transparent 70%),
  radial-gradient(closest-side at 12% 10%, color-mix(in srgb, var(--butter) 18%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 36px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); box-shadow: 0 4px 14px rgba(38, 92, 158, 0.08); }
.chip i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-sky); font-style: normal; font-size: 13px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04; margin: 0 0 18px; }
:lang(th) .hero h1, :lang(ar) .hero h1 { line-height: 1.25; }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.ticks li { display: flex; align-items: center; gap: 7px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%235AB0FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; flex: none; }

.hero-art { position: relative; min-height: 560px; }
.somi-float { position: relative; width: min(100%, 350px); margin-inline-start: auto; }
.somi-float img { position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
.somi-float::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -4%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 98, 160, 0.22), transparent); animation: shadow 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes shadow { 50% { transform: scale(0.86); opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .somi-float img, .somi-float::after { animation: none; } }

.scan { position: absolute; z-index: 2; inset-inline-start: 0; bottom: 4px; width: min(300px, 78%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.scan-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.scan-head span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.scan-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 0 12px; }
.scan-title strong { font: 700 18px/1.25 var(--font-round); }
.scan-title span { font-weight: 700; color: var(--link); white-space: nowrap; }
.scan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.scan li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.scan li img { width: 30px; height: 30px; }
.scan li b { font-variant-numeric: tabular-nums; }
.scan-ok { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: 13px; font-weight: 700; }

@media (max-width: 860px) {
  .hero { padding: 32px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { min-height: 0; display: flex; flex-direction: column; align-items: center; }
  .somi-float { width: 190px; margin: 0 auto; }
  .scan { position: relative; inset: auto; margin-top: 10px; width: min(320px, 100%); }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .waitlist, .hero .cta { margin-inline: auto; justify-content: center; }
  .ticks { justify-content: center; }
}

/* Sections */
section.band { padding: 80px 0; }
section.soft { background: var(--bg-soft); }
.head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.head h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; margin: 0 0 12px; }
:lang(th) .head h2, :lang(ar) .head h2 { line-height: 1.3; }
.head p { margin: 0; color: var(--muted); font-size: 18px; }
@media (max-width: 600px) { section.band { padding: 60px 0; } .head { margin-bottom: 32px; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 28px; text-align: center; }
.step-art { width: 150px; margin: 4px auto 6px; }
.bubble { position: relative; display: inline-block; margin: 0 0 14px; padding: 8px 14px; border-radius: 16px; background: var(--bg-sky); font-size: 14px; font-weight: 600; color: var(--text); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.step .num { display: block; font: 700 13px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); margin-bottom: 6px; }
.step h3 { margin: 0 0 6px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .step { padding: 20px 20px 24px; } .step-art { width: 116px; } }

/* Macros */
.macros { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.macros li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px 16px; text-align: center; font-weight: 600; font-size: 15px; }
.macros img { width: 64px; height: 64px; margin: 0 auto 8px; }
@media (max-width: 860px) { .macros { grid-template-columns: repeat(3, 1fr); } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { display: grid; grid-template-columns: 1fr 150px; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; overflow: hidden; }
.card h3 { margin: 0 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .art { width: 150px; }
.card .badges { display: flex; justify-content: center; }
.card .badges img { width: 74px; margin-inline-start: -16px; filter: drop-shadow(0 6px 10px rgba(38, 92, 158, 0.16)); }
.card .badges img:first-child { margin-inline-start: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .card { grid-template-columns: 1fr 104px; padding: 22px; } .card .art { width: 104px; } .card .badges img { width: 52px; margin-inline-start: -14px; } }

/* Local */
.local { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.local .art { width: min(100%, 300px); margin: 0 auto; }
.local h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; margin: 0 0 12px; }
:lang(th) .local h2, :lang(ar) .local h2 { line-height: 1.3; }
.local p { margin: 0 0 22px; color: var(--muted); font-size: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.pills li { border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; background: var(--card); border: 1px solid var(--line); }
.pills.dishes li { background: color-mix(in srgb, var(--butter) 30%, var(--card)); border-color: transparent; }
.label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
@media (max-width: 860px) { .local { grid-template-columns: 1fr; text-align: center; } .local .art { width: 200px; } .pills { justify-content: center; } }

/* Kind by design */
.kind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.kind li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.kind h3 { margin: 0 0 8px; font-size: 20px; }
.kind p { margin: 0; color: var(--muted); font-size: 16px; }
.kind-art { width: 150px; margin: -8px auto 26px; }
@media (max-width: 860px) { .kind { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin: 0 0 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; }
.final .art { width: 190px; margin: 0 auto 10px; }
.final h2 { font-size: clamp(32px, 4.6vw, 50px); margin: 0 0 10px; }
.final p.sub { margin: 0 auto 28px; color: var(--muted); font-size: 18px; max-width: 30em; }
.final .waitlist, .final .cta { margin: 0 auto; justify-content: center; }

/* Sticky mobile CTA */
.dock { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; transform: translateY(140%); transition: transform 0.25s ease; }
.dock .btn { width: 100%; box-shadow: var(--shadow); }
.dock.show { transform: none; }
@media (max-width: 860px) { .dock { display: block; } }

/* Country suggestion banner */
.suggest { position: fixed; z-index: 50; left: 50%; top: 74px; transform: translateX(-50%); width: min(92vw, 440px); display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); font-size: 15px; }
.suggest p { margin: 0; flex: 1; }
.suggest a, .suggest button { border: 0; border-radius: 999px; padding: 9px 14px; font: 600 14px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.suggest a { background: var(--btn); color: var(--btn-text); }
.suggest button { background: transparent; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 110px; color: var(--muted); font-size: 14px; }
@media (min-width: 861px) { footer { padding-bottom: 48px; } }
footer .wrap { display: grid; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .langs { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0; list-style: none; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }

/* Text pages (privacy, terms, support, community) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: start; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; background: var(--card); }
.doc summary { font-weight: 600; cursor: pointer; }
.doc details p { margin: 10px 0 0; color: var(--muted); }
.doc .art { width: 180px; margin: 0 auto 20px; }
.top .back { margin-inline-start: auto; color: var(--muted); text-decoration: none; font-size: 15px; }
