/* =========================================================
   Luca — styles.css
   Mobile-first. Brand colours sampled from assets/banner.png.
   ========================================================= */

/* Self-hosted font (no Google CDN). If the file is missing, system fonts are used. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --luca-purple: #6B3DF2;      /* logo + "a story." — 5.9:1 on white */
  --luca-purple-dark: #5B2FD6; /* hover, small text on tints */
  --luca-purple-tint: #EDE8FD; /* insight card background */
  --luca-green: #1FA971;       /* rising line: graphics only, too light for text */
  --luca-green-text: #137A50;  /* green text, passes AA */
  --luca-green-tint: #E3F7EC;
  --blue-text: #1D5FA8;
  --blue-tint: #E4F0FC;

  /* Neutrals */
  --text: #161A3A;
  --muted: #4A5170;            /* 7.8:1 on bg */
  --bg: #F2F4FB;
  --surface: #FFFFFF;
  --line: #DDDFE9;
  --amber: #8A5A00;            /* gentle form errors, never red */
  --amber-tint: #FFF4DC;

  /* Shape & rhythm */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(22, 26, 58, .04), 0 8px 24px rgba(22, 26, 58, .06);
  --shadow-lg: 0 2px 4px rgba(22, 26, 58, .04), 0 24px 60px rgba(22, 26, 58, .12);
  --gutter: 20px;
  --section-y: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
html { -webkit-tap-highlight-color: transparent; }
/* iOS Safari: remove default inner shadows/rounding on form controls */
input, textarea, button { -webkit-appearance: none; appearance: none; margin: 0; }
button { font: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 9vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--luca-purple-dark); text-underline-offset: 3px; }
a:hover { color: var(--text); }
ul, ol { padding: 0; margin: 0; list-style: none; }
.accent { color: var(--luca-purple); }
/* Purple text with a marker-pen highlight behind the whole word.
   The SVG is a rough, slightly tilted stroke with uneven ends, stretched to fit. */
.highlight {
  color: var(--luca-purple);
  padding: .02em .18em .06em;
  margin: 0 -.06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50' preserveAspectRatio='none'%3E%3Cpath d='M6 9 C40 5 90 7 150 4 C172 3 188 5 196 7 C199 18 197 33 195 44 C160 47 110 45 60 47 C35 48 15 46 3 45 C1 33 2 19 6 9 Z' fill='%23DCD0FF' fill-opacity='.85'/%3E%3Cpath d='M10 11 C60 8 120 9 192 8' stroke='%23CDBDFF' stroke-width='3' fill='none' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

:focus-visible {
  outline: 3px solid var(--luca-purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  font: inherit; font-weight: 700; font-size: 1rem;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--luca-purple); color: #fff; box-shadow: 0 6px 18px rgba(107, 61, 242, .28); }
.btn-primary:hover { background: var(--luca-purple-dark); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 251, .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-weight: 800; font-size: 1.4rem; letter-spacing: .2em; color: var(--luca-purple); }
.brand-tag { margin-top: 4px; font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu: a dropdown panel. Without JS the toggle is hidden and links show inline. */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .site-nav { width: 100%; padding-bottom: 12px; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px; box-shadow: var(--shadow);
}
.site-nav ul { display: grid; gap: 2px; margin-bottom: 12px; }
.site-nav ul a {
  display: block; padding: 12px 4px; font-weight: 600; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; }
.lede { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--muted); max-width: 34ch; margin-bottom: 28px; }

/* ---------- Waitlist forms ---------- */
.waitlist-form { max-width: 520px; }
.field-row { display: grid; gap: 10px; }
input[type="email"], textarea {
  width: 100%; min-height: 52px; padding: 14px 18px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #6E7491; }
input:focus, textarea:focus { outline: none; border-color: var(--luca-purple); box-shadow: 0 0 0 4px rgba(107, 61, 242, .16); }
input[aria-invalid="true"] { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-tint); }
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.form-msg { min-height: 0; margin: 10px 0 0; font-weight: 600; font-size: .95rem; }
.form-msg:empty { margin: 0; }
.form-msg.is-error { color: var(--amber); }
.fine-print { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--luca-green-tint); color: var(--luca-green-text);
  animation: fade-up .5s ease both;
}
.form-success:focus { outline: none; }
.form-success svg { flex: none; margin-top: 2px; }
.form-success p { margin: 0; color: var(--text); }
.form-success strong { display: block; color: var(--luca-green-text); font-size: 1.05rem; }

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0;
  width: 120%; aspect-ratio: 1; right: -40%; top: 10%;
  background: radial-gradient(closest-side, rgba(107, 61, 242, .14), transparent);
}
.phone {
  position: relative; z-index: 1;
  width: min(100%, 340px);
  padding: 12px; border-radius: 46px;
  background: var(--text);
  box-shadow: var(--shadow-lg);
}
.phone-notch { width: 96px; height: 22px; margin: 4px auto -26px; border-radius: 999px; background: var(--text); position: relative; z-index: 2; }
.phone-screen {
  background: var(--bg); border-radius: 36px;
  padding: 40px 14px 18px; display: grid; gap: 10px;
  font-size: .82rem; line-height: 1.45;
}
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 4px; }
.app-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .18em; color: var(--luca-purple); }
.insight-card { background: var(--surface); border-radius: 18px; padding: 14px; }
.insight-card p { margin: 0; }
.insight-feature { background: var(--luca-purple-tint); }
.insight-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--luca-purple-dark); }
.insight-title { font-weight: 800; font-size: 1.05rem; line-height: 1.25; margin: 4px 0 6px !important; }
.insight-title.small { font-size: .95rem; margin-bottom: 8px !important; }
.insight-body { color: var(--muted); }
.insight-good { display: flex; gap: 10px; align-items: center; background: var(--luca-green-tint); color: var(--luca-green-text); font-weight: 700; }
.insight-good svg { flex: none; }
.insight-good span { color: var(--luca-green-text); }

.bubble {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; color: var(--text);
}
.bubble img { flex: none; margin-top: 1px; }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.chip-neutral { background: #E7E9F2; color: var(--muted); }
.chip-purple { background: var(--luca-purple-tint); color: var(--luca-purple-dark); }
.chip-blue { background: var(--blue-tint); color: var(--blue-text); }
.chip-green { background: var(--luca-green-tint); color: var(--luca-green-text); }
.visual-note { position: relative; z-index: 1; margin: 16px 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-head { margin-bottom: 36px; }
.kicker {
  display: inline-block; margin-bottom: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--luca-purple-dark);
}
.section-lede { font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* Problem */
.problem { background: var(--surface); }

/* How it works — the green line connects the steps */
.steps { position: relative; display: grid; gap: 20px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 4px; border-radius: 4px;
  background: linear-gradient(to bottom, var(--luca-purple), var(--luca-green));
  transform-origin: top; transform: scaleY(var(--line-progress, 1));
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.js .steps:not(.is-visible)::before { --line-progress: 0; }
.step {
  position: relative; padding: 24px 22px 22px 84px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.step-icon {
  position: absolute; left: 12px; top: 22px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--luca-purple-tint); color: var(--luca-purple);
}
.step:last-child .step-icon { background: var(--luca-green-tint); color: var(--luca-green-text); }
.step-num { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.step h3 { font-size: 1.4rem; margin-bottom: 6px; }
.step > p:not(.bubble) { color: var(--muted); }
.bubble-step { margin: 14px 0 0; background: var(--luca-purple-tint); border: 0; font-weight: 600; border-bottom-left-radius: 4px; }
.step:last-child .bubble-step { background: var(--luca-green-tint); color: var(--luca-green-text); }

/* Why Luca */
.story-cards { display: grid; gap: 12px; }
.tx {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.tx p { margin: 0; }
.tx-title { font-weight: 800; font-size: 1.05rem; }
.tx-meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px !important; }
.tx-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.tx-purple { background: var(--luca-purple-tint); color: var(--luca-purple); }
.tx-blue { background: var(--blue-tint); color: var(--blue-text); }
.tx-green { background: var(--luca-green-tint); color: var(--luca-green-text); }

.compare { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; width: 50%; }
.compare th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #F7F8FC; }
.compare th:last-child { color: var(--luca-purple-dark); background: var(--luca-purple-tint); }
.compare td { border-top: 1px solid var(--line); color: var(--muted); }
.compare td:last-child { color: var(--text); font-weight: 700; background: rgba(237, 232, 253, .35); }

/* Prose sections (problem, gentle): plain writing, no cards */
.prose h2 { max-width: 20ch; }
.prose p { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.prose p:last-child { margin-bottom: 0; }

/* Gentle finance */
.gentle { background: var(--luca-purple-tint); }
.gentle .prose p { color: #3D4466; }

/* Progress / roadmap */
.roadmap { position: relative; display: grid; gap: 8px; }
.roadmap li { position: relative; display: flex; gap: 18px; padding-bottom: 20px; }
.roadmap li:not(:last-child)::before {
  content: ""; position: absolute; left: 11px; top: 28px; bottom: -4px; width: 2px; background: var(--line);
}
.roadmap li.done:not(:last-child)::before { background: var(--luca-green); }
.roadmap .dot {
  flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface);
}
.roadmap .done .dot {
  border-color: var(--luca-green); background: var(--luca-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.roadmap .now .dot { border-color: var(--luca-purple); background: var(--surface); position: relative; }
.roadmap .now .dot::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--luca-purple);
  animation: breathe 2.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(.7); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }
.roadmap h3 { margin-bottom: 4px; }
.roadmap p { margin: 0; color: var(--muted); }
.roadmap-state { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px !important; }
.done .roadmap-state { color: var(--luca-green-text); }
.now .roadmap-state { color: var(--luca-purple-dark); }
.next .roadmap-state { color: var(--muted); }
.now > div {
  background: var(--surface); border: 1.5px solid var(--luca-purple-tint);
  border-radius: var(--radius); padding: 14px 16px; margin-top: -14px; box-shadow: var(--shadow);
}
.now .dot { margin-top: 2px; }

/* Privacy promise */
.promise-card {
  display: grid; gap: 18px; padding: 28px 24px;
  background: var(--text); color: #E8EAF6; border-radius: var(--radius-lg);
}
.promise-card h2 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.promise-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #7EE0B4; }
.check-list { display: grid; gap: 10px; margin-top: 4px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.5 3.5L16 5.5' fill='none' stroke='%237EE0B4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; font-size: 1.05rem; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--luca-purple); border-bottom: 2.5px solid var(--luca-purple);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Final CTA */
.cta-card {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 40px 22px 32px; text-align: center;
}
.cta-card h2 { position: relative; }
.cta-card > p { color: var(--muted); max-width: 44ch; margin: 0 auto 24px; position: relative; }
.cta-card .waitlist-form { margin: 0 auto; position: relative; }
.cta-card .fine-print { text-align: center; }
.cta-line {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%;
  color: var(--luca-green); opacity: .14; pointer-events: none;
}
.cta-line path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease; }
.js .cta-card:not(.is-visible) .cta-line path { stroke-dashoffset: 1; }

/* Footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 20px; justify-items: start; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--luca-purple-dark); text-decoration: underline; }
.copyright { color: var(--muted); font-size: .9rem; margin: 0; }

/* Simple pages (privacy, 404) */
.page { padding: 48px 0 80px; }
.page h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page p, .page li { color: var(--muted); }
.page ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; margin-bottom: 1em; }
.review-note {
  background: var(--amber-tint); color: var(--amber); border-radius: var(--radius-sm);
  padding: 14px 16px; font-weight: 600;
}
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found svg { margin: 0 auto 28px; }
.not-found p { color: var(--muted); }

/* ---------- Hero join card ---------- */
.join-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--luca-purple-tint);
  max-width: 560px;
}
.join-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
.join-card .form-success { margin: 0; }

/* ---------- "Bank statement" in the problem section ---------- */
.statement {
  margin: 8px 0 28px; padding: 16px 18px; max-width: 420px;
  background: var(--bg); border-radius: var(--radius-sm);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88rem; color: var(--muted);
  transform: rotate(-1deg);
}
.statement p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: inherit !important; max-width: none; }
.statement p:last-child { border-bottom: 0; }
.prose p strong { color: var(--text); }

/* ---------- Feature rows (Why Luca) ---------- */
.feature-row { display: grid; gap: 24px; margin-bottom: 56px; align-items: center; }
.feature-num { font-size: .9rem; font-weight: 800; color: var(--luca-purple); margin-bottom: 6px; }
.feature-copy h3 { font-size: clamp(1.4rem, 4.5vw, 1.75rem); margin-bottom: 10px; }
.feature-copy p:last-child { color: var(--muted); font-size: 1.08rem; max-width: 42ch; }

.pattern-card, .chat { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.pattern-day { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.pattern-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.pattern-result {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px;
  padding: 14px; border-radius: var(--radius); background: var(--luca-purple-tint);
}
.pattern-result img { flex: none; margin-top: 2px; }
.pattern-result strong { display: block; }
.pattern-result span { font-size: .88rem; color: var(--muted); }

.chat > div { display: flex; flex-direction: column; gap: 10px; }
.msg { margin: 0; padding: 12px 16px; border-radius: 20px; max-width: 85%; font-size: .98rem; line-height: 1.45; }
.msg-luca { align-self: flex-start; background: var(--luca-purple-tint); border-bottom-left-radius: 6px; }
.msg-you { align-self: flex-end; background: var(--luca-purple); color: #fff; border-bottom-right-radius: 6px; }

/* ---------- About me ---------- */
.about { background: var(--surface); }
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-photo { margin: 0; justify-self: center; width: min(100%, 300px); position: relative; }
.about-photo img {
  width: 100%; height: auto; border-radius: 32px;
  box-shadow: var(--shadow-lg); transform: rotate(-2deg);
}
.about-photo figcaption {
  position: absolute; right: -8px; bottom: 18px;
  background: var(--surface); padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 700; transform: rotate(3deg);
}
.about-copy p { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.about-copy h2 { margin-bottom: .6em; }
.signature { margin: 24px 0 0; font-weight: 800; font-size: 1.3rem; color: var(--text) !important; font-style: italic; }
.signature span { display: block; font-weight: 500; font-style: normal; font-size: .95rem; color: var(--muted); }
.footer-note { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Tablet (768px+) ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; }
  .join-card { padding: 24px; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 80px; }
  .feature-row-flip .feature-copy { order: 2; }
  .about-grid { grid-template-columns: 300px 1fr; gap: 56px; }
  .field-row { grid-template-columns: 1fr auto; }
  .promise-card { grid-template-columns: auto 1fr; gap: 28px; padding: 40px; }
  .cta-card { padding: 56px 48px 44px; }
  .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav, .js .site-nav.is-open {
    width: auto;
    display: flex; align-items: center; gap: 28px;
    position: static; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 28px; margin: 0; }
  .site-nav ul a { padding: 6px 0; border: 0; color: var(--muted); }
  .site-nav ul a:hover { color: var(--luca-purple-dark); }
  .site-nav .btn { width: auto; }

  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
  .phone { width: 360px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 34px; }
  .steps::before {
    left: 40px; right: 40px; top: 0; bottom: auto; width: auto; height: 4px;
    background: linear-gradient(to right, var(--luca-purple), var(--luca-green));
    transform-origin: left; transform: scaleX(var(--line-progress, 1));
  }
  .step { padding: 28px 26px; }
  .step:nth-child(2) { margin-top: -14px; }
  .step:nth-child(3) { margin-top: -28px; }
  .step-icon { position: static; margin-bottom: 18px; }

  .compare th, .compare td { padding: 20px 28px; font-size: 1.05rem; }
  .about-grid { grid-template-columns: 380px 1fr; gap: 80px; }
  .about-photo { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .steps:not(.is-visible)::before { --line-progress: 1; }
  .js .cta-card:not(.is-visible) .cta-line path { stroke-dashoffset: 0; }
}
