/* The Mailer Accounts - ink blue, postal red, warm cream */

:root {
  --ink: #1B2A49;
  --ink-2: #263859;
  --ink-deep: #121D35;
  --red: #C8442F;
  --red-dark: #A93522;
  --cream: #F7F2E8;
  --cream-2: #EFE8DA;
  --white: #FFFFFF;
  --text: #1F2937;
  --muted: #5B6577;
  --line: #E3DCCB;
  --line-dark: rgba(247, 242, 232, .16);

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 72px;
  --sp-7: 104px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(27, 42, 73, .06), 0 1px 3px rgba(27, 42, 73, .05);
  --shadow-2: 0 6px 16px rgba(27, 42, 73, .08), 0 2px 4px rgba(27, 42, 73, .04);
  --shadow-3: 0 24px 56px rgba(27, 42, 73, .16), 0 8px 18px rgba(27, 42, 73, .08);

  --max: 1180px;
  --gutter: max(var(--sp-3), calc((100% - var(--max)) / 2));
  --ease: cubic-bezier(.22, .8, .3, 1);

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
p { margin: 0 0 var(--sp-2); }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 var(--sp-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.6vw + .6rem, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 2.6vw + .8rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); font-weight: 600; }

::selection { background: var(--red); color: var(--white); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed;
  top: -80px;
  left: var(--sp-1);
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip:focus { top: var(--sp-1); }

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 14px var(--gutter);
  background: rgba(247, 242, 232, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 -3px 0 var(--red);
}

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav a:hover { background: var(--cream-2); }
.nav a:last-child { background: var(--ink); color: var(--cream); }
.nav a:last-child:hover { background: var(--red); }

/* ---------- Sections ---------- */

.section-band { padding: var(--sp-7) var(--gutter); }

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--sp-2);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}

.section-heading { max-width: 780px; margin-bottom: var(--sp-5); }
.section-heading.compact { margin-bottom: var(--sp-5); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-2); }
.button.primary:hover { background: var(--red-dark); box-shadow: var(--shadow-3); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--cream); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.text-button:hover { color: var(--red); gap: 10px; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--sp-6);
  align-items: center;
  padding-top: var(--sp-6);
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(200, 68, 47, .09), transparent 70%),
    var(--cream);
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin-bottom: var(--sp-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin: 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.score-strip dt {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.1;
}
.score-strip dd { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 16px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-md);
}
.panel-wide { grid-column: 1 / -1; }
.panel-label {
  display: block;
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, .65);
}
.chart-card .panel-label { color: var(--muted); }
.panel strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.status-live {
  flex: none;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(200, 68, 47, .25);
  color: #FFD9D0;
  font-size: .78rem;
  font-weight: 600;
}

.metric-card, .chart-card {
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.metric-card > span { display: block; font-size: .85rem; color: var(--muted); }
.metric-card > strong {
  display: block;
  margin: 4px 0 10px;
  font-family: var(--font-head);
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.metric-card small { display: block; margin-top: 10px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.meter { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.meter.warm span { background: var(--red); }
.chart-card { grid-column: 1 / -1; }
.work-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.work-rows li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--cream-2); border-left: 4px solid var(--red); border-radius: var(--r-sm); }
.work-rows li:nth-child(2) { border-left-color: var(--ink); }
.work-rows strong { font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.work-rows span { font-size: .85rem; color: var(--muted); }

/* ---------- Testimonials ---------- */

.testimonials { background: var(--white); }
.testimonials > * + * { margin-top: var(--sp-6); }
.testimonials > .section-heading + * { margin-top: 0; }

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}
.logo-wall-item, .expanded-logo-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.logo-wall img, .expanded-logo-grid img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: var(--white);
}

.testimonial-feature, .callout-review, .feed-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: center;
}

blockquote {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.85rem);
  line-height: 1.38;
  letter-spacing: -.015em;
  color: var(--ink);
}
.review-author { display: flex; flex-direction: column; margin-bottom: var(--sp-3); line-height: 1.4; }
.review-author strong { color: var(--ink); }
.review-author span { font-size: .92rem; color: var(--muted); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, var(--ink-2), var(--ink-deep));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.video-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(18, 29, 53, .75);
  color: var(--cream);
  font-size: .82rem;
  font-weight: 500;
  pointer-events: none;
}

.mini-story-rail, .review-sequence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.mini-story, .review-sequence > div, .trust-card, .faq-grid details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mini-story:hover, .review-sequence > div:hover, .faq-grid details:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.mini-story { display: flex; flex-direction: column; padding: var(--sp-3); background: var(--cream); }
.story-number {
  margin-bottom: var(--sp-2);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
}
.mini-story p { flex: 1; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.45; color: var(--ink); }
.mini-story strong { font-size: .9rem; color: var(--muted); }

.review-sequence > div { padding: var(--sp-3); border-top: 3px solid var(--red); }
.review-sequence span {
  display: block;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.review-sequence p { margin: 0; color: var(--text); }

.expanded-logos {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 var(--sp-3);
}
.expanded-logos summary {
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.expanded-logos summary::-webkit-details-marker, .faq-grid summary::-webkit-details-marker { display: none; }
.expanded-logos summary::after, .faq-grid summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red);
  transition: transform .3s var(--ease);
}
.expanded-logos[open] summary::after, .faq-grid details[open] summary::after { transform: rotate(45deg); }
.expanded-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
}
.expanded-logo-grid > div { flex-direction: column; gap: 10px; }
.expanded-logo-grid span { font-size: .85rem; color: var(--muted); }

.qualitative-callouts h3 { margin-bottom: var(--sp-2); }
.qualitative-callouts p:not(.eyebrow) { color: var(--muted); }

.logo-marquee {
  overflow: hidden;
  padding: var(--sp-3) 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: max-content;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--red); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-35%); } }

.story-feed { display: grid; gap: var(--sp-6); }
.feed-story.reverse .video-frame { grid-column: 1; grid-row: 1; }
.feed-story.reverse .feed-copy { grid-column: 2; grid-row: 1; }
.feed-copy p:not(.eyebrow):not(.review-author) { color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { background: var(--cream-2); }
.faq-grid { display: grid; gap: var(--sp-2); max-width: 860px; }
.faq-grid details { padding: 0 var(--sp-3); }
.faq-grid details[open] { box-shadow: var(--shadow-2); }
.faq-grid summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding: 20px 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.faq-grid details p { padding-bottom: var(--sp-3); margin: 0; color: var(--muted); }

/* ---------- Trust (dark) ---------- */

.trust { background: var(--ink); color: rgba(247, 242, 232, .82); }
.trust h2, .trust h3 { color: var(--cream); }
.trust .eyebrow { color: #F0A090; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.trust-card {
  padding: var(--sp-4);
  background: rgba(247, 242, 232, .05);
  border-color: var(--line-dark);
  box-shadow: none;
}
.trust-card:hover { transform: translateY(-4px); background: rgba(247, 242, 232, .09); }
.trust-card p { margin: 0; }
.card-index {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #F0A090;
}

.service-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-dark);
}
.service-area p:not(.eyebrow) { margin: 0; }


/* ---------- Contact ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
  background: var(--cream);
}
.cta-copy p:not(.eyebrow) { color: var(--muted); }

.contact-form {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.contact-form label { display: grid; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid #D5CCB6;
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(27, 42, 73, .16);
}
.form-button { width: 100%; }
.form-note { margin: 0; font-size: .92rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--ink); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 3px; }
.form-status { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--cream-2); color: var(--ink); font-size: .95rem; }
.form-error { background: #FBE4DE; color: #8E2B1A; }

/* ---------- Modal ---------- */

.review-modal {
  width: min(780px, calc(100% - 28px));
  padding: 0;
  color: var(--cream);
  background: var(--ink-deep);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.review-modal::backdrop { background: rgba(18, 29, 53, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 24px; }
.modal-top p { margin: 0; font-family: var(--font-head); font-weight: 600; }
.modal-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 242, 232, .1);
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.modal-close:hover { background: var(--red); transform: rotate(90deg); }
.review-modal .video-frame { border-radius: 0; box-shadow: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero, .testimonial-feature, .callout-review, .feed-story, .service-area, .cta { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feed-story.reverse .video-frame, .feed-story.reverse .feed-copy { grid-column: auto; grid-row: auto; }
  .logo-wall, .expanded-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .mini-story-rail, .review-sequence { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-band { padding-block: var(--sp-6); }
  .hero { padding-top: var(--sp-5); }
  .topbar { padding-block: 10px; }
  .brand > span:last-child { font-size: 1rem; }
  .nav a { padding: 8px 12px; }
  .nav a:not(:last-child) { display: none; }
  .dashboard { grid-template-columns: 1fr; padding: var(--sp-2); }
  .score-strip { grid-template-columns: repeat(3, 1fr); gap: var(--sp-1); }
  .contact-form { padding: var(--sp-3); }
  .hero-actions .button { width: 100%; }
  .story-feed { gap: var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
