@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url("fonts/Outfit_400Regular.ttf") format("truetype"); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url("fonts/Outfit_500Medium.ttf") format("truetype"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url("fonts/Outfit_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: Fraunces; font-weight: 600; font-display: swap; src: url("fonts/Fraunces_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: Fraunces; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/Fraunces_400Regular_Italic.ttf") format("truetype"); }

/* Same palette as the apps (WebOSApp/public/css/app.css). */
:root {
  --bg: #07080c;
  --bg-2: #10131a;
  --bg-3: #181c25;
  --bg-4: #242a36;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f6f3ec;
  --muted: #b7c0cc;
  --faint: #8e98a8;
  --accent: #e8a317;
  --accent-soft: rgba(232, 163, 23, 0.14);
  --accent-ink: #1c1404;
  --ok: #8fd6b2;
  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Outfit, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #f4bb45; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
em.serif { font-family: Fraunces, Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.92rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.35rem; }
.brand img { width: 44px; height: auto; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.nav .lang { border: 1px solid var(--line-2); margin-left: 6px; font-size: 0.85rem; letter-spacing: 0.06em; }
.menu-btn { display: none; margin-left: auto; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .lang { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 Outfit, sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f4bb45; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-3); color: var(--text); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(232, 163, 23, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 18px; color: var(--faint); font-size: 0.92rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Phone mock: a CSS drawing of the Live screen. */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19; margin: 0 auto; padding: 11px; border-radius: 46px;
  background: linear-gradient(160deg, #262b36, #0c0e13);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line-2) inset;
}
.phone-in {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg);
  padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 11px;
}
.phone-in::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 99px; background: #000; }
.p-top { display: flex; align-items: center; gap: 8px; }
.p-top img { width: 30px; }
.p-top i { display: block; height: 0.8em; width: 40%; border-radius: 4px; background: #3a4150; }
.p-top b { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; background: var(--bg-3); }
.p-chips { display: flex; gap: 6px; }
.p-chips span { height: 22px; flex: 1; border-radius: 99px; background: var(--bg-3); }
.p-chips span.on { background: var(--accent); }
.s-row { display: grid; grid-template-columns: 1.8em 2.4em 1fr; align-items: center; gap: 0.6em; padding: 0.55em 0.6em; border-radius: 0.6em; background: var(--bg-2); }
.s-row.sel { background: var(--bg-3); box-shadow: 0 0 0 0.12em var(--accent); }
.s-row b { color: var(--faint); font-weight: 600; font-size: 0.85em; }
.s-row .logo { height: 1.8em; border-radius: 0.4em; background: var(--bg-4); }
.s-row .t { display: grid; gap: 0.35em; }
.s-row .t i { display: block; height: 0.55em; border-radius: 3px; background: #3a4150; width: 70%; }
.s-row .t i + i { width: 45%; background: var(--bg-4); }
.s-row .bar { height: 0.25em; border-radius: 2px; background: var(--bg-4); position: relative; overflow: hidden; }
.s-row .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 40%); background: var(--accent); }
.s-preview { aspect-ratio: 16 / 9; border-radius: 0.6em; background: radial-gradient(120% 90% at 30% 20%, #4a3a1a, #151820 60%); position: relative; }
.s-preview::after { content: "LIVE"; position: absolute; left: 6%; top: 8%; font: 600 0.75em/1 Outfit, sans-serif; letter-spacing: 0.1em; color: var(--accent-ink); background: var(--accent); padding: 0.35em 0.5em; border-radius: 0.3em; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid rgba(232, 163, 23, 0.32);
}
.callout svg { width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: 2px; }
.callout p { margin: 0; }

.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 30px); }
.sec-alt .card { background: var(--bg-3); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card ul { padding-left: 1.1em; color: var(--muted); margin: 0 0 1em; }
.card li { margin-bottom: 0.35em; }
.card .tag { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--bg-4); color: var(--muted); margin-bottom: 14px; }
.card .tag.free { background: rgba(143, 214, 178, 0.14); color: var(--ok); }
.card .tag.paid { background: var(--accent-soft); color: var(--accent); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.feature { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.feature svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 4px; }
.feature h3 { font-family: Outfit, sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3em; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 70px 26px 26px; border-radius: var(--radius-lg); background: var(--bg-3); border: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; top: 22px; left: 26px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.steps h3 { font-family: Outfit, sans-serif; font-size: 1.12rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.price { display: flex; flex-direction: column; }
.price .amount { font-family: Fraunces, Georgia, serif; font-size: 2.2rem; margin: 4px 0 6px; }
.price ul { flex: 1; }
.price.feat { border-color: rgba(232, 163, 23, 0.45); box-shadow: 0 0 0 1px rgba(232, 163, 23, 0.2) inset; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 Outfit, sans-serif; color: var(--accent); transition: transform 0.2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* Downloads */
.dl { display: flex; flex-direction: column; gap: 14px; }
.dl .btn { align-self: flex-start; }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--faint); font-weight: 500; }

/* Long-form pages (guide, legal) */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head p { margin: 0; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(36px, 5vw, 64px) var(--gutter); }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.95rem; }
.toc strong { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.toc a:hover { color: var(--text); background: var(--bg-3); }
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 1.8em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: Outfit, sans-serif; font-size: 1.12rem; margin-top: 1.6em; }
.prose p, .prose li { color: #d9dde4; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--text); }
.prose code, kbd { font: 500 0.88em/1 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0.15em 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--faint); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.prose .callout { margin: 0 0 1.4em; }
.todo { background: rgba(255, 141, 122, 0.16); color: #ffb3a6; border-radius: 4px; padding: 0 4px; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--faint); font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--text); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .brand { margin-bottom: 12px; }
.foot .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
