/* ==========================================================================
   NeuroTrade — Marketing site design system
   ========================================================================== */
:root {
  --yellow: #F5C518;
  --yellow-soft: #FFE479;
  --yellow-bg: #FFF7DA;
  --ink: #111114;
  --ink-2: #2b2b31;
  --muted: #6b6b73;
  --muted-2: #9a9aa2;
  --line: #ece9e1;
  --line-2: #e2ded4;
  --paper: #ffffff;
  --cream: #faf8f2;
  --cream-2: #f4f1e8;
  --green: #17b26a;
  --green-bg: #e7f8ef;
  --red: #e5484d;
  --blue: #4a7dff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(17,17,20,.05), 0 1px 1px rgba(17,17,20,.04);
  --shadow: 0 8px 30px rgba(17,17,20,.08);
  --shadow-lg: 0 24px 60px rgba(17,17,20,.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding-block: 84px; }
.section-sm { padding-block: 56px; }
.bg-cream { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.center { text-align: center; }
.mono-num { font-variant-numeric: tabular-nums; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 18px rgba(245,197,24,.35); }
.btn-yellow:hover { background: #ffd02a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262d; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--cream); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 15px; font-size: 14px; }

/* ---- Header / Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand svg { flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: 10px; align-items: center; }
.nav-links > a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a.active { color: var(--ink); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-right .signin { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }

/* Product dropdown */
.has-menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--ink); }
.menu-btn.active { color: var(--ink); font-weight: 600; }
.menu-btn svg { transition: transform .15s ease; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu { display: none; position: absolute; top: calc(100% + 14px); left: -12px; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 60; }
.nav-menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; } /* hover bridge */
.has-menu.open .nav-menu { display: block; }
@media (hover: hover) and (min-width: 941px) { .has-menu:hover .nav-menu { display: block; } }
.nav-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.nav-menu a:hover, .nav-menu a.active { background: var(--cream); }
.nav-menu .mi { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--yellow-bg); display: grid; place-items: center; font-size: 15px; }
.nav-menu strong { display: block; font-weight: 600; color: var(--ink); }
.nav-menu small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }

/* ---- Hero / typography ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--cream-2); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; letter-spacing: .01em; }
.h-xl { font-size: clamp(40px, 6vw, 68px); }
.h-lg { font-size: clamp(32px, 4.6vw, 50px); }
.h-md { font-size: clamp(26px, 3.2vw, 36px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.5; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--muted-2); }

.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { margin-top: 22px; max-width: 34ch; }
/* About hero: the photo is a full-bleed background behind the right half, fading into the page on the left */
.about-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 460px; display: flex; align-items: center; padding: 72px 0 56px; }
.about-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 38%, rgba(255,255,255,.55) 52%, rgba(255,255,255,0) 70%); }
.about-hero .hero-grid { width: 100%; }
.about-hero-caption { justify-self: end; align-self: end; margin: 0; color: #fff; font-weight: 700; font-size: 20px; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
@media (max-width: 940px) {
  .about-hero { min-height: 0; padding: 56px 0 0; }
  .about-hero-bg { top: auto; height: 260px; object-position: 50% 60%; }
  .about-hero::before { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) calc(100% - 260px), rgba(255,255,255,0) calc(100% - 140px)); }
  .about-hero .hero-grid { gap: 0; }
  .about-hero-caption { justify-self: start; padding: 200px 0 24px; }
}
.hero.center p.lead { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-side { color: var(--ink); }
.hero-side .lead { color: var(--ink-2); font-weight: 600; font-size: clamp(18px,2vw,22px); }
/* Home hero: the side image is a PNG-derived WebP with its own feathered left edge and soft alpha,
   so it sits behind the right column and blends into the page without a gradient overlay */
.home-hero { position: relative; isolation: isolate; overflow: hidden; }
/* Anchored to the content edge rather than the viewport, so the peaks sit under the tagline instead of off to the side;
   the right edge is masked because the source image is only half-opaque there and would otherwise show a hard cut */
.home-hero-bg { position: absolute; top: 0; bottom: 0; z-index: -2; width: 56%; height: 100%;
  right: max(0px, calc((100% - var(--max)) / 2 + 24px));
  object-fit: cover; object-position: 100% 50%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent 100%); mask-image: linear-gradient(90deg, #000 80%, transparent 100%); }
/* The baked-in fade only reaches full transparency at the top-left corner, so soften the image's left edge into the page */
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 36%, rgba(255,255,255,0) 58%); }
.home-hero .hero-side { position: relative; align-self: start; }
@media (max-width: 940px) {
  .home-hero { padding-bottom: 0; }
  .home-hero-bg { top: auto; right: 0; width: 100%; height: 300px; object-position: 50% 50%; -webkit-mask-image: none; mask-image: none; }
  .home-hero::before { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) calc(100% - 300px), rgba(255,255,255,0) calc(100% - 170px)); }
  .home-hero .hero-side { min-height: 300px; display: flex; align-items: flex-end; padding-bottom: 28px; }
}

/* ---- Stat + press strip (home, between the hero and the app showcase) ---- */
.hero-strip { border-top: 1px solid var(--line); background: var(--paper); }
.hero-strip-inner { max-width: none; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 4vw, 64px); padding: 32px clamp(24px, 3vw, 48px); flex-wrap: wrap; }
.stats { display: flex; gap: clamp(28px, 3vw, 48px); flex-wrap: wrap; }
.stat .n { font-size: clamp(28px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 3px; }
.featured-in { display: flex; flex-direction: column; gap: 10px; padding-left: clamp(24px, 2.5vw, 40px); border-left: 1px solid var(--line-2); color: var(--muted); }
.featured-in .lbl { font-size: 13px; }
.featured-in .logos { display: flex; align-items: center; gap: clamp(20px, 2vw, 30px); color: var(--ink); font-size: clamp(18px, 1.5vw, 22px); line-height: 1; white-space: nowrap; }
.logo-reuters { font-weight: 700; letter-spacing: -.01em; }
.logo-reuters i { width: 14px; height: 14px; border-radius: 50%; border: 3px dotted #ff8000; box-sizing: border-box; }
.featured-in .logos > span { display: inline-flex; align-items: center; gap: 5px; }
.logo-forbes { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.01em; }
.logo-bloomberg { font-weight: 800; letter-spacing: -.03em; }
.logo-cnbc { font-weight: 800; letter-spacing: -.02em; }
.logo-wsj { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 940px) {
  .hero-strip-inner { gap: 22px; padding: 22px 24px; }
  .stats { gap: 32px; }
  .featured-in { padding-left: 0; border-left: 0; }
  .stat .n { font-size: 26px; }
  .featured-in .logos { gap: 22px; font-size: 17px; flex-wrap: wrap; white-space: normal; }
}

/* ---- Cards / grids ---- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature { padding: 26px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow-bg);
  display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 9px 15px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  padding: 4px 9px; border-radius: 8px; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: #fdeaea; color: var(--red); }

.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }

/* ---- Section headers ---- */
.sec-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---- App mock (home) ---- */
.appmock { background: var(--ink); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.appmock .bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.appmock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; display: block; }
.appmock .screen { background: var(--cream); border-radius: 12px; display: grid; grid-template-columns: 150px 1fr; overflow: hidden; min-height: 360px; }
.appmock .side { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; }
.appmock .side .logo { font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.appmock .side a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.appmock .side a.on { background: var(--yellow-bg); color: var(--ink); font-weight: 600; }
.appmock .main { padding: 18px; }

/* ---- Chat (product) ---- */
.chat-shell { display: grid; grid-template-columns: 1fr 320px; gap: 22px; }
.chat { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msg-user { align-self: flex-end; background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 10px 15px; font-size: 15px; max-width: 80%; }
.msg-ai { border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.msg-ai .ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.quote { border-left: 3px solid var(--yellow); padding: 4px 0 4px 14px; margin: 12px 0; }
.ask-list { display: flex; flex-direction: column; gap: 10px; }
.ask-list .chip { justify-content: flex-start; width: 100%; color: var(--ink-2); }
.chat-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 10px 10px 18px; color: var(--muted); }
.chat-input .send { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }

/* ---- Stat cards (strategies) ---- */
.strat-card { padding: 0; overflow: hidden; }
.strat-card .ph { height: 96px; background: linear-gradient(135deg,#cfe6ff,#9ec4ff); position: relative; }
.strat-card .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.strat-card .ph.g2 { background: linear-gradient(135deg,#d6f5e3,#98e6bf); }
.strat-card .ph.g3 { background: linear-gradient(135deg,#ffe6c7,#ffc98f); }
.strat-card .ph.g4 { background: linear-gradient(135deg,#e6dcff,#c3adff); }
.strat-card .bd { padding: 16px; }
.strat-card .rt { font-size: 22px; font-weight: 800; }
.tabs { display: inline-flex; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.tabs button, .tabs a { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs .on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.donut-legend { display: grid; gap: 8px; }
.donut-legend .row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; }

table.holdings { width: 100%; border-collapse: collapse; font-size: 14px; }
table.holdings th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 6px; }
table.holdings td { padding: 11px 6px; border-top: 1px solid var(--line); }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; }
.plan { padding: 30px 26px; position: relative; }
.plan.featured { border: 2px solid var(--yellow); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .desc { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 40px; }
.plan .price { font-size: 44px; font-weight: 800; margin: 14px 0 2px; }
.plan .price .per { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.plan li.off { color: var(--muted-2); }
.plan li svg { flex: none; margin-top: 2px; }
.toggle { display: inline-flex; align-items: center; gap: 12px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.toggle button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---- Security ---- */
.sec-list { display: flex; flex-direction: column; gap: 22px; }
.sec-item { display: flex; gap: 16px; }
.sec-item .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--yellow-bg); display: grid; place-items: center; }
.sec-item h3 { font-size: 17px; margin-bottom: 5px; }
.sec-item p { color: var(--muted); font-size: 15px; }
.trust-panel { background: linear-gradient(180deg,var(--yellow-bg),#fff); border: 1px solid var(--line); border-radius: 20px; padding: 40px 34px; text-align: center; }
.trust-metrics { display: flex; justify-content: center; gap: 40px; margin-top: 30px; }
.trust-metrics .n { font-size: 30px; font-weight: 800; }
.trust-metrics .l { font-size: 13px; color: var(--muted); }

/* ---- About / team ---- */
.team { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.member .ph { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(135deg,#e9e5db,#d5d0c4); margin-bottom: 12px; }
.member h4 { font-size: 16px; }
.member .role { color: var(--muted); font-size: 13px; }
.member .bio { color: var(--muted-2); font-size: 13px; margin-top: 6px; }
.values li { margin-bottom: 8px; }

/* ---- Stock / asset detail ---- */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted-2); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.stock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.stock-head .ticker { color: var(--muted); font-weight: 600; }
.stock-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.stock-price .n { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.stock-price .chg { font-size: 18px; }
.stock-price .ah { width: 100%; color: var(--muted); font-size: 14px; }
.stock-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.stock-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--cream-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #76b900; letter-spacing: .04em; }
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav a { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-color: var(--yellow); }
.stat-list { display: grid; gap: 0; margin: 0; }
.stat-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.stat-list div:first-child { border-top: 0; padding-top: 0; }
.stat-list dt { color: var(--muted); margin: 0; }
.stat-list dd { margin: 0; font-weight: 600; }
.meter { height: 8px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.rating-row { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; margin-top: 12px; }
.rating-row .meter i.hold { background: var(--muted-2); }
.rating-row .meter i.sell { background: var(--red); }

/* ---- Alerts ---- */
.alert-list { display: flex; flex-direction: column; }
.alert-item { display: grid; grid-template-columns: 44px 100px 1fr auto; align-items: center; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); }
.alert-item:first-child { border-top: 0; }
.alert-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; font-size: 18px; }
.alert-item .tk { font-weight: 800; }
.alert-item .tk small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.alert-item h4 { font-size: 15px; font-weight: 700; }
.alert-item p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.alert-item .when { color: var(--muted-2); font-size: 13px; white-space: nowrap; }
.alert-item.hidden { display: none; }
.nl-band { display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center; padding: 28px; }
.nl-band .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 26px; }

/* ---- Contact ---- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,197,24,.28); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted-2); font-size: 12.5px; }
.form-success { display: none; background: var(--green-bg); color: #0c6b40; border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15px; }
.form.sent .form-success { display: block; }
.form.sent .form-fields { display: none; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.contact-card .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--yellow-bg); display: grid; place-items: center; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 14px; }
.contact-card a.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Legal pages ---- */
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 90px; }
.toc h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 0 0 12px; }
.toc a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.toc a:hover { color: var(--ink); }
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 16px; margin: 22px 0 8px; }
.legal-body p, .legal-body li { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 22px; margin: 12px 0; }
.legal-body li + li { margin-top: 6px; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.callout { background: var(--yellow-bg); border: 1px solid #f3e3a0; border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0; }
.callout p { font-size: 15px; }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px; text-align: center; }
.cta-band h2 { font-size: clamp(28px,4vw,44px); }
.cta-band p { color: #b9b9c2; margin-top: 14px; font-size: 18px; }
.cta-band .hero-cta { justify-content: center; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin: 0 0 14px; }
.footer a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.footer a:hover { color: var(--ink); }
.footer .brand { display: flex; color: var(--ink); font-size: 19px; padding: 0; }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---- Misc ---- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.list-check { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.list-check li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.list-check svg { flex: none; margin-top: 3px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .hero-grid, .chat-shell { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .price-grid, .team, .footer-grid { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 6px; }
  .nav.open .nav-links > a { padding: 8px 0; }
  .nav.open .has-menu { width: 100%; }
  .nav.open .menu-btn { width: 100%; justify-content: space-between; padding: 8px 0; }
  .nav.open .nav-menu { position: static; min-width: 0; box-shadow: none; border: 0; background: var(--cream); margin: 4px 0 8px; }
  .nav.open .nav-menu::before { display: none; }
  .cta-band { padding: 40px 24px; }
  .legal-grid, .grid.stack-m { grid-template-columns: 1fr !important; gap: 22px; }
  .toc { position: static; }
  .nl-band { grid-template-columns: 64px 1fr; }
  .nl-band .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .price-grid, .team, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .trust-metrics { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .stock-actions { align-items: flex-start; }
  .alert-item { grid-template-columns: 44px 1fr; gap: 12px 14px; }
  .alert-item .tk { grid-column: 2; }
  .alert-item .body, .alert-item .when { grid-column: 1 / -1; }
  .nl-band { grid-template-columns: 1fr; }
  .nl-band .btn { grid-column: 1; }
}

/* ===== Waitlist modal + mobile nav CTA ===== */
/* Mobile nav: on ≤940px only the "Start free →" button shows next to the hamburger (Sign in hidden). */
@media (max-width: 940px) {
  .nav-inner { gap: 14px; }
  .nav-right { gap: 12px; }
  .nav-right .signin { display: none; }
  .nav-toggle { margin-right: -6px; }
}
@media (max-width: 620px) {
  .nav-right .btn-sm { padding: 8px 12px; font-size: 13.5px; }
}

/* Body scroll lock while the modal is open */
body.wl-locked { overflow: hidden; }

/* Overlay */
.wl-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(17,17,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.wl-overlay.open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s; }

/* Dialog (desktop: centered card) */
.wl-dialog {
  position: relative; width: 100%; max-width: 460px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 40px 36px 34px; outline: none;
  transform: translateY(10px) scale(.96); opacity: 0;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.wl-overlay.open .wl-dialog { transform: none; opacity: 1; }

.wl-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.wl-close:hover { background: var(--cream-2); color: var(--ink); }
.wl-close:focus-visible, .wl-done:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.wl-title { font-size: 26px; margin-top: 10px; }
.wl-desc { color: var(--muted); font-size: 15px; margin-top: 10px; }
.wl-form { display: grid; gap: 10px; margin-top: 22px; }
.wl-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wl-input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.wl-input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,197,24,.28); }
.wl-input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,72,77,.18); }
.wl-form .btn { justify-content: center; margin-top: 6px; }
.wl-note { color: var(--muted-2); font-size: 12.5px; text-align: center; }
.wl-error { color: var(--red); font-size: 13px; text-align: center; margin: 0; }
.wl-form.busy .btn { opacity: .7; cursor: progress; }

/* Success state (mirrors the contact form's .sent pattern) */
.wl-success { display: none; text-align: center; }
.wl-check { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  background: var(--green-bg); color: var(--green); font-size: 24px; font-weight: 800; }
.wl-success .wl-title { font-size: 22px; margin-top: 18px; }
.wl-success .wl-done { margin-top: 22px; }
.wl-dialog.sent .wl-fields { display: none; }
.wl-dialog.sent .wl-success { display: block; }

/* Mobile: full-screen sheet */
@media (max-width: 620px) {
  .wl-overlay { padding: 0; align-items: stretch; }
  .wl-dialog {
    max-width: none; width: 100vw; min-height: 100vh; min-height: 100dvh;
    border-radius: 0; border: 0; box-shadow: none;
    display: flex; flex-direction: column; justify-content: center;
    padding: 84px 24px 40px; overflow-y: auto;
    transform: translateY(16px); opacity: 0;
  }
  .wl-close { top: 16px; right: 16px; width: 40px; height: 40px; background: var(--cream-2); }
  .wl-title { font-size: 28px; }
  .wl-desc { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-overlay, .wl-dialog { transition: none; }
}

/* ===== Security page mobile (scoped to main.security-page in security.html) ===== */
@media (max-width: 940px) {
  /* main grid has an inline grid-template-columns; !important is needed to collapse it */
  .security-page .security-main { grid-template-columns: 1fr !important; gap: 36px !important; }
  .security-page .trust-panel { max-width: 560px; margin: 0 auto; width: 100%; }
  .security-page .hero { padding-top: 56px; }
}
@media (max-width: 620px) {
  .security-page { overflow-x: hidden; }
  .security-page .hero { padding-top: 44px; }
  .security-page .hero .h-lg { font-size: clamp(30px, 8.5vw, 40px); }
  .security-page .section-sm { padding-bottom: 44px; }
  .security-page .sec-list { gap: 20px; }
  .security-page .sec-item { gap: 14px; }
  .security-page .sec-item .ic { width: 42px; height: 42px; }
  .security-page .trust-panel { padding: 30px 20px; border-radius: 16px; }
  .security-page .trust-metrics { flex-wrap: wrap; gap: 18px 28px; margin-top: 24px; }
  .security-page .trust-metrics .n { font-size: 26px; }
  .security-page .sec-head { margin-bottom: 28px; }
  .security-page .grid.grid-4 { gap: 14px; }
  .security-page .card.feature { padding: 22px 20px !important; }
  .security-page .hero-grid { gap: 28px; }
  .security-page .hero-grid .h-lg { font-size: clamp(28px, 8vw, 36px); }
  .security-page .cta-band { padding: 36px 20px; border-radius: 18px; }
  .security-page .cta-band p { font-size: 16px; }
  .security-page .cta-band .hero-cta { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .security-page .cta-band .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ===== Inline feature cards (all pages) ===== */
/* Icon bubble on the same line as the title; everything after the title spans the full card width.
   Opt-in via .feature-inline — .feature is also used for cards without an icon (FAQ, testimonials, tables). */
.feature.feature-inline { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.feature.feature-inline > .ic { margin-bottom: 0; }
.feature.feature-inline > h3 { margin-bottom: 0; min-width: 0; }
.feature.feature-inline > :not(.ic):not(h3) { grid-column: 1 / -1; }
.feature.feature-inline > h3 + * { margin-top: 12px; }

/* Tablet & phones: the "Try asking…" list stacks under the chat demo, so let the chips flow in rows
   and give the stacked columns more breathing room. */
@media (max-width: 940px) {
  .product-demo .chat-shell { gap: 32px; }
  .product-demo .chat-shell > * { min-width: 0; }
  .product-demo .ask-list { flex-direction: row; flex-wrap: wrap; }
  .product-demo .ask-list .chip { width: auto; }
}
/* Phones */
@media (max-width: 620px) {
  .product-hero { padding-top: 48px; }
  .product-demo .chat-top { padding: 12px 16px; }
  .product-demo .chat-body { padding: 14px; gap: 14px; }
  .product-demo .msg-ai { padding: 14px; }
  .product-demo .msg-user { max-width: 90%; }
  .product-demo .ask-list .chip { width: 100%; }   /* back to a clean single column on narrow phones */
  .product-caps .sec-head { margin-bottom: 32px; }
  .product-trust .hero-grid { gap: 28px; }
  .product-cta .cta-band { padding: 36px 20px; }
  .product-cta .cta-band p { font-size: 16px; }
}

/* ===== Strategies page tabs ===== */
/* Panels toggled by [data-page-tabs] via the `hidden` attribute; keep it authoritative over display rules. */
[data-tab-panel][hidden] { display: none !important; }
[data-page-tabs] [role="tab"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ===== Legal pages mobile (scoped to main.legal-page in privacy.html + terms.html) ===== */
/* Gutter: the body section is `.wrap.section-sm`, and `.section-sm { padding:56px 0 }` zeroes .wrap's
   24px side padding, so the TOC/article sit flush with the viewport edge whenever the viewport is
   narrower than the 1180px wrap + gutters. Restore it there; ≥1229px is untouched. */
@media (max-width: 1228px) {
  .legal-page .wrap.section-sm { padding-left: 24px; padding-right: 24px; }
}
/* Tablet & phones: TOC moves above the article as a horizontally scrollable pill row (not sticky). */
@media (max-width: 940px) {
  .legal-page { overflow-x: hidden; }
  .legal-page .hero { padding-top: 56px; }
  .legal-page .hero .wrap { max-width: none !important; } /* inline max-width:760px; align hero with the article gutter once single-column */
  .legal-page .legal-grid { gap: 26px; }
  .legal-page .legal-grid > * { min-width: 0; }
  .legal-page .toc { position: static; top: auto; }
  .legal-page .toc h5 { margin-bottom: 10px; }
  .legal-page .toc .toc-links {
    display: flex; gap: 8px; flex-wrap: nowrap;
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scroll-padding-left: 24px;
    margin: 0 -24px; padding: 2px 24px 8px;          /* bleed to the viewport edge, keep the 24px gutter inside */
    scrollbar-width: none;
  }
  .legal-page .toc .toc-links::-webkit-scrollbar { display: none; }
  .legal-page .toc .toc-links a {
    flex: none; scroll-snap-align: start; white-space: nowrap;
    padding: 7px 13px; border-radius: 999px;
    font-size: 13.5px; font-weight: 500; color: var(--ink-2);
    background: var(--cream); border: 1px solid var(--line-2);
  }
  .legal-page .toc .toc-links a:hover { color: var(--ink); background: var(--cream-2); }
  .legal-page .legal-body { max-width: none; }
  .legal-page .legal-body h2 { scroll-margin-top: 80px; }
  .legal-page .legal-body, .legal-page .legal-meta { overflow-wrap: anywhere; } /* emails, URLs */
}
/* Phones */
@media (max-width: 620px) {
  .legal-page .hero { padding-top: 44px; }
  .legal-page .hero .h-lg { font-size: clamp(30px, 8.5vw, 40px); }
  .legal-page .legal-meta { font-size: 13.5px; line-height: 1.5; }
  .legal-page .legal-grid { gap: 22px; }
  .legal-page .section-sm { padding-bottom: 44px; }
  .legal-page .legal-body h2 { font-size: 21px; margin: 34px 0 10px; }
  .legal-page .legal-body p, .legal-page .legal-body li { font-size: 15.5px; line-height: 1.65; }
  .legal-page .legal-body ul { padding-left: 20px; }
  .legal-page .callout { padding: 14px 16px; }
}

/* ===== Stock page (stock.html): chart layout, gutters, bubble paddings ===== */
/* Gutter: the detail section is `.wrap.section-sm` and `.section-sm { padding:56px 0 }` zeroes .wrap's
   24px side padding, so the cards sat 24px wider than every other section (edge-to-edge on phones). */
.stock-page.wrap.section-sm { padding-left: 24px; padding-right: 24px; }
.stock-page .card { padding: 24px; }
.stock-page .card.card-detail { padding: 28px; }

/* Chart column */
.stock-page .chart-col { min-width: 0; }                     /* let the grid track shrink instead of pushing the card open */
.stock-page .chart { margin-top: 16px; }
.stock-page .stock-chart { display: block; width: 100%; height: auto; overflow: visible; } /* end-point dot no longer clipped at x=640 */
.stock-page .stock-chart .line, .stock-page .stock-chart .gridlines line { vector-effect: non-scaling-stroke; }
.stock-page .stock-chart-m { display: none; }
.price-chart { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; touch-action: pan-y; }
.price-chart .line, .price-chart .gridlines line, .price-chart .baseline, .price-chart .crosshair { vector-effect: non-scaling-stroke; }
.price-chart .tip, .price-chart circle, .price-chart .crosshair { pointer-events: none; }
.price-chart-m { display: none; }
@media (max-width: 620px) { .price-chart-d { display: none; } .price-chart-m { display: block; } }
.stock-page .stock-price .rng { color: var(--muted); font-size: 14px; font-weight: 500; }
.stock-page .stat-list { min-width: 0; }
.stock-page .stat-list dd { text-align: right; }

/* Bubbles: even padding, single line, centred glyphs */
.stock-page .stock-price .chg { display: inline-flex; align-items: center; line-height: 1.2; padding: 4px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-weight: 700; white-space: nowrap; }
.stock-page .stock-price .chg.neg { background: #fdeaea; color: var(--red); }
.stock-page .stock-price .ah { margin-top: 2px; }
.stock-page .stock-price .ah .pos { white-space: nowrap; }
.stock-page .stock-logo { line-height: 1; flex: none; }
.stock-page .stock-head .ticker { white-space: nowrap; }
.stock-page .feature .ic { font-size: 20px; line-height: 1; flex: none; }
.stock-page .tabs { max-width: 100%; }
.stock-page .tabs button { line-height: 1.2; white-space: nowrap; }
.stock-page .subnav { scrollbar-width: none; -ms-overflow-style: none; }
.stock-page .subnav::-webkit-scrollbar { display: none; }
.stock-page .subnav a { line-height: 1.3; }
.stock-page .rating-row .meter { min-width: 0; }
.stock-page .list-check li { line-height: 1.5; }

@media (max-width: 940px) {
  .stock-page .stock-actions { flex-direction: row; align-items: center; gap: 12px; width: 100%; }
  .stock-page .stock-price { gap: 12px; }
}
@media (max-width: 620px) {
  .stock-page .card, .stock-page .card.card-detail { padding: 20px; }
  .stock-page.hero { padding-top: 56px; }
  .stock-page .stock-head { gap: 16px; }
  .stock-page .stock-logo { width: 52px; height: 52px; border-radius: 14px; font-size: 12px; }
  .stock-page .stock-price { margin-top: 14px; gap: 10px; }
  .stock-page .stock-price .chg { font-size: 15px; }
  /* Section nav: bleed to the card edges so the strip (and its underline) spans the card and scrolls edge to edge */
  .stock-page .subnav { margin: 20px -20px 0; padding: 0 20px; scroll-padding: 0 20px; }
  .stock-page .subnav a { padding: 11px 12px; font-size: 13.5px; }
  /* Range tabs become an equal-width segmented control instead of a 344px pill that overflowed the 302px column */
  .stock-page .tabs { display: flex; width: 100%; }
  .stock-page .tabs button { flex: 1 1 0; min-width: 0; padding: 8px 0; font-size: 13px; text-align: center; }
  /* Swap to the phone chart (300x190 viewBox) so axis labels and the price tooltip stay legible */
  .stock-page .stock-chart-d { display: none; }
  .stock-page .stock-chart-m { display: block; }
  .stock-page .stat-list div { font-size: 13.5px; }
  .stock-page .cta-band .hero-cta { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .stock-page .cta-band .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ===== NVIDIA logo ===== */
/* Real logo image in the stock header box. Source webp is white with ~6% side padding, so a
   white box + 4px inset keeps the mark crisp and evenly padded inside the rounded border. */
.stock-page .stock-logo { background: #fff; padding: 4px; overflow: hidden; }
.stock-page .stock-logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 8px; }

/* ===== Home app showcase (index.html) ===== */
/* Full-bleed mountain photo spanning the whole section; the enlarged, tilted app demo hangs past the section's bottom edge. */
.app-showcase { position: relative; isolation: isolate; overflow-x: clip; overflow-y: visible; padding: 72px 0 0; margin-top: 8px; }
.app-showcase-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.app-showcase::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,17,20,.22) 0%, rgba(17,17,20,.08) 40%, rgba(17,17,20,.30) 100%); }
.app-showcase-wrap { position: relative; max-width: 1320px; }
/* Z-axis tilt via the individual `rotate` property so it composes with .reveal's translate transform.
   Negative bottom margin makes the demo overhang the photo band; the next section pads for it. */
.app-showcase .appmock { rotate: -2deg; transform-origin: 50% 50%; margin-bottom: -170px;
  box-shadow: 0 40px 90px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.25); }
.after-showcase { padding-top: 260px; }

/* --- Demo screen contents --- */
.appmock .bar { align-items: center; }
.appmock .bar .url { margin-left: 10px; background: #26262d; color: #9a9aa2; font-size: 11px; padding: 3px 14px; border-radius: 999px; }
.app-showcase .appmock .screen { grid-template-columns: 176px minmax(0, 1fr); min-height: 560px; }
.appmock .main { min-width: 0; }
.appmock .side { display: flex; flex-direction: column; }
.appmock .side .logo { display: flex; align-items: center; gap: 8px; }
.appmock .side a img { width: 16px; height: 16px; flex: none; display: block; object-fit: contain; opacity: .72; }
.appmock .side a.on img { opacity: 1; }
.appmock .side a .count { margin-left: auto; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.appmock .side-foot { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); font-size: 12px; }
.appmock .side-foot .plan { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.appmock .side-foot .plan span { color: var(--muted); font-size: 11.5px; }
.appmock .mini-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.appmock .mini-btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.appmock .side-foot .mini-btn { background: var(--yellow); border-color: var(--yellow); }
.app-showcase .appmock .main { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.appmock .topbar { display: flex; align-items: center; gap: 10px; }
.appmock .search { flex: 1; contain: inline-size; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--muted); min-width: 0; }
.appmock .search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appmock .search kbd { font: 600 11px/1 inherit; font-family: inherit; color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; background: var(--cream); }
.appmock .tabs.range { padding: 3px; }
.appmock .tabs.range a { padding: 5px 10px; font-size: 12px; }
.appmock .iconbtn { position: relative; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; }
.appmock .iconbtn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red, #e5484d); border: 1.5px solid #fff; }
.appmock .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.appmock .main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.appmock .main-head .h-md { margin-top: 4px; }
.appmock .segs { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.appmock .segs span { padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.appmock .segs .on { background: var(--yellow-bg); color: var(--ink); }
.appmock .mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.appmock .mock-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px; }
.appmock .main .card { padding: 14px 16px; }
.appmock .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.appmock .row.head { margin-bottom: 8px; }
.appmock .big { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.appmock .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.appmock .spark { display: block; width: 100%; height: auto; max-width: 100%; margin-top: 10px; }
.appmock .meter { height: 6px; border-radius: 999px; background: var(--cream-2); margin-top: 12px; overflow: hidden; }
.appmock .meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #17b26a, var(--yellow)); }
.appmock .wl { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.appmock .wl .tk { font-weight: 700; }
.appmock .wl .nm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appmock .wl .px { font-weight: 600; }
.appmock .wl .badge { font-size: 11.5px; padding: 2px 8px; }
.appmock .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.appmock .btns .mini-btn { justify-content: center; padding: 7px 10px; }
.appmock .actions .row.head { margin-bottom: 12px; }
.appmock .opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; padding: 9px 2px; border-top: 1px solid var(--line); }
.appmock .opt:last-child { padding-bottom: 0; }
.appmock .sw { width: 32px; height: 18px; border-radius: 999px; background: #d9d6cc; position: relative; flex: none; }
.appmock .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.appmock .sw.on { background: #17b26a; }
.appmock .sw.on::after { left: 16px; }
.appmock .chat-input { background: #fff; }
.appmock .chips { display: flex; gap: 6px; margin-left: 8px; }
.appmock .chips span { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }

@media (max-width: 940px) {
  .app-showcase { padding-top: 48px; }
  .app-showcase .appmock { rotate: -1.5deg; margin-bottom: -110px; }
  .after-showcase { padding-top: 180px; }
  .appmock .mock-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appmock .mock-cards .card:last-child { grid-column: 1 / -1; }
  .appmock .mock-row { grid-template-columns: 1fr; }
  .appmock .chips { display: none; }
}
@media (max-width: 620px) {
  .app-showcase { padding-top: 36px; }
  .app-showcase .appmock { rotate: -1deg; margin-bottom: -70px; padding: 10px; }
  .after-showcase { padding-top: 130px; }
  .app-showcase .appmock .screen { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .appmock .side { display: none; }
  .app-showcase .appmock .main { padding: 14px; }
  .appmock .tabs.range { display: none; }
  .appmock .mock-cards { grid-template-columns: minmax(0, 1fr); }
  .appmock .segs { width: 100%; justify-content: space-between; }
  .appmock .segs span { padding: 6px 8px; font-size: 12px; }
}

/* ===== Nav menu SVG icons ===== */
.nav-menu .mi img { display: block; width: 20px; height: 20px; object-fit: contain; }
