/* Invicta Cloud
   Colour-blocked full-width sections, heavy sentence-case headlines,
   square controls, ruled rows. Single deliberate light look with dark blocks. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff") format("woff");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #121418;
  --hero: #1b1f24;
  --ink: #17191e;
  --body: #33363c;
  --muted: #4b4f56;
  --paper: #f6f4ef;
  --stone: #e9e5dc;
  --white: #ffffff;
  --rule: #ded9cf;
  --rule-stone: #b9b3a6;
  --rule-dark: #3a3f46;
  --on-dark: #f6f4ef;
  --on-dark-muted: #b7b9bd;
  --red: #c8202b;
  --red-dark: #9e1822;
  --red-on-dark: #ff6b72;

  --display: "Archivo", "Arial Black", Arial, Helvetica, sans-serif;
  --text: "Public Sans", Arial, Helvetica, sans-serif;

  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
p, ul, ol, dl, figure { margin: 0; }

h1, h2, h3 { margin: 0; font-family: var(--display); color: inherit; text-wrap: balance; word-spacing: 0.08em; }
h1 { font-weight: 900; font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-weight: 900; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }
h3 { font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--ink); padding: 12px 16px; font-weight: 800; }
.skip:focus { left: var(--gutter); top: 8px; }

.wrap { max-width: calc(var(--wrap) + 80px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Header */
.site-header { background: var(--night); color: var(--on-dark); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--white); }
.brand-mark { width: 22px; height: 22px; background: var(--red); flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; font-weight: 700; }
.nav a { color: var(--on-dark); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--on-dark-muted); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav .nav-login a { border: 1px solid var(--on-dark); padding: 7px 12px; }
.nav .nav-login a:hover { background: var(--on-dark); color: var(--night); }
.site-header nav { min-width: 0; }
@media (max-width: 820px) {
  .site-header nav { width: 100%; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 20px; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav li { flex: none; }
}

/* Sections */
.band { padding-block: clamp(56px, 40px + 4vw, 96px); }
.band--paper { background: var(--paper); }
.band--white { background: var(--white); }
.band--stone { background: var(--stone); }
.band--dark { background: var(--hero); color: var(--on-dark); }
.band--night { background: var(--night); color: var(--on-dark); }
.band--red { background: var(--red); color: var(--white); }
.band--tight { padding-block: clamp(40px, 32px + 2vw, 64px); }

.eyebrow { display: block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.band--dark .eyebrow, .band--night .eyebrow { color: var(--red-on-dark); }
.band--red .eyebrow { color: var(--white); }

.head { display: grid; gap: 20px 48px; align-items: end; margin-bottom: 44px; }
@media (min-width: 900px) { .head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.head p { color: var(--muted); font-size: 1.125rem; max-width: 34rem; }
.band--dark .head p, .band--night .head p { color: var(--on-dark-muted); }

.lead { border-left: 5px solid var(--red); padding-left: 20px; max-width: 36rem; font-size: 1.1875rem; }
.muted { color: var(--muted); }

/* Hero */
.hero { background: var(--hero); color: var(--on-dark); }
.hero .wrap { display: grid; gap: 56px; padding-block: clamp(56px, 40px + 5vw, 104px) clamp(56px, 40px + 4vw, 88px); }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; align-items: start; } }
.hero-kicker { font-size: 1.1875rem; font-weight: 700; color: var(--red-on-dark); line-height: 1.5; margin-bottom: 22px; }
.hero .lead { margin-top: 36px; }
.hero-side { border-top: 2px solid #4a4f57; padding-top: 32px; }
.hero-side .statement { font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero-list { list-style: none; padding: 0; margin: 32px 0 0; font-size: 0.95rem; font-weight: 700; }
.hero-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule-dark); }
.hero-list li:last-child { border-bottom: 1px solid var(--rule-dark); }
.hero-list a { color: var(--on-dark); text-decoration: none; }
.hero-list a:hover { color: var(--white); text-decoration: underline; }
.hero-list span { color: var(--on-dark-muted); font-weight: 500; }

/* Page hero (inner pages) */
.page-hero .wrap { display: block; }
.page-hero h1 { max-width: 16ch; }

/* Breadcrumb */
.crumbs { font-size: 0.85rem; color: var(--on-dark-muted); margin-bottom: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #6b7078; }
.crumbs a { color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--white); }

/* Jump links */
.jump { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; font-size: 0.8125rem; font-weight: 700; }
.jump ul::-webkit-scrollbar { display: none; }
.jump li { flex: none; border-right: 1px solid var(--rule); }
.jump li:first-child { border-left: 1px solid var(--rule); }
.jump a { display: block; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.jump a:hover { background: var(--paper); color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--white); z-index: 30; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 800 1rem/1.2 var(--text); padding: 15px 22px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--light { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.btn--light:hover { background: var(--on-dark); color: var(--night); }
.btn--dark { background: var(--night); color: var(--white); border-color: var(--night); }
.btn--dark:hover { background: #000; color: var(--white); }

/* Plans */
.plans { display: grid; gap: 1px; background: var(--rule); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); }
@media (min-width: 600px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { background: var(--paper); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.band--white .plan { background: var(--white); }
.plan--pick { background: var(--white); box-shadow: inset 0 4px 0 var(--red); }
.band--white .plan--pick { background: var(--paper); }
.plan h3 { font-size: 1.625rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan .badge { font-family: var(--text); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.plan .price { font-family: var(--display); font-weight: 900; font-size: 2.75rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--text); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan .spec { list-style: none; padding: 0; margin: 0; color: var(--body); line-height: 1.9; font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; width: 100%; }
.small-print { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }

/* Ruled rows */
.rows { border-top: 1px solid var(--rule); }
.band--stone .rows { border-top-color: var(--rule-stone); }
.row { display: grid; gap: 10px 48px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.band--stone .row { border-bottom-color: var(--rule-stone); }
.band--dark .rows, .band--dark .row, .band--night .rows, .band--night .row { border-color: var(--rule-dark); }
@media (min-width: 820px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.row p { color: var(--body); }
.band--dark .row p, .band--night .row p { color: var(--on-dark-muted); }
.row ul { padding-left: 1.1rem; color: var(--body); }

/* Two-column split */
.split { display: grid; gap: 32px 56px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.split > * { min-width: 0; }
.split--center { align-items: center; }
.stack > * + * { margin-top: 1em; }

/* Cards in a row (use cases, steps) */
.tiles { display: grid; gap: 1px; background: var(--rule); border-top: 3px solid var(--ink); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { background: var(--paper); padding: 28px 24px 30px 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.band--white .tile { background: var(--white); }
@media (min-width: 760px) { .tile { padding: 28px 28px 30px; } .tile:first-child { padding-left: 0; } }
.tile p { color: var(--body); }
.tile .more { margin-top: auto; font-weight: 800; }

.steps { counter-reset: step; }
.steps .tile::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: var(--red); }

/* Comparison table */
.table-wrap { overflow-x: auto; border-top: 3px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 0.9375rem; color: var(--muted); padding: 12px 0; caption-side: bottom; }
th, td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
thead th { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
tbody th { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
td.price-cell { font-weight: 700; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 1.125rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--body); max-width: 40rem; }
.faq .answer p + p { margin-top: 0.8em; }

/* Checks */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.band--red .ticks li::before { border-color: var(--white); }

/* Prose (legal) */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin: 2.4em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.4em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4em; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 2px solid var(--rule-stone); border-radius: 0; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-pair { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; }
.form-status[data-state="error"] { color: var(--red); }
.form-status[data-state="ok"] { color: #1f6b45; }

.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule-stone); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--rule-stone); }
.contact-list .label { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
address { font-style: normal; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); font-size: 0.9375rem; }
.site-footer .wrap { padding-block: 56px 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.footer-grid h2 { font-family: var(--text); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--on-dark-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-about p { margin-top: 16px; max-width: 26rem; }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule-dark); font-size: 0.8125rem; display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .jump, .site-footer, .actions { display: none; } .hero, .band--dark, .band--night, .band--red { background: #fff; color: #000; } }
