/* sundvala.com — the product page's one stylesheet. Hand-written, no build step.
   Colours are the app's Fjord roles (composeApp ui/Theme.kt, FjordLight / FjordDark and the
   SundvalaColors blocks), named by role so a change there is a change of one value here — except
   --bubble, the page's own chat-bubble tone, which is the card tone in light and containerHigh in
   dark so a bubble stands off the dark ground. The ready-for-turnover mark doubles as the accent of
   the "watches the silences" cards. */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/figtree-regular.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/figtree-bold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/figtree-extrabold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --primary: #0D5C60;
  --on-primary: #FFFFFF;
  --primary-container: #D3E7E5;
  --on-primary-container: #073B3E;
  --surface: #F3F4F1;
  --on-surface: #14191B;
  --on-surface-variant: #596267;
  --card: #FFFFFF;
  --container: #EEF0EC;
  --container-high: #E9ECE8;
  --outline: #7A8287;
  --outline-variant: #D9DDD8;
  --error: #A8241D;
  --warn-container: #F7E4C2;
  --on-warn-container: #8A5000;
  --ready-mark: #C8690B;
  --bubble: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #71C6C0;
    --on-primary: #04201F;
    --primary-container: #1B403E;
    --on-primary-container: #BCE6E2;
    --surface: #0E1213;
    --on-surface: #E6EBE9;
    --on-surface-variant: #99A4A6;
    --card: #161C1E;
    --container: #161C1E;
    --container-high: #1F272A;
    --outline: #6B7578;
    --outline-variant: #283133;
    --error: #F3968E;
    --warn-container: #4A3410;
    --on-warn-container: #F1B65E;
    --ready-mark: #F0A04B;
    --bubble: #1F272A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must win over every display rule below (the form swaps for its thank-you). */
[hidden] { display: none !important; }
html { background: var(--surface); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--on-surface);
  background: var(--surface);
  font: 400 17px/1.55 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.03em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 4.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0.75rem 0 0; }
strong { font-weight: 700; }

/* Side gutters only: a padding shorthand here would wipe every section's vertical padding. */
.wrap { max-width: 68rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
section { padding: 3.5rem 0; }
.lede { font-size: 1.15rem; color: var(--on-surface-variant); max-width: 40rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 2; background: var(--card); padding: 0.5rem 0.75rem; border-radius: 14px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--on-surface); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top a.link { font-weight: 700; text-decoration: none; }

/* Buttons */
.button {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1.05rem;
  color: var(--on-primary); background: var(--primary);
  border: 0; border-radius: 28px; padding: 0.85rem 1.6rem; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: 0.6; cursor: progress; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Hero */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-top: 1.5rem; }
.hero .sub { font-size: clamp(1.15rem, 2.6vw, 1.4rem); color: var(--on-surface-variant); max-width: 34rem; margin: 1.25rem 0 2rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.3fr 1fr; } }

/* A screenshot as a phone: the image is the screen, the frame is a border. */
.phone {
  margin: 0; border: 8px solid var(--on-surface); border-radius: 36px; overflow: hidden;
  background: var(--card); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
.hero .phone { max-width: 300px; justify-self: center; }
.shots { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
.shots .phone { border-width: 6px; border-radius: 28px; }
.shots figure { margin: 0; }
.shots figcaption { font-size: 0.9rem; color: var(--on-surface-variant); margin-top: 0.6rem; text-align: center; }
@media (min-width: 52rem) { .shots.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } .feature .shots { margin-top: 0; } }

/* The problem: a group chat */
.chat { display: flex; flex-direction: column; gap: 0.6rem; max-width: 26rem; margin: 2rem 0; }
.bubble {
  align-self: flex-start; background: var(--bubble); border-radius: 20px 20px 20px 6px;
  padding: 0.55rem 0.95rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); max-width: 85%;
}
.bubble:nth-child(even) { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--primary-container); color: var(--on-primary-container); }
.bubble b { display: block; font-size: 0.8rem; color: var(--on-surface-variant); }
.bubble:nth-child(even) b { color: inherit; opacity: 0.75; }

/* Lists of claims */
.points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.points li { background: var(--card); border-radius: 20px; padding: 1rem 1.2rem; }
.points li strong { display: block; }

.silences { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 40rem) { .silences { grid-template-columns: 1fr 1fr; } }
.silences div { background: var(--card); border-radius: 24px; padding: 1.25rem 1.4rem; border-left: 6px solid var(--ready-mark); }
.silences div:nth-child(3) { border-left-color: var(--error); }
.silences p { color: var(--on-surface-variant); }

.facts { list-style: none; margin: 0; padding-top: 1.25rem; padding-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.facts li { background: var(--container-high); border-radius: 999px; padding: 0.45rem 1rem; font-weight: 700; font-size: 0.95rem; }
.strip { background: var(--container); padding: 0.5rem 0; }

/* The form */
.pilot { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .pilot { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.panel { background: var(--card); border-radius: 28px; padding: 1.5rem; }
@media (min-width: 40rem) { .panel { padding: 2rem; } }
/* Keeps the 300px normal Turnstile widget on 360–380px phones; site.js picks compact whenever its
   container is narrower than 300px, so nothing overflows without this either. */
@media (max-width: 380px) { .panel { padding: 1.25rem 0.75rem; } }
form { display: grid; gap: 1.4rem; }
.field > label, fieldset legend { display: block; font-weight: 700; margin-bottom: 0.45rem; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.optional { font-weight: 400; color: var(--on-surface-variant); }
input[type=email], textarea {
  width: 100%; font: inherit; color: var(--on-surface); background: var(--surface);
  border: 1px solid var(--outline); border-radius: 14px; padding: 0.7rem 0.85rem;
}
textarea { min-height: 6.5rem; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span {
  display: inline-block; border: 1px solid var(--outline); border-radius: 999px; padding: 0.45rem 1rem;
  background: var(--surface); cursor: pointer;
}
.choices input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700; }
.choices input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
/* Beats `.field > label` above, which would make the consent label a bold block. */
.field > .consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; font-weight: 400; margin: 0; }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex: none; accent-color: var(--primary); }
.cf-turnstile { min-height: 65px; }
/* A radio is invisible (its pill is the span after it), so the pill carries the mark. */
[aria-invalid="true"], [aria-invalid="true"] + span { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; margin: 0.35rem 0 0; }
#form-status { margin: 0; min-height: 1.4em; }
#form-status.error { color: var(--error); }
.next { color: var(--on-surface-variant); }
.thanks h3 { font-size: 1.5rem; }
.noscript, #check-status.failed { background: var(--warn-container); color: var(--on-warn-container); border-radius: 14px; padding: 0.75rem 1rem; }
#check-status { margin: 0; color: var(--on-surface-variant); }

footer { padding: 2.5rem 0 3.5rem; color: var(--on-surface-variant); border-top: 1px solid var(--outline-variant); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
