:root {
  color-scheme: light dark;
  --bg: oklch(0.986 0.005 220);
  --ink: oklch(0.18 0.018 244);
  --subtle: oklch(0.48 0.018 242);
  --card: oklch(0.998 0.002 220);
  --line: oklch(0.895 0.011 224);
  --accent: oklch(0.45 0.11 205);
  --button: oklch(0.78 0.14 205);
  font: 1rem/1.65 Manrope, "Avenir Next", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.125 0.012 240);
    --ink: oklch(0.95 0.006 220);
    --subtle: oklch(0.72 0.014 226);
    --card: oklch(0.18 0.014 238);
    --line: oklch(0.31 0.014 235);
    --accent: oklch(0.78 0.14 205);
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
header { border-bottom: 1px solid var(--line); }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.topbar, .brand, .actions { display: flex; align-items: center; }
.topbar { justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { gap: 0.625rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand img { object-fit: contain; }
.language-picker { position: relative; flex: none; font-size: 0.875rem; }
.language-picker summary { display: flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding-inline: 0.625rem; border-radius: 0.5rem; color: var(--subtle); font-weight: 650; cursor: pointer; list-style: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover { color: var(--ink); background: var(--card); }
.language-picker summary:focus-visible, .language-options a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.language-picker svg { flex: none; width: 1rem; height: 1rem; }
.language-chevron { color: var(--subtle); }
.language-picker[open] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; z-index: 50; inset-inline-end: 0; inset-block-start: calc(100% + 0.5rem); width: max-content; min-width: 11rem; max-width: calc(100vw - 2rem); max-height: min(18rem, 55vh); overflow: auto; overscroll-behavior: contain; margin: 0; padding: 0.25rem; list-style: none; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--card); box-shadow: 0 0.75rem 1.5rem rgb(0 0 0 / 0.16); }
.language-options :is(a, span) { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.75rem; padding: 0.375rem 0.625rem; border-radius: 0.5rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.language-options a:hover, .language-options [aria-current] { background: var(--bg); }
.language-options [aria-current] { font-weight: 650; }
@media (min-width: 64rem) { .language-picker summary { min-height: 2.5rem; } }
main { padding-block: clamp(2.25rem, 6vw, 5rem); }
h1, h2, p { margin: 0; }
h1 { max-width: 23ch; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.intro { max-width: 68ch; margin-block: 1rem 2.25rem; color: var(--subtle); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan { padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--line); border-radius: 0.875rem; background: var(--card); }
.plan h2 { font-size: 1.125rem; line-height: 1.25; }
.plan p:not(.price) { color: var(--subtle); }
.plan .savings { margin-bottom: 0.65rem; font-size: 0.875rem; color: var(--accent); }
.price { margin-block: 0.55rem 0.75rem; font-variant-numeric: tabular-nums; }
.price strong { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; }
.price span, .actions span { font-size: 0.875rem; color: var(--subtle); }
.details { max-width: 68ch; margin-top: 1.75rem; color: var(--subtle); }
.details p + p { margin-top: 0.55rem; }
.actions { flex-wrap: wrap; gap: 0.5rem 0.9rem; margin-top: 1.25rem; }
.button { background: var(--button); color: oklch(0.12 0.012 238); border-radius: 0.75rem; font-weight: 700; padding: 0.6rem 0.9rem; text-decoration: none; }
.button:hover { text-decoration: underline; }

.marketing-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-bottom: 0.75rem; font-size: 0.9rem; }
.marketing-nav a, .marketing-nav span { padding-block: 0.2rem; }
.marketing-nav a { color: var(--subtle); text-decoration: none; }
.marketing-nav a:hover { color: var(--ink); text-decoration: underline; }
.marketing-nav [aria-current] { font-weight: 700; }
.marketing-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.marketing-home-intro { margin-bottom: clamp(1.75rem, 5vw, 3.25rem); }
.marketing-home-intro .intro { margin-bottom: 1rem; }
.home-preview-frame { display: block; width: 100%; height: 720px; border: 0; }
@media (max-width: 47.99rem) { .home-preview-frame { height: 940px; } }
.marketing-hero .intro { margin-bottom: 1rem; }
.app-note { font-size: 0.875rem; color: var(--subtle); margin-top: 0.75rem; }
.demo-copy h2, .topic h2, .topic-list h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.3; }
.demo-copy p { color: var(--subtle); margin-block: 0.35rem 0.75rem; }
.scene { border: 1px solid var(--line); border-radius: 0.875rem; overflow: hidden; background: var(--card); }
.stage { position: relative; aspect-ratio: 3 / 2; isolation: isolate; overflow: hidden; background: #101820; }
.stage .scene-bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage .mascot { position: absolute; bottom: 3%; right: 4%; width: 33%; height: auto; aspect-ratio: 1; object-fit: contain; }
.scene-status { position: absolute; z-index: 1; left: 3%; bottom: 5%; max-width: 57%; padding: 0.35rem 0.55rem; border-radius: 0.5rem; background: #0b121cf0; color: white; font-size: clamp(0.75rem, 1.5vw, 0.875rem); }
.demo-events { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.7rem; }
.demo-events[hidden] { display: none; }
.demo-events button { min-height: 2.6rem; padding-inline: 0.75rem; font: inherit; font-size: 0.9rem; cursor: pointer; border: 1px solid var(--line); border-radius: 0.6rem; color: var(--ink); background: var(--bg); }
.demo-events button:hover, .demo-events button[aria-pressed="true"] { border-color: var(--accent); }
.demo-events button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.style-grid figure { margin: 0; }
.style-grid img { display: block; width: 100%; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 0.875rem; }
.style-grid figcaption { margin-top: 0.25rem; color: var(--subtle); font-size: 0.875rem; }
.topic, .topic-list { margin-top: clamp(2.25rem, 5vw, 4rem); }
.topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.topic-list p, .steps li, .faq dd { margin-top: 0.5rem; color: var(--subtle); }
.steps { max-width: 68ch; padding-inline-start: 1.4rem; }
.steps li { padding-inline-start: 0.45rem; }
.steps li + li { margin-top: 0.8rem; }
.faq { max-width: 74ch; margin-block: 0.75rem 0; }
.faq div { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 700; }
.faq dd { margin-inline-start: 0; }
.table-wrap { margin-top: 1rem; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: clamp(0.8rem, 1.8vw, 1rem); }
.table-wrap :is(th, td) { text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); padding: 0.65rem 0.55rem; overflow-wrap: anywhere; }
.table-wrap th { background: var(--card); }

@media (max-width: 56rem) {
  .marketing-hero, .topic-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 46rem) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}
