/* ============================================================
   MyCarrie – сайт, дизайн система v2 „спокойна компетентност“
   Палитра: крем/пясък основа, индиго текст, един лилав акцент, корал за детайл
   ============================================================ */

:root {
  --cream: #FBF9F6;
  --sand: #F1EDE8;
  --sand-2: #E7E1DA;
  --ink: #170B45;
  --ink-2: #2C2350;
  --grey: #5E5A6B;
  --grey-2: #8C8798;
  --accent: #6B2FB3;
  --accent-2: #552391;
  --accent-soft: #EFE7FA;
  --coral: #E8735A;
  --white: #FFFFFF;
  --line: rgba(23, 11, 69, 0.12);
  --line-soft: rgba(23, 11, 69, 0.07);
  --r: 12px;
  --r-lg: 18px;
  --maxw: 1120px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px -30px rgba(23, 11, 69, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  margin: 0; font-family: var(--sans); color: var(--ink-2); background: transparent;
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; position: relative;
}
/* Зърнеста текстура върху целия сайт – премахва „пластмасовия“ вид на плоските фонове */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--grey); line-height: 1.6; }
.muted { color: var(--grey); }
.small { font-size: .9rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-sand { background: var(--sand); position: relative; }
.section-sand::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--coral), transparent 70%); opacity: .7; }
.section-white { background: var(--white); }
.center { text-align: center; }
.kicker { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; flex: none; }
.center .kicker, .section-head:not(.left) .kicker { justify-content: center; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 1000; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(107,47,179,.55); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-link { color: var(--accent); font-weight: 600; }
.btn-link::after { content: " →"; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(251, 249, 246, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), #D45BC4 45%, var(--coral)); opacity: .9; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1.5px solid var(--line); color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: .85rem; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; min-width: 170px; display: none; list-style: none; margin: 0; }
.lang.open .lang-menu { display: block; }
.lang-menu button { width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.lang-menu button:hover { background: var(--sand); }
.lang-menu button[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; left: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(201,182,240,.55), rgba(201,182,240,0) 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(245,200,176,.6), rgba(245,200,176,0) 65%); pointer-events: none; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.hero .lead { max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 16px; align-items: center; }
.hero-meta { font-size: .9rem; color: var(--grey); }

/* ---------- Photo placeholders (replace src when photos arrive) ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(160deg, #E9E2DA 0%, #D9D0C6 100%); aspect-ratio: 4 / 5; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -28px rgba(23,11,69,.45); }
.photo img { transition: transform .6s ease; }
.stage:hover .photo img, .article-card:hover .photo img { transform: scale(1.04); }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.square { aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--grey); font-size: .85rem; line-height: 1.4; }
.photo .ph b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.hero-visual { position: relative; }
.hero-visual .photo { aspect-ratio: 4 / 5; }
.hero-visual .chat-card { position: absolute; left: -48px; bottom: 36px; width: 340px; }

/* ---------- Trust row ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.55); overflow: hidden; }
.trust b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--coral)); margin-right: 10px; vertical-align: middle; }
.trust > div { padding: 22px 20px; border-right: 1px solid var(--line); }
.trust > div:last-child { border-right: 0; }
.trust b { display: block; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.trust span { color: var(--grey); font-size: .9rem; }

/* ---------- Chat demo (Carrie) ---------- */
.chat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.chat-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), #D45BC4 50%, var(--coral)); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: .85rem; color: var(--grey); }
.chat-head .orb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F2C9E6, #8E3FD1 60%, #5B2DB5); }
.chat-head b { color: var(--ink); font-weight: 600; }
.chat-body { padding: 14px 16px 16px; display: grid; gap: 10px; font-size: .92rem; line-height: 1.45; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; }
.msg.user { align-self: flex-end; justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.carrie { background: var(--accent-soft); color: var(--ink-2); border-bottom-left-radius: 4px; }
.chat-demo { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.chat-tabs { display: grid; gap: 10px; }
.chat-tab { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 18px; cursor: pointer; font: inherit; color: var(--ink-2); transition: border-color .15s, background .15s; }
.chat-tab b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.chat-tab span { font-size: .9rem; color: var(--grey); }
.chat-tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.chat-pane { display: none; }
.chat-pane.active { display: block; }
.chat-note { font-size: .85rem; color: var(--grey); margin-top: 12px; }

/* ---------- Stages ---------- */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stage { display: block; color: inherit; text-decoration: none !important; }
.stage { counter-increment: stage; }
.stages { counter-reset: stage; }
.stage .photo { aspect-ratio: 3 / 4; margin-bottom: 14px; transition: transform .2s; }
.stage .photo::after { content: "0" counter(stage); position: absolute; left: 12px; top: 12px; background: rgba(23,11,69,.85); color: #fff; font-family: var(--serif); font-size: .85rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .05em; }
.stage:hover .photo { transform: translateY(-4px); }
.stage b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.stage span { font-size: .9rem; color: var(--grey); }
.stage .more { display: block; margin-top: 8px; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* ---------- Features (editorial rows) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.feature-row.reverse > :first-child { order: 2; }
.feature-row h3 { font-size: 1.7rem; margin-bottom: 12px; }
.feature-row p { color: var(--grey); }
.feature-row .when { font-size: .9rem; color: var(--ink-2); background: var(--sand); display: inline-block; padding: 6px 12px; border-radius: 999px; margin-top: 8px; }
.feature-visual { display: flex; justify-content: center; position: relative; }
.feature-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(201,182,240,.5), rgba(245,200,176,.25) 60%, transparent 72%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.feature-visual .phone { position: relative; }

/* ---------- Phone (device frame, kept from v1, restyled) ---------- */
.phone { position: relative; width: 290px; height: 620px; border-radius: 42px; background: #1a1430; padding: 10px; box-shadow: var(--shadow); }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; background: #1a1430; border-radius: 0 0 16px 16px; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #F6F0FF 0%, #FBF8FF 40%, #FFFFFF 100%); font-family: var(--sans); color: var(--ink); font-size: 11px; line-height: 1.3; display: flex; flex-direction: column; }
.scr-status { display: flex; justify-content: space-between; padding: 14px 20px 0; font-weight: 700; font-size: 11px; }
.scr-body { padding: 10px 12px 0; flex: 1; overflow: hidden; }
.scr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.scr-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F8B98E, #E673B8 55%, #8E3FD1); color: #fff; font-weight: 700; font-size: 12px; }
.scr-top .mid { flex: 1; margin-left: 10px; display: grid; gap: 3px; }
.scr-top .mid i { display: block; height: 2px; width: 18px; background: var(--ink-2); border-radius: 2px; }
.scr-top .mid i:nth-child(2) { width: 12px; }
.scr-bell { position: relative; width: 26px; height: 26px; display: grid; place-items: center; font-size: 15px; }
.scr-bell b { position: absolute; top: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%; background: #5B2DB5; color: #fff; font-size: 8px; display: grid; place-items: center; }
.scr-card { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 10px rgba(91,45,181,.08); margin-bottom: 9px; }
.scr-greet { background: linear-gradient(120deg, #EFE2FF 0%, #F9E8F7 60%, #FCEFF4 100%); position: relative; overflow: hidden; }
.scr-greet::after { content: "✿"; position: absolute; right: 10px; top: -6px; font-size: 54px; color: rgba(214,135,235,.35); }
.scr-greet b { display: block; font-size: 13px; margin-bottom: 2px; font-weight: 700; }
.scr-greet span { display: block; font-size: 10.5px; color: var(--ink-2); }
.scr-greet a { display: inline-block; margin-top: 5px; color: #5B2DB5; font-weight: 600; font-size: 10.5px; }
.scr-cycle { display: flex; align-items: center; gap: 10px; }
.scr-heart { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFD3EC, #E99AD6 55%, #D683E8); display: grid; place-items: center; font-size: 18px; }
.scr-cycle b { font-size: 13px; font-weight: 700; }
.scr-tag { display: inline-block; background: #FDE7F1; color: #B23D7B; font-size: 8.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 5px; vertical-align: middle; }
.scr-cycle a { display: block; color: #5B2DB5; font-weight: 600; font-size: 10.5px; margin-top: 2px; }
.scr-h { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 7px; }
.scr-h b { font-size: 12.5px; font-weight: 700; }
.scr-h span { color: var(--grey); font-size: 9.5px; display: flex; align-items: center; gap: 4px; }
.scr-h span i { width: 16px; height: 16px; border-radius: 50%; background: #5B2DB5; color: #fff; font-style: normal; display: grid; place-items: center; font-size: 11px; }
.scr-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 9px; }
.scr-q { border-radius: 12px; padding: 8px; font-size: 9.5px; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; }
.scr-q .ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; margin-bottom: 3px; }
.scr-q b { display: block; font-size: 10px; }
.scr-q small { color: var(--grey); font-size: 8.5px; }
.scr-q .bar { height: 4px; border-radius: 4px; background: #E0D5F5; margin: 4px 0; overflow: hidden; }
.scr-q .bar i { display: block; height: 100%; width: 40%; background: #3DB8E8; }
.scr-q .pill { background: #5B2DB5; color: #fff; border-radius: 8px; text-align: center; padding: 3px 0; font-weight: 700; font-size: 9px; }
.scr-q .add { color: #5B2DB5; font-weight: 700; }
.q-water { background: #EAF6FF; } .q-water .ic { background: #3DB8E8; color: #fff; }
.q-sym { background: #F3E9FF; } .q-sym .ic { background: #B37BF0; color: #fff; }
.q-mood { background: #FFF3E6; } .q-mood .ic { background: #F8B04E; color: #fff; }
.scr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.scr-g { background: #fff; border-radius: 12px; padding: 9px 6px; text-align: center; box-shadow: 0 2px 8px rgba(91,45,181,.07); min-height: 70px; }
.scr-g .em { font-size: 20px; line-height: 1; margin-bottom: 5px; }
.scr-g b { display: block; font-size: 9.5px; line-height: 1.2; }
.scr-g small { display: block; color: #8E3FD1; font-size: 8px; margin-top: 2px; }
.scr-nav { display: flex; justify-content: space-around; align-items: flex-end; padding: 6px 6px 10px; background: #fff; border-top: 1px solid var(--line-soft); font-size: 8px; color: var(--grey); }
.scr-nav div { display: grid; justify-items: center; gap: 2px; min-width: 44px; }
.scr-nav .i { font-size: 15px; }
.scr-nav .on { color: var(--ink); font-weight: 700; }
.scr-nav .orb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFC9E8, #B06DE6 50%, #7B3FD1); box-shadow: 0 4px 12px rgba(142,63,209,.45); margin-top: -14px; }

/* ---------- Data flow diagram ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; margin: 32px 0; }
.flow .node { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; box-shadow: 0 10px 30px -22px rgba(23,11,69,.4); }
.flow .node:nth-child(3) { border-color: var(--accent); background: var(--accent-soft); }
.flow .node b { display: block; font-family: var(--serif); color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.flow .node span { font-size: .88rem; color: var(--grey); }
.flow .arrow { color: var(--coral); font-size: 1.8rem; }
.flow .node.no { border-style: dashed; color: var(--grey); background: transparent; }
.flow .node.no b { color: var(--grey); text-decoration: line-through; }

/* ---------- Lists & checks ---------- */
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 11px; box-shadow: 0 0 0 4px var(--accent-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fact { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.fact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--coral)); }
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fact h3 { font-size: 1.2rem; margin-bottom: 8px; }
.fact p { color: var(--grey); margin: 0; font-size: .97rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ---------- Library ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card { display: block; color: inherit; text-decoration: none !important; }
.article-card .photo { aspect-ratio: 16 / 10; margin-bottom: 14px; }
.article-card .tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.article-card h3 { font-size: 1.2rem; margin: 6px 0; }
.article-card .meta { font-size: .85rem; color: var(--grey); }
.article-card.soon { opacity: .6; }
.article-card.soon .photo::after { content: attr(data-soon); position: absolute; inset: auto 12px 12px auto; background: var(--ink); color: #fff; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.75; }
.byline { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--grey); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 24px 0 32px; }
.byline b { color: var(--ink); font-weight: 600; }
.notice { background: #FFF4E8; border: 1px solid #F3D9BC; border-radius: var(--r); padding: 14px 18px; font-size: .92rem; color: #6B3E00; margin: 0 0 24px; }
.callout { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--r) var(--r) 0; margin: 28px 0; }
.callout b { color: var(--ink); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member .photo { aspect-ratio: 1; margin-bottom: 12px; border-radius: 50%; }
.member b { display: block; font-family: var(--serif); color: var(--ink); font-weight: 600; }
.member span { font-size: .9rem; color: var(--grey); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; max-width: 560px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--grey); margin: 6px 0 20px; }
.check input { margin-top: 4px; }
.form-msg { display: none; padding: 14px 16px; border-radius: 10px; margin-top: 16px; font-weight: 600; }
.form-msg.ok { display: block; background: #E4F4EC; color: #15624A; }
.form-msg.err { display: block; background: #FBE5E5; color: #8E1F1F; }
.hidden { display: none !important; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input, .inline-form select { font: inherit; padding: 13px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; min-width: 220px; }

/* ---------- Final CTA ---------- */
.final { background: var(--ink); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; width: 700px; height: 700px; left: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(142,63,209,.5), transparent 65%); }
.final::after { content: ""; position: absolute; width: 500px; height: 500px; right: -150px; bottom: -250px; border-radius: 50%; background: radial-gradient(circle, rgba(232,115,90,.35), transparent 65%); }
.final .container { position: relative; }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.75); }
.final .form-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.final .field label { color: #fff; }
.final .field input, .final .field select { background: rgba(255,255,255,.95); }
.final .check { color: rgba(255,255,255,.7); }
.final .check a { color: #fff; text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); flex: none; font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--grey); padding-bottom: 20px; margin: 0; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero .lead { max-width: 640px; }
.page-hero.center .lead { margin: 0 auto; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal td, .legal th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal .draft { background: #FFF4E8; border: 1px solid #F3D9BC; border-radius: var(--r); padding: 14px 16px; font-size: .92rem; color: #6B3E00; }

/* ---------- Contact ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--sand); padding: 64px 0 32px; border-top: 1px solid var(--line); color: var(--grey); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand img { height: 30px; }
.footer h4 { font-family: var(--sans); color: var(--ink); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); }
.footer p { font-size: .92rem; }
.footer .disclaimer { font-size: .82rem; margin-top: 16px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual .chat-card { position: static; width: auto; margin-top: -40px; margin-left: 24px; margin-right: 24px; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div:nth-child(2) { border-right: 0; }
  .trust > div:nth-child(1), .trust > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .feature-row, .feature-row.reverse, .two-col, .chat-demo { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse > :first-child { order: 0; }
  .facts, .articles { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); text-align: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav-links li a { display: block; padding: 12px 8px; }
  .nav.open .nav-links { display: flex; }
  .burger { display: block; }
  .nav-right .btn-primary { display: none; }
  .stages, .facts, .articles, .team { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust > div:last-child { border-bottom: 0; }
  .phone { width: 260px; height: 556px; }
  .hero-visual .chat-card { margin-left: 8px; margin-right: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Library index & article SEO blocks ---------- */
.lib-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-tab { font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.lib-tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.crumbs { font-size: .85rem; color: var(--grey); margin-bottom: 18px; }
.crumbs a { color: var(--grey); }
.summary { font-size: 1.15rem; line-height: 1.65; color: var(--ink-2); border-left: 3px solid var(--coral); padding-left: 18px; margin: 0 0 24px; }
.keypoints { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; margin: 0 0 24px; }
.keypoints b { font-family: var(--serif); color: var(--ink); font-size: 1.05rem; display: block; margin-bottom: 8px; }
.keypoints ul { margin: 0; padding-left: 20px; }
.keypoints li { font-size: 1rem; line-height: 1.55; margin-bottom: 6px; }
.toc { background: var(--sand); border-radius: var(--r); padding: 16px 22px; margin: 0 0 32px; font-size: .95rem; }
.toc b { display: block; margin-bottom: 6px; color: var(--ink); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.article-faq details { border-top: 1px solid var(--line); }
.article-faq details:last-child { border-bottom: 1px solid var(--line); }
.article-faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-family: var(--serif); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: "+"; color: var(--accent); flex: none; font-family: var(--sans); }
.article-faq details[open] summary::after { content: "–"; }
.article-faq p { color: var(--grey); padding-bottom: 14px; margin: 0; }
.sources li { margin-bottom: 6px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related .rel { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: inherit; text-decoration: none !important; transition: transform .15s; }
.related .rel:hover { transform: translateY(-2px); border-color: var(--accent); }
.related .rel .tag { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.related .rel b { display: block; font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } .toc ol { columns: 1; } }

/* ---------- App screen v3: pixel layout from the real screenshot (432×916), scaled into the frame ---------- */
.phone { width: 290px; height: 620px; }
.scr-wrap { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #F3F4FC; position: relative; }
.scr { position: absolute; left: 0; top: 0; width: 432px; height: 916px; transform: scale(calc(270 / 432)); transform-origin: 0 0; font-family: var(--sans); color: #1A1A2E; background: linear-gradient(180deg, #F3F2FC 0%, #F4F8FD 55%, #F1F4FA 100%); }
.scr > * { position: absolute; }
.scr img { display: block; }
.scr .st-time { left: 40px; top: 10px; font-weight: 700; font-size: 20px; }
.scr .st-icons { left: 298px; top: 8px; width: 94px; }
.scr .av { left: 22px; top: 50px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #F8B98E, #E673B8 55%, #8E3FD1); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.scr .menu { left: 86px; top: 64px; width: 28px; }
.scr .menu i { display: block; height: 4px; background: #3B2A86; border-radius: 3px; margin-bottom: 6px; }
.scr .menu i:nth-child(2) { width: 18px; }
.scr .bell { left: 352px; top: 48px; width: 52px; }
.scr .greet { left: 20px; top: 100px; width: 384px; height: 128px; border-radius: 18px; overflow: hidden; background: linear-gradient(90deg, #FBF6FE 0%, #F8ECFB 60%, #F7E7FA 100%); box-shadow: 0 2px 12px rgba(91,45,181,.06); }
.scr .greet img { position: absolute; right: 0; top: 0; width: 168px; height: 128px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.scr .greet b { position: absolute; left: 24px; top: 24px; font-size: 24px; font-weight: 700; color: #1A1A2E; white-space: nowrap; }
.scr .greet span { position: absolute; left: 24px; top: 56px; font-size: 18px; color: #2A2A4A; white-space: nowrap; }
.scr .greet a { position: absolute; left: 24px; top: 88px; font-size: 17px; font-weight: 600; color: #8B3DE6; }
.scr .cyc { left: 20px; top: 240px; width: 384px; height: 82px; background: #FDFDFD; border-radius: 18px; box-shadow: 0 2px 10px rgba(91,45,181,.08); }
.scr .cyc img { position: absolute; left: 6px; top: 6px; width: 90px; }
.scr .cyc b { position: absolute; left: 108px; top: 14px; font-size: 24px; font-weight: 700; }
.scr .cyc em { position: absolute; left: 184px; top: 20px; font-style: normal; font-size: 12px; color: #B23D7B; background: #FBE7F1; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.scr .cyc a { position: absolute; left: 108px; top: 48px; font-size: 17px; font-weight: 600; color: #8B3DE6; white-space: nowrap; }
.scr .h1 { left: 22px; top: 338px; font-size: 22px; font-weight: 700; }
.scr .all { left: 284px; top: 345px; font-size: 14px; color: #7A7A90; white-space: nowrap; }
.scr .plus { left: 368px; top: 335px; width: 36px; height: 36px; border-radius: 50%; background: #4A2A9E; color: #fff; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.scr .q { top: 372px; height: 116px; border-radius: 16px; }
.scr .q1 { left: 22px; width: 124px; background: #EEF5FD; } .scr .q2 { left: 155px; width: 118px; background: #F1ECFC; } .scr .q3 { left: 283px; width: 121px; background: #FCF6F0; }
.scr .q img { position: absolute; left: 8px; top: 8px; width: 32px; }
.scr .q b { position: absolute; left: 40px; top: 14px; font-size: 17px; font-weight: 600; }
.scr .q2 b, .scr .q3 b { left: 8px; top: 48px; font-size: 16px; }
.scr .q .chev { position: absolute; right: 10px; top: 10px; color: #8B3DE6; font-size: 20px; }
.scr .q1 small { position: absolute; left: 10px; top: 44px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.scr .q1 small u { text-decoration: none; color: #8C8C9A; font-weight: 400; }
.scr .q1 .bar { position: absolute; left: 10px; top: 66px; width: 70px; height: 8px; border-radius: 6px; background: #E4E4F0; overflow: hidden; }
.scr .q1 .bar i { display: block; width: 40%; height: 100%; background: #3DB8E8; }
.scr .q1 .pct { position: absolute; left: 96px; top: 64px; font-size: 11px; color: #8C8C9A; font-weight: 400; }
.scr .q1 .pill { position: absolute; left: 8px; top: 84px; width: 108px; height: 26px; border-radius: 12px; background: #5F4696; color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; }
.scr .q a { position: absolute; left: 8px; top: 86px; font-size: 16px; font-weight: 600; color: #8B3DE6; white-space: nowrap; }
.scr .h2 { left: 22px; top: 498px; font-size: 22px; font-weight: 700; }
.scr .t { width: 124px; height: 124px; background: #FCFCFC; border-radius: 16px; box-shadow: 0 2px 10px rgba(91,45,181,.06); text-align: center; }
.scr .t1, .scr .t2, .scr .t3 { top: 532px; } .scr .t4, .scr .t5, .scr .t6 { top: 668px; }
.scr .t1, .scr .t4 { left: 22px; } .scr .t2, .scr .t5 { left: 154px; } .scr .t3, .scr .t6 { left: 282px; }
.scr .t img { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); height: 68px; }
.scr .t b { position: absolute; left: 0; right: 0; top: 78px; font-size: 15px; font-weight: 600; line-height: 1.15; padding: 0 4px; }
.scr .t a { position: absolute; left: 0; right: 0; top: 102px; font-size: 11px; font-weight: 600; color: #8B3DE6; white-space: nowrap; }
.scr .t small { position: absolute; left: 0; right: 0; top: 102px; font-size: 11px; color: #8C8C9A; white-space: nowrap; }
.scr .nav { left: 12px; top: 808px; width: 408px; height: 96px; background: #fff; border-radius: 26px; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 2px 10px; box-shadow: 0 -2px 16px rgba(23,11,69,.06); }
.scr .nav .n { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; color: #8C8C9A; min-width: 58px; white-space: nowrap; }
.scr .nav .n img { height: 36px; }
.scr .nav .n.on { color: #1A1A2E; font-weight: 700; }
.scr .nav .n.carrie img { height: 66px; margin-top: -22px; }
.scr .nav .n.carrie span { color: #3B2A86; font-weight: 600; }
@media (max-width: 760px) { .phone { width: 260px; height: 556px; } .scr { transform: scale(calc(240 / 432)); } }

/* Beta form: note under the button */
.form-card p.small { margin: 14px 0 0; }
.form-card .check { margin-bottom: 10px; }

/* Mobile: no horizontal scroll, long words/emails wrap */
html, body { overflow-x: hidden; }
.prose, .info-list, .legal, .form-card, .faq { overflow-wrap: anywhere; }
