:root {
  --bg: #ffffff;
  --bg-soft: #faf8f5;
  --surface: #ffffff;
  --ink: #14120f;
  --muted: #6b6459;
  --faint: #97907f;
  --line: #e8e3d9;
  --line-strong: #d6cfc0;
  --accent: #2f4a3a;
  --accent-soft: #eef3ef;
  --accent-ink: #ffffff;
  --warn: #a8412a;
  --shadow: 0 1px 2px rgba(20, 18, 15, .04), 0 8px 24px rgba(20, 18, 15, .06);
  --shadow-lg: 0 2px 4px rgba(20, 18, 15, .04), 0 18px 48px rgba(20, 18, 15, .10);
  --radius: 14px;
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100f0d;
    --bg-soft: #171612;
    --surface: #1a1815;
    --ink: #f2ede4;
    --muted: #a8a091;
    --faint: #7d7768;
    --line: #2b2924;
    --line-strong: #3a3730;
    --accent: #a9c9b4;
    --accent-soft: #1e2620;
    --accent-ink: #10120f;
    --warn: #e39079;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.45);
  }
}
:root[data-theme="light"] {
  --bg:#fff; --bg-soft:#faf8f5; --surface:#fff; --ink:#14120f; --muted:#6b6459;
  --faint:#97907f; --line:#e8e3d9; --line-strong:#d6cfc0; --accent:#2f4a3a;
  --accent-soft:#eef3ef; --accent-ink:#fff; --warn:#a8412a;
}
:root[data-theme="dark"] {
  --bg:#100f0d; --bg-soft:#171612; --surface:#1a1815; --ink:#f2ede4; --muted:#a8a091;
  --faint:#7d7768; --line:#2b2924; --line-strong:#3a3730; --accent:#a9c9b4;
  --accent-soft:#1e2620; --accent-ink:#10120f; --warn:#e39079;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo-mark {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--accent);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }

/* CSS-only language menu */
.langpick { position: relative; }
.langpick summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translateY(-2px);
}
.langpick[open] summary { border-color: var(--accent); }
.langmenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
}
.langmenu a {
  padding: 0.5rem 0.7rem;
  border-radius: 7px;
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--ink);
}
.langmenu a:hover { background: var(--bg-soft); }
.langmenu [aria-current="true"] { font-weight: 650; color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { opacity: .87; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.92rem; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.033em;
  margin: 1.6rem 0 0;
  text-wrap: balance;
}
.mark {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 0.02em 0.22em 0.1em;
  border-radius: 3px;
  transform: rotate(-1.4deg);
}

.hero-sub {
  font-size: 1.13rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
  max-width: 33rem;
}
.hero-sub strong { color: var(--ink); font-weight: 650; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 0.45rem; }
.trust svg { flex: 0 0 15px; color: var(--accent); }

/* ---------- hero visual: the actual template ---------- */

/* Vertical padding gives the floating cards room to sit past the sheet's
   edges without covering any figure inside it. */
.visual { position: relative; padding: 1.6rem 0 2.4rem; }

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sheet-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.sheet-name {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--faint);
  font-weight: 600;
}
.sheet-body { padding: 1.15rem 1.25rem 2rem; }
.sheet-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.15rem;
}
.sheet-meta { font-size: 0.82rem; color: var(--faint); margin: 0 0 1rem; }

.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.44rem 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--line);
}
.row span:first-child { color: var(--muted); }
.row span:last-child { font-weight: 600; }
.row.total {
  border-bottom: none;
  border-top: 2px solid var(--ink);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  font-size: 0.96rem;
}
.row.total span:first-child { color: var(--ink); font-weight: 650; }
.row.key {
  border-bottom: none;
  background: var(--accent-soft);
  margin: 0.7rem -0.55rem 0;
  padding: 0.6rem 0.55rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.row.key span { color: var(--accent) !important; font-weight: 700; }

.float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-lg);
  padding: 0.7rem 0.95rem;
  max-width: 13.5rem;
}
.float b { display: block; font-size: 0.9rem; letter-spacing: -0.01em; }
.float span { font-size: 0.82rem; color: var(--muted); }
/* Top-right sits over the empty half of the title bar; bottom-left sits over
   the sheet's bottom padding. Neither can cover a row of the budget. */
.float-a { top: 0; right: -1.2rem; }
.float-b { bottom: 0; left: -1.8rem; }

@media (max-width: 62rem) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 3rem; }
  .nav .nav-link { display: none; }
  .float-a { right: -0.5rem; }
  .float-b { left: -0.5rem; }
}
@media (max-width: 34rem) {
  .float { position: static; max-width: none; margin-top: 0.75rem; }
  .visual { padding: 0; }
}

/* ---------- generic sections ---------- */

.band { background: var(--bg-soft); border-block: 1px solid var(--line); }
section { padding: 4.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
h3 { font-size: 1.05rem; font-weight: 680; letter-spacing: -0.012em; margin: 0 0 0.45rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.card ul { margin: 0.8rem 0 0; padding-left: 1.05rem; color: var(--muted); font-size: 0.93rem; }
.card li { margin-bottom: 0.28rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.step-num {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- signup ---------- */

.signup-band { background: var(--accent-soft); border-block: 1px solid var(--line); }
.signup { max-width: 38rem; margin: 0 auto; text-align: center; }
.signup h2 { margin-bottom: 0.6rem; }
.signup .sub { color: var(--muted); margin-bottom: 1.8rem; }

form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
input[type="email"] {
  flex: 1 1 17rem;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
input[type="email"]::placeholder { color: var(--faint); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fineprint { margin: 1.1rem 0 0; font-size: 0.87rem; color: var(--muted); }

.msg {
  margin: 1.1rem auto 0;
  max-width: 30rem;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.msg[hidden] { display: none; }
.msg.good { color: var(--accent); border-color: var(--accent); }
.msg.bad { color: var(--warn); border-color: var(--warn); }

/* ---------- faq ---------- */

/* Block is centred on the page; the questions themselves stay left-aligned so
   the answers remain readable. */
.faq { max-width: 44rem; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 620;
  font-size: 1.02rem;
  letter-spacing: -0.012em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--faint);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.98rem; max-width: 40rem; }

/* ---------- name / brand note ---------- */

.namecard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--line-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--muted);
}
.pron {
  font-size: 0.93rem;
  color: var(--faint);
  margin-top: 1rem;
}
@media (max-width: 48rem) { .namecard { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-langs { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.footer-langs a { text-decoration: none; color: var(--muted); }
.footer-langs a:hover { color: var(--ink); }
.footer-langs [aria-current="true"] { color: var(--ink); font-weight: 650; }
.site-footer a { color: var(--muted); }
