/* Heartwood site: landing, privacy, terms, support.
   Colors mirror the app (Shared/Design/Palette.swift): slate paper, one warm accent.
   Shape rule: cards 20px, 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: #EEF0F2;
  --card: #FAFBFC;
  --ink: #16191D;
  --ink-soft: #545C66;
  --line: #D5DADF;
  --heartwood: #B4552D;
  --on-heartwood: #FFFFFF;

  --radius-card: 20px;
  --radius-pill: 999px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111417;
    --card: #1A1F24;
    --ink: #EDF0F2;
    --ink-soft: #A2ACB6;
    --line: #2B333A;
    --heartwood: #E0875A;
    --on-heartwood: #1B0F08;
  }
}

*,
*::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: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

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

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(--heartwood);
  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(--heartwood);
}

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

/* Sub-page top */

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

.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(--heartwood); }

.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(--heartwood);
  color: var(--on-heartwood);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

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

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

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

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

.rules .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: 700;
  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(--heartwood);
  color: var(--on-heartwood);
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--heartwood);
  color: var(--on-heartwood);
  font-weight: 700;
  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; }
}
