/* Saeble public website. Static, no scripts. Brand tokens from the Saeble identity kit. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --phthalo: #0B3B32;
  --phthalo-2: #0B493D;
  --paper: #F5F1EA;
  --paper-2: #FBF9F5;
  --gunmetal: #2B2F31;
  --stone: #5A6063;
  --beige: #D7C6B0;
  --beige-soft: #EDE4D6;
  --ink: #07110F;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1080px;
  --font-ui: "Inter", Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--gunmetal);
  font: 400 1.0625rem/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--phthalo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--phthalo-2); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--phthalo); color: var(--paper); padding: 8px 14px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; border-radius: var(--r-sm); }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a:not(.btn) { padding: 10px 12px; font-weight: 500; color: var(--gunmetal); text-decoration: none; border-radius: var(--r-sm); }
.nav a:not(.btn):hover { background: var(--beige-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 20px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-ui); text-decoration: none; white-space: nowrap;
}
.btn-dark { background: var(--phthalo); color: var(--paper); }
.btn-dark:hover { background: var(--phthalo-2); }
.btn-light { background: var(--paper); color: var(--phthalo); }
.btn-light:hover { background: #fff; }
.btn-line { border-color: var(--beige); color: var(--paper); }
.btn-line:hover { background: rgba(215, 198, 176, 0.14); }
.btn-ghost { border-color: var(--phthalo); color: var(--phthalo); }
.btn-ghost:hover { background: var(--beige-soft); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--phthalo); color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(36px, 7vw, 88px) clamp(22px, 6vw, 72px);
}
.hero::after {
  /* quiet linework, echoing the ruled pages of a batch record */
  content: ""; position: absolute; inset: auto -8% -40% 45%; height: 120%;
  background: repeating-linear-gradient(-28deg, rgba(215, 198, 176, 0.09) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: var(--paper); font-weight: 600; font-size: clamp(2.25rem, 6.2vw, 4rem); max-width: 14ch; }
.hero .lead { margin-top: 22px; max-width: 40rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #E8E1D5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tagline { margin-top: 36px; font: 500 1rem/1.4 var(--font-head); color: var(--beige); }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0 0; }
.section-head { max-width: 40rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 600; }
.section-head p { margin-top: 14px; color: var(--stone); font-size: 1.125rem; }

.tiles { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tile { background: var(--paper-2); border: 1px solid var(--beige); border-radius: var(--r-md); padding: 24px; }
.tile .num { font: 600 0.875rem/1 var(--font-head); color: var(--phthalo-2); letter-spacing: 0.08em; }
.tile h3 { margin-top: 18px; font-size: 1.25rem; font-weight: 600; }
.tile p { margin-top: 8px; color: var(--stone); }

.split { display: grid; gap: 32px 64px; grid-template-columns: 1fr; margin-top: 36px; }
@media (min-width: 860px) { .split { grid-template-columns: 5fr 7fr; } .split .section-head { position: sticky; top: 24px; align-self: start; } }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--beige); }
.facts li { padding: 20px 0; border-bottom: 1px solid var(--beige); display: grid; gap: 4px; }
.facts strong { font: 600 1.125rem/1.3 var(--font-head); color: var(--ink); }
.facts span { color: var(--stone); }

.panel { background: var(--beige-soft); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; }
@media (min-width: 860px) { .panel { grid-template-columns: 5fr 7fr; gap: 64px; } }
.panel h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--phthalo); border-bottom: 2.5px solid var(--phthalo); transform: rotate(-45deg); }
.soon { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--beige); font-size: 0.8125rem; font-weight: 500; color: var(--stone); vertical-align: 1px; }

.cta { text-align: left; background: var(--paper-2); border: 1px solid var(--beige); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }
.cta h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); font-weight: 600; }
.cta p { margin-top: 10px; color: var(--stone); max-width: 36rem; }
.cta .actions { margin-top: 0; }

/* Footer */
.foot { margin-top: clamp(56px, 9vw, 104px); border-top: 1px solid var(--beige); padding: 32px 0 40px; font-size: 0.9375rem; color: var(--stone); }
.foot .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot img { height: 44px; width: auto; }
.foot .line { margin-top: 8px; font-family: var(--font-head); font-weight: 500; color: var(--gunmetal); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: var(--gunmetal); padding: 6px 0; }
.foot .small { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--stone); }

/* Privacy policy */
.doc { max-width: 44rem; padding-top: clamp(32px, 6vw, 64px); }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 600; }
.doc .updated { margin-top: 12px; color: var(--stone); }
.doc .summary { margin-top: 28px; background: var(--beige-soft); border-radius: var(--r-md); padding: 20px 24px; }
.doc .summary h2 { font-size: 1.125rem; margin: 0 0 8px; }
.doc .summary ul { margin: 0; padding-left: 1.2em; }
.doc .toc { margin-top: 28px; padding: 0; list-style: none; columns: 2 14rem; column-gap: 24px; }
.doc .toc li { break-inside: avoid; padding: 3px 0; }
.doc h2 { font-size: 1.5rem; font-weight: 600; margin-top: 48px; scroll-margin-top: 16px; }
.doc h3 { font-size: 1.125rem; font-weight: 600; margin-top: 28px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-top: 6px; }
.doc code { font-size: 0.9em; background: var(--beige-soft); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.doc .statement { background: var(--paper-2); border: 1px solid var(--beige); border-radius: var(--r-md); padding: 16px 20px; }

/* 404 */
.missing { padding-top: clamp(48px, 10vw, 120px); max-width: 36rem; }
.missing h1 { font-size: clamp(2rem, 5vw, 3rem); }
.missing p { margin-top: 14px; color: var(--stone); }

@media (max-width: 480px) {
  .brand img { height: 42px; }
  .nav a:not(.btn) { padding: 10px 8px; }
  .btn { padding: 10px 16px; }
  .hero .actions .btn { flex: 1 1 auto; }
}
@media print {
  .top .nav, .skip, .foot nav { display: none; }
  .hero { background: none; color: var(--ink); border: 1px solid var(--beige); }
  .hero h1, .hero .lead { color: var(--ink); }
}
