/* Stralos marketing site: shared base for every page (home, privacy, terms, 404).
   The home page adds home.css (its sections) and signup.css (the sign-up form and dialog).

   Palette: mist #F3F6F8 · paper #FFFFFF · navy ink #0D1B2A · steel #3B587A
            construction blue #5D7FA6 · petrol #007A73 · teal #00BFB3 (identity) */

/* Sora (SIL Open Font License 1.1, see /assets/fonts/Sora-OFL.txt): Google Fonts' latin and
   latin-ext subsets. The latin-ext file carries the macron vowels (ā ē ī ō ū) for te reo Māori
   and loads only when a page uses them. */
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-ext-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --mist: #f3f6f8;
  --paper: #ffffff;
  --paper-2: #f9fbfc;
  --ink: #0d1b2a;
  --ink-2: #13263a;
  --steel: #3b587a;
  --blue: #5d7fa6;
  --muted: #5a6878;
  --line: #e4e9ee;
  --line-2: #d5dee7;
  --petrol: #007a73;
  --petrol-deep: #005f5a;
  --teal: #00bfb3;
  --teal-tint: #e6fbf9;
  --on-dark: #dfe7ef;
  --on-dark-2: #c9d6e3;
  --on-dark-3: #9fb6ce;
  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(80px, 10vw, 136px);
  --masthead: 68px;
  --font-sans: "Sora", "Segoe UI", Arial, sans-serif;
  --settle: cubic-bezier(0.2, 0.65, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--masthead) + 16px); }

body {
  min-height: 100vh;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 40;
  text-decoration: none;
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* ---- buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--petrol);
  color: var(--paper);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 560;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease, transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1.35);
}
.btn:hover { background: var(--petrol-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.02rem; }

.btn-secondary { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 1.5px var(--petrol); }
.btn-secondary:hover { background: var(--teal-tint); color: var(--petrol-deep); }

/* on navy surfaces the primary button is teal with navy text (7.5:1) */
.btn-on-dark { background: var(--teal); color: var(--ink); }
.btn-on-dark:hover { background: #21ccbf; }
.btn-on-dark:focus-visible { outline-color: var(--paper); }

.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(159, 182, 206, 0.5); }
.btn-ghost:hover { background: rgba(159, 182, 206, 0.12); }
.btn-ghost:focus-visible { outline-color: var(--teal); }
.btn-ghost[hidden], .btn[hidden] { display: none; }

/* ---- header (legal pages) ------------------------------------------------------ */

.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
/* the brand kit's horizontal logo: the mark and the "Stralos" wordmark (Sora SemiBold) as one vector */
.lockup-logo { display: block; height: auto; }

/* ---- footer: the mark's layers, laid flat ---------------------------------------------------- */

.site-foot { background: var(--mist); }

/* steel and construction blue: the mark's lower layers, with the same gaps between them */
.strata { display: grid; gap: 6px; padding-top: 6px; }
.stratum { display: block; height: 10px; }
.s1 { background: var(--steel); }
.s2 { background: var(--blue); }

.site-foot-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding-block: 32px 40px;
  font-size: 0.88rem;
  color: var(--muted);
}
.lockup-foot { color: var(--ink); }
.foot-name em { font-style: italic; }
.foot-meta { text-align: right; }

.foot-links { display: flex; gap: 18px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--steel);
  text-decoration: none;
}
.foot-links a:hover { color: var(--petrol); }
.foot-links a[aria-current="page"] { color: var(--ink); }

/* ---- legal pages (privacy, terms) ------------------------------------------------------------ */

.legal { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(64px, 9vw, 112px); }
.legal > * { max-width: 46rem; }
.legal .legal-kicker { font-size: 0.9rem; color: var(--petrol); font-weight: 560; margin-bottom: 12px; }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.legal .legal-meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 36px; }
.legal h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.legal h3 { font-size: 1rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--steel); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 10px 0 14px; padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 560; }
.legal a { color: var(--petrol); }
.legal code { font-family: inherit; font-size: 0.88em; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 0.92rem; }
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  color: var(--steel);
}
.legal th { color: var(--ink); font-weight: 560; background: var(--paper); }
.legal-table-wrap { overflow-x: auto; }
.legal-inline-button {
  font: inherit;
  color: var(--petrol);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* ---- 404 --------------------------------------------------------------------------------------- */

.nf {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  max-width: 720px;
}
.nf h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.05; margin-top: 18px; }
.nf p { color: var(--steel); margin-bottom: 12px; }

/* ---- motion and small screens ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 640px) {
  .site-foot-inner { grid-template-columns: 1fr; gap: 12px; }
  .foot-links { flex-wrap: wrap; }
  .foot-meta { text-align: left; }
}
