/* TOOR website. Brand: ink #1A1A18, yellow #F2C200, paper #F5F5F2. */
@font-face { font-family: "Familjen Grotesk"; font-weight: 400; font-display: swap; src: url("/fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 600; font-display: swap; src: url("/fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #1a1a18;
  --paper: #f5f5f2;
  --yellow: #f2c200;
  --ysoft: #fff5c7;
  --line: #e2e2dc;
  --line2: #c9c9c1;
  --text2: #45453f;
  --muted: #5c5c56;
  --light: #cfcfc8;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 "Familjen Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--text2); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--yellow); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 104px; padding-bottom: 96px; }
.rel { position: relative; }
.narrow { max-width: 16em; }
.lead { margin-top: 20px; font-size: 20px; color: var(--text2); max-width: 32em; }
.light { color: var(--light); }
.small { font-size: 15px; margin-top: 16px; }
.muted { color: var(--muted); }
.muted-light { color: var(--light); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px; border-radius: 8px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn-big { min-height: 56px; padding: 16px 24px; font-size: 18px; font-weight: 700; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { color: var(--paper); background: #33332f; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); background: #e3b600; }
.btn-line { display: inline-flex; align-items: center; min-height: 56px; padding: 0 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header: stays at the top while scrolling */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 245, 242, 0.96); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(245, 245, 242, 0.85); backdrop-filter: blur(8px); } }
section[id] { scroll-margin-top: 88px; }
.top-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-mark rect { fill: var(--ink); }
.logo-mark path { stroke: var(--yellow); stroke-width: 3.2; stroke-linecap: round; fill: none; }
.nav { display: flex; gap: 28px; flex-grow: 1; font-size: 16px; }
.nav a, .login, .lang { text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 16px; }
.lang { border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.top-actions .btn { font-size: 16px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 64px; padding-bottom: 96px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-panel { position: relative; background: var(--yellow); border-radius: 16px; padding: 28px; overflow: hidden; }
.panel-stripes { position: absolute; right: -18px; top: -14px; width: 150px; height: 150px; }
.panel-stripes path, .corner-stripes path { stroke-width: 12; stroke-linecap: round; fill: none; }
.panel-stripes path { stroke: var(--ink); }
.day { position: relative; list-style: none; margin: 72px 0 0; padding: 24px 24px 8px; background: var(--white); border-radius: 12px; }
.day li { display: grid; grid-template-columns: 72px 18px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid #efefea; font-size: 17px; line-height: 1.4; }
.day li:last-child { border-bottom: 0; }
.day .day-title { display: block; font-size: 15px; color: var(--muted); padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.when { font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--ink); }
.day .last .dot { background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.day strong { display: block; font-weight: 600; }
.day .muted { display: block; }

/* Dark band */
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: var(--paper); }
.corner-stripes { position: absolute; right: 24px; top: 80px; width: 96px; height: 96px; }
.corner-stripes path { stroke: var(--yellow); }
.chain { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.chain li { border-top: 3px solid var(--yellow); padding-top: 18px; }
.chain h3 { margin: 6px 0 8px; }
.chain p { color: var(--light); font-size: 17px; }
.step-n { font-size: 15px; color: #a6a69e; }

/* Columns */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.parts { margin-top: 88px; }
.parts h3 { margin-bottom: 10px; }
.parts p { color: var(--text2); font-size: 17px; }

/* Chat */
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bubble { background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 18px 20px; font-size: 18px; line-height: 1.45; }
.bubble-answer { align-self: flex-end; background: var(--ysoft); border-color: var(--ysoft); border-radius: 14px 14px 4px 14px; max-width: 26em; font-size: 17px; }

/* Calculator */
.soft { background: var(--ysoft); }
.calc { margin-top: 32px; display: grid; gap: 10px; max-width: 30em; }
.calc label { font-size: 17px; margin-top: 12px; }
.calc output { font-weight: 700; }
.calc input[type="range"] { width: 100%; accent-color: var(--ink); min-height: 32px; }
.calc select, .form input, .form select, .form textarea { font: inherit; font-size: 17px; padding: 10px 12px; min-height: 48px; border: 1px solid var(--line2); border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
.calc-result { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 36px; }
.calc-now { margin-top: 6px; font-size: 22px; font-weight: 600; }
.calc-result .muted-light + .calc-big { margin-top: 6px; }
.calc-now + .muted-light { margin-top: 32px; }
.calc-big { font-size: 64px; line-height: 1; font-weight: 700; color: var(--yellow); letter-spacing: -0.02em; }
.calc-money { margin-top: 10px; font-size: 22px; font-weight: 600; }
.calc-compare { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--text2); color: var(--light); }

/* Repeat and field */
.line-top { border-top: 1px solid var(--line); }
.line-top h2 { font-size: clamp(30px, 3.4vw, 40px); }
.pills { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; font-size: 16px; }

/* Integrations band */
.band { background: #efefea; }
.band-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: baseline; padding-top: 56px; padding-bottom: 56px; }
.band-title { font-size: 20px; font-weight: 600; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 18px; color: var(--text2); }

/* Hypercare */
.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hc-price { margin-top: 28px; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.hc-price span, .plan-price span { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--text2); }
#starten .btn { margin-top: 28px; }
.hc { list-style: none; margin: 0; padding: 0; }
.hc li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.num { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hc strong { display: block; font-size: 20px; font-weight: 600; }
.hc .muted { display: block; margin-top: 6px; font-size: 17px; color: var(--text2); }

/* Prices */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.plan-main { border: 2px solid var(--ink); }
.plan h3 { font-size: 26px; font-weight: 700; }
.plan .muted { margin-top: 8px; font-size: 17px; color: var(--text2); }
.plan-price { margin-top: 28px; font-size: 56px; font-weight: 700; letter-spacing: -0.02em; }
.plan ul { margin: 24px 0 28px; padding-left: 20px; font-size: 17px; line-height: 1.8; }

/* Film */
.film { margin-top: 40px; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }

/* Demo form */
.yellow { background: var(--yellow); }
.yellow a { color: var(--ink); }
.form { display: grid; gap: 8px; background: var(--white); border-radius: 16px; padding: 32px; }
.form label { font-size: 16px; font-weight: 600; margin-top: 10px; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; margin-top: 16px; }
.form .check input { width: 22px; height: 22px; min-height: 0; }
.form [aria-invalid="true"] { border: 2px solid #b3261e; }
.form .btn { margin-top: 20px; justify-self: start; }
.form-status { min-height: 1.5em; font-size: 16px; }
.form-status.ok { color: #1e7047; font-weight: 600; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }

/* Footer */
.foot { background: var(--ink); color: var(--light); font-size: 15px; }
.foot a { color: var(--light); }
.foot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 24px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--paper); font-size: 17px; }
.foot-brand .logo-mark rect { fill: none; }
.foot-copy { padding-top: 0; padding-bottom: 40px; color: #8a8a83; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal p, .legal ul { margin-top: 12px; color: var(--text2); }
.legal li { margin-top: 6px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .top-actions .login { display: none; }
  .hero, .cols2, .plans { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cols3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .parts { margin-top: 56px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .corner-stripes { display: none; }
  .foot-row { grid-template-columns: minmax(0, 1fr); }
  .form, .calc-result, .plan { padding: 24px; }
}
@media (max-width: 480px) {
  .top-actions .btn { display: none; }
  .day li { grid-template-columns: 60px 14px minmax(0, 1fr); gap: 10px; font-size: 16px; }
  .calc-big { font-size: 52px; }
  .plan-price { font-size: 46px; }
}
