/* THOST marketing site — plain CSS, no frameworks, system fonts only. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --border: #dde3ea;
  --text: #16202b;
  --muted: #5b6875;
  --accent: #0b63ce;
  --accent-hover: #084ea3;
  --accent-soft: #e6f0fc;
  --on-accent: #ffffff;
  --good: #1a7f4b;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 12px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --bg-alt: #151c24;
    --surface: #1a222c;
    --border: #2a3441;
    --text: #e8edf2;
    --muted: #9aa7b5;
    --accent: #5aa2ff;
    --accent-hover: #7db6ff;
    --accent-soft: #1b2a40;
    --on-accent: #0b1220;
    --good: #4cc47f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
ul { padding-left: 1.2em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.lead { font-size: 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.3;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn.block { display: block; text-align: center; width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 550; }
.nav a:hover { color: var(--accent); }
.nav .btn { padding: .5rem 1rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: .45rem .6rem; color: var(--text); cursor: pointer;
}
.nav-toggle svg { display: block; width: 22px; height: 22px; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1rem;
    margin-left: 0;
  }
  .nav a { padding: .6rem 0; }
  .nav .btn { margin-top: .5rem; text-align: center; }
  .js .nav:not(.open) { display: none; }
}

/* Hero */
.hero { padding: 5rem 0 4rem; background:
  radial-gradient(60rem 30rem at 80% -10%, var(--accent-soft), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: .5rem; }

.price-card-hero {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem;
}
.price-card-hero .row { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--border); gap: 1rem; }
.price-card-hero .row:last-of-type { border-bottom: 0; }
.price-card-hero .label { font-weight: 650; }
.price-card-hero .val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-card-hero .val.strike { color: var(--muted); }
.price-card-hero .val.strike s { opacity: .8; }
.price-card-hero .val.good { color: var(--good); font-weight: 700; }
.price-card-hero .foot { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Feature grid */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); }

/* Pricing */
.billing-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px;
  background: var(--surface); margin-bottom: 2rem;
}
.billing-toggle button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 650;
  padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.billing-toggle .save { font-size: .8rem; font-weight: 600; opacity: .85; }
.no-js .billing-toggle { display: none; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.plan .badge {
  position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.plan .for { color: var(--muted); margin-bottom: 1rem; min-height: 2.6em; }
.plan .price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan .price .per { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .alt-price { color: var(--muted); font-size: .92rem; margin: .5rem 0 1.25rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--good); margin-top: .25rem; }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 1.75rem; color: var(--muted); font-size: .92rem; max-width: 46rem; }

/* Comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--bg-alt); font-weight: 700; font-size: .95rem; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--good); font-weight: 700; }
.compare .no { color: var(--muted); }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: .75rem; }
.faq summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta { background: var(--accent); color: var(--on-accent); padding: 3.5rem 0; }
.cta h2 { color: inherit; }
.cta p { color: inherit; opacity: .9; }
.cta .btn.primary { background: var(--on-accent); color: var(--accent); }
.cta .btn.primary:hover { opacity: .9; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .fh { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Legal pages */
.legal { max-width: 46rem; padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.notice {
  border: 1px solid #d99a00; background: color-mix(in srgb, #ffb400 14%, var(--surface));
  color: var(--text); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0 2rem;
}
.notice strong { display: block; margin-bottom: .25rem; }

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Inner pages */
.page-hero { padding: 3.5rem 0 3rem; }
.page-hero .container { max-width: 52rem; margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.prose { max-width: 52rem; }
.prose h2 { margin-top: 2.25rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose .grid { margin: 1.5rem 0 .5rem; }
.prose .compare-wrap { margin: 1.25rem 0; }
.steps { padding-left: 1.4em; counter-reset: none; }
.steps li { padding-left: .25em; }
.card h2 { font-size: 1.2rem; margin-bottom: .35rem; }
table.spec { min-width: 620px; }
table.spec td { font-variant-numeric: tabular-nums; }
table.spec tfoot th, table.spec tfoot td { border-bottom: 0; background: var(--bg-alt); }
table.spec tfoot .btn { padding: .45rem .9rem; font-size: .92rem; white-space: nowrap; }
