/* Customer Stories 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;
    --hubspot: #ff7a59; --marketo: #5C4C9F;
    --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, 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%; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
  .wrap-narrow { max-width: 880px; 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-links a.active { color: var(--brand); }
  .nav-cta { display: flex; gap: 10px; align-items: center; }
  .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; }
  .btn-primary:hover { background: #4a30d4; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }

  /* HERO */
  .cust-hero {
    background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
    padding: 80px 0 60px; border-bottom: 1px solid var(--line); text-align: center;
  }
  .cust-hero h1 {
    font-size: var(--fs-h1); font-weight: 800;
    letter-spacing: -0.025em; line-height: 1.05;
    margin: 20px auto 18px; max-width: 880px;
  }
  .cust-hero h1 em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: var(--brand); }
  .cust-hero .lede { color: var(--muted); font-size: var(--fs-lede); max-width: 680px; margin: 0 auto 32px; line-height: 1.5; }

  /* PROOF STRIP */
  .proof-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    max-width: 1000px; margin: 36px auto 0;
  }
  .proof-cell {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 24px 20px; text-align: center;
  }
  .proof-num { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -0.01em; }
  .proof-lbl { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 6px; }

  /* SECTION TITLES */
  .sec-title {
    font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
    letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15;
  }
  .sec-title em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: var(--brand); }
  .sec-sub { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 0 36px; line-height: 1.5; }

  /* FEATURED REVIEWS */
  .featured-section { padding: 96px 0 80px; background: #fff; }
  .featured-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
  .featured-head .head-left { flex: 1; min-width: 320px; }
  .featured-head .head-right {
    display: flex; align-items: center; gap: 14px;
    background: var(--brand-soft); padding: 14px 20px; border-radius: 14px;
  }
  .hubspot-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--brand);
  }
  .hubspot-badge .star { color: var(--gold); font-size: 16px; }
  .reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .review-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-md); transition: all 0.2s ease;
  }
  .review-card:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-2); }
  .review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
  .review-date { font-size: 12px; color: var(--muted); font-weight: 600; }
  .review-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 16px; color: var(--ink); }
  .review-body { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 20px; }
  .review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
  .review-pillar p { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0; }
  .pillar-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--brand); text-transform: uppercase; margin-bottom: 6px; }
  .review-footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
  .review-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #2c1798); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 16px;
  }
  .reviewer-name { font-weight: 700; font-size: 14px; color: var(--ink); }
  .reviewer-industry { font-size: 12px; color: var(--muted); }
  .review-badge {
    margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted);
    background: var(--bg-soft); padding: 6px 12px; border-radius: 999px; letter-spacing: 0.04em;
  }

  /* WALL OF LOVE */
  .wall-section { padding: 80px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .wall-head { text-align: center; margin-bottom: 48px; }
  .wall-head .sec-sub { margin: 0 auto; }
  .wall-grid {
    columns: 3; column-gap: 24px;
  }
  .quote-tile {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 24px; margin-bottom: 24px;
    break-inside: avoid; position: relative;
    transition: all 0.2s ease;
  }
  .quote-tile:hover { box-shadow: var(--shadow-md); border-color: var(--brand-2); }
  .quote-mark {
    font-family: 'Instrument Serif', Georgia, serif; font-size: 60px;
    color: var(--brand); line-height: 0.5; margin-bottom: 0;
    position: absolute; top: 24px; left: 24px; opacity: 0.18;
  }
  .quote-text {
    font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
    font-size: 19px; line-height: 1.4; color: var(--ink);
    margin: 12px 0 16px; position: relative;
  }
  .quote-who { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
  .wall-cta { text-align: center; margin-top: 28px; }
  .wall-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--brand);
    padding: 14px 24px; background: #fff; border: 1px solid var(--brand-soft);
    border-radius: 999px; transition: all 0.15s ease;
  }
  .wall-cta a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

  /* CASE STUDIES */
  .cs-section { padding: 96px 0; background: #fff; }
  .cs-filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 36px; font-size: 13px;
  }
  .cs-filter {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-2); font-weight: 600; cursor: pointer;
    transition: all 0.15s ease;
  }
  .cs-filter:hover, .cs-filter.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
  .cs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }
  .cs-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; transition: all 0.2s ease;
    display: flex; flex-direction: column;
  }
  .cs-card:hover {
    box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-2);
  }
  .cs-card-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--brand-soft) 0%, #faf7ff 100%);
    border-bottom: 1px solid var(--line);
  }
  .cs-platform-badge {
    font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 999px;
  }
  .cs-platform-badge.hubspot { background: #fff; color: var(--hubspot); border: 1px solid #ffd5c4; }
  .cs-platform-badge.marketo { background: #fff; color: var(--marketo); border: 1px solid #d5cee8; }
  .cs-metric { text-align: right; }
  .cs-metric-value { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -0.01em; line-height: 1; }
  .cs-metric-label { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }
  .cs-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
  .cs-company { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .cs-headline { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 12px; }
  .cs-card:hover .cs-headline { color: var(--brand); }
  .cs-lede { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; flex: 1; }
  .cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .cs-tag {
    font-size: 10px; font-weight: 700; color: var(--ink-2);
    background: var(--bg-soft); padding: 4px 10px; border-radius: 999px;
    letter-spacing: 0.04em; text-transform: uppercase;
  }
  .cs-readmore { font-size: 13px; font-weight: 700; color: var(--brand); }

  /* CTA */
  .end-cta {
    background: var(--bg-darker); color: #fff; padding: 96px 0; text-align: center;
  }
  .end-cta h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; color: #fff; line-height: 1.1; }
  .end-cta h2 em { color: var(--brand-2); font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; }
  .end-cta .lede { color: rgba(255,255,255,0.65); font-size: var(--fs-lede); max-width: 580px; margin: 0 auto 32px; }
  .end-cta-buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .end-cta .btn-primary { padding: 16px 32px; font-size: 16px; }
  .end-cta .btn-outline {
    padding: 16px 32px; font-size: 16px;
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.30);
  }
  .end-cta .btn-outline:hover { background: rgba(255,255,255,0.10); }

  /* 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 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; }
  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: 1000px) {
    .reviews-grid { grid-template-columns: 1fr; }
    .cs-grid { grid-template-columns: repeat(2, 1fr); }
    .wall-grid { columns: 2; }
    .proof-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
  }
  @media (max-width: 640px) {
    .cs-grid { grid-template-columns: 1fr; }
    .wall-grid { columns: 1; }
  }

  /* 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); }
