/* Five Element Pathways: the family's warm paper, squiggles and post-its, in the logo's five colours. */
:root {
  color-scheme: light;
  --paper: #f7f4ee; --card: #fffdf8; --sunk: #efeae0;
  --ink: #1c1a16; --muted: #5d564c; --faint: #8b8376; --line: #e3dccf; --line-strong: #cfc5b3;
  /* The logo's strands */
  --wood: #4e8a3e; --fire: #d2546e; --earth: #b8643a; --metal: #7c8ea3; --water: #2e3a7a;
  --fire-ink: #b23a55;            /* fire, darkened enough for text on paper */
  --accent: var(--water); --accent-ink: #ffffff;
  --postit-yellow: #e8d477; --postit-pink: #f0b3bd; --postit-blue: #b9c8e8; --postit-ink: #2b2414;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Indie Flower", "Comic Sans MS", cursive;
  --shadow: 0 8px 18px rgba(60, 48, 28, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #16181f; --card: #1e212a; --sunk: #232733;
    --ink: #ece7dc; --muted: #b3ab9d; --faint: #8a8478; --line: #313543; --line-strong: #444a5c;
    --wood: #7fb86c; --fire: #f08da0; --earth: #e09a6c; --metal: #aab9cb; --water: #9aa8e8;
    --fire-ink: #f5a3b3; --accent: #9aa8e8; --accent-ink: #141833; --fire-btn-ink: #2a0d14;
    --postit-yellow: #d9c35e; --postit-pink: #e79aa7; --postit-blue: #a3b4dc;
    --shadow: 0 8px 18px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #16181f; --card: #1e212a; --sunk: #232733;
  --ink: #ece7dc; --muted: #b3ab9d; --faint: #8a8478; --line: #313543; --line-strong: #444a5c;
  --wood: #7fb86c; --fire: #f08da0; --earth: #e09a6c; --metal: #aab9cb; --water: #9aa8e8;
  --fire-ink: #f5a3b3; --accent: #9aa8e8; --accent-ink: #141833; --fire-btn-ink: #2a0d14;
  --postit-yellow: #d9c35e; --postit-pink: #e79aa7; --postit-blue: #a3b4dc;
  --shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--earth); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 10px 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.hand { font-family: var(--hand); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ── */
.bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-five { font: 600 .78rem var(--sans); color: var(--muted); letter-spacing: .02em; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; }
.nav { margin-left: auto; display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--fire); text-decoration-thickness: 2px; }
/* Lights on / lights off. Shows the sun in the dark theme (tap for light) and the moon in the light one. */
.theme-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--card); color: var(--ink); cursor: pointer; padding: 0; transition: transform .2s; }
.theme-btn:hover { transform: rotate(-12deg); }
.theme-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-btn .sun { display: none; color: var(--earth); }
.theme-btn .moon { color: var(--water); }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
@media (prefers-reduced-motion: reduce) { .theme-btn { transition: none; } .theme-btn:hover { transform: none; } }
.nav .btn { margin: 0; padding: 8px 16px; font-size: .92rem; color: var(--accent-ink); }
@media (max-width: 640px) { .nav { margin-left: 0; width: 100%; } .brand img { width: 52px; } }

.streamers { display: block; width: 100%; height: 46px; }

/* ── Buttons ── */
.btn { display: inline-block; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font: 600 1rem var(--sans); padding: 13px 24px; margin-top: 18px; cursor: pointer; text-decoration: none;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 55%, #000); transition: transform .12s ease; }
.btn:hover { transform: translateY(-1px) rotate(-.6deg); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.fire { background: var(--fire); color: var(--fire-btn-ink, #fff); box-shadow: 0 3px 0 color-mix(in srgb, var(--fire) 55%, #000); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: default; }

/* ── Hero ── */
.hero { padding-top: 26px; padding-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.kicker { font-family: var(--hand); font-size: 1.35rem; color: var(--fire-ink); margin: 0 0 6px; transform: rotate(-1.5deg); display: inline-block; }
.lede { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin: 14px 0 0; max-width: 36em; }
.squiggle { display: block; margin: 6px 0 0; }
.ways { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ways li { font: 600 .85rem var(--sans); padding: 5px 12px; border-radius: 999px; background: var(--card);
  border: 1.5px solid var(--c); color: var(--ink); }
.hero-notes { position: relative; min-height: 250px; }
.postit { display: block; width: 210px; padding: 16px 16px 18px; color: var(--postit-ink); font: 1.2rem/1.35 var(--hand);
  box-shadow: var(--shadow); border-radius: 2px 2px 14px 2px; background: var(--postit-yellow); }
.postit.pink { background: var(--postit-pink); }
.postit.blue { background: var(--postit-blue); }
.hero-notes .postit:nth-child(1) { transform: rotate(-3deg); margin-left: 8%; }
.hero-notes .postit:nth-child(2) { transform: rotate(2.5deg); margin: -10px 0 0 38%; }
.hero-notes .postit:nth-child(3) { transform: rotate(-1.5deg); margin: -6px 0 0 12%; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-notes { min-height: 0; display: flex; gap: 12px; overflow-x: auto; padding: 8px 2px 14px; }
  .hero-notes .postit { flex: none; width: 190px; margin: 0 !important; }
}

/* ── Panels and the chart tool ── */
section.band { padding: 34px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 0 var(--line); }
.tool > * { min-width: 0; }
.tool { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 26px; align-items: start; }
.tool .form-card { position: sticky; top: 84px; }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } .tool .form-card { position: static; } }
.toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--sunk); margin-bottom: 8px; }
.toggle button { border: 0; background: none; color: var(--muted); font: 600 .92rem var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
fieldset { border: 0; border-top: 1px dashed var(--line-strong); margin: 10px 0 0; padding: 12px 0 4px; min-width: 0; }
legend { font-family: var(--hand); font-size: 1.35rem; padding: 0 8px 0 0; color: var(--fire-ink); }
label { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin: 10px 0 0; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; font: 16px var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
input:disabled { opacity: .5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--wood); }
.hint { font-size: .88rem; color: var(--muted); margin: 8px 0 0; }
.err { min-height: 1.4em; font-size: .95rem; margin: 10px 0 0; color: var(--fire-ink); }
.privacy-note { font-size: .85rem; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; }
.load-pdf { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.load-pdf label { cursor: pointer; }
.load-pdf .linkish { color: var(--accent); text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 3px; }
.load-pdf label:focus-within .linkish { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.pdf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; justify-content: flex-end; margin-bottom: 8px; }
.pdf-bar .btn { margin: 0; padding: 8px 16px; font-size: .92rem; }
.pdf-bar .hint { margin: 0; }

.empty-result { display: grid; place-items: center; text-align: center; min-height: 340px; border: 2px dashed var(--line-strong);
  border-radius: 18px; padding: 24px; color: var(--muted); }
.empty-result .hand { font-size: 1.6rem; color: var(--ink); }
.res-head h2 { font-size: 2rem; }
.sub { color: var(--muted); margin: 4px 0 0; }
.wheel { max-width: 340px; margin: 18px auto 6px; }
.wheel svg { width: 100%; height: auto; display: block; }
.w-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.w-line { stroke: var(--line); stroke-width: 1; }
.w-sign { font: 14px var(--serif); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.w-p circle { fill: var(--card); stroke: var(--ink); stroke-width: 1; }
.w-p text { font: 13px var(--serif); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.w-p.p1 circle { fill: var(--ink); } .w-p.p1 text { fill: var(--paper); }
.w-asc { stroke: var(--fire); stroke-width: 2; }
.block { margin-top: 22px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  border-top: 5px solid var(--c, var(--line-strong)); }
.block h3 { margin-bottom: 6px; }
.block h3 .hand { font-size: 1.05rem; color: var(--muted); margin-left: 6px; }
.block p { max-width: 40em; }
.block ul { padding-left: 1.1em; margin: 8px 0; } .block li { margin: 8px 0; }
.hl { border-left: 4px solid var(--fire); padding-left: 16px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.pil { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.pl { font-size: .8rem; color: var(--muted); }
.cell { border-radius: 10px; padding: 10px 4px; background: color-mix(in srgb, var(--c) 16%, var(--card)); border-top: 4px solid var(--c);
  font-family: var(--serif); font-size: 1.1rem; }
.cell small { display: block; font: 500 .72rem var(--sans); color: var(--muted); margin-top: 2px; }
.pil.dm .cell:first-of-type { outline: 2px solid var(--ink); outline-offset: 1px; }
.pil.unknown .cell { background: var(--sunk); border-top-color: var(--line-strong); color: var(--faint); }

/* Human Design bodygraph */
.hd-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 520px) { .hd-grid { grid-template-columns: 1fr; } .hd-grid svg { max-width: 180px; margin: 0 auto; display: block; } }
.bg-center { stroke: var(--ink); stroke-width: 1.4; }
.bg-center.open { fill: var(--card); }
.bg-chan { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.bg-chan.on { stroke: var(--ink); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0; }
.facts dt { color: var(--muted); font-size: .9rem; } .facts dd { margin: 0; font-weight: 600; }
.beta { font: 600 .72rem var(--sans); background: var(--sunk); color: var(--muted); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }

.next-step { margin-top: 26px; padding: 22px; border-radius: 18px; background: color-mix(in srgb, var(--postit-yellow) 35%, var(--card));
  border: 1px solid var(--line); position: relative; }
.next-step h3 { font-family: var(--hand); font-size: 1.7rem; }

/* ── Services ── */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: relative; border-top: 6px solid var(--c); }
.service h3 { font-size: 1.6rem; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.price b { font: 600 1.6rem var(--serif); }
.price-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.price-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.price-list li > span:first-child { flex: 1 1 12em; }
.price-list b { font: 600 1.15rem var(--serif); }
.offer { font-family: var(--hand); font-size: 1.15rem; color: var(--fire-ink); transform: rotate(-1.5deg); display: inline-block; }
.tag { position: absolute; top: -14px; right: 16px; transform: rotate(3deg); font-family: var(--hand); font-size: 1.05rem;
  background: var(--postit-pink); color: var(--postit-ink); padding: 4px 12px; box-shadow: var(--shadow); }

/* ── Five pathways ── */
.pathways { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 900px) { .pathways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pathways { grid-template-columns: 1fr; } }
.pathway { background: var(--card); border-radius: 14px; padding: 16px; border: 1px solid var(--line); border-left: 6px solid var(--c); }
.pathway b { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; display: block; }
.pathway .el { font-family: var(--hand); color: var(--c); font-size: 1.2rem; filter: saturate(1.1) brightness(.85); }
:root[data-theme="dark"] .pathway .el { filter: none; }
.pathway span:last-child { font-size: .92rem; color: var(--muted); }
.soon { display: inline-block; margin-top: 14px; font-family: var(--hand); font-size: 1.2rem; transform: rotate(-1deg); background: var(--postit-blue);
  color: var(--postit-ink); padding: 6px 14px; box-shadow: var(--shadow); }

/* ── Prose pages ── */
.prose h2 { margin-top: 30px; }
.prose ul { padding-left: 1.2em; } .prose li { margin: 6px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin: 14px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 1.2rem var(--hand); background: var(--postit-yellow); color: var(--postit-ink); transform: rotate(-6deg); }

/* ── Footer ── */
footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--muted); }
.family { font-family: var(--hand); font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } .btn:hover { transform: none; } }
@media print { .bar, .streamers, footer, .form-card, .next-step { display: none !important; } body { background: #fff; } }

/* About Alex */
.about-top { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; margin-top: 10px; }
.about-photo { width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; transform: rotate(-3deg);
  background: conic-gradient(var(--wood) 0 20%, var(--fire) 0 40%, var(--earth) 0 60%, var(--metal) 0 80%, var(--water) 0); padding: 6px; }
.about-photo span { width: 100%; height: 100%; border-radius: 50%; background: var(--card); display: grid; place-items: center;
  font: 3.4rem/1 var(--hand); color: var(--ink); }
.about-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; transform: rotate(3deg); }
@media (max-width: 560px) { .about-top { grid-template-columns: 1fr; justify-items: start; } .about-photo { width: 150px; height: 150px; } }
.my-chart { list-style: none; padding: 0; }
.my-chart li { border-left: 4px solid var(--c); padding: 4px 0 4px 14px; margin: 10px 0; }
.draft-note { background: var(--postit-yellow); color: var(--postit-ink); padding: 14px 18px 16px; border-radius: 4px; transform: rotate(-.8deg);
  box-shadow: var(--shadow); max-width: 520px; }
.draft-note .hand { font-size: 1.35rem; margin: 0 0 4px; }
.draft-note p { margin: 0; }

/* Place search (birthplaces and places that matter) */
.pp-wrap { position: relative; }
.pp-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); max-height: 300px; overflow-y: auto; }
.pp-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 400; display: flex; flex-direction: column; }
.pp-list li small { color: var(--muted); font-size: .82rem; }
.pp-list li[aria-selected="true"], .pp-list li:hover { background: var(--sunk); }
.pp-list .pp-none { color: var(--muted); cursor: default; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 3px; cursor: pointer; }

/* Family mode and places in the form */
.person { position: relative; }
.person .remove { position: absolute; right: 0; top: 0; border: 0; background: none; color: var(--fire-ink); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; }
.add-person { margin: 6px 0 4px; padding: 8px 16px; font-size: .92rem; }
.places { margin-top: 18px; }
.places legend .muted { font-weight: 400; font-size: .88rem; }
.place-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 520px) { .place-row { grid-template-columns: 1fr; } }

/* Family results */
.glance li { border-left: 4px solid var(--pc, var(--line-strong)); padding-left: 10px; list-style: none; margin-left: -18px; }

/* The places map */
.astromap-wrap { margin: 10px 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.astromap { display: block; width: 100%; height: auto; }
.am-sea { fill: color-mix(in srgb, var(--water) 7%, var(--card)); }
.am-land { fill: color-mix(in srgb, var(--earth) 18%, var(--card)); }
.am-line { fill: none; stroke-width: .7; vector-effect: non-scaling-stroke; }
.am-place { fill: var(--ink); stroke: var(--card); stroke-width: .8; }
.am-label { font: 600 6px var(--sans); fill: var(--ink); }
.place-list { list-style: none; padding: 0; }
.place-list > li { border-top: 1px dashed var(--line-strong); padding-top: 8px; margin-top: 8px; }
.place-list .place-name { margin-bottom: 4px; }
.place-list .together { font-family: var(--hand); font-size: 1.15rem; color: var(--wood); }
