/* KRYSTAL public site. One dark brand look, matching the app's sign-in page. */
:root {
  color-scheme: dark;
  --night: #02070d;
  --panel: #071624;
  --panel-2: #0a1d30;
  --line: #16334d;
  --text: #eaf4fc;
  --muted: #9db2c4;
  --blue: #29b6ff;
  --blue-deep: #0a6fd6;
  --red: #e0352b;
  --good: #3fd08a;
  --bad: #ff6b5e;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: #7fd3ff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 16px; top: 16px; background: var(--panel); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(2, 7, 13, 0.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand img { display: block; width: 190px; }
.site-header nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }

/* One-of-a-kind statement, first thing on every page */
.statement { background: var(--red); color: #fff; }
.statement p { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(19px, 2.6vw, 28px); line-height: 1.15; text-align: center; padding-block: 12px; text-wrap: balance; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--blue-deep); color: #fff; }
.btn-primary:hover { background: #1583f0; color: #fff; }
.btn-ghost { border-color: rgba(41, 182, 255, 0.55); color: var(--blue); }
.btn-ghost:hover { border-color: var(--blue); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 78% 20%, rgba(10, 111, 214, 0.28), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(224, 53, 43, 0.12), transparent 50%),
    var(--night);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-block: 72px 80px; }
.kicker { font-family: var(--display); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); font-size: 15px; }
.hero h1 { font-size: clamp(52px, 10vw, 112px); font-weight: 800; text-transform: uppercase; margin-top: 14px; }
.hero h1 .red { color: var(--red); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; margin-top: 22px; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Page intro (inner pages) */
.intro .wrap { padding-block: 56px 36px; }
.intro h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; margin-top: 10px; }
.intro .lede { color: var(--muted); max-width: 62ch; margin-top: 16px; font-size: 19px; }

/* Sections */
.section { padding-block: 64px; border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.section .sub { color: var(--muted); max-width: 62ch; margin-top: 12px; }
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { margin-top: 24px; }
.prose h3 { font-size: 26px; font-weight: 700; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; background: var(--panel-2); padding: 2px 6px; border-radius: 4px; }

/* Two-load comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.load { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.load h3 { font-size: 26px; font-weight: 700; }
.load .offer { font-family: var(--display); font-size: 44px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.load dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 18px 0 0; font-variant-numeric: tabular-nums; }
.load dt { color: var(--muted); }
.load dd { margin: 0; text-align: right; font-weight: 600; }
.load .net { border-top: 1px solid var(--line); padding-top: 10px; font-size: 19px; }
.load .net.good { color: var(--good); }
.load .net.low { color: var(--bad); }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 32px; }
.cell { background: var(--panel); padding: 24px; display: grid; gap: 8px; align-content: start; }
.cell h3 { font-size: 24px; font-weight: 700; color: var(--text); }
.cell p { color: var(--muted); font-size: 16px; }

/* Steps: a real sequence */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--blue); }
.steps h3 { font-size: 22px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 16px; }

/* Pricing */
.price-band { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.price-big { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 76px); line-height: 1; }
.price-big span { font-size: 22px; font-weight: 700; color: var(--muted); }
.table-scroll { overflow-x: auto; margin-top: 28px; }
table.tiers { width: 100%; max-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tiers th, .tiers td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tiers thead th { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tiers tbody th { font-weight: 600; }
.tiers td { font-family: var(--display); font-size: 26px; font-weight: 800; }
.tiers td span { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.calc form, .calc .result { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.calc h2 { font-size: 30px; }
.calc > * { min-width: 0; }
.calc fieldset { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; min-width: 0; }
.calc legend { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.calc label { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 12px; font-size: 15px; }
.calc input { width: 100%; font: 600 16px var(--body); color: var(--text); background: var(--night); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.calc input:focus { border-color: var(--blue); outline: none; }
.result { display: grid; gap: 14px; align-content: start; }
.result .headline { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; font-variant-numeric: tabular-nums; }
.result dt { color: var(--muted); }
.result dd { margin: 0; text-align: right; font-weight: 600; }
.result .verdict { border-radius: 8px; padding: 12px 14px; font-weight: 600; background: var(--panel-2); }
.result .verdict.good { color: var(--good); }
.result .verdict.low { color: var(--bad); }
.cta-strip { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.cta-strip h2 { font-size: 32px; }

/* Footer */
.site-footer { padding-block: 40px 28px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .tagline { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--text); letter-spacing: 0.04em; }
.foot p { max-width: 46ch; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--blue); }
.legal { margin-top: 28px; font-size: 13px; }

@media (max-width: 880px) {
  .compare, .calc { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .brand img { width: 150px; }
  .site-header nav { gap: 14px; font-size: 14px; }
  .calc label { grid-template-columns: 1fr 110px; }
  .hero .wrap { padding-block: 48px 56px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.gap-top { margin-top: 24px; }
