/* Hourseal website: shared by the landing page and the docs. */
:root {
  --bg: #ffffff; --bg-soft: #f6f7fb; --fg: #151827; --muted: #5d6378; --line: #e4e6ef;
  --card: #ffffff; --brand: #5b4cf0; --brand-2: #8b5cf6; --brand-soft: #eeecff; --brand-fg: #ffffff;
  --ok: #12a46b; --ok-soft: #e3f6ee; --warn: #d98a00; --warn-soft: #fff4dc; --red: #e2445c;
  --shadow: 0 1px 2px rgba(20, 22, 40, .06), 0 12px 32px -12px rgba(20, 22, 40, .18);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1120; --bg-soft: #151830; --fg: #eceefa; --muted: #a2a8c3; --line: #272b47;
    --card: #181b33; --brand: #8b7dff; --brand-2: #b18cff; --brand-soft: #241f4d; --brand-fg: #0f1120;
    --ok: #3ddc97; --ok-soft: #12322a; --warn: #ffbf47; --warn-soft: #3a2e12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 15px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--brand-fg); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-fg); box-shadow: 0 8px 20px -8px var(--brand); }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
@media (max-width: 720px) { .nav a.hide-sm { display: none; } .nav { gap: 14px; } }

/* Sections */
section { padding: 88px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.soft { background: var(--bg-soft); }

/* Hero */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 700px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 540px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero .fine span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Product mock */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; position: relative; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-title { font-weight: 700; }
.mock-sub { color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.grid-ts { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.grid-ts th { color: var(--muted); font-weight: 500; text-align: right; padding: 6px 6px; }
.grid-ts th:first-child, .grid-ts td:first-child { text-align: left; }
.grid-ts td { padding: 9px 6px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.grid-ts td.dim { color: var(--muted); }
.grid-ts tr.total td { font-weight: 700; }
.grid-ts .item { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); }
.timer b { font-variant-numeric: tabular-nums; font-size: 18px; }
.timer .stop { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.timer .stop::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--brand-fg); }
.seal { position: absolute; right: -22px; bottom: -30px; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; transform: rotate(12deg);
  background: radial-gradient(circle, var(--ok) 0 56%, color-mix(in srgb, var(--ok) 70%, #fff) 57% 60%, var(--ok) 61%); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .08em; line-height: 1.2; box-shadow: 0 10px 24px -8px var(--ok); }
.seal small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .04em; opacity: .9; }
@media (max-width: 520px) { .seal { width: 84px; height: 84px; right: -6px; bottom: -34px; font-size: 10px; } }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .tag { margin-top: 14px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); font-size: 20px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature.star { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 4px var(--brand-soft); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Comparison */
.compare { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-soft); font-size: 14px; color: var(--muted); font-weight: 600; }
.compare thead th.us { color: var(--brand); }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }

/* Pricing */
.price-box { max-width: 880px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.price-calc { padding: 36px; }
.price-calc label { font-weight: 600; display: block; margin-bottom: 6px; }
.seats { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.seats b { color: var(--fg); font-size: 22px; }
input[type=range] { width: 100%; accent-color: var(--brand); height: 28px; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-big { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.price-big .amount { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-big .per { color: var(--muted); }
.price-note { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 22px; }
.price-incl { background: var(--bg-soft); padding: 36px; border-left: 1px solid var(--line); }
.price-incl h3 { font-size: 17px; margin-bottom: 14px; }
.price-incl ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price-incl li { padding: 6px 0 6px 28px; position: relative; font-size: 15px; }
.price-incl li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.price-table { max-width: 880px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.price-table button { all: unset; cursor: pointer; text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.price-table button:hover { border-color: var(--brand); }
.price-table button[aria-pressed=true] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.price-table .u { display: block; font-size: 12px; color: var(--muted); }
.price-table .p { display: block; font-weight: 700; font-size: 17px; }
@media (max-width: 820px) { .price-box { grid-template-columns: 1fr; } .price-incl { border-left: 0; border-top: 1px solid var(--line); } .price-table { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA band */
.cta-band { margin: 0 auto; max-width: 1080px; border-radius: 24px; padding: 56px 32px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.cta-band p { opacity: .9; font-size: 18px; margin: 0 0 26px; }
.cta-band .btn { background: #fff; color: #2b2170; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.foot a:hover { color: var(--fg); }

/* Docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 40px 20px 64px; max-width: 1120px; margin: 0 auto; }
.docs-nav { position: sticky; top: 88px; align-self: start; }
.docs-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.docs-nav a:hover { color: var(--fg); background: var(--bg-soft); }
.docs-nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.docs-nav .group { margin-bottom: 24px; }
.doc { max-width: 760px; }
.doc h1 { font-size: 38px; margin-bottom: 18px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--fg) 88%, var(--muted)); }
.doc li { margin: 4px 0; }
.doc code { background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.doc blockquote { margin: 18px 0; padding: 14px 18px; background: var(--brand-soft); border-radius: 10px; }
.doc .table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: 14px; }
.doc-next { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.doc-next a { text-decoration: none; font-weight: 600; }
.doc-next small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 820px) {
  .docs { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .docs-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .docs-nav .group { display: contents; }
  .docs-nav h4 { display: none; }
  .docs-nav a { white-space: nowrap; border: 1px solid var(--line); }
  .doc h1 { font-size: 30px; }
}
