:root {
  --orange: #F26B1D;
  --orange-dark: #C9520F;
  --slate: #1F2A33;
  --slate-soft: #3A4752;
  --concrete: #9AA3A8;
  --paper: #F5F1E8;
  --card: #FBF9F4;
  --line: #E2DCCF;
  --text: #1F2A33;
  --muted: #4E5A63;
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161E24;
    --card: #1F2A33;
    --line: #2E3B45;
    --text: #EDE8DD;
    --muted: #A9B2B7;
    --slate-soft: #C9CFD2;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Barlow", "Inter", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--slate); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Barlow", sans-serif; font-weight: 700; font-size: 1.35rem; }
.brand img { width: 36px; height: 36px; }
.brand .q { color: var(--orange); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--slate); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-secondary { border: 2px solid var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--concrete); }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.3fr 1fr; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .note { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
.hero-icon { justify-self: center; width: min(280px, 70vw); height: auto; filter: drop-shadow(0 18px 30px rgba(31, 42, 51, 0.18)); }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-sub { color: var(--muted); max-width: 60ch; margin-bottom: 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.split { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

.card .price { color: var(--text); font-family: "Barlow", sans-serif; font-weight: 700; font-size: 2rem; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 0.98rem; }
.card.featured { border: 2px solid var(--orange); }

/* Legal and support pages */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page h3 { margin-top: 1.4em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.meta { color: var(--muted); font-size: 0.95rem; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px; padding: 14px 18px; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.96rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details p:last-child { margin-bottom: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 820px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-icon { order: -1; width: 120px; justify-self: start; }
  .grid, .split { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 600px) {
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin-bottom: 12px; background: var(--card); }
  table.stack td { display: block; border: 0; padding: 6px 0; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
}
