/* Deliverability Audit page 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; --gold: #f59e0b;
    --radius-lg: 18px; --radius-md: 12px;
    --shadow-md: 0 12px 24px -10px rgba(20,20,40,0.10);
    --shadow-lg: 0 30px 60px -20px rgba(20,20,40,0.18);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  section[id], header[id], div[id] { scroll-margin-top: 80px; }
  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; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .wrap-narrow { max-width: 820px; 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 { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
  .logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
  .logo-img { height: 56px; display: block; }
  .logo-img.invert { filter: invert(1) brightness(2); }
  .nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--ink-2); font-weight: 500; }
  .nav-links a:hover { color: var(--brand); }
  .nav-cta { display: flex; gap: 10px; }
  .btn { display: inline-flex; align-items: 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 !important; }
  .btn-primary:hover { background: #4a30d4; color: #fff !important; }
  .btn-outline { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
  .btn-outline:hover { border-color: var(--brand); color: var(--brand); }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  /* Dropdown */
  .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); }
  /* 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(3, 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 .footer-heading { 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; }
  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); }

  .da-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
    padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
  .da-hero .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
  .da-hero .breadcrumb a { color: var(--brand); font-weight: 600; }
  .da-hero h1 { font-size: var(--fs-h1); font-weight: 800;
    letter-spacing: -0.025em; line-height: 1.1; margin: 16px 0 16px; max-width: 760px; }
  .da-hero h1 em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: var(--brand); }
  .da-hero .lede { color: var(--ink-2); font-size: var(--fs-lede); max-width: 700px; line-height: 1.6; margin: 0 0 20px; }
  .cta-stack { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
  .cta-stack .secondary { font-size: 13px; color: var(--muted); }
  .cta-stack .secondary a { color: var(--brand); font-weight: 600; }
  .steps-section { padding: 80px 0; }
  .steps-head { text-align: center; margin-bottom: 48px; }
  .steps-head h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800;
    letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.55; }
  .steps-head h2 em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: var(--brand); }
  .steps-head p { color: var(--muted); font-size: 16px; max-width: 580px; margin: 0 auto; }
  .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1080px; margin: 0 auto; }
  .step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
  .step-card .step-num { display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
    font-weight: 800; font-size: 14px; margin-bottom: 16px; }
  .step-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; line-height: 1.55; }
  .step-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
  @media (min-width: 901px) {
    .da-hero h1 { min-height: 202px; }
    .da-hero .lede:nth-of-type(2) { min-height: 68px; }
    .steps-grid .step-card { min-height: 303px; }
  }
  .upsell-section { padding: 80px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .upsell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
  .upsell-grid .l h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.15; margin: 12px 0 16px; }
  .upsell-grid .l h2 em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: var(--brand); }
  .upsell-grid .l p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; }
  .upsell-grid .r { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; }
  .compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
  .compare-row:last-child { border-bottom: none; }
  .compare-row.header { font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom-width: 2px; }
  .compare-row .feature { color: var(--ink-2); font-weight: 500; }
  .compare-row .free { color: var(--muted); }
  .compare-row .plat { color: var(--brand); font-weight: 700; }
  .compare-row .yes { color: var(--good); font-weight: 700; }
  .compare-row .no { color: var(--muted); }
  .end-cta { padding: 96px 0; background: var(--bg-darker); color: #fff; text-align: center; }
  .end-cta h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 18px; color: #fff; }
  .end-cta h2 em { color: var(--brand-2); font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; }
  .end-cta p { color: rgba(255,255,255,0.65); font-size: 18px; max-width: 580px; margin: 0 auto 28px; }
  .end-cta .btn-row { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .end-cta .btn-primary { padding: 16px 32px; font-size: 16px; }
  .end-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.30); background: transparent; padding: 16px 32px; font-size: 16px; }
  .end-cta .btn-outline:hover { background: rgba(255,255,255,0.10); color: #fff; }
  @media (max-width: 900px) {
    .steps-grid { grid-template-columns: 1fr; }
    .upsell-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }

  /* Install / lead capture section */
  .install-section { padding: 80px 0; background: #fff; }
  .install-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
  .install-form {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 36px; box-shadow: var(--shadow-lg);
  }
  .install-form h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.015em; margin: 12px 0 6px; line-height: 1.55; }
  .install-form h2 em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: var(--brand); }
  .install-form .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
  .install-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .install-form .field { display: flex; flex-direction: column; margin-bottom: 14px; }
  .install-form .field label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
  }
  .install-form .field label .req { color: var(--brand); margin-left: 2px; }
  .install-form .field input,
  .install-form .field select,
  .install-form .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;
  }
  .install-form .field input:focus,
  .install-form .field select:focus,
  .install-form .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(91,61,245,0.15);
  }
  .install-form .field textarea { resize: vertical; min-height: 90px; }
  .install-form .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;
  }
  .install-form .submit-row { margin-top: 18px; }
  .install-form .submit-row .btn { width: 100%; padding: 16px; font-size: 16px; }
  .install-form .submit-disclaimer {
    font-size: 12px; color: var(--muted); text-align: center;
    margin-top: 12px; line-height: 1.5;
  }
  .install-form .submit-disclaimer a { color: var(--brand); }
  .install-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
  .aside-card, .aside-callout, .success-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px;
  }
  .aside-callout { background: var(--brand-soft); border-color: var(--brand-soft); }
  .aside-callout p { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 6px 0 0; }
  .aside-callout p a { color: var(--brand); font-weight: 700; }
  .aside-lbl {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
  }
  .aside-list { list-style: none; padding: 0; margin: 0; }
  .aside-list li {
    font-size: 13px; line-height: 1.5; color: var(--ink-2);
    padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--line);
  }
  .aside-list li:last-child { border-bottom: none; }
  .aside-list li::before {
    content: '✓'; color: var(--brand); font-weight: 800;
    position: absolute; left: 0; top: 7px;
  }
  .success-card { border-left: 3px solid var(--good); background: #f0fdf4; }
  .success-card .success-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: var(--good); color: #fff;
    font-weight: 800; font-size: 18px; margin-bottom: 12px;
  }
  .success-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; line-height: 1.55; letter-spacing: normal; }
  .success-card p { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0; }

  @media (max-width: 900px) {
    .install-grid { grid-template-columns: 1fr; }
    .install-aside { position: static; }
  }
