/*
 * akin-family.nl
 *
 * Same palette and type as the app, so the website and the phone feel like one
 * thing. Everything is served from this box: no fonts, scripts or pixels from
 * anywhere else, which is the least a privacy-first family tree can do.
 */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f7f3eb;
  --surface: #ffffff;
  --ink: #20281f;
  --ink-soft: #4c584a;
  --leaf: #33684b;
  --leaf-deep: #24503a;
  --amber: #d89a3d;
  --sage: #9db49c;
  --sage-soft: #c5d2c4;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(32, 40, 31, 0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Inter', -apple-system, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111813;
    --surface: #1a231c;
    --ink: #edf2ec;
    --ink-soft: #a9b8a7;
    --leaf: #5da983;
    --leaf-deep: #7dc39d;
    --amber: #e0ad5c;
    --sage: #57705a;
    --sage-soft: #3a4b3d;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 22px;
}

/* ——— header ——— */

header.top {
  padding: 26px 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--leaf);
  letter-spacing: -0.01em;
}
.brand span {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ——— hero ——— */

.hero {
  padding: 34px 0 46px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 30px;
  }
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34rem;
}
.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  background: var(--leaf);
  color: #fff;
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  color: var(--leaf);
  border: 1.5px solid var(--sage-soft);
}
.note {
  font-size: 14px;
  color: var(--ink-soft);
}

/* the little tree drawing */
.art {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(32, 40, 31, 0.12));
}

/* ——— sections ——— */

section {
  padding: 44px 0;
  border-top: 1px solid color-mix(in srgb, var(--sage) 26%, transparent);
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.sub {
  color: var(--ink-soft);
  max-width: 42rem;
  margin-bottom: 26px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1.5px solid var(--sage-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 {
  font-size: 17.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ——— plans ——— */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
.plan {
  background: var(--surface);
  border: 1.5px solid var(--sage-soft);
  border-radius: 22px;
  padding: 24px;
}
.plan.plus {
  border-color: var(--leaf);
  box-shadow: var(--shadow);
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--leaf);
}
.plan-for {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 4px 0 18px;
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.plan li {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.45;
}
.plan li svg {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.18em;
  color: var(--leaf);
}
.plan li.muted {
  color: var(--ink-soft);
}
.plan li.muted svg {
  color: var(--sage);
}
.plan-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--sage) 26%, transparent);
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ——— safety ——— */

.safety {
  background: var(--surface);
  border: 1.5px solid var(--sage-soft);
  border-radius: 22px;
  padding: 26px;
}
.safety ol {
  margin: 18px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.safety li {
  padding-left: 6px;
}
.safety b {
  font-weight: 600;
}
.plain {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--leaf) 8%, transparent);
  font-size: 15.5px;
}

/* ——— join page ——— */

.join {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
  text-align: center;
}
.join-card {
  max-width: 30rem;
}
.join h1 {
  font-size: clamp(28px, 5vw, 40px);
}
.steps {
  text-align: left;
  margin: 24px auto 0;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.step b {
  color: var(--ink);
  font-weight: 600;
}
.num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--leaf) 14%, transparent);
  color: var(--leaf);
  font-weight: 600;
  font-size: 14px;
  display: grid;
  place-items: center;
}

/* ——— footer ——— */

footer {
  padding: 34px 0 50px;
  border-top: 1px solid color-mix(in srgb, var(--sage) 26%, transparent);
  color: var(--ink-soft);
  font-size: 14.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
}
footer a {
  color: var(--leaf);
}
