/* Woolly website. One stylesheet for all four pages.
   Looks like the app: pure white (or pure black in dark mode), rounded system
   type, one black pill button. The sheep art has black outlines, so it always
   sits on a cream panel and stays readable in dark mode too. */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --subtle: rgba(0, 0, 0, 0.6);
  --faint: rgba(0, 0, 0, 0.08);
  --wool: #fbf1df;        /* the sheep's wool colour, used for art panels */
  --grass: #a9cf6f;       /* the grass under the sheep, used for small accents */
  --readable: 680px;      /* max width of text columns */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --ink: #ffffff;
    --subtle: rgba(255, 255, 255, 0.65);
    --faint: rgba(255, 255, 255, 0.12);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--grass); outline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header and footer (every page) ---------- */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--subtle); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.site-footer { border-top: 1px solid var(--faint); margin-top: 72px; padding: 28px 0 40px; font-size: 14px; color: var(--subtle); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
}
/* Until the app is live: looks like the button, but isn't a link. */
.button.soon { background: var(--faint); color: var(--ink); }

/* ---------- Home ---------- */

.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; text-wrap: balance; }
.hero p { font-size: 20px; color: var(--subtle); margin: 0 0 28px; max-width: 30em; }

.section { padding: 56px 0 0; }
.section h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 24px; text-wrap: balance; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { counter-increment: step; background: var(--faint); border-radius: 22px; padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; font-size: 15px; color: var(--subtle); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.split .art { background: var(--wool); border-radius: 32px; padding: 28px 28px 0; }
.split .art img { margin: 0 auto; max-height: 300px; width: auto; }

.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.promises li { padding-left: 34px; position: relative; }
.promises li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; }
.promises strong { display: block; }
.promises span { color: var(--subtle); font-size: 16px; }

.note { background: var(--faint); border-radius: 22px; padding: 22px 24px; max-width: var(--readable); }
.note p { margin: 0; }
.note p + p { margin-top: 8px; color: var(--subtle); font-size: 16px; }

/* ---------- Text pages (privacy, terms, support) ---------- */

.doc { max-width: var(--readable); margin: 0 auto; padding: 32px 20px 0; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .updated { color: var(--subtle); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .lead { font-size: 20px; }

.contact { background: var(--wool); color: #000; border-radius: 22px; padding: 20px 24px; margin: 0 0 8px; display: flex; align-items: center; gap: 18px; }
.contact img { width: 84px; flex: none; }
.contact p { margin: 0; }
.contact a { font-weight: 700; font-size: 20px; }

/* Comparison table. Scrolls sideways on its own on narrow screens; the page never does. */
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--faint); }
.compare thead th { font-size: 14px; }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--subtle); }
.compare th:nth-child(2), .compare td:nth-child(2) { background: var(--faint); color: var(--ink); font-weight: 700; }

/* Questions open and close; the first line is the question. */
.faq details { border-bottom: 1px solid var(--faint); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 500; color: var(--subtle); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--subtle); margin: 0 0 16px; }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand span { display: none; }      /* the icon alone is enough beside the links */
  .steps { grid-template-columns: 1fr; }
  .contact { flex-direction: column; align-items: flex-start; }
}
