/* =========================================================
   Design tokens – clean white, OpenAI-inspired
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-2: #eeeeee;
  --text: #0d0d0d;
  --text-2: #5f5f5f;
  --text-3: #8f8f8f;
  --border: #e5e5e5;
  --border-2: #d4d4d4;
  --ink: #0d0d0d;
  --ink-hover: #2f2f2f;
  --success: #10a37f;
  --success-bg: #e7f6f1;
  --warn: #9a5800;
  --warn-bg: #fff5e3;
  --ph: #b0b0b0;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --pill: 999px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1120px;
  --gutter: 24px;
  --nav-h: 64px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --focus: 0 0 0 3px rgba(13, 13, 13, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.container--form { max-width: 640px; }

/* Type */
.display { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.h4 { font-size: 17px; line-height: 1.35; font-weight: 600; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--text-2); margin: 0; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--text-2); margin: 0 0 14px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
p { margin: 0; }

/* =========================================================
   Buttons, chips, badges
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--pill); border: 1px solid transparent;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-hover); }
.btn--primary:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; transform: none; }
.btn--secondary { background: var(--bg); border-color: var(--border-2); }
.btn--secondary:hover { background: var(--surface); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--link { height: auto; padding: 0; background: none; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.btn--link:hover { color: var(--text); }

.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--pill); background: var(--bg);
  font-size: 14px; color: var(--text-2);
}
.chip:hover { border-color: var(--border-2); color: var(--text); }

.badge { white-space: nowrap; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--text-2); }
.badge--success { background: var(--success-bg); color: #0b7a5f; }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--dark { background: var(--ink); color: #fff; }

.ph-tag, .is-ph::after {
  display: inline-block; padding: 1px 8px; border: 1px dashed var(--ph); border-radius: var(--pill);
  font-size: 12px; font-weight: 500; color: var(--text-3); line-height: 1.6;
}

/* =========================================================
   Cards & surfaces
   ========================================================= */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.card--flat { background: var(--surface); border-color: transparent; }
.section { padding: 112px 0; }
.section--surface { background: var(--surface); }
.section--surface .card { border-color: transparent; box-shadow: var(--shadow-sm); }
.section__head { max-width: 720px; margin-bottom: 56px; display: grid; gap: 16px; }
.section__head .eyebrow { margin: 0; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================
   Nav
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 4px; margin-right: auto; }
.nav__links a { padding: 8px 12px; border-radius: var(--pill); text-decoration: none; font-size: 14px; color: var(--text-2); }
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
body:not([data-view="landing"]) .nav__links,
body:not([data-view="landing"]) .nav__cta { display: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand__mark { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); position: relative; }
.brand__mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }

.lang { display: inline-flex; padding: 3px; background: var(--surface); border-radius: var(--pill); }
.lang button { height: 28px; padding: 0 10px; border: 0; border-radius: var(--pill); background: transparent; font-size: 13px; font-weight: 500; color: var(--text-2); }
.lang button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 120px 0 96px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero .display { max-width: 900px; }
.hero__lead { max-width: 640px; margin-top: 24px; }

.composer {
  margin-top: 44px; width: 100%; max-width: 640px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 20px;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--pill);
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within { border-color: var(--text-3); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 16px 40px rgba(0, 0, 0, .10); }
.composer__input:focus, .composer__input:focus-visible { outline: none; box-shadow: none; }
.composer.is-invalid { border-color: #d14343; }
.composer__icon { color: var(--text-3); flex: none; }
.composer__input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 17px; }
.composer__input::placeholder { color: var(--text-3); }
.composer__btn { height: 44px; flex: none; }
.composer__error { margin-top: 12px; font-size: 14px; color: #c03636; }

.micro { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; color: var(--text-2); }
.micro li { display: inline-flex; align-items: center; gap: 6px; }
.micro li::before { content: ""; width: 14px; height: 14px; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2310a37f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.hero__example { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); }

/* Trust */
.trust { padding: 0 0 96px; }
.trust__powered { text-align: center; font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.trust__powered strong { color: var(--text); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg); padding: 28px 24px; display: grid; gap: 4px; align-content: start; position: relative; }
.stat__v { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.stat__l { font-size: 14px; color: var(--text-2); }
.stat.is-ph .stat__v { color: var(--ph); }
.is-ph { position: relative; }
.stat.is-ph::after { content: attr(data-ph); position: absolute; top: 14px; right: 14px; }
.partners { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.partners li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--pill); font-size: 13px; font-weight: 500; color: var(--text-2); }
.partners li::before { content: ""; width: 14px; height: 14px; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235f5f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 3l7 3v6c0 4.5-3 7.7-7 9-4-1.3-7-4.5-7-9V6l7-3Zm-3 9 2 2 4-4'/%3E%3C/svg%3E"); }

/* How it works */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step3 { display: grid; gap: 12px; align-content: start; position: relative; }
.step3__n { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.step3__time { position: absolute; top: 28px; right: 28px; }
.step3__time { font-size: 13px; color: var(--text-2); background: var(--surface); padding: 3px 10px; border-radius: var(--pill); }

/* Split + feed */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__text { display: grid; gap: 20px; }
.split__text .eyebrow { margin: 0; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--success-bg) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2310a37f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.feed { padding: 0; overflow: hidden; }
.feed__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.feed__head > div { display: grid; line-height: 1.3; }
.feed__list { padding: 20px 22px 40px; display: grid; gap: 14px; max-height: 520px; overflow: auto; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.avatar--ai { background: conic-gradient(from 200deg, #0d0d0d, #4d4d4d, #0d0d0d); position: relative; }
.avatar--ai::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }

.msg { display: grid; gap: 6px; max-width: 92%; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.is-in { opacity: 1; transform: none; }
.msg__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.msg__body { background: var(--surface); padding: 12px 14px; border-radius: 4px 16px 16px 16px; font-size: 15px; line-height: 1.5; }
.msg--user { justify-self: end; }
.msg--user .msg__meta { justify-content: flex-end; }
.msg--user .msg__body { background: var(--ink); color: #fff; border-radius: 16px 4px 16px 16px; }
.msg__tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--pill); background: var(--surface-2); color: var(--text-2); font-weight: 500; }
.msg__tag--win { background: var(--success-bg); color: #0b7a5f; }

/* Tabs */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border-radius: var(--pill); margin-bottom: 20px; }
.tabs button { height: 38px; padding: 0 16px; border: 0; border-radius: var(--pill); background: transparent; font-size: 14px; font-weight: 500; color: var(--text-2); }
.tabs button[aria-selected="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tabpanel { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; padding: 36px; }
.tabpanel h3 { font-size: 13px; font-weight: 500; color: var(--text-3); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; }
.tabpanel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tabpanel .goal { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.tabpanel .build li { padding-left: 18px; position: relative; }
.tabpanel .build li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* Proof */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.case { display: grid; gap: 10px; align-content: start; }
.case__metric { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-top: 12px; }
.ph-text { color: var(--ph); }
.case__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.quote figcaption { margin-top: auto; padding-top: 8px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.avatar--initials { display: grid; place-items: center; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.stars { color: var(--text); letter-spacing: 2px; font-size: 15px; }
.stars span { color: var(--border-2); }
.proof__more { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.reviews__head { margin-top: 64px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.testimonials { margin-top: 20px; }
.footer__powered a { color: inherit; }
.quote__who { display: grid; line-height: 1.35; margin-right: auto; }

.feature { display: grid; gap: 10px; align-content: start; }
.feature__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; margin-bottom: 6px; }

/* Pricing */
.price { max-width: 460px; margin: 0 auto; display: grid; gap: 16px; padding: 36px; }
.price .badge { justify-self: start; }
.price__amount { display: flex; align-items: baseline; gap: 8px; }
.price__value { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price .checks { margin: 8px 0 12px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); font-size: 14px; color: var(--text-2); }
.note__icon { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--text-3); color: var(--text-3); font-size: 11px; font-weight: 700; display: grid; place-items: center; font-style: normal; }
.note--warn { background: var(--warn-bg); color: var(--warn); }
.note--warn .note__icon { border-color: var(--warn); color: var(--warn); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: 18px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 640px; }

/* Final CTA */
.final { padding: 120px 0; text-align: center; border-top: 1px solid var(--border); }
.final__inner { display: grid; justify-items: center; gap: 16px; }
.final .btn { margin-top: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 72px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer__powered { margin-top: 8px; }
.footer__links { display: flex; gap: 24px; font-size: 14px; }
.footer__links a { color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
body:not([data-view="landing"]) .footer { display: none; }

/* =========================================================
   Flow views (analysis, proposal, onboarding)
   ========================================================= */
.flow { padding-top: 56px; padding-bottom: 120px; }
.flow__head { display: grid; gap: 12px; margin-bottom: 40px; }
.flow__head .eyebrow { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--text-2); }
.back:hover { color: var(--text); }

/* Analysis */
.an { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.progress { height: 4px; background: var(--surface-2); border-radius: var(--pill); overflow: hidden; margin-bottom: 8px; }
.progress__bar { height: 100%; width: 0; background: var(--ink); border-radius: var(--pill); transition: width .6s var(--ease); }
.an__steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
.an__step { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--text-3); transition: color .3s; }
.an__step.is-active { color: var(--text); font-weight: 500; }
.an__step.is-done { color: var(--text); }
.an__dot { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-2); display: grid; place-items: center; }
.is-active .an__dot { border-color: var(--surface-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.is-done .an__dot { border-color: var(--success); background: var(--success); }
.is-done .an__dot::after { content: ""; width: 12px; height: 12px; background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@keyframes spin { to { transform: rotate(360deg); } }
.an__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.findings { display: grid; gap: 10px; }
.finding { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border-radius: var(--r); }
.finding--new { animation: rise .45s var(--ease) both; }
.finding__l { font-size: 13px; color: var(--text-2); }
.finding__v { font-weight: 500; }
.findings__empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 14px; border: 1px dashed var(--border-2); border-radius: var(--r); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.an__done { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r); background: var(--success-bg); animation: rise .45s var(--ease) both; }
.an__done strong { color: #0b7a5f; }

/* Proposal */
.pr { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.pr__main { display: grid; gap: 20px; }
.pr__side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; }
.pr__side .card { display: grid; gap: 14px; }
.card__title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 20px; }
.card__title .h3 { margin: 0; }

.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin: 0; }
.dl div { display: grid; gap: 2px; }
.dl dt { font-size: 13px; color: var(--text-2); }
.dl dd { margin: 0; font-weight: 500; }

.assume { display: grid; gap: 20px; }
.assume__q { display: grid; gap: 10px; }
.assume__label { font-size: 14px; font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { height: 38px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--border-2); background: var(--bg); font-size: 14px; color: var(--text-2); transition: all .15s; }
.seg button:hover { border-color: var(--text-3); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.camps { display: grid; gap: 10px; }
.camp { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); animation: rise .35s var(--ease) both; }
.camp__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; }
.camp__t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.camp__d { font-size: 15px; color: var(--text-2); }
.camp .badge { height: 22px; font-size: 12px; background: var(--bg); }

.budget { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.budget__amount { display: grid; gap: 2px; }
.budget__v { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.budget__sub { font-size: 14px; color: var(--text-2); }
.budget__why { color: var(--text-2); font-size: 15px; }

.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-bottom: 20px; position: relative; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; width: 12px; height: 12px; margin: 6px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); position: relative; z-index: 1; }
.tl li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.tl strong { display: block; }
.tl span { color: var(--text-2); font-size: 15px; }

.comp { display: grid; }
.comp__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comp__row:last-child { border-bottom: 0; padding-bottom: 0; }
.comp__row:first-child { padding-top: 0; }
.comp__name { font-weight: 500; }
.comp__type { font-size: 14px; color: var(--text-2); }

.share-row { display: flex; justify-content: center; }

/* Onboarding */
.stepper { display: grid; gap: 14px; margin-bottom: 40px; }
.stepper__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.stepper__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stepper__bar { height: 4px; border-radius: var(--pill); background: var(--surface-2); overflow: hidden; }
.stepper__bar.is-done, .stepper__bar.is-current { background: var(--ink); }
.stepper__labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 13px; color: var(--text-3); }
.stepper__labels .is-current { color: var(--text); font-weight: 500; }
.saved { display: inline-flex; align-items: center; gap: 6px; transition: opacity .3s; }
.saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.saved.is-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { opacity: .2; } 100% { opacity: 1; } }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field__label { font-size: 14px; font-weight: 500; }
.input {
  height: 48px; padding: 0 16px; width: 100%;
  border: 1px solid var(--border-2); border-radius: 12px; background: var(--bg); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: 0; border-color: var(--text-3); box-shadow: var(--focus); }
.input.is-invalid { border-color: #d14343; }
.hint { font-size: 13px; color: var(--text-2); }
.err { font-size: 14px; color: #c03636; }

.options { display: grid; gap: 10px; }
.options--3 { grid-template-columns: repeat(3, 1fr); }
.options--2 { grid-template-columns: repeat(2, 1fr); }
.option {
  position: relative; display: grid; gap: 4px; text-align: left;
  padding: 18px; border: 1px solid var(--border-2); border-radius: var(--r); background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.option:hover { border-color: var(--text-3); }
.option[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.option__t { font-weight: 600; }
.option__d { font-size: 14px; color: var(--text-2); }
.option__big { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.option .badge { position: absolute; top: -11px; left: 16px; height: 22px; font-size: 12px; }
.option--center { text-align: center; justify-items: center; padding: 22px 12px 18px; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { text-underline-offset: 3px; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }

.status { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface); animation: rise .35s var(--ease) both; }
.status__dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--text-3); }
.status--pending .status__dot { background: #e0a100; animation: pulse 1.4s ease-in-out infinite; }
.status--active { background: var(--success-bg); }
.status--active .status__dot { background: var(--success); }
.status--warn { background: var(--warn-bg); }
.status--warn .status__dot { background: var(--warn); }
.status__body { display: grid; gap: 4px; }
.status__body p { font-size: 15px; color: var(--text-2); }
.status__body .btn { justify-self: start; margin-top: 8px; }
@keyframes pulse { 50% { opacity: .35; } }

.detected { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface); font-size: 14px; color: var(--text-2); }

/* Done */
.done__hero { display: grid; gap: 14px; justify-items: start; margin-bottom: 36px; }
.done__check { width: 56px; height: 56px; border-radius: 50%; background: var(--success) no-repeat center/26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); margin-bottom: 8px; animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.todo { list-style: none; margin: 0; padding: 0; display: grid; }
.todo li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.todo li:last-child { border-bottom: 0; }
.todo__i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-2); margin-top: 1px; }
.todo .is-done .todo__i { background: var(--success) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); border-color: var(--success); }
.todo .is-active .todo__i { border-color: var(--surface-2); border-top-color: var(--ink); animation: spin 1s linear infinite; }
.todo strong { display: block; font-weight: 500; }
.todo span { font-size: 14px; color: var(--text-2); }
.todo .is-pending strong { color: var(--text-2); }
.welcome { margin-top: 20px; display: grid; gap: 12px; }
.welcome__from { display: flex; align-items: center; gap: 12px; }
.welcome__from > div { display: grid; line-height: 1.3; }

/* Misc */
.proto-pill { position: fixed; left: 16px; bottom: 16px; z-index: 40; padding: 6px 12px; border-radius: var(--pill); background: var(--bg); border: 1px dashed var(--border-2); font-size: 12px; color: var(--text-3); box-shadow: var(--shadow-sm); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .tabpanel { grid-template-columns: 1fr 1fr; }
  .tabpanel > :last-child { grid-column: span 2; }
  .pr { grid-template-columns: 1fr; }
  .pr__side { position: static; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .split, .an { grid-template-columns: 1fr; gap: 40px; }
  .steps3, .grid3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 64px; }
  .card { padding: 22px; border-radius: 20px; }
  .composer { flex-wrap: wrap; border-radius: 22px; padding: 8px 8px 8px 16px; }
  .composer__input { flex-basis: calc(100% - 40px); }
  .composer__btn { width: 100%; }
  .nav__login { display: none; }
  .stat { padding: 20px 18px; }
  .stat__v { font-size: 24px; }
  .stat.is-ph::after { position: static; justify-self: start; margin-top: 6px; }
  .grid4, .tabpanel, .dl, .options--3, .options--2 { grid-template-columns: 1fr; }
  .tabpanel > :last-child { grid-column: auto; }
  .tabpanel { padding: 24px; gap: 28px; }
  .budget { grid-template-columns: 1fr; gap: 12px; }
  .stepper__labels { font-size: 11px; }
  .final { padding: 80px 0; }
  .proto-pill { left: 50%; transform: translateX(-50%); bottom: 10px; white-space: nowrap; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
