:root {
  --bg: #f4ede0;
  --bg-soft: #ede4d3;
  --bg-inset: #fbf6ec;
  --surface: #ffffff;
  --ink: #1a1410;
  --ink-muted: #6b5e54;
  --accent: #c4593f;
  --accent-soft: #f0d4c8;
  --sage: #7a8b6f;
  --gold: #c89b3c;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 237, 224, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(26, 20, 16, 0.07);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; display: block; }
.brand b { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 22px; color: var(--accent); }
nav.site a {
  color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  margin-left: 20px; transition: color .15s;
}
nav.site a:hover { color: var(--accent); }

/* ── Hero ───────────────────────────────── */
.hero { text-align: center; padding: 72px 0 40px; }
.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: .08em; color: var(--accent);
  text-transform: uppercase;
}
h1 {
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(40px, 8vw, 64px); line-height: 1.05; margin: 14px 0 18px;
}
.lead { font-size: 18px; color: var(--ink-muted); max-width: 540px; margin: 0 auto; }

/* ── Buttons ────────────────────────────── */
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .12s, box-shadow .12s;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(196, 89, 63, .28); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(196, 89, 63, .34); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(26, 20, 16, .18); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Feature cards ──────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 48px 0; }
.card {
  background: var(--surface); border: 1px solid rgba(26, 20, 16, .06);
  border-radius: var(--radius); padding: 24px;
}
.card .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.card h3 { font-size: 17px; margin: 8px 0 6px; }
.card p { font-size: 14px; color: var(--ink-muted); }

.price-card {
  background: var(--ink); color: var(--bg); border-radius: var(--radius);
  padding: 32px; text-align: center; margin: 40px 0;
}
.price-card .amount { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 44px; }
.price-card .amount span { font-size: 18px; color: rgba(244,237,224,.6); font-family: 'Inter', sans-serif; font-style: normal; }
.price-card p { color: rgba(244,237,224,.7); font-size: 14px; margin-top: 6px; }

/* ── Legal / article pages ──────────────── */
article {
  background: var(--surface); border: 1px solid rgba(26, 20, 16, .06);
  border-radius: var(--radius); padding: 40px; margin: 40px 0;
}
article .meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; }
article h1 { font-size: clamp(32px, 6vw, 44px); margin-bottom: 8px; }
article h2 {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 24px; margin: 32px 0 10px; color: var(--ink);
}
article h3 { font-size: 16px; margin: 20px 0 6px; }
article p, article li { color: var(--ink-muted); font-size: 15px; margin-bottom: 10px; }
article ul, article ol { padding-left: 22px; margin-bottom: 12px; }
article a { color: var(--accent); }
article strong { color: var(--ink); }
.callout {
  background: var(--bg-inset); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 14px 18px; margin: 18px 0;
}
.callout p { margin: 0; font-size: 14px; }

/* FAQ */
details.faq {
  background: var(--surface); border: 1px solid rgba(26, 20, 16, .06);
  border-radius: 14px; padding: 4px 20px; margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 400; }
details.faq[open] summary::after { content: '–'; }
details.faq p { padding: 0 0 16px; color: var(--ink-muted); font-size: 15px; }

/* ── How it works (steps + phone mockups) ─── */
.how-hero { text-align: center; padding: 64px 0 8px; }
.how-hero h1 { margin: 12px 0 14px; }
.how-hero .lead { margin-bottom: 8px; }

.how-steps { display: flex; flex-direction: column; gap: 44px; margin: 44px 0 8px; }
.how-step { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; justify-content: center; }
.how-step:nth-child(even) { flex-direction: row-reverse; }
.how-phone-wrap { flex: 0 0 232px; display: flex; justify-content: center; }
.how-copy { flex: 1 1 300px; min-width: 260px; }
.how-copy .step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 14px;
  margin-bottom: 12px;
}
.how-copy h2 {
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 27px; line-height: 1.12; margin-bottom: 8px;
}
.how-copy p { color: var(--ink-muted); font-size: 15.5px; }
.how-copy .tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--sage); margin-top: 8px; display: block; }
@media (max-width: 560px) {
  .how-step, .how-step:nth-child(even) { flex-direction: column; text-align: center; gap: 22px; }
  .how-copy { min-width: 0; }
  .how-copy .step-n { margin-left: auto; margin-right: auto; }
}

/* Extra screen gallery */
.mk-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px 18px; margin: 26px 0 8px; }
.mk-gitem { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mk-gitem .cap { text-align: center; }
.mk-gitem .cap b { font-size: 14px; display: block; }
.mk-gitem .cap span { font-size: 12.5px; color: var(--ink-muted); }

/* ── Phone mockup framework ─────────────────── */
.mk-phone {
  width: 100%; max-width: 224px; aspect-ratio: 9 / 19.3;
  background: var(--bg); border-radius: 36px;
  border: 8px solid #17110d;
  box-shadow: 0 22px 48px rgba(26, 20, 16, .20), inset 0 0 0 1px rgba(255,255,255,.4);
  position: relative; overflow: hidden;
}
.mk-phone.dark { background: #1a1512; color: #f4ede0; }
.mk-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 19px; background: #17110d; border-radius: 12px; z-index: 4;
}
.mk-screen { position: absolute; inset: 0; padding: 32px 15px 16px; display: flex; flex-direction: column; }
.mk-kick { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.mk-phone.dark .mk-kick { color: var(--gold); }
.mk-h { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 21px; line-height: 1.08; margin: 3px 0 6px; }
.mk-sub { font-size: 10px; color: var(--ink-muted); line-height: 1.4; }
.mk-phone.dark .mk-sub { color: rgba(244,237,224,.6); }
.mk-spacer { flex: 1; }

/* Reusable inner pieces */
.mk-wave { display: flex; align-items: center; gap: 3px; height: 46px; }
.mk-wave i { flex: 1; background: var(--accent); border-radius: 3px; opacity: .85; }
.mk-ring {
  width: 116px; height: 116px; border-radius: 50%; margin: 6px auto;
  background: conic-gradient(var(--accent) var(--p, 62%), rgba(26,20,16,.10) 0);
  display: grid; place-items: center; position: relative;
}
.mk-ring::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--bg); }
.mk-ring .in { position: relative; z-index: 1; text-align: center; }
.mk-ring .in b { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 26px; }
.mk-ring .in span { font-size: 8.5px; color: var(--ink-muted); display: block; }
.mk-phone.dark .mk-ring::after { background: #1a1512; }
.mk-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px; font-size: 9.5px; font-weight: 500;
  background: var(--bg-soft); color: var(--ink);
}
.mk-chip.on { background: var(--accent); color: #fff; }
.mk-chip.sage { background: rgba(122,139,111,.16); color: var(--sage); }
.mk-row { display: flex; gap: 5px; flex-wrap: wrap; }
.mk-meter { height: 7px; border-radius: 4px; background: rgba(26,20,16,.10); overflow: hidden; }
.mk-meter i { display: block; height: 100%; background: var(--sage); border-radius: 4px; }
.mk-line { height: 8px; border-radius: 4px; background: rgba(26,20,16,.09); margin: 4px 0; }
.mk-line.w80 { width: 80%; } .mk-line.w60 { width: 60%; } .mk-line.w90 { width: 90%; } .mk-line.w40 { width: 40%; }
.mk-phone.dark .mk-line { background: rgba(244,237,224,.14); }
.mk-btn { background: var(--accent); color: #fff; border-radius: 999px; padding: 8px; text-align: center; font-size: 10px; font-weight: 600; }
.mk-inset { background: var(--surface); border: 1px solid rgba(26,20,16,.06); border-radius: 12px; padding: 10px; }
.mk-phone.dark .mk-inset { background: rgba(244,237,224,.06); border-color: rgba(244,237,224,.1); }
.mk-rec { width: 52px; height: 52px; border-radius: 50%; background: #e23; margin: 0 auto; box-shadow: 0 0 0 5px rgba(238,34,51,.18); display: grid; place-items: center; }
.mk-rec::after { content: ''; width: 18px; height: 18px; border-radius: 5px; background: #fff; }
.mk-concentric { position: relative; height: 128px; }
.mk-concentric span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 2px solid var(--accent); border-radius: 50%; opacity: .45; }
.mk-concentric .mk-wave { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; }
.mk-vinyl { width: 108px; height: 108px; border-radius: 50%; margin: 8px auto; background: radial-gradient(circle at 50% 50%, var(--accent) 0 16%, #17110d 17% 100%); position: relative; box-shadow: 0 8px 20px rgba(26,20,16,.3); }
.mk-vinyl::after { content: ''; position: absolute; inset: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.mk-xy { position: relative; height: 78px; border-radius: 10px; background: linear-gradient(135deg, rgba(196,89,63,.12), rgba(200,155,60,.12)); border: 1px solid rgba(26,20,16,.06); }
.mk-xy i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); top: 30%; left: 58%; box-shadow: 0 0 0 4px rgba(196,89,63,.2); }

/* ── Footer ─────────────────────────────── */
footer.site {
  border-top: 1px solid rgba(26, 20, 16, .07); margin-top: 56px; padding: 32px 0 48px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--ink-muted); text-decoration: none; font-size: 14px; }
footer.site a:hover { color: var(--accent); }
footer.site .copy { font-size: 13px; color: var(--ink-muted); }
