/* Unworry — one stylesheet for the whole site.
   Black and white only, like the app. No web fonts, no scripts, no external requests. */

:root {
  --bg: #000000;
  --panel: #0e0e0e;
  --text: #ffffff;
  --muted: #a6a6a6;
  --line: #262626;
  --line-strong: #3a3a3a;
  --radius: 14px;
  --measure: 42rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--text); color: var(--bg);
  padding: 0.5rem 0.9rem; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 0.5rem; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; text-decoration: none; }
.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 650; margin-top: 3rem; }
h3 { font-size: 1.1rem; font-weight: 650; margin-top: 1.75rem; }
p, ul, ol { margin: 0.9rem 0 0; }
ul, ol { padding-left: 1.2rem; }
li + li { margin-top: 0.35rem; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--muted); margin-top: 1.25rem; max-width: 36rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem;
  color: var(--muted); font-weight: 600; margin: 0 0 1rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
strong { font-weight: 650; }


/* Sections */
.hero { padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem); }
.section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
main.page { padding: 3.5rem 0 5rem; }

/* Buttons */
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.4rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  border: 1px solid var(--text);
}
.button.primary { background: var(--text); color: var(--bg); }
.button.primary:hover { opacity: 0.88; }
.button.ghost:hover { background: var(--panel); }
.badge {
  display: inline-block; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.2rem 0.75rem; font-size: 0.82rem; color: var(--muted);
}

/* Cards and grids */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.75rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-top: 0.5rem; font-size: 0.98rem; }
a.card { display: block; text-decoration: none; transition: border-color 0.15s ease; }
a.card:hover { border-color: var(--text); }
.card .more { color: var(--text); font-weight: 600; margin-top: 1.25rem; font-size: 0.95rem; }

/* Big app card on the home page */
.feature-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.feature-card p { max-width: 38rem; }
.feature-card h2 { margin-top: 0.6rem; font-size: clamp(2rem, 4vw, 2.6rem); }


/* The three reminder levels: a numbered, escalating row */
.levels { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
.level { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.6rem; }
.level .num { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.level h3 { font-size: 1.6rem; margin-top: 0.4rem; }
.level .tag { margin-top: 0.35rem; font-weight: 600; }
.level ul { color: var(--muted); font-size: 0.97rem; margin-top: 1rem; }
.level.loud { background: var(--text); color: var(--bg); border-color: var(--text); }
.level.loud .num, .level.loud ul { color: #3d3d3d; }


/* Pilltomo page: the "built together" highlight */
.together { padding: clamp(4rem, 10vw, 7rem) 0; }
.together .display-2 { margin-top: 0.25rem; }
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { margin: 0; padding: 1.75rem 1.5rem 1.75rem 0; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.steps .num { font-size: 0.8rem; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }
.steps h3 { margin-top: 0.6rem; font-size: 1.3rem; }
.steps p { color: var(--muted); margin-top: 0.5rem; font-size: 0.98rem; }
@media (max-width: 48rem) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
}

/* Spacing helpers (inline styles are blocked by the site CSP) */
.mt-0 { margin-top: 0; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }

/* Lists of promises */
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.42em;
  width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid var(--text);
}
.checks li::after {
  content: ""; position: absolute; left: 0.43rem; top: 0.62em;
  width: 0.28rem; height: 0.5rem; border: solid var(--text); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Tables (permissions) */
.table-scroll { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 32rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 650; background: var(--panel); }
td code { font-size: 0.82rem; color: var(--muted); word-break: break-word; }

/* Summary box at the top of the policy */
.summary {
  border: 1px solid var(--text); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-top: 2rem;
}
.summary h2 { margin-top: 0; font-size: 1.15rem; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); }

.toc { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); }
.toc ol { margin: 0.5rem 0 0; columns: 2 14rem; column-gap: 2rem; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }

/* Home page: typography does the work, no pictures */
.hero-home { padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem); }
.display { font-size: clamp(3.2rem, 11vw, 7.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.display-2 { font-size: clamp(2.4rem, 7.5vw, 5.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 0; }
.dim { color: #6e6e6e; }

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 2rem 1rem 2rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.stat .big { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
@media (max-width: 52rem) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { border-left: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

.questions { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.questions li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.5rem 3rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.questions .q { font-size: clamp(1.7rem, 4.2vw, 2.8rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; }
.questions .a { color: var(--muted); font-size: 1.02rem; }
.questions li:hover .q { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
@media (max-width: 44rem) { .questions li { grid-template-columns: 1fr; } }

.principles .q { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }

.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.9rem; font-weight: 600; }
.chip.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.feature-card { transition: border-color 0.2s ease, transform 0.2s ease; }
a.feature-card:hover { transform: translateY(-2px); }
.feature-card .more { display: inline-block; transition: transform 0.2s ease; }
a.feature-card:hover .more { transform: translateX(4px); }

.closing { padding: clamp(4rem, 12vw, 8rem) 0; }

/* Motion: the hero rises in once; later blocks fade up as they scroll in (where supported).
   Pure CSS, and switched off entirely for people who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise:nth-child(2) { animation-delay: 0.08s; }
  .rise:nth-child(3) { animation-delay: 0.18s; }
  .rise:nth-child(4) { animation-delay: 0.28s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}

/* Footer: two compact rows — links, then the company line */
.site-footer { border-top: 1px solid var(--line); padding: 1.25rem 0 1.5rem; font-size: 0.85rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer nav { display: flex; gap: 0.4rem 1.2rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal { margin: 0; font-size: 0.75rem; line-height: 1.5; color: #7a7a7a; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .site-header nav, .skip, .actions { display: none; }
  body { background: #fff; color: #000; }
}
