/* ==========================================================================
   ModelBuddies design system
   A single modern light theme shared by the marketing site and the app pages.
   Brand: deep emerald + amber accent. Type: Sora (display) / Inter (UI).
   ========================================================================== */

:root {
  /* Brand */
  --brand: #0e6b52;
  --brand-strong: #0a5140;
  --brand-tint: #e7f2ee;
  --accent: #f5b301;
  --accent-strong: #d99700;

  /* Ink / neutrals */
  --ink: #0c1a16;
  --text: #1b2a25;
  --muted: #5c6b64;
  --line: #e3e9e6;
  --line-strong: #cdd8d3;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --panel: #ffffff;
  --dark: #0b1f19;
  --dark-2: #0f2a22;

  /* Status */
  --ok: #16a34a;
  --ok-tint: #e7f6ec;
  --warn: #b45309;
  --warn-tint: #fdf1e0;
  --err: #dc2626;
  --err-tint: #fce8e7;

  /* Shape / depth */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,31,25,.06), 0 2px 8px rgba(11,31,25,.05);
  --shadow-md: 0 6px 20px rgba(11,31,25,.09);
  --shadow-lg: 0 18px 46px rgba(11,31,25,.16);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", var(--font);
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; }
.brand span { color: var(--brand); }
.brand--footer { color: #fff; font-size: 1.35rem; }
.brand--footer span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.btn { color: #fff; }
.site-nav a.btn-outline { color: var(--ink); }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand); color: #fff;
  border: 1px solid transparent; border-radius: 999px;
  padding: .7rem 1.35rem; font: inherit; font-weight: 600; font-size: .96rem;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-strong); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn-primary { background: var(--brand); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--brand); color: var(--brand-strong); box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.2); box-shadow: none; }
.btn-sm { padding: .45rem .9rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Sections & shared marketing bits
   -------------------------------------------------------------------------- */
.section { padding: 5.5rem 0; }
.section--tight { padding: 4rem 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #cfe0d9; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  display: inline-block; font-family: var(--font); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  background: var(--brand-tint); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--accent); background: rgba(245,179,1,.12); }

.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.section--dark .section-head p { color: #a9c2b8; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -8%, #1c5c49 0%, transparent 55%),
    linear-gradient(160deg, #0b1f19 0%, #0f2a22 60%, #123227 100%);
  color: #dce9e3;
  padding: 5rem 0 6rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero__eyebrow { color: var(--accent); background: rgba(245,179,1,.12); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: 1.1rem; }
.hero h1 .hl { color: var(--accent); }
.hero__lead { font-size: 1.22rem; color: #b9cec5; max-width: 34rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.3rem; color: #9fbcae; font-size: .95rem; }
.hero__trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Hero mock: a "model positions" card */
.model-panel {
  background: #fff; color: var(--text); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.4rem 1.4rem 1.1rem; border: 1px solid rgba(255,255,255,.5);
}
.model-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.model-panel__title { font-family: var(--display); font-weight: 700; color: var(--ink); }
.model-panel__meta { font-size: .8rem; color: var(--muted); }
.pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill--live { background: var(--ok-tint); color: var(--ok); }
.holdings { width: 100%; border-collapse: collapse; }
.holdings th, .holdings td { padding: .5rem .3rem; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line); }
.holdings th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.holdings td.ticker { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.holdings td.num { text-align: right; font-variant-numeric: tabular-nums; }
.weight-bar { height: 6px; border-radius: 999px; background: var(--brand-tint); overflow: hidden; }
.weight-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #2f9b7a); }
.model-panel__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: .82rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--brand); line-height: 1; }
.section--dark .stat__num { color: var(--accent); }
.stat__label { margin-top: .5rem; font-size: .92rem; color: var(--muted); }
.section--dark .stat__label { color: #a9c2b8; }

/* --------------------------------------------------------------------------
   Old-way / ModelBuddies-way
   -------------------------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare__col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.compare__col h3 { font-size: 1.2rem; }
.compare__col.is-old h3 { color: var(--muted); }
.compare__col.is-new { border-color: var(--brand); box-shadow: var(--shadow-md); }
.compare__col.is-new h3 { color: var(--brand-strong); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: .55rem 0 .55rem 1.9rem; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { position: absolute; left: 0; top: .5rem; font-weight: 800; }
.check-list.neg li::before { content: "✕"; color: var(--err); }
.check-list.pos li::before { content: "✓"; color: var(--ok); }

/* --------------------------------------------------------------------------
   Steps (how it works)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-strong); font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Delivery methods
   -------------------------------------------------------------------------- */
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.7rem; }
.delivery-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.delivery-card--primary { border-color: var(--brand); box-shadow: var(--shadow-md); }
.delivery-card__tag { position: absolute; top: 1.4rem; right: 1.4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-strong); background: var(--brand-tint); padding: .25rem .7rem; border-radius: 999px; }
.delivery-card__icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; margin-bottom: 1.1rem; }
.delivery-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.delivery-card > p { color: var(--muted); }
.delivery-card ul { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.delivery-card li { position: relative; padding: .4rem 0 .4rem 1.6rem; color: var(--text); }
.delivery-card li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit { padding: 1.7rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.benefit__icon { font-size: 1.7rem; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.benefit h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .96rem; }

/* --------------------------------------------------------------------------
   Developers / API
   -------------------------------------------------------------------------- */
.dev-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.dev-copy ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.dev-copy li { position: relative; padding: .4rem 0 .4rem 1.7rem; color: #b9cec5; }
.dev-copy li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.code-window { background: #08150f; border: 1px solid #1d3a2f; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.code-window__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid #1d3a2f; }
.code-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2f4a3f; }
.code-window__bar span { margin-left: .6rem; font-size: .78rem; color: #6f8a7e; font-family: var(--mono); }
.code-window pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; }
.code-window code { font-family: var(--mono); font-size: .84rem; line-height: 1.7; color: #cfe0d9; white-space: pre; }
.code-window .c-key { color: #7fd4b0; }
.code-window .c-str { color: var(--accent); }
.code-window .c-com { color: #5f7a6e; }
.code-window .c-fn { color: #8ab4ff; }

/* --------------------------------------------------------------------------
   Strategy model cards
   -------------------------------------------------------------------------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.model-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.model-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.model-card.is-featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.model-card__badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-strong); background: var(--brand-tint); padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.model-card.is-featured .model-card__badge { color: var(--ink); background: var(--accent); }
.model-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.model-card__risk { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }
.model-card__metrics { display: flex; gap: 1.5rem; margin: 1.1rem 0; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-card__metric .v { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--brand); line-height: 1; }
.model-card__metric .k { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.model-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.model-card li { position: relative; padding: .35rem 0 .35rem 1.5rem; font-size: .95rem; }
.model-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta { text-align: center; }
.final-cta__box {
  background: radial-gradient(900px 400px at 50% -30%, #1c5c49 0%, transparent 60%), linear-gradient(160deg, #0b1f19, #10362a);
  color: #fff; border-radius: var(--radius-lg); padding: 4rem 2rem; box-shadow: var(--shadow-lg);
}
.final-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.final-cta p { color: #b9cec5; font-size: 1.12rem; max-width: 38rem; margin: 0 auto 1.8rem; }
.final-cta__row { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.final-cta__note { margin-top: 1.3rem; font-size: .9rem; color: #8fae9f; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { flex-shrink: 0; background: var(--dark); color: #9fbcae; padding: 3.5rem 0 1.8rem; margin-top: auto; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 2.5rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.site-footer__brand p { margin-top: .8rem; max-width: 22rem; color: #86a598; font-size: .95rem; }
.site-footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.site-footer__links h4 { color: #fff; font-family: var(--display); font-size: .95rem; margin-bottom: .8rem; }
.site-footer__links a { display: block; color: #9fbcae; font-size: .92rem; padding: .22rem 0; }
.site-footer__links a:hover { color: var(--accent); text-decoration: none; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: baseline; padding-top: 1.4rem; font-size: .82rem; color: #6f8a7e; }
.disclaimer { font-size: .8rem; color: #6f8a7e; max-width: 52rem; }

/* --------------------------------------------------------------------------
   App pages (dashboard / pricing / auth / admin / product)
   -------------------------------------------------------------------------- */
.page { padding: 3rem 0 4rem; }
.page-narrow { max-width: 60rem; }
.page-head { margin-bottom: 1.8rem; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .3rem; }
.page-head .muted { font-size: 1.02rem; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.15rem; margin-bottom: .9rem; }

.auth-wrap { min-height: calc(100vh - 68px - 300px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-card { width: 100%; max-width: 25rem; margin: 0; padding: 2.2rem; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .muted { text-align: center; margin-top: 1.1rem; margin-bottom: 0; }

/* Forms */
form label { display: block; margin-bottom: 1.1rem; font-size: .9rem; font-weight: 600; color: var(--text); }
form input {
  display: block; width: 100%; margin-top: .4rem; padding: .7rem .8rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,107,82,.14); }
form small.muted { font-weight: 400; }

/* Billing interval toggle */
.billing-toggle { display: inline-flex; gap: .25rem; padding: .28rem; margin: 0 0 1.6rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; }
.billing-toggle button { font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); background: transparent; border: none; border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; transition: background .15s ease, color .15s ease; }
.billing-toggle button:hover { color: var(--ink); }
.billing-toggle button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.billing-toggle .save-hint { font-size: .72rem; font-weight: 700; color: var(--brand-strong); background: var(--brand-tint); padding: .1rem .5rem; border-radius: 999px; }

/* Pricing plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem; }
.plan { display: flex; flex-direction: column; text-align: left; }
.plan h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan .price { margin: .3rem 0 1.3rem; }
.plan .price .amount { font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.plan .price .amount::before { content: "$"; font-size: 1.1rem; font-weight: 700; vertical-align: super; color: var(--muted); }
.plan .price .unit { display: block; color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.plan .price .price-sub { display: block; color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.plan .price .price-save { margin-top: .5rem; }
.plan .cart-toggle-btn { margin-top: auto; }
.plan .cart-toggle-btn.is-in-cart { background: var(--bg-soft); color: var(--brand-strong); border: 1px solid var(--brand); }
.plan .cart-toggle-btn.is-in-cart:hover { background: var(--brand-tint); }

/* Signed-in email in the nav — not a link, so it needs its own muted styling
   (.site-nav a rules don't apply to a <span>). Hidden on narrow screens
   alongside the other non-button nav items, see the media query below. */
.nav-user { color: var(--muted); font-size: .88rem; font-weight: 500; }

/* Cart page */
.cart-table td { vertical-align: middle; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0 .3rem; font-size: 1.1rem; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: .4rem; }
.cart-empty { text-align: center; padding: 1.5rem 0; }
.cart-risk-ack { display: flex; align-items: flex-start; gap: .6rem; margin: .4rem 0 1.1rem; font-size: .88rem; color: var(--muted); cursor: pointer; }
.cart-risk-ack input { width: auto; margin: .2rem 0 0; flex-shrink: 0; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.table tbody tr:last-child td { border-bottom: none; }

/* Badges / helpers */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.badge-ok { background: var(--ok-tint); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-tint); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--err-tint); color: var(--err); border-color: transparent; }
.badge-unknown { background: var(--bg-soft); color: var(--muted); }
.muted { color: var(--muted); }
.error { color: var(--err); min-height: 1.2rem; margin: .25rem 0; font-size: .92rem; }
.warn { background: var(--warn-tint); color: var(--warn); border: 1px solid #f3d9ad; border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.4rem; }
.mono, .table .mono { font-family: var(--mono); font-size: .85rem; }

/* New-API-key reveal panel (shown once, stays until dismissed) */
.keyreveal { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border: 1px solid var(--brand); background: var(--brand-tint); border-radius: var(--radius); }
.keyreveal__title { margin: 0 0 .7rem; font-size: .92rem; color: var(--brand-strong); }
.keyreveal__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.keyreveal__row input { flex: 1 1 22rem; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-family: var(--mono); font-size: .9rem; color: var(--ink); }
.keyreveal__row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,107,82,.14); }

/* Market Risk Dashboard */
.risk-banner { padding: 1rem 1.3rem; border-radius: var(--radius); font-size: 1.05rem; font-weight: 600; margin-bottom: 1.4rem; }
.risk-banner--green { background: var(--ok-tint); color: var(--ok); }
.risk-banner--yellow { background: var(--warn-tint); color: var(--warn); }
.risk-banner--red { background: var(--err-tint); color: var(--err); }
.risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin-bottom: 1.4rem; }
.risk-card h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.risk-metrics { list-style: none; margin: 0; padding: 0; }
.risk-metrics li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.risk-metrics li:last-child { border-bottom: none; }
.risk-note { margin-top: .6rem; font-size: .85rem; }
.risk-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 1.4rem; margin-bottom: 1rem; }
.risk-form-grid label { font-size: .85rem; font-weight: 600; color: var(--text); }
.risk-form-grid input, .risk-form-grid select { display: block; width: 100%; margin-top: .35rem; padding: .55rem .7rem; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: .92rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; }
  .dev-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps, .benefits, .models { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .section { padding: 3.75rem 0; }
  .compare, .delivery, .steps, .benefits, .models { grid-template-columns: 1fr; }
  .site-nav { gap: .9rem; }
  .site-nav a:not(.btn) { display: none; }
  .nav-user { display: none; }
  .site-footer__links { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn, .final-cta__row .btn { flex: 1 1 auto; }
}
