:root {
  --ink: #0f2a44;
  --ink-soft: #2d4560;
  --paper: #f1f5f8;
  --surface: #ffffff;
  --line: #d3dee7;
  --muted: #556a7d;
  --accent: #0b6e99;
  --accent-hover: #08577a;
  --accent-tint: #e2f0f7;
  --mint: #ff8a3d;
  --error: #b3261e;
  --radius-s: 6px;
  --radius-m: 10px;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 12px; border-radius: var(--radius-s); font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.site-nav .nav-signin { border: 1px solid var(--ink); margin-left: 8px; }
.site-nav .nav-signin:hover { background: var(--ink); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem; padding: 12px 22px; border-radius: var(--radius-s); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-copy { max-width: 720px; }
.hero-copy p.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.invite-note { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }

/* Product frame in the hero: a static picture of the app built in HTML */
.frame { margin: 56px auto 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-m) var(--radius-m) 0 0; box-shadow: 0 30px 60px -30px rgba(15, 42, 68, .35); display: grid; grid-template-columns: 180px 1fr 280px; min-height: 420px; font-size: 0.9rem; }
.frame-nav { background: var(--ink); color: #c9d6e2; padding: 18px 12px; border-radius: var(--radius-m) 0 0 0; }
.frame-nav b { display: block; color: #fff; font-size: 0.95rem; margin: 0 8px 16px; }
.frame-nav span { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 5px; }
.frame-nav span.on { background: rgba(255,255,255,.1); color: #fff; }
.frame-nav em { font-style: normal; color: var(--mint); font-weight: 600; }
.frame-thread { padding: 22px 26px; border-right: 1px solid var(--line); }
.frame-thread h3 { font-size: 1.1rem; margin-bottom: 4px; }
.frame-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.msg { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; margin-bottom: 18px; }
.msg.theirs { border-left-color: var(--mint); }
.msg strong { display: block; font-size: 0.88rem; }
.msg p { margin: 2px 0 0; color: var(--ink-soft); }
.frame-contact { padding: 22px 20px; background: #f9fbfc; border-radius: 0 var(--radius-m) 0 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.frame-contact dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 0.85rem; }
.frame-contact dt { color: var(--muted); }
.frame-contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--accent-tint); color: var(--accent); }
@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; }
  .frame-nav, .frame-contact { display: none; }
  .frame-thread { border-right: 0; }
}

/* Sections */
.section { padding: 88px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 640px; margin-bottom: 48px; }
.section-intro p { color: var(--ink-soft); }
.feature-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.feature-row p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
@media (max-width: 700px) { .feature-row { grid-template-columns: 1fr; gap: 8px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Pricing */
.price-panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 36px; max-width: 520px; }
.price-amount { font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 8px 0 4px; }
.price-amount small { font-size: 1.1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-panel ul { padding: 0; margin: 24px 0 28px; list-style: none; }
.price-panel li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; }
.price-panel li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.fine { font-size: 0.9rem; color: var(--muted); }
.faq dt { font-weight: 650; margin-top: 22px; }
.faq dd { margin: 4px 0 0; color: var(--ink-soft); }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select { font: inherit; padding: 11px 13px; border: 1px solid #b6c5d3; border-radius: var(--radius-s); background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--mint); outline-offset: 0; border-color: var(--accent); }
.field-hint { font-size: 0.88rem; color: var(--muted); }
.field-error { font-size: 0.92rem; color: var(--error); margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { font-weight: 700; border-bottom: 0; }
.statement { margin-top: 18px; padding: 14px 16px; background: var(--paper); border-radius: var(--radius-s); font-size: 0.93rem; }
.statement code { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.steps { padding-left: 1.2em; margin: 0; }
.steps li { margin-bottom: 8px; }
[hidden] { display: none !important; }

/* Dialog */
dialog { border: 0; border-radius: var(--radius-m); padding: 28px; max-width: 440px; width: calc(100% - 32px); color: var(--ink); }
dialog::backdrop { background: rgba(15, 42, 68, .55); }

/* Legal pages */
.legal { padding: 56px 0 88px; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.35rem; margin-top: 2em; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li { margin-bottom: 6px; }
.legal-date { color: var(--muted); }
.callout { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 24px 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d6e2; padding: 48px 0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.footer-grid nav { display: grid; gap: 6px; align-content: start; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover, .footer-grid nav a[aria-current="page"] { text-decoration: underline; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-reseller { font-size: 0.88rem; color: #9fb2c4; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
