/* SpinUI public site. One hand-written file, custom properties, mobile-first (640 / 960 / 1200). */
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin-wght-normal.3100e775e8.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/plus-jakarta-sans-latin-wght-normal.153fc85b70.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff; --bg-alt: #f8fafc; --text: #111827; --text-muted: #4b5563; --border: #e5e7eb;
  --accent: #4f46e5; --accent-hover: #4338ca; --on-accent: #ffffff; --success: #047857; --focus: #4f46e5;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px; --gutter: 1.25rem; --max: 1200px;
}
.section--navy {
  --bg: #0b1220; --bg-alt: #111a2e; --text: #f3f4f6; --text-muted: #cbd5e1; --border: #243049;
  --accent: #a5b4fc; --accent-hover: #c7d2fe; --on-accent: #0b1220; --success: #6ee7b7; --focus: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text); background: #ffffff; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3, .h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
code { font-family: var(--font-mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: .5rem; background: #111827; color: #fff; padding: .75rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: .5rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.prose-wrap { max-width: 860px; }

.draft-banner { background: #eef2ff; color: #312e81; padding: .6rem var(--gutter); text-align: center; font-size: .9rem; border-bottom: 1px solid #818cf8; }

/* sections */
.section { background: var(--bg); color: var(--text); padding: 4rem 0; }
.section--navy { background: var(--bg); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .75rem; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 40rem; }
.crumbs { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--text-muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #ffffff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 36px; width: auto; }
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .signin { display: none; }
.nav-link, .nav-desktop summary { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .85rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; cursor: pointer; list-style: none; }
.nav-link:hover, .nav-desktop summary:hover { color: var(--accent); background: var(--bg-alt); }
summary::-webkit-details-marker { display: none; }
.chev { width: 1rem; height: 1rem; transition: transform .15s; }
details[open] > summary .chev { transform: rotate(180deg); }

.nav-mobile > summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; list-style: none; color: var(--text); }
.nav-mobile .i-close { display: none; }
.nav-mobile[open] .i-open { display: none; }
.nav-mobile[open] .i-close { display: block; }
.mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: #ffffff; border-bottom: 1px solid var(--border); padding: 1rem var(--gutter) 1.5rem; max-height: calc(100vh - 4.25rem); overflow: auto; }
.mobile-panel ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.mobile-panel a { display: block; padding: .7rem 0; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 500; }
.mobile-heading { font-family: var(--font-head); font-weight: 700; margin: 1rem 0 .25rem; color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.mobile-heading a { color: var(--text); font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 700; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.25rem; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-lg { min-height: 52px; padding: 0 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--text); border-color: #6b7280; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .icon { width: 1.1rem; height: 1.1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* icons */
.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.card-icon, .flow-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--accent); margin-bottom: 1rem; flex: none; }

/* hero */
.hero { background: #ffffff; padding: 3.5rem 0 4rem; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.flow-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.flow-card .flow-icon { margin: 0; background: #fff; }
.flow-title { font-size: 1.1rem; margin: 0 0 .15rem; }
.flow-card p { margin: 0; color: var(--text-muted); }

/* strip */
.strip { background: var(--bg-alt); padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem 1.5rem; }
.facts li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--text); }
.facts .icon { color: var(--accent); }

/* grids and cards */
.grid { display: grid; gap: 1.25rem; }
.card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); margin: 0; }
#features { background: var(--bg-alt); }
.step { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.step .card-icon { background: var(--bg); }
.step p { color: var(--text-muted); margin: 0; }

/* faq */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 1.1rem 2rem 1.1rem 0; min-height: 44px; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--text-muted); padding-bottom: 1.1rem; margin: 0; }

/* cta band */
.cta-band { padding: 3.5rem 0; }
.cta-inner { display: grid; gap: 1rem; align-items: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band .cta-row { margin-top: .5rem; }
.cta-band .lead { margin-bottom: 0; }

/* contact */
.contact-card { margin: 2rem 0; }
.operator-block { font-style: normal; border-left: 3px solid var(--accent); padding-left: 1rem; margin-bottom: 1.5rem; }

/* footer */
.site-footer { padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand p { color: var(--text-muted); max-width: 22rem; margin-top: 1rem; }
.footer-heading { font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 .75rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; }
.operator { border-top: 1px solid var(--border); margin: 2.5rem 0 0; padding-top: 1.5rem; font-size: .9rem; color: var(--text-muted); }

/* legal prose */
.prose { font-size: 1.02rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose blockquote { margin: 0 0 1.5rem; padding: .9rem 1.1rem; background: #eef2ff; color: #312e81; border-left: 4px solid var(--accent); border-radius: 6px; }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .4rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose code { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; padding: .05em .35em; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: 8px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--bg-alt); font-weight: 600; }

/* breakpoints */
@media (min-width: 640px) {
  :root { --gutter: 1.75rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 5rem 0; }
}
@media (min-width: 960px) {
  .nav-desktop { display: block; flex: 1; margin-left: 1.5rem; }
  .nav-desktop > ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
  .nav-desktop li { position: relative; }
  .menu-panel { position: absolute; top: calc(100% + .5rem); left: 0; width: 24rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem; box-shadow: 0 12px 32px rgba(17, 24, 39, .12); }
  .menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
  .menu-panel a { display: flex; gap: .85rem; align-items: center; min-height: 44px; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; color: var(--text); }
  .menu-panel a:hover { background: var(--bg-alt); }
  .menu-panel .icon { color: var(--accent); }
  .menu-title { display: block; font-weight: 600; }
  .menu-desc { display: block; font-size: .85rem; color: var(--text-muted); }
  .header-actions .signin { display: inline-flex; }
  .nav-mobile { display: none; }
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.2fr; }
  .cta-inner { grid-template-columns: 1fr auto; }
  .cta-band .cta-row { margin-top: 0; }
}
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 6rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.card .avail { margin-top: .75rem; font-size: .88rem; font-weight: 600; color: var(--text); }

/* ---- pricing (slice 2) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section--alt { background: var(--bg-alt); }
.section--alt .card, .section--alt .plan article { background: #ffffff; }
.hero-simple { background: #ffffff; padding: 3rem 0 2rem; }
.hero-simple h1 { max-width: 20ch; }
.plans-section { padding-top: 1rem; }
.prose-list { padding-left: 1.2rem; margin: 0; }
.prose-list li { margin-bottom: .9rem; color: var(--text-muted); }
.prose-list strong { color: var(--text); }
.enterprise { font-size: 1.1rem; font-weight: 600; }

/* monthly / yearly switch: two radios before the grid, no JavaScript */
.bs-input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; overflow: hidden; }
.bs { position: relative; display: inline-flex; flex-wrap: wrap; gap: .25rem; min-width: 0; margin: 0 0 1.75rem; padding: .25rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt); }
.save-badge { display: none; flex: none; padding: .1rem .6rem; border-radius: 999px; background: #d1fae5; color: #065f46; font-size: .8rem; font-weight: 700; vertical-align: middle; }
.bs label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--text); }
.bs-save { font-weight: 500; color: var(--text-muted); margin-left: .3em; }
#bill-month:checked ~ .bs label[for="bill-month"], #bill-year:checked ~ .bs label[for="bill-year"] { background: var(--accent); color: var(--on-accent); }
#bill-month:checked ~ .bs label[for="bill-month"] .bs-save, #bill-year:checked ~ .bs label[for="bill-year"] .bs-save { color: var(--on-accent); }
#bill-month:focus-visible ~ .bs label[for="bill-month"], #bill-year:focus-visible ~ .bs label[for="bill-year"] { outline: 2px solid var(--focus); outline-offset: 2px; }
.price-month, .price-year { display: block; }
.price-year { display: none; }
.price .sub { display: block; margin-top: .1rem; font-size: .85rem; }
fieldset.billing { min-width: 0; margin: 0; padding: 0; border: 0; }
#bill-year:checked ~ .plan-grid .has-year .price-month { display: none; }
#bill-year:checked ~ .plan-grid .has-year .price-year { display: block; }
#bill-year:checked ~ .plan-grid .has-year .save-badge { display: inline-block; }

.plan-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; align-items: stretch; }
.plan { display: flex; }
.plan article { position: relative; display: flex; flex-direction: column; width: 100%; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.plan--hero article { border: 2px solid var(--accent); }
.plan-badge { position: absolute; top: 0; left: 1.5rem; transform: translateY(-50%); margin: 0; white-space: nowrap; padding: .2rem .7rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 700; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; min-height: 2rem; }
.plan h3 { margin: 0; font-size: 1.4rem; }
.price { margin: 0 0 1.25rem; min-height: 3rem; }
#bill-year:checked ~ .plan-grid .price { min-height: 5rem; }
.price .amount { font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; letter-spacing: -.02em; line-height: 1.1; }
.price .per { color: var(--text-muted); font-size: .95rem; }
.plan-list { list-style: none; margin: 0 0 1.5rem; padding: 0; flex: 1; }
.plan-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; font-size: .95rem; }
.plan-list .icon { width: 1.1rem; height: 1.1rem; margin-top: .25rem; color: var(--success); }
.plan .btn { width: 100%; white-space: normal; text-align: center; }

/* comparison table */
.compare { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: .95rem; background: #ffffff; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 700; }
.compare tbody th[scope="row"] { font-weight: 600; width: 22%; }
.compare .group td { background: var(--bg-alt); font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.compare .col-hero { background: #eef2ff; }
.compare thead .col-hero { background: #e0e7ff; }
.cell { display: inline-flex; gap: .5rem; align-items: flex-start; }
.cell .icon { width: 1.1rem; height: 1.1rem; margin-top: .25rem; }
.cell.yes .icon { color: var(--success); }
.cell.no { color: var(--text-muted); }
.notes { margin: 1.25rem 0 0; padding-left: 1.2rem; color: var(--text-muted); font-size: .95rem; }
.notes li { margin-bottom: .5rem; }

/* home teaser */
.teaser { list-style: none; margin: 0 0 2rem; padding: 0; }
.card--hero { border: 2px solid var(--accent); }
.teaser-price { margin: .25rem 0 .75rem; color: var(--text); }
.teaser-price .amount { font-family: var(--font-head); font-weight: 800; font-size: 2rem; }
.teaser-price .per { color: var(--text-muted); }
.teaser-facts { list-style: none; margin: 0; padding: 0; color: var(--text-muted); }
.teaser-facts li { padding: .15rem 0; }
.teaser-link { margin: 0; }

@media (min-width: 640px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1199px) {
  /* Team first on phones and tablets (the DOM keeps the table order) */
  .plan--hero { order: -1; }
}
@media (min-width: 1200px) {
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
  .teaser { grid-template-columns: repeat(4, 1fr); }
}

/* contact form (docs/briefs/contact-form.md) */
:root { --danger: #b91c1c; }
.contact-form-section { margin: 2rem 0; }
.contact-form { max-width: 36rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 44px; padding: .55rem .75rem; font: inherit; font-size: 1rem; color: var(--text); background: #ffffff; border: 1px solid #6b7280; border-radius: 8px; }
.field textarea { min-height: 11rem; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-error { margin: .35rem 0 0; color: var(--danger); font-size: .95rem; font-weight: 600; }
.field-error::before { content: "Error: "; }
.field-error[hidden], .form-summary[hidden] { display: none; }
.form-summary { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.25rem; padding: 1rem; color: var(--danger); background: #fef2f2; border: 1px solid var(--danger); border-radius: 8px; }
.form-summary .icon { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .2rem; }
.form-summary p { margin: 0 0 .35rem; }
.form-summary ul { margin: 0; padding-left: 1.1rem; }
.form-summary a { color: var(--danger); }
.form-status { min-height: 1.5rem; margin: .75rem 0 0; color: var(--text-muted); }
.small-print { margin: .5rem 0 0; color: var(--text-muted); font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-turnstile { margin-bottom: 1rem; }
