/* Affpilot marketing site.
   One stylesheet, no framework, no web fonts: the point of leaving WordPress
   was a page that arrives in one request. Keep it lean. */

:root {
  /* Brand colours sampled from the logo (media/wp/2023/10/logo.webp):
     the "A" is #4473da, the robot "o" #23bfd3, the final "t" #1edfb5.
     --brand is the button blue the owner picked; the gradient is the logo's own. */
  --ink: #0f1729;
  --ink-2: #1f2a44;
  --muted: #5a6780;
  --line: #e3e9f2;
  --bg: #ffffff;
  --soft: #f4f8fd;
  --brand: #2f6fe4;
  --brand-deep: #2457bd;
  --brand-2: #23bfd3;
  --brand-3: #1edfb5;
  --brand-ink: #ffffff;
  --ring: rgba(47, 111, 228, .38);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px rgba(31, 42, 68, .13);
  --max: 1140px;
  --prose: 720px;
  --r: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800;
  color: var(--brand); margin: 0 0 .5em;
}
.section-lead { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.grad { background: linear-gradient(100deg, #4473da, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-light { background: linear-gradient(100deg, #a8c6ff, var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  display: inline-block; background: var(--brand); color: var(--brand-ink) !important;
  padding: 11px 20px; border-radius: 10px; font-weight: 650; border: 0; cursor: pointer;
  font-size: 1rem; box-shadow: 0 6px 18px rgba(47, 111, 228, .28); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(47, 111, 228, .34); }
.btn.big { padding: 15px 28px; font-size: 1.06rem; }
.btn.light { background: #fff; color: var(--brand) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.btn.ghost { background: transparent; color: var(--brand) !important; border: 1px solid var(--line); box-shadow: none; }
.link { font-weight: 650; }

/* ---------------------------------------------------------------- header */
.announce { background: linear-gradient(100deg, #4473da, var(--brand-2)); color: #fff; font-size: .93rem; }
.announce a { color: #fff; }
.announce-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 9px 20px; }
.countdown { display: inline-flex; gap: 10px; }
.countdown span { display: inline-flex; flex-direction: column; align-items: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.countdown b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.announce-cta { border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: 4px 14px; font-weight: 650; }
.announce-cta:hover { background: rgba(255, 255, 255, .15); text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 32px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links > a:not(.btn), .menu-button { color: var(--ink-2); font-size: .93rem; white-space: nowrap; font-weight: 550; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
/* Features and Resources are buttons, the rest are links. A button does not
   inherit line-height and sits on a text baseline as an inline-block, so those
   two rode 1–3px lower than their neighbours. As blocks with the links' own
   line-height, every item in the menu is the same box. */
.menu-button { display: block; line-height: inherit; letter-spacing: inherit; margin: 0; }
.nav-links > a:not(.btn):hover, .menu-button:hover { color: var(--brand); text-decoration: none; }
.nav-links .btn { color: #fff !important; }
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 200px; display: grid; opacity: 0; visibility: hidden; transition: .16s ease;
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown, .dropdown.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: .95rem; }
.dropdown a:hover { background: var(--soft); text-decoration: none; }
.nav-toggle, .nav-burger { display: none; }

/* the Features mega-menu */
.mega-menu { min-width: min(940px, 92vw); padding: 22px 24px 18px; left: 0; transform: translateX(-30%) translateY(-6px); }
.has-menu.mega:hover .mega-menu, .has-menu.mega:focus-within .mega-menu, .mega-menu.open { transform: translateX(-30%) translateY(0); }
.mega-intro { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 22px; }
.mega-grid h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.mega-grid a { display: block; padding: 5px 0; font-size: .92rem; color: var(--ink-2); }
.mega-grid a:hover { color: var(--brand); text-decoration: none; }

/* ---------------------------------------------------------------- launch hero
   The "Affpilot 5.0 is live" page, moved here from app.affpilot.com. Dark on
   purpose: it is the announcement, and the marketing page below it stays light. */
.launch {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background:
    radial-gradient(60% 70% at 18% 0%, rgba(47, 111, 228, .35), transparent 60%),
    radial-gradient(60% 70% at 85% 10%, rgba(35, 191, 211, .28), transparent 60%),
    #0b1020;
  padding: 72px 0 64px;
}
.launch::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
}
.launch-inner { position: relative; max-width: 860px; }
.launch .pill {
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(35, 191, 211, .4);
  border-radius: 999px; padding: 8px 18px; font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brand-2);
}
.launch .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(35, 191, 211, .18); }
.launch h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin: 26px 0 0; line-height: 1.03; }
.launch-grad { background: linear-gradient(96deg, #6ea8ff, #7fe6ff 45%, #58f0cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.launch .caret { display: inline-block; width: 4px; height: .92em; margin-left: 6px; vertical-align: -.08em; background: #7fe6ff; animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.launch-lead { font-size: clamp(1.12rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .92); margin: 26px auto 0; max-width: 40ch; }
.launch-body { color: rgba(255, 255, 255, .6); margin: 18px auto 0; max-width: 62ch; font-size: 1rem; }
.launch-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.launch-actions .btn { background: linear-gradient(100deg, var(--brand), var(--brand-2)); box-shadow: 0 14px 34px rgba(35, 191, 211, .22); }
.launch-actions .btn.outline { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.launch-fine { margin-top: 16px; font-size: .78rem; letter-spacing: .06em; color: rgba(255, 255, 255, .38); }
.launch-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 42px; text-align: left; }
.launch-new a {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  padding: 12px 14px; color: #fff; font-weight: 650; font-size: .95rem; line-height: 1.25;
}
.launch-new a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.launch-new span { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 5px; }
@media (max-width: 640px) {
  .launch { padding: 48px 0 44px; }
  .launch-new { grid-template-columns: 1fr 1fr; }
  .launch-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 8px; }
.hero::before {
  content: ""; position: absolute; inset: -30% 30% 40% -20%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(35, 191, 211, .16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: -20% -25% 45% 45%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(47, 111, 228, .14), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.rotator-line { font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 650; margin-top: -.2em; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rot-item {
  grid-area: 1 / 1; color: var(--brand); white-space: nowrap; opacity: 0;
  animation: rotate-words 17.5s infinite;
}
.rot-item:nth-child(1) { animation-delay: 0s; }
.rot-item:nth-child(2) { animation-delay: 2.5s; }
.rot-item:nth-child(3) { animation-delay: 5s; }
.rot-item:nth-child(4) { animation-delay: 7.5s; }
.rot-item:nth-child(5) { animation-delay: 10s; }
.rot-item:nth-child(6) { animation-delay: 12.5s; }
.rot-item:nth-child(7) { animation-delay: 15s; }
@keyframes rotate-words {
  0% { opacity: 0; transform: translateY(8px); }
  2%, 13% { opacity: 1; transform: translateY(0); }
  15%, 100% { opacity: 0; transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .rot-item { animation: none; opacity: 0; }
  .rot-item:first-child { opacity: 1; }
  html { scroll-behavior: auto; }
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.trusted { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; margin-top: 22px; }
.trusted img { border-radius: 6px; }
.hero-shot img {
  width: 100%; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: #fff;
}
.press { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 40px 20px 8px; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.press img { height: 30px; width: auto; opacity: .65; filter: grayscale(1); }

/* ---------------------------------------------------------------- sections */
.section { padding: 76px 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature-group { margin-top: 40px; }
.feature-group h3 { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.feature {
  display: block; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.feature:hover { text-decoration: none; }
.feature h4 { color: var(--brand); }
.feature:hover { border-color: #b9d3fb; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature h4 { font-size: 1.02rem; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* tabs */
.tabs { margin-top: 34px; }
.tab-buttons { display: flex; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; width: max-content; max-width: 100%; }
.tab-buttons button {
  border: 0; background: none; font: inherit; font-size: .97rem; font-weight: 650; color: var(--muted);
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.tab-buttons button[aria-selected="true"] { background: var(--brand); color: #fff; }
.tab-panel { margin-top: 28px; }
.tab-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.tab-inner h3 { font-size: 1.5rem; }
.tab-inner p { color: var(--muted); }
.tab-inner img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }

/* spotlight testimonial: the words on the left, the recorded case study on the right */
.spotlight {
  margin: 0; padding: 44px; border-radius: 22px; color: #fff; position: relative;
  background: linear-gradient(120deg, #1b3f8f, #2f6fe4 52%, #23bfd3);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center;
}
.spotlight-kicker { font-size: 1.25rem; font-weight: 750; margin-bottom: .8em; }
.spotlight blockquote { margin: 0 0 1.2em; font-size: 1.05rem; line-height: 1.7; opacity: .95; max-width: 75ch; }
.spotlight figcaption { display: flex; align-items: baseline; gap: 10px; font-size: .98rem; }
.spotlight figcaption span { opacity: .75; }
.spotlight-badge {
  display: inline-block; margin: 0 0 16px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: .87rem;
}
.spotlight-media { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.spotlight-video {
  position: relative; display: block; width: 100%; border-radius: 16px; overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .28); box-shadow: 0 24px 54px rgba(8, 20, 60, .45);
}
.spotlight-video img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.spotlight-video:hover img { transform: scale(1.03); }
.spotlight-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #e62117;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s ease;
}
.spotlight-play svg { margin-left: 4px; }
.spotlight-play::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .75); animation: spotlight-pulse 2s ease-out infinite;
}
.spotlight-video:hover .spotlight-play { transform: scale(1.08); }
@keyframes spotlight-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.spotlight-watch {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; border-radius: 999px;
  background: #fff; color: var(--brand-deep); font-weight: 750; font-size: 1.02rem;
  box-shadow: 0 12px 28px rgba(8, 20, 60, .3); transition: transform .15s ease, box-shadow .15s ease;
}
.spotlight-watch svg { color: #e62117; }
.spotlight-watch:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(8, 20, 60, .38); }
@media (max-width: 900px) {
  .spotlight { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .spotlight-play::before { animation: none; }
}

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.type-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.type-card h3 { margin-bottom: .4em; }
.type-card p { color: var(--muted); font-size: .96rem; }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.steps li { display: flex; gap: 16px; }
.steps span {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4473da, var(--brand-2)); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.06rem; margin-bottom: .25em; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* CTA bands */
.cta-band { background: var(--soft); padding: 66px 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--muted); }
.cta-band .fine { font-size: .88rem; }
.cta-band.dark { background: linear-gradient(120deg, #12275c, #2457bd 52%, #1aa3bd); color: #fff; border: 0; }
.cta-band.dark p { color: rgba(255, 255, 255, .8); }

/* success stories */
.counter { color: var(--brand); }
/* Masonry by CSS columns, so cards of very different lengths stack with no
   gaps. This only works because every story is on the page: when three were
   hidden behind a "Load More", the balancer left a whole column blank. */
.stories { columns: 3 320px; column-gap: 22px; margin-top: 34px; }
.story {
  break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; margin: 0 0 22px; display: inline-block; width: 100%;
}
.story header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.story header img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.story header strong { display: block; font-size: 1rem; }
.story header span { color: var(--muted); font-size: .85rem; }
.story p { font-size: .95rem; color: var(--ink-2); }
/* Proof screenshots are capped so one long story cannot tower over the rest
   and leave the masonry ragged. "contain" scales, it never crops the evidence. */
.story .proof { border-radius: 10px; border: 1px solid var(--line); margin-top: 8px;
  width: 100%; max-height: 230px; object-fit: contain; object-position: left top; background: var(--soft); }

.integrations { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 34px; text-align: center; }
.integration { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 24px; }
.integration img { height: 30px; width: auto; object-fit: contain; margin-bottom: 14px; }
.integration p { color: var(--muted); font-size: .95rem; margin: 0; }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; margin-top: 32px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.review blockquote { margin: 0; font-size: 1rem; color: var(--ink-2); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.review figcaption strong { display: block; font-size: .97rem; }
.review figcaption em { color: var(--muted); font-size: .85rem; font-style: normal; }

.why { text-align: center; max-width: 720px; margin: 0 auto; }
.why .section-lead { margin: 0 auto; }

/* FAQ */
.faq { margin-top: 30px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.faq details[open] { border-color: #b9d3fb; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq-body { padding-bottom: 14px; color: var(--muted); font-size: .98rem; }
.faq-body p:last-child, .faq-body ol:last-child { margin-bottom: 0; }
.faq-body ol { padding-left: 22px; }

/* ---------------------------------------------------------------- blog */
.chips a { display: inline-block; background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; margin: 0 8px 8px 0; font-size: .9rem; }
.kicker { display: inline-block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: 8px; }
/* Post cards. The name is deliberate: `.card` is a class the app uses too, and
   ours clipped the "MOST POPULAR" ribbon off a mirrored pricing card. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin: 28px 0; }
.post-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; }
.post-card-body { padding: 18px 20px 20px; }
.post-card h2, .post-card h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.post-card small { color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 36px 0; color: var(--muted); }

.article { max-width: var(--prose); padding-top: 44px; }
.article .meta { color: var(--muted); font-size: .95rem; }
.article .hero { border-radius: var(--r); margin: 16px 0 8px; padding: 0; }
.warn { color: #b42318; }
.prose { max-width: var(--prose); }
.prose h2 { font-size: 1.55rem; margin: 1.5em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.3em 0 .4em; }
.prose p, .prose li { font-size: 1.06rem; }
.prose img { border-radius: 10px; margin: 10px 0; }
.prose blockquote { border-left: 4px solid #b9d3fb; margin: 1.2em 0; padding: 4px 0 4px 18px; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.prose pre { overflow-x: auto; background: var(--soft); padding: 14px; border-radius: 10px; }
.prose figcaption { color: var(--muted); font-size: .9rem; }
/* A post page carries what the WordPress one carries: a table of contents,
   the newsletter box, the writer's bio, and the way to the next post. */
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 20px; margin: 28px 0; }
.toc summary { font-weight: 750; cursor: pointer; padding: 12px 0; }
.toc ol { margin: 0 0 14px; padding-left: 20px; }
.toc li { margin: 6px 0; font-size: .96rem; }
.toc li.toc-h3 { margin-left: 16px; font-size: .92rem; list-style: circle; }

.subscribe-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 40px 0 0; }
.subscribe-box h2 { font-size: 1.2rem; margin-bottom: .6em; }
.subscribe-box .subscribe input { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.subscribe-box .subscribe input::placeholder { color: var(--muted); }

.share { color: var(--muted); font-size: .9rem; margin-top: -.4em; }
.share a { margin-left: 10px; font-weight: 650; }
.share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.samples { margin: 40px 0 8px; }
.samples h2 { font-size: 1.3rem; }
.samples .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.samples small { color: var(--muted); font-size: .85rem; }

.author-box { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 24px 0; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); }
.author-box h2 { font-size: 1.15rem; margin-bottom: .4em; }
.author-box p { color: var(--muted); margin: 0; font-size: .97rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.post-nav a { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--ink); font-weight: 650; line-height: 1.35; }
.post-nav a:hover { border-color: #b9d3fb; text-decoration: none; }
.post-nav a.next { text-align: right; }
.post-nav span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 6px; font-weight: 800; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav a.next { text-align: left; } }

.cta { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin: 44px 0 24px; }
.cta h2 { margin-top: 0; font-size: 1.4rem; }
.related ul { padding-left: 20px; }

/* a WordPress page in the new design */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: .6em; max-width: 62ch; }
.legacy { padding-top: 44px; }
.legacy h2 { font-size: 1.55rem; margin: 1.6em 0 .45em; }
.legacy h3 { font-size: 1.2rem; margin: 1.4em 0 .35em; }
.legacy h4 { font-size: 1.05rem; margin: 1.2em 0 .3em; }
.legacy p { color: var(--ink-2); }
.legacy figure { margin: 26px 0; }
/* Never enlarge a picture past its own size: a 300x60 logo stays 300x60. */
/* Tall decorative illustrations must not take a screenful each. */
.legacy figure img { max-width: 100%; max-height: 520px; height: auto; width: auto; margin: 0 auto;
  border-radius: 12px; border: 1px solid var(--line); background: var(--soft); display: block; }
.legacy figure.small { text-align: center; }
.legacy figure.small img { margin: 0 auto; border: 0; background: none; }
.legacy-cta { margin: 24px 0 28px; }

/* A claim the page makes — a number with its own words around it. */
.statement { text-align: center; margin: 40px 0 32px; }
.statement-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .3em; }
.statement-number { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 850; line-height: 1; margin: 0;
  background: linear-gradient(100deg, #4473da, var(--brand-2)); -webkit-background-clip: text;
  background-clip: text; color: transparent; letter-spacing: -.03em; }
.statement-tail { font-size: 1.15rem; color: var(--muted); margin: .5em 0 0; }

/* A picture whose lettering is white needs a dark ground to be read at all. */
.legacy figure.on-dark img { background: #10243d; border-color: #10243d; padding: 14px 18px; }

/* a story on a WordPress page, laid out like the ones on the home page */
.legacy .story { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 26px 0; }
.legacy .story header { margin-bottom: 12px; }
.legacy .story header strong { display: block; font-size: 1.05rem; }
.legacy .story header span { color: var(--muted); font-size: .88rem; }
.legacy .story p { font-size: .98rem; }
.legacy .story .proof { width: 100%; max-height: 300px; object-fit: contain; object-position: left top;
  border-radius: 10px; border: 1px solid var(--line); background: var(--soft); margin-top: 10px; display: block; }

.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 34px;
  margin: 28px 0; padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r);
}
.logo-strip img { height: 30px; width: auto; opacity: .6; filter: grayscale(1); transition: opacity .15s ease, filter .15s ease; }
.logo-strip img:hover { opacity: 1; filter: none; }
.legacy figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* A WordPress page mirrored whole. Its own stylesheets do the design; these
   three rules only stop it from pushing this site's layout around. */
.wp-page { overflow-x: clip; }
.wp-page img, .wp-page video, .wp-page iframe { max-width: 100%; }
.wp-page [style*="position:fixed"], .wp-page [style*="position: fixed"] { position: static !important; }
/* The use-case pages show one screenshot at a time. WordPress hid the other two
   from JavaScript, so all three flashed up on load; hiding them here means the
   page is right the moment it is painted. mirrored.js does the switching. */
.wp-page #feature-img-show-2, .wp-page #feature-img-show-3 { display: none; }
/* What a PDF form becomes once it is sent (mirrored.js): the popup's words and
   its download button, in place of the form. */
.wp-page .lead-done {
  padding: 22px 24px; border-radius: 14px; text-align: center;
  background: #f3f8ff; border: 1px solid #cfe0ff; color: #0f1729;
}
.wp-page .lead-done p { margin: 0 0 12px; }
.wp-page .lead-done-title { font-size: 1.25rem; font-weight: 750; }
.wp-page .lead-done-button {
  display: inline-block; margin: 4px 0 12px; padding: 12px 26px; border-radius: 999px;
  background: #2f6fe4; color: #fff !important; font-weight: 700; text-decoration: none !important;
}
.wp-page .lead-done-button:hover { background: #2457bd; }
.wp-page .lead-done-note { font-size: .9rem; color: #5b6475; }
.wp-page .lead-error { margin: 10px 0 0; color: #b42318; font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #0f1729; color: #b9c2d3; padding: 60px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #b9c2d3; }
.site-footer a:hover { color: #fff; }
.site-footer .brand img { height: 34px; }
.newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px; padding: 28px 30px; margin-bottom: 48px;
}
.newsletter h2 { color: #fff; font-size: 1.4rem; margin-bottom: .2em; }
.newsletter p { margin: 0; max-width: 52ch; }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 320px; max-width: 460px; }
.subscribe input {
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff;
  border-radius: 10px; padding: 12px 16px; font: inherit; flex: 1 1 200px; min-width: 0;
}
.subscribe input::placeholder { color: #8b97ad; }
.foot-cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-cols h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.foot-cols nav { display: grid; gap: 10px; align-content: start; }
.foot-brand p { max-width: 34ch; }
.foot-brand .company { font-size: .86rem; color: #8b97ad; line-height: 1.7; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .88rem; color: #8b97ad;
}
.foot-bottom nav a { margin-left: 16px; }

.flash { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.flash.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero-grid, .tab-inner { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav-burger {
    display: block; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    position: relative; cursor: pointer; background: #fff;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  }
  .nav-burger span { top: 21px; }
  .nav-burger span::before { top: -6px; left: 0; }
  .nav-burger span::after { top: 6px; left: 0; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 22px; display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links > a:not(.btn), .menu-button { padding: 10px 0; font-size: 1.05rem; text-align: left; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .mega-menu { min-width: 0; padding: 0 0 0 14px; }
  .has-menu.mega:hover .mega-menu, .mega-menu.open { transform: none; }
  .mega-intro { display: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 10px; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
  .spotlight { padding: 32px 24px; }
  .spotlight-badge { position: static; display: inline-block; margin-top: 14px; }
  .stories { columns: 1; }
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; }
}
