/* Nozero website. Futura (or Jost, its open counterpart) for display, Open Sans for
   text. Brand #E1391A from the logo, on warm paper and deep ink. */

@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --display: "Futura", "Futura PT", "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --text: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --paper: #f7f4f0;
  --paper-2: #efe9e3;
  --card: #fffdfb;
  --ink: #171310;
  --ink-soft: #4d4540;
  --muted: #7a706a;
  --line: #e2dad3;
  --red: #e1391a;
  --red-deep: #b92a10;
  --night: #0d0b0a;
  --night-2: #17120f;
  --night-line: rgba(255, 245, 238, .12);
  --night-text: #f3eeea;
  --night-muted: #a99c93;
  --ok: #18a058;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #120f0d; --paper-2: #191411; --card: #1d1714; --ink: #f3eeea; --ink-soft: #cfc4bc;
    --muted: #a99c93; --line: #2e2520; --red: #f0562f; --red-deep: #e1391a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 17px/1.7 var(--text); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.06; letter-spacing: -.01em; margin: 0 0 .45em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 16ch; }
.section-title.wide { max-width: 22ch; }

/* reveal on scroll (only once the script runs, so nothing hides without it) */
.js .reveal { opacity: 0; transform: translateY(28px); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px;
  padding: .72em 1.35em; font: 500 .95rem/1.2 var(--display); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: .95em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--night); color: var(--night-text); }
.btn-dark:hover { background: #000; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { position: relative; font: 500 1rem var(--display); letter-spacing: .02em; text-decoration: none; padding-bottom: 2px; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .4s var(--ease); }
.text-link:hover::after { transform: scaleX(.35); }
.text-link.light { color: var(--night-text); }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }

/* navigation: over the dark hero, then solid once scrolled */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; color: var(--night-text); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; }
.nav .logo-dark { display: none; }
.nav-links { display: flex; gap: 6px; margin-left: 20px; }
.nav-links a { padding: 6px 12px; text-decoration: none; font: 400 .95rem var(--display); letter-spacing: .02em; opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav-signin { text-decoration: none; font: 500 .95rem var(--display); letter-spacing: .02em; }
.menu-btn { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 6px 14px; font: 500 .85rem var(--display); cursor: pointer; }
.mobile-menu { display: grid; padding: 4px clamp(20px, 4vw, 40px) 20px; background: var(--night); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 0; text-decoration: none; font: 500 1.1rem var(--display); border-bottom: 1px solid var(--night-line); }
.nav.solid { background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: saturate(1.4) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@media (prefers-color-scheme: light) { .nav.solid .logo-light { display: none; } .nav.solid .logo-dark { display: block; } }
.nav.solid .mobile-menu { background: var(--paper); }
@media (max-width: 920px) { .nav-links, .nav-signin { display: none; } .menu-btn { display: block; } .nav-cta .btn { display: none; } }

/* hero: the live picture of a backup */
.hero { position: relative; min-height: max(660px, 100svh); background: var(--night); color: var(--night-text); overflow: hidden; display: flex; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 11, 10, .92) 0%, rgba(13, 11, 10, .55) 38%, rgba(13, 11, 10, 0) 64%), linear-gradient(0deg, rgba(13, 11, 10, .9) 0%, rgba(13, 11, 10, 0) 26%); pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-block: 140px 56px; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(3rem, 7.6vw, 6.4rem); font-weight: 500; letter-spacing: -.02em; line-height: .98; margin-bottom: .35em; }
.split .word { display: inline-block; white-space: nowrap; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #d9cfc8; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.hero-status { position: absolute; left: clamp(20px, 4vw, 40px); bottom: 34px; margin: 0; font: 400 .8rem var(--mono); letter-spacing: .04em; color: var(--night-muted); }
.hero-status .status-word { color: var(--night-text); }
.hero-status .status-sep { color: var(--red); margin: 0 .4em; }
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(0deg, rgba(13, 11, 10, .96) 0%, rgba(13, 11, 10, .7) 55%, rgba(13, 11, 10, .3) 100%); }
  .hero-inner { justify-content: flex-end; padding-bottom: 92px; }
}

/* ticker */
.ticker { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); overflow: hidden; padding: 22px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker p { margin: 0; padding-right: .6em; white-space: nowrap; font: 400 clamp(1.1rem, 2vw, 1.5rem) var(--display); letter-spacing: .06em; text-transform: uppercase; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* how it works: sticky stage + scrolling story */
.how { padding: clamp(90px, 12vw, 160px) 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.how-stage { position: sticky; top: 14vh; align-self: start; height: 72vh; max-height: 560px; display: grid; place-items: center; }
.stage-svg { width: min(100%, 460px); height: auto; overflow: visible; }
.stage { opacity: 0; transform-origin: 200px 200px; transition: opacity .7s var(--ease), transform .9s var(--ease); transform: scale(.88) rotate(-6deg); }
.stage.active { opacity: 1; transform: none; }
.ring { fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.2; }
.ring.dashed { stroke-dasharray: 2 9; stroke-opacity: .7; }
.ring.thick { stroke-width: 3; stroke-linecap: round; stroke-opacity: .85; }
.red-stroke { stroke: var(--red); stroke-opacity: 1; }
.dot { fill: var(--ink); }
.dot.red { fill: var(--red); }
.core { fill: var(--red); }
.cell { fill: none; stroke: var(--ink); stroke-opacity: .4; }
.cell.on { fill: var(--red); fill-opacity: .85; stroke: none; }
.scan { stroke: var(--red); stroke-width: 2; }
.stage-capture.active .orbit { animation: spin 26s linear infinite; transform-origin: 200px 200px; }
.stage-prove.active .scan { animation: scan 2.6s var(--ease) infinite alternate; }
.stage-recover.active .red-stroke:first-of-type { stroke-dasharray: 700; animation: draw 2.4s var(--ease) both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { from { transform: translateY(-96px); } to { transform: translateY(96px); } }
@keyframes draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
.how-steps { padding-top: 6vh; }
.how-steps .section-title { margin-bottom: 18vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.step.active { opacity: 1; }
.step h3 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--red); margin-bottom: .3em; }
.step p { font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-stage { top: 76px; height: 34vh; z-index: 2; overflow: hidden; background: var(--paper); box-shadow: 0 18px 18px -6px var(--paper); }
  .stage-svg { width: auto; height: 30vh; }
  .how-steps .section-title { margin-bottom: 10vh; }
  .step { min-height: 52vh; }
}

/* platform: tiles of different sizes */
.platform { padding: clamp(90px, 11vw, 150px) 0; background: var(--paper-2); }
.platform .section-title { margin-bottom: 56px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 18px; perspective: 1200px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; justify-content: flex-end;
  transform-style: preserve-3d; will-change: transform; transition: border-color .3s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { box-shadow: 0 30px 60px -36px rgba(23, 19, 16, .45); }
.tile h3 { font-size: 1.45rem; }
.tile p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.tile-hero { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.tile-hero h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 14ch; }
.tile-hero p { font-size: 1.08rem; max-width: 34em; }
.tile-hero .tile-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.tile-number { justify-content: space-between; }
.tile .big-number { font: 500 clamp(4rem, 7vw, 6rem)/.9 var(--display); color: var(--red); margin: 0 0 auto; letter-spacing: -.03em; }
.tile-number h3 { margin-top: 18px; }
.tile-dark { background: var(--night); border-color: var(--night); color: var(--night-text); }
.tile-dark p { color: var(--night-muted); }
.tile-red { background: var(--red); border-color: var(--red); color: #fff; }
.tile-red p { color: rgba(255, 255, 255, .86); }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.ring-viz { width: 88px; margin-bottom: auto; transform: rotate(-90deg); }
.ring-viz .track { fill: none; stroke: var(--night-line); stroke-width: 8; }
.ring-viz .progress { fill: none; stroke: var(--red); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.in .ring-viz .progress { stroke-dashoffset: 22; }
.pulse-viz { width: 100%; max-width: 260px; margin-bottom: auto; }
.pulse { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; }
.in .pulse { animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0% { stroke-dashoffset: 340; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -340; } }
.code { margin: 0; padding: 18px 20px; border-radius: 12px; background: var(--night); color: #e8ddd5; font: 400 .8rem/1.7 var(--mono); overflow-x: auto; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile-wide { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile-hero, .tile-wide { grid-column: auto; grid-row: auto; } }

/* security */
.security { background: var(--night); color: var(--night-text); padding: clamp(100px, 12vw, 170px) 0; overflow: hidden; }
.security-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.security-statement { position: relative; }
.security h2 { position: relative; font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.02em; margin: 0; }
.orbit-viz { position: absolute; left: -12%; top: 50%; width: 120%; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.orbit-viz span { position: absolute; inset: 0; border: 1px solid var(--night-line); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit-viz span:nth-child(2) { inset: 12%; border-style: dashed; animation-duration: 60s; animation-direction: reverse; }
.orbit-viz span:nth-child(3) { inset: 26%; border-color: rgba(225, 57, 26, .35); animation-duration: 30s; }
.orbit-viz span:nth-child(3)::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px var(--red); }
.security-prose p { color: var(--night-muted); font-size: 1.05rem; margin-bottom: 1.4em; }
.security-prose strong { color: var(--night-text); font-weight: 600; }
@media (max-width: 860px) { .security-grid { grid-template-columns: 1fr; } .orbit-viz { width: 90%; left: 30%; } }

/* pricing: one comparison table */
.pricing { padding: clamp(90px, 11vw, 150px) 0; }
.pricing-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.pricing-head .section-title { margin: 0; }
.period-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: 400 .95rem var(--display); letter-spacing: .02em; color: var(--ink-soft); user-select: none; }
.period-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line); transition: background .3s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.period-toggle:checked + .switch { background: var(--red); }
.period-toggle:checked + .switch::after { transform: translateX(20px); }
.period-toggle:focus-visible + .switch { outline: 2px solid var(--red); outline-offset: 3px; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); }
.plans { width: 100%; min-width: 860px; border-collapse: collapse; }
.plans th, .plans td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .97rem; }
.plans thead th { vertical-align: bottom; padding-block: 28px 24px; font-weight: 400; }
.plans tbody th { font-weight: 400; color: var(--ink-soft); width: 26%; }
.plans td.no { color: var(--muted); }
.plans .plans-status { color: var(--muted); padding-block: 40px; border: 0; }
.calc-mode { margin: -12px 0 28px; flex-wrap: wrap; }
/* the feature names stay in view while the plans scroll sideways */
.plans tbody th, .plans thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); }
@media (max-width: 700px) { .plans { min-width: 720px; } .plans tbody th { width: 128px; min-width: 128px; font-size: .9rem; } .plans th, .plans td { padding-inline: 12px; } }
.plans .featured { background: color-mix(in srgb, var(--red) 6%, transparent); }
.plans thead .featured { box-shadow: inset 0 3px 0 var(--red); }
.plan-name { display: block; font: 500 1.5rem var(--display); }
.plan-for { display: block; color: var(--muted); font-size: .9rem; min-height: 2.8em; margin-bottom: 14px; }
.price { display: block; font-size: .95rem; color: var(--muted); }
.price .amt { font: 500 2.4rem var(--display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.billed { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 18px; }
.recommended { display: block; color: var(--red); font: 500 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.fine { color: var(--muted); font-size: .92rem; margin-top: 22px; }
.fine a { color: var(--red); }
.currency-pick { display: inline-flex; align-items: center; gap: 10px; font: 400 .95rem var(--display); color: var(--ink-soft); }
.currency-pick select { width: auto; padding-right: 18px; font: 500 .95rem var(--display); }

/* plan calculator */
.calc { margin-top: clamp(56px, 7vw, 90px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.calc-title { font: 500 clamp(1.6rem, 3vw, 2.1rem) var(--display); margin: 0 0 8px; }
.calc-lede { margin: 0 0 32px; max-width: 60ch; }
.calc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs { gap: 22px; }
.calc-inputs .hint { flex-basis: 100%; color: var(--muted); font: 400 .82rem var(--text); letter-spacing: 0; }
.calc-period { display: flex; gap: 22px; font: 400 .95rem var(--text); }
.calc-period label { display: inline-flex; align-items: center; gap: 8px; font: inherit; }
.calc-period input { width: auto; accent-color: var(--red); }
.calc-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.calc-summary h4 { font: 500 1rem var(--display); letter-spacing: .02em; margin: 0 0 14px; }
.calc-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.calc-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-lines .sub { color: var(--muted); font-size: .82rem; display: block; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 6px; }
.calc-total strong { font: 500 2rem var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-summary .fine { margin: 6px 0 18px; font-size: .85rem; }

/* about */
.about { padding: clamp(90px, 11vw, 150px) 0; background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-statement { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.015em; margin: 0; }
.about-prose p { color: var(--ink-soft); font-size: 1.08rem; }
.signature { font: 500 1.05rem var(--display); letter-spacing: .02em; color: var(--ink) !important; margin-top: 2em; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* contact */
.contact { padding: clamp(90px, 11vw, 150px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); }
.contact-lines { display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; margin: 36px 0 0; }
.contact-lines dt { font: 400 .85rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-lines dd { margin: 0; }
.contact-lines a { font: 500 1.15rem var(--display); text-decoration: none; letter-spacing: .01em; }
.contact-lines a:hover { color: var(--red); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* forms */
.form { display: grid; gap: 18px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 8px; font: 500 .9rem var(--display); letter-spacing: .02em; }
.form label > input, .form label > textarea, .form label > select { flex-basis: 100%; }
.opt { color: var(--muted); font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
input, textarea, select { width: 100%; font: 400 1rem var(--text); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .6em 0; transition: border-color .25s var(--ease); }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--red); }
select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 4px top 55% / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 0 top 55% / 6px 6px no-repeat; }
[aria-invalid="true"] { border-bottom-color: #d03b3b; }
textarea { resize: vertical; }
.form .btn { justify-self: start; }
.status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.err { color: #d03b3b; }

/* newsletter */
.newsletter { background: var(--red); color: #fff; padding: clamp(56px, 7vw, 90px) 0; }
.news-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; max-width: 20ch; }
.news-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.news-form input[type=email] { flex: 1 1 220px; color: #fff; border-bottom-color: rgba(255, 255, 255, .55); }
.news-form input::placeholder { color: rgba(255, 255, 255, .7); }
.news-form input:focus { border-bottom-color: #fff; }
.news-form .status { flex-basis: 100%; }
.news-form .status.ok, .news-form .status.err { color: #fff; font-weight: 600; }
@media (max-width: 800px) { .news-row { grid-template-columns: 1fr; } }

/* footer */
.footer { background: var(--night); color: var(--night-muted); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand img { height: 26px; width: auto; margin-bottom: 18px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer h2 { font: 500 .8rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--night-text); margin: 0 0 6px; }
.footer nav a, .footer nav .link { color: var(--night-muted); text-decoration: none; font-size: .95rem; }
.footer nav a:hover, .footer nav .link:hover { color: var(--night-text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: .85rem; }
.foot-bottom a { text-decoration: none; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* demo dialog */
.modal { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 22px; padding: 34px; background: var(--card); color: var(--ink); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .5); }
.modal::backdrop { background: rgba(13, 11, 10, .62); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 1.9rem; }
.modal .muted { margin: 0; }
.close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* trust: each framework in plain words */
.trust { padding: clamp(90px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.trust-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.trust-head .section-title { margin: 0; }
.trust-head p { margin: 0; max-width: 34em; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--ink); }
.trust-grid > div { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
.trust-grid > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.trust-grid > div:not(:nth-child(3n + 1)) { padding-left: 26px; }
.trust-grid dt { font: 500 1.35rem var(--display); margin-bottom: 10px; }
.trust-grid dd { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.trust-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
@media (max-width: 900px) {
  .trust-head { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0 !important; padding-left: 0 !important; }
}

/* footer: contact and social */
.foot-brand a { color: var(--night-text); text-decoration: none; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--night-line); border-radius: 50%; color: var(--night-muted); transition: color .2s, border-color .2s; }
.social a[href]:hover { color: var(--night-text); border-color: var(--night-text); }
.social a:not([href]) { opacity: .45; cursor: default; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* website chat */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(225, 57, 26, .7); transition: transform .3s var(--ease); }
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
.chat-fab svg { width: 26px; height: 26px; fill: currentColor; }
.chat-fab[hidden] { display: none; }
.chat-dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 41; width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100dvh - 36px)); display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); animation: rise .45s var(--ease); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--night); color: var(--night-text); }
.chat-head > div { flex: 1; min-width: 0; }
.chat-title { margin: 0; font: 500 1.05rem var(--display); }
.chat-sub { margin: 0; font-size: .8rem; color: var(--night-muted); }
.chat-end { color: var(--night-text); font: 500 .85rem var(--display); }
.chat-close { width: 32px; height: 32px; border: 1px solid var(--night-line); border-radius: 50%; background: none; color: var(--night-text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; background: var(--paper-2); }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .msg-who { font: 500 .75rem var(--display); letter-spacing: .02em; color: var(--muted); margin-bottom: 2px; }
.msg-customer { align-self: flex-end; background: color-mix(in srgb, var(--red) 12%, var(--card)); }
.msg-system { align-self: center; background: none; color: var(--muted); font-size: .8rem; text-align: center; padding: 2px; }
.chat-start { padding: 16px 18px 18px; display: grid; gap: 12px; overflow-y: auto; }
.chat-start[hidden], .chat-reply[hidden] { display: none; }
.chat-start label { display: grid; gap: 4px; font: 500 .82rem var(--display); }
.chat-intro { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.chat-legal { margin: 0; color: var(--muted); font-size: .78rem; }
.chat-legal a { color: inherit; }
.chat-reply { display: flex; gap: 10px; align-items: end; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-reply textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }

/* trust center, policies, status, updates, report */
.doc-page { background: var(--paper); }
.doc-top { border-bottom: 1px solid var(--line); background: var(--paper); }
.doc-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.doc-top img { height: 26px; width: auto; }
.doc-top nav { display: flex; gap: 24px; }
.doc-top nav a { text-decoration: none; font: 500 .95rem var(--display); letter-spacing: .02em; color: var(--ink-soft); }
.doc-top nav a:hover { color: var(--red); }
.doc-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-block: 56px 110px; }
.doc-single { padding-block: 56px 110px; max-width: 900px; }
.doc-nav { position: sticky; top: 24px; align-self: start; display: grid; gap: 2px; }
.side-head { margin: 18px 0 6px; font: 500 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.doc-nav .side-head:first-child { margin-top: 0; }
.doc-nav a { padding: 5px 0 5px 12px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); font: 400 .95rem var(--display); }
.doc-nav a:hover { color: var(--ink); }
.doc-nav a[aria-current] { color: var(--red); border-left-color: var(--red); }
.doc { max-width: 780px; min-width: 0; }
.doc-head { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: .3em; }
.doc-head .lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0; max-width: 40em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 18px; }
.doc-meta dt { font: 500 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc-meta dd { margin: 2px 0 0; font-size: .95rem; }
.toc { margin-bottom: 36px; padding: 18px 22px; background: var(--paper-2); border-radius: 12px; }
.toc .side-head { margin-top: 0; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin: 3px 0; break-inside: avoid; color: var(--muted); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--red); }
.doc section { scroll-margin-top: 24px; }
.doc h2 { font-size: 1.5rem; margin: 2em 0 .6em; scroll-margin-top: 24px; }
.doc h2 .num { color: var(--red); margin-right: .2em; }
.doc h3 { font-size: 1.12rem; margin: 1.5em 0 .4em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin-bottom: .45em; }
.doc-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .94rem; }
.doc-table th, .doc-table td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table tr:first-child th { font: 500 .78rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.doc-table th[scope], .doc-table tr:not(:first-child) th { font: 500 .95rem var(--display); color: var(--ink); width: 30%; text-transform: none; letter-spacing: 0; }
.doc .callout { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; margin: 1.4em 0; }
.doc mark { background: color-mix(in srgb, var(--red) 18%, transparent); color: inherit; padding: 0 3px; border-radius: 3px; }
.doc .small { font-size: .85rem; }
.trust-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); margin-bottom: 20px; }
.trust-overview section { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.trust-overview section:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-overview section:nth-child(even) { padding-left: 24px; }
.trust-overview h2 { margin-top: 0; font-size: 1.3rem; }
@media (max-width: 860px) {
  .doc-wrap { grid-template-columns: 1fr; }
  .doc-nav { position: static; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .doc-nav .side-head { grid-column: 1 / -1; }
  .toc ol { columns: 1; }
  .trust-overview { grid-template-columns: 1fr; }
  .trust-overview section { border-right: 0 !important; padding-left: 0 !important; }
}
.footer .foot-grid { grid-template-columns: 1.5fr repeat(5, 1fr); }
@media (max-width: 1100px) { .footer .foot-grid { grid-template-columns: repeat(3, 1fr); } .footer .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer .foot-grid { grid-template-columns: 1fr 1fr; } }

/* status */
.status-overall { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; }
.status-title { margin: 0; font: 500 1.4rem var(--display); }
.status-time { margin: 0; font-size: .88rem; }
.status-light { width: 16px; height: 16px; border-radius: 50%; background: var(--muted); flex: none; box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); }
.status-light[data-state="operational"] { background: var(--ok); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 18%, transparent); }
.status-light[data-state="degraded"], .status-light[data-state="maintenance"] { background: #e9a23b; box-shadow: 0 0 0 6px rgba(233, 162, 59, .2); }
.status-light[data-state="outage"], .status-light[data-state="unreachable"] { background: var(--red); box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 20%, transparent); }
.status-notice { border-left: 3px solid #e9a23b; padding: 6px 0 6px 16px; margin-bottom: 14px; }
.status-notice p { margin: 0; }
.notice-title { font: 500 1.05rem var(--display); color: var(--ink) !important; }
.state-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--muted); vertical-align: middle; }
[data-state="operational"] .state-dot { background: var(--ok); }
[data-state="degraded"] .state-dot, [data-state="maintenance"] .state-dot { background: #e9a23b; }
[data-state="outage"] .state-dot { background: var(--red); }
.uptime { margin-top: 34px; }
.uptime-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.uptime-head h2 { margin: 0 0 14px; font-size: 1.3rem; }
.uptime-total { margin: 0; font: 500 1.05rem var(--display); color: var(--ink) !important; }
.uptime-bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 38px; }
.uptime-bars .bar { border-radius: 2px; background: var(--line); }
.uptime-bars .bar[data-level="full"] { background: var(--ok); }
.uptime-bars .bar[data-level="minor"] { background: #e9a23b; }
.uptime-bars .bar[data-level="major"] { background: var(--red); }
.uptime-scale { display: flex; justify-content: space-between; font-size: .8rem; margin: 6px 0 14px; }

/* updates */
.changelog article { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.changelog article:first-child { border-top: 1px solid var(--ink); }
.changelog time { font: 500 .9rem var(--display); color: var(--muted); padding-top: 4px; }
.changelog h2 { margin: 0 0 .3em; font-size: 1.3rem; }
.changelog p { margin: 0; }
@media (max-width: 600px) { .changelog article { grid-template-columns: 1fr; gap: 6px; } }

/* report */
.report-form { margin-bottom: 26px; }

/* photographs: a warm grade so stock photos sit in the palette */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--night); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(225, 57, 26, .16), rgba(13, 11, 10, .28)); mix-blend-mode: multiply; }
.photo figcaption { position: absolute; left: 24px; bottom: 20px; right: 24px; z-index: 1; color: #fff; font-family: var(--display); font-size: clamp(1.05rem, 1.8vw, 1.4rem); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.photo-wide { aspect-ratio: 5 / 2; margin-bottom: 48px; }
.about .photo { aspect-ratio: 4 / 3; margin-top: 40px; }
.photo-contact { aspect-ratio: 16 / 10; margin-top: 36px; }
.photo-band { position: relative; margin: 0; height: clamp(280px, 42vw, 560px); overflow: hidden; background: var(--night); }
.photo-band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; filter: saturate(.8) contrast(1.1); }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 11, 10, .1) 30%, var(--night)), linear-gradient(90deg, rgba(225, 57, 26, .22), transparent 60%); }
.photo-band figcaption { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 48px); z-index: 1; color: var(--night-text); font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.8rem); letter-spacing: -.01em; }
@media (max-width: 700px) { .photo-wide { aspect-ratio: 4 / 3; } }
