/* KasTec's website: home, pricing and trial. Light and dark, phone to desktop. */
@font-face { font-family: "Geist"; font-display: swap; font-weight: 100 900; src: url("geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-display: swap; font-weight: 100 900; src: url("geist-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #f6f8fb; --paper: #ffffff; --text: #141c27; --muted: #5d6978; --border: #e1e6ed; --accent: #2563eb;
  --accent-text: #ffffff; --soft: #eef3fe; --ok: #15803d; --hero: linear-gradient(180deg, #eaf0fd 0%, #f6f8fb 100%); --dot: #c9d3e3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1118; --paper: #141b24; --text: #e8edf3; --muted: #94a1b0; --border: #263241; --accent: #4f8bff;
    --soft: #172338; --ok: #4ade80; --hero: linear-gradient(180deg, #121c2e 0%, #0c1118 100%); --dot: #26344a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1118; --paper: #141b24; --text: #e8edf3; --muted: #94a1b0; --border: #263241; --accent: #4f8bff;
  --soft: #172338; --ok: #4ade80; --hero: linear-gradient(180deg, #121c2e 0%, #0c1118 100%); --dot: #26344a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Geist", system-ui, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

nav.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); }
nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: inherit; }
.brand span { color: var(--accent); }
nav.top .links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
nav.top .links a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.top .links a:hover, nav.top .links a.on { color: var(--text); }
.menu-btn { display: none; margin-left: auto; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--paper); color: var(--text); cursor: pointer; }
.menu-btn svg.i { width: 20px; height: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font: inherit;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--paper); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.big { padding: 13px 22px; font-size: 16px; }
nav.top .links a.btn { padding: 7px 14px; font-size: 14px; color: var(--accent-text); }

.hero { background: var(--hero); padding: 84px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.07; letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 860px; }
.hero p.sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
.shot { margin: 46px auto 0; max-width: 1040px; border-radius: 14px; border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(15, 30, 60, .35); background: var(--paper); }
.shot img { display: block; width: 100%; height: auto; }

section { padding: 64px 0; }
section[id] { scroll-margin-top: 64px; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; }
section .intro { color: var(--muted); font-size: 18px; max-width: 700px; margin: 0 0 34px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 22px 22px 18px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--accent); display: grid; place-items: center;
  margin-bottom: 12px; font-weight: 700; }

.logos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.logos span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); font-weight: 550; font-size: 15px; }

.band { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 30px; position: relative; margin: 10px 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--soft);
  color: var(--ok); font-weight: 700; font-size: 12px; display: grid; place-items: center; margin-top: 3px; }

/* pricing */
.toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--paper); margin-bottom: 28px; }
.toggle button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.toggle button.on { background: var(--accent); color: var(--accent-text); }
.toggle .save { font-weight: 500; opacity: .85; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: left; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1020px) { .features, .integrations { grid-template-columns: repeat(2, 1fr); } }
.plan { background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; position: relative; }
.plan .tag { position: absolute; top: -12px; left: 26px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 650;
  padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .for { color: var(--muted); font-size: 15px; margin: 2px 0 16px; }
.plan .price { white-space: nowrap; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 13.5px; margin: 6px 0 18px; min-height: 20px; }
.plan ul.checks { margin-bottom: 22px; flex: 1; font-size: 15px; }
.addons { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin: 8px 0 0; }

/* trial */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
code { font-family: "Geist Mono", ui-monospace, monospace; font-size: .9em; background: var(--soft); padding: 1px 6px; border-radius: 5px; }
.note { background: var(--soft); border-radius: 12px; padding: 14px 18px; color: var(--text); }

footer.site { border-top: 1px solid var(--border); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); }
footer.site .right { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

/* home and inner-page heroes: a coloured phrase, dots at the sides */
.hero h1 em { font-style: normal; color: var(--accent); }
.hero.dots { position: relative; overflow: hidden; }
.hero.dots::before, .hero.dots::after { content: ""; position: absolute; top: 40px; width: 300px; height: 360px; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.6px); background-size: 26px 26px; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.hero.dots::before { left: 0; }
.hero.dots::after { right: 0; transform: scaleX(-1); top: 120px; }
.hero.dots .wrap { position: relative; }
.hero.short { padding: 64px 0 44px; }
.hero.short h1 { font-size: clamp(32px, 4.6vw, 50px); }
svg.i { width: 18px; height: 18px; flex: none; }

/* feature cards: an icon, a title with a short line under it, a few lines */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 28px 28px 24px;
  box-shadow: 0 14px 34px -24px rgba(15, 30, 60, .35); }
.feature svg.i { width: 34px; height: 34px; color: var(--accent); stroke-width: 1.6; }
.feature h3 { font-size: 20px; letter-spacing: -0.01em; margin: 18px 0 0; }
.feature h3::after { content: ""; display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--accent); margin: 14px 0 16px; }
.feature p { color: var(--muted); margin: 0; }

/* integrations */
.integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.integration { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.integration .head { display: flex; align-items: center; gap: 12px; }
.integration .head svg.i { width: 22px; height: 22px; color: var(--accent); }
.integration h3 { margin: 0; font-size: 18px; }
.integration p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.integration p.needs { color: var(--text); font-size: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.band .integration { background: var(--bg); }

/* download tables */
.release { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.release .rhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.release .rhead b { font-size: 17px; }
.release .rhead .notes { color: var(--muted); font-size: 14px; margin-left: auto; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; background: var(--ok); color: #fff; text-transform: uppercase; }
.tag.lts { background: var(--accent); }
.tablewrap { overflow-x: auto; }
table.rel { width: 100%; border-collapse: collapse; font-size: 15px; }
table.rel th, table.rel td { text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.rel th { font-weight: 650; }
table.rel tr:last-child td { border-bottom: 0; }
table.rel td.size { white-space: nowrap; }
table.rel td.sum { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; word-break: break-all; color: var(--muted); }
.band table.rel { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; }

/* features page */
.fnav-wrap { position: sticky; top: 64px; z-index: 4; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); }
.fnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.fnav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; }
.fnav a:hover, .fnav a.on { background: var(--soft); color: var(--accent); }
section.fsec { scroll-margin-top: 120px; }
.kicker { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px; }
.frow { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: center; margin: 44px 0; }
.frow:nth-of-type(even) .ftext { order: 2; }
.ftext h3 { font-size: 24px; letter-spacing: -0.015em; margin: 0 0 10px; }
.ftext p { color: var(--muted); margin: 0 0 14px; }
.ftext ul.checks { font-size: 15px; }
.fshot { display: block; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 24px 50px -30px rgba(15, 30, 60, .4); }
.fshot img { display: block; width: 100%; height: auto; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 12px; }
.mini { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.band .mini { background: var(--bg); }
.mini h3 { margin: 0 0 6px; font-size: 17px; }
.mini p { margin: 0; color: var(--muted); font-size: 15px; }

/* pricing calculator */
.calc-sec { border-top: 1px solid var(--border); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin: 0 auto; text-align: left; }
.calc-in, .calc-out { background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; }
.calc-in label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
.calc-in label:first-child { margin-top: 0; }
.calc-in .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.calc-in input[type=number] { width: 100%; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); }
.calc-range { display: grid; grid-template-columns: 1fr 110px; gap: 14px; align-items: center; }
.calc-range input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toggle.small { margin: 20px 0 0; }
.toggle.small button { font-size: 13.5px; padding: 6px 13px; }
.calc-out { display: flex; flex-direction: column; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.calc-plan { margin: 0 0 4px; color: var(--muted); }
.calc-plan b { color: var(--text); font-size: 20px; }
.calc-price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.calc-price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.calc-out > p.muted { margin: 10px 0 0; font-size: 15px; }
.calc-save { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 15px; }
.calc-save:empty { display: none; }
.calc-save .ok { color: var(--ok); font-weight: 650; }
.calc-out .btn { margin-top: auto; align-self: flex-start; }
.calc-out .calc-save + .btn, .calc-out p + .btn { margin-top: 20px; }
.calc-note { max-width: 980px; margin: 16px auto 0; font-size: 13px; text-align: left; }

/* "What do you run?" */
.accent { font-style: normal; color: var(--accent); }
.chooser-sec { border-top: 1px solid var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chips button { font: inherit; font-size: 15px; font-weight: 550; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--paper); color: var(--text); cursor: pointer; }
.chips button:hover { border-color: var(--accent); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.yours { max-width: 1000px; margin: 30px auto 0; }
.yours-empty { text-align: center; }
.yours-head { font-weight: 650; font-size: 18px; margin: 0 0 14px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.idea { display: block; background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.idea:hover { border-color: var(--accent); }
.idea b { display: block; margin-bottom: 4px; }
.idea span { color: var(--muted); font-size: 15px; }
.yours-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* privacy and terms */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; margin: 0 0 12px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; }
.legal .lead { font-size: 19px; color: var(--text); margin: 0 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin: 8px 0; }
.legal li b { color: var(--text); }
.draft-note { display: inline-block; background: #fef3c7; color: #78350f; border-radius: 8px; padding: 6px 12px; font-weight: 600;
  font-size: 14px; margin: 0 0 18px; }

@media (max-width: 880px) {
  .cards, .plans, .steps, .features, .integrations, .frow, .calc { grid-template-columns: 1fr; }
  .frow { gap: 20px; margin: 30px 0; }
  .frow:nth-of-type(even) .ftext { order: 0; }
  .fnav-wrap { top: 64px; }
  .hero.dots::before, .hero.dots::after { display: none; }
  .split, .addons, .req { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  nav.top .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; box-shadow: 0 18px 30px -20px rgba(15, 30, 60, .35); }
  nav.top .links.open { display: flex; }
  nav.top .links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  nav.top .links a.btn { margin-top: 12px; padding: 11px 14px; border-bottom: 0; font-size: 15px; }
  .hero { padding: 56px 0 40px; }
  section { padding: 46px 0; }
}
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
