/* Demo page-specific CSS */

:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f5;
    --bg-darker: #050510;
    --ink: #0a0a14;
    --ink-2: #2a2a35;
    --muted: #6b6b78;
    --line: #e8e8e3;
    --brand: {{ theme.brand.primary_color.color }};
    --brand-2: {{ theme.brand.primary_color_2.color }};
    --brand-soft: #efeaff;
    --good: #16a34a;
    --shadow-md: 0 12px 24px -10px rgba(20,20,40,0.10);
    --shadow-lg: 0 30px 60px -20px rgba(20,20,40,0.18), 0 12px 28px -10px rgba(91,61,245,0.10);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; }
  button { font-family: inherit; cursor: pointer; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }
  .serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--brand);
    background: var(--brand-soft); padding: 6px 12px; border-radius: 999px;
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

  /* NAV */
  /* Header nav is styled by the theme (main.css + a11y.css); no per-page overrides
     here so the demo page header matches every other page. */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600; line-height: 1;
    border: 1px solid transparent; transition: all 0.15s ease;
    cursor: pointer; white-space: nowrap;
  }
  .btn-ghost { background: transparent; color: var(--ink-2); }
  .btn-ghost:hover { background: var(--bg-soft); }
  .btn-primary { background: var(--brand); color: #fff; }
  .btn-primary:hover { background: #4a30d4; }
  .btn-lg { padding: 16px 28px; font-size: 16px; }

  /* HERO */
  .demo-hero {
    background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 70%);
    padding: 72px 0 24px;
  }
  .demo-hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
  .demo-hero h1 {
    font-size: var(--fs-h1); font-weight: 800;
    letter-spacing: -0.025em; line-height: 1.04; margin: 18px 0 18px;
  }
  .demo-hero h1 em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400; font-style: italic; color: var(--brand);
  }
  .demo-hero .lede {
    color: var(--muted); font-size: 19px; line-height: 1.55;
    max-width: 660px; margin: 0 auto 26px;
  }
  .demo-meta {
    display: inline-flex; gap: 22px; flex-wrap: wrap; justify-content: center;
    font-size: 13px; color: var(--ink-2); font-weight: 500;
  }
  .demo-meta span { display: inline-flex; align-items: center; gap: 6px; }
  .demo-meta .ck {
    width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft);
    color: var(--brand); display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800;
  }

  /* MAIN GRID */
  .demo-main { padding: 56px 0 96px; }
  .demo-grid {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px;
    align-items: start;
  }

  /* FORM */
  .form-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 36px; box-shadow: var(--shadow-lg);
  }
  .form-card h2 {
    font-size: 24px; font-weight: 800; letter-spacing: -0.01em;
    margin: 0 0 6px; line-height: 1.55; }
  .form-card .sub {
    color: var(--muted); font-size: 14px; margin: 0 0 26px;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
  .field { display: flex; flex-direction: column; margin-bottom: 14px; }
  .field label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
  }
  .field label .req { color: var(--brand); margin-left: 2px; }
  .field input[type=text],
  .field input[type=email],
  .field select,
  .field textarea {
    font-family: inherit; font-size: 15px; color: var(--ink);
    padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(91,61,245,0.15);
  }
  .field textarea { resize: vertical; min-height: 90px; }
  .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b78' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

  /* Platform radio cards */
  .platform-radios { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .platform-radios label {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; border: 1px solid var(--line); border-radius: 10px;
    cursor: pointer; font-size: 14px; font-weight: 600;
    background: #fff; transition: all 0.15s ease;
    text-transform: none; letter-spacing: 0; color: var(--ink-2);
    margin-bottom: 0;
  }
  .platform-radios input { display: none; }
  .platform-radios input:checked + label,
  .platform-radios label:has(input:checked) {
    border-color: var(--brand); background: var(--brand-soft); color: var(--brand);
  }
  .platform-radios label:hover { border-color: var(--brand-2); }

  .submit-row { margin-top: 24px; }
  .submit-row .btn { width: 100%; padding: 16px; font-size: 16px; }
  .submit-disclaimer {
    font-size: 12px; color: var(--muted); text-align: center;
    margin-top: 14px; line-height: 1.5;
  }
  .submit-disclaimer a { color: var(--brand); }

  /* RIGHT-SIDE */
  .demo-side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 90px; }
  .side-section h3 {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700; color: var(--muted); margin: 0 0 18px; line-height: 1.55; }
  .step-list {
    display: flex; flex-direction: column; gap: 18px;
  }
  .step {
    display: grid; grid-template-columns: 36px 1fr; gap: 14px;
    align-items: start;
  }
  .step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
  }
  .step-body .step-title {
    font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px;
  }
  .step-body .step-desc {
    font-size: 14px; color: var(--muted); line-height: 1.5;
  }
  .step-body .step-meta {
    display: inline-block; margin-top: 4px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--brand); font-weight: 700;
  }

  .quote-card {
    background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
    border: 1px solid rgba(91,61,245,0.18);
    border-radius: 14px; padding: 24px;
  }
  .quote-card .stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
  .quote-card .q {
    font-size: 17px; line-height: 1.5; color: var(--ink); font-weight: 500;
    margin-bottom: 14px;
  }
  .quote-card .by { display: flex; align-items: center; gap: 10px; }
  .quote-card .by-mark {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #2c1798);
    color: #fff; display: grid; place-items: center;
    font-weight: 700; font-size: 13px;
  }
  .quote-card .by-name { font-size: 14px; font-weight: 700; }
  .quote-card .by-title { font-size: 12px; color: var(--muted); }

  .more-reviews { text-align: center; margin-top: -8px; }
  .more-reviews a {
    display: inline-block;
    font-size: 14px; font-weight: 700; color: var(--brand);
    border-bottom: 1px dashed rgba(91,61,245,0.40);
    padding-bottom: 2px;
  }
  .more-reviews a:hover { border-bottom-style: solid; }
  .more-reviews .reviews-aside {
    font-size: 12px; color: var(--muted); font-style: italic;
    margin-top: 10px; line-height: 1.55;
  }

  .stats-strip {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden;
  }
  .stat-cell {
    padding: 18px 14px; text-align: center;
    border-right: 1px solid var(--line);
  }
  .stat-cell:last-child { border-right: none; }
  .stat-cell .num {
    font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand);
    line-height: 1.1;
  }
  .stat-cell .lbl {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--muted); margin-top: 4px; font-weight: 600; line-height: 1.4;
  }

  .badges-row {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    font-size: 12px; color: var(--muted);
  }
  .award-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px;
    background: #fff; font-size: 11px; font-weight: 700; color: var(--ink-2);
    text-transform: uppercase; letter-spacing: 0.04em;
  }
  .award-badge .ico { color: var(--brand); }

  /* LOGO STRIP */
  .logos-section { padding: 48px 0 64px; background: var(--bg-soft); border-top: 1px solid var(--line); }
  .logos-eyebrow {
    text-align: center; font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.10em; font-weight: 700;
    margin-bottom: 28px;
  }
  .logos {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 56px 64px;
  }
  .logo-mark-faux {
    color: #9b9ba8; font-weight: 800; font-size: 22px;
    letter-spacing: 0.04em; text-transform: uppercase;
  }
  .logo-mark-faux.serif {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic; font-weight: 400; font-size: 28px; letter-spacing: 0;
    text-transform: none;
  }

  /* FOOTER */
  footer {
    background: var(--bg-darker); color: rgba(255,255,255,0.60);
    padding: 64px 0 28px;
  }
  .footer-grid {
    display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
    margin-bottom: 48px;
  }
  .footer-cta-card { color: rgba(255,255,255,0.80); }
  .footer-cta-card .lede {
    font-size: 14px; line-height: 1.5; margin: 14px 0 18px;
    color: rgba(255,255,255,0.65);
  }
  footer h6 {
    font-size: 11px; color: #fff; text-transform: uppercase;
    letter-spacing: 0.08em; margin: 0 0 16px; line-height: 1.55; }
  footer ul { list-style: none; padding: 0; margin: 0; }
  footer ul li { margin-bottom: 10px; }
  footer ul li a { color: rgba(255,255,255,0.60); font-size: 14px; transition: color 0.15s ease; }
  footer ul li a:hover { color: #fff; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px; display: flex; justify-content: space-between;
    font-size: 12px; color: rgba(255,255,255,0.45);
  }

  @media (max-width: 900px) {
    .demo-grid { grid-template-columns: 1fr; gap: 40px; }
    .demo-side { position: static; }
    .form-row { grid-template-columns: 1fr; }
    .platform-radios { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .stats-strip { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
    .stat-cell:last-child { border-bottom: none; }
  }

  /* Nav dropdown — Resources */
  .nav-links .has-submenu { position: relative; }
  .nav-links .submenu-trigger {
    display: inline-flex; align-items: center; gap: 4px;
    cursor: pointer;
  }
  .nav-links .submenu-trigger .caret {
    font-size: 10px; transition: transform 0.15s ease;
    margin-top: 1px; color: var(--muted);
  }
  .nav-links .has-submenu:hover .submenu-trigger .caret,
  .nav-links .has-submenu:focus-within .submenu-trigger .caret {
    transform: rotate(180deg); color: var(--brand);
  }
  .nav-links .submenu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 16px 40px -12px rgba(20,20,40,0.18);
    padding: 8px;
    min-width: 240px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 100;
  }
  .nav-links .submenu::before {
    content: ''; position: absolute; top: -4px; left: 0; right: 0; height: 12px;
  }
  .nav-links .has-submenu:hover .submenu,
  .nav-links .has-submenu:focus-within .submenu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
  }
  .nav-links .submenu a {
    display: block; padding: 10px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--ink-2);
    transition: all 0.12s ease;
  }
  .nav-links .submenu a:hover { background: var(--brand-soft); color: var(--brand); }
