/* Dozy site: landing, privacy, terms, support.
   Colors mirror the app (Shared/Palette.swift). One accent: acorn amber.
   Shape rule: cards 24px, buttons and tags are full pills.
   No JavaScript, no web fonts, no external files. Light and dark follow the system. */

:root {
  color-scheme: light dark;

  --paper: #F2F5EE;
  --card: #FCFDFA;
  --ink: #1C2A29;
  --ink-soft: #55655F;
  --line: #D3DBD0;
  --acorn: #F0932E;
  --on-acorn: #2A1905;

  --radius-card: 24px;
  --radius-pill: 999px;
  --gutter: 20px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111D22;
    --card: #1A2A31;
    --ink: #EEF3EC;
    --ink-soft: #A8B8B3;
    --line: #2D4048;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px var(--gutter) 72px;
}

/* Type */

h1 {
  margin: 0;
  font-size: clamp(36px, 9vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  margin: 52px 0 12px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
}

p { margin: 0 0 16px; text-wrap: pretty; }

.muted { color: var(--ink-soft); }
.small { font-size: 15px; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--acorn);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  a:hover { text-decoration-thickness: 3px; }
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Landing hero */

.hero { margin-bottom: 28px; }

.icon {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
  border-radius: var(--radius-card);
}

.tagline {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-soft);
}

.lead {
  font-size: 21px;
  line-height: 1.5;
}

.status {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 24px 0 0;
  font-weight: 700;
}

.status::before {
  content: "";
  flex: none;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--acorn);
}

.status .muted { font-weight: 500; }

/* Sub-page top */

.home {
  margin: 0 0 28px;
  font-weight: 800;
}

.effective { margin: 10px 0 28px; }

h1 + .lead { margin-top: 20px; }

/* Cards */

.card {
  margin: 16px 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* Lists */

ul { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 6px; }
li::marker { color: var(--acorn); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  min-height: 34px;
  margin: 0 0 18px;
  padding-left: 50px;
}

.steps li:last-child { margin-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--acorn);
  color: var(--on-acorn);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.missions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.missions li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.missions li:first-child { padding-top: 0; border-top: 0; }
.missions li:last-child { padding-bottom: 0; }

.missions .name { font-weight: 700; }

.missions .what {
  grid-column: 1 / -1;
  color: var(--ink-soft);
}

/* Pills: tags and the one button */

.tag {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tag-free {
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px var(--ink-soft);
}

.tag-plus {
  background: var(--acorn);
  color: var(--on-acorn);
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--acorn);
  color: var(--on-acorn);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  .button:hover { filter: brightness(1.06); }
}

/* Support questions */

.faq h2 {
  margin-top: 36px;
  font-size: 20px;
}

/* Footer */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}

.made {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  main { padding-top: 40px; }
  .card { padding: 20px; }
  .lead, .tagline { font-size: 19px; }
}
