/* a-clarity — light editorial enterprise SaaS
   Review Reply - Smart AI Responses website mockup. No external requests. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-variable.woff2") format("woff2");
}

:root {
  --rs-ink: #0A1B3D;
  --rs-ink-2: #3D4E70;
  --rs-ink-3: #5B6B94;
  --rs-bg: #FFFFFF;
  --rs-bg-soft: #F7F9FC;
  --rs-line: #E3E8F0;
  --rs-g100: #EDF1F7;
  --rs-g300: #C6CFDE;
  --rs-blue: #4f46e5;
  --rs-blue-h: #4338ca;
  --rs-blue-tint: #EEF2FF;
  --rs-accent-on: #FFFFFF;
  --rs-green: #0E9F6E;
  --rs-gold: #E8A800;
  --rs-red: #D64545;
  --rs-shadow-md: 0 1px 3px rgba(10, 27, 61, .15);
  --rs-shadow-lg: 0 12px 32px -18px rgba(10, 27, 61, .35);
  --rs-radius-sm: 7px;
  --rs-radius-md: 11px;
  --rs-radius-lg: 14px;
  --wrap: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--rs-ink);
  background: var(--rs-bg);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--rs-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--rs-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--rs-blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--rs-radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rs-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 190px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--rs-ink-2);
  font-weight: 500;
  border-radius: var(--rs-radius-sm);
}
.nav-list a:hover { color: var(--rs-ink); background: var(--rs-g100); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--rs-blue); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm);
  cursor: pointer;
  color: var(--rs-ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--rs-radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--rs-blue); color: #fff; }
.btn-primary:hover { background: var(--rs-blue-h); }
.btn-secondary { background: #fff; color: var(--rs-ink); border-color: var(--rs-line); }
.btn-secondary:hover { background: var(--rs-bg-soft); border-color: var(--rs-g300); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--rs-ink); margin: 0 0 .4em; line-height: 1.15; }
h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--rs-ink-2); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rs-blue);
  margin: 0 0 14px;
}
.updated {
  display: inline-block;
  font-size: 14px;
  color: var(--rs-ink-3);
  margin: 0 0 8px;
}
.muted { color: var(--rs-ink-3); }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--rs-ink-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--rs-ink); }

/* ---------- Layout ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.band-soft { background: var(--rs-bg-soft); }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.hero { padding: 80px 0 64px; }
.hero-grid {
  display: grid;
  /* d-video: the demo video carries the hero, so it gets the wider column. */
  grid-template-columns: .82fr 1.18fr;
  gap: 44px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: .5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px 34px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rs-line);
}
.logo-row img { height: 22px; width: auto; opacity: .85; }

/* ---------- Browser frame ---------- */
.browser-frame {
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--rs-shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--rs-bg-soft);
  border-bottom: 1px solid var(--rs-line);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rs-g300); }
.browser-url {
  flex: 1;
  height: 20px;
  margin-left: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rs-line);
}
.browser-frame img { display: block; width: 100%; }

/* Hero video (d-video): same frame grammar as the browser screenshot, 16:9, no layout shift. */
.video-frame {
  margin: 0;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  background: var(--rs-ink);
  box-shadow: var(--rs-shadow-lg);
}
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--rs-ink); }
.video-embed .video-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--rs-ink);
}
/* Mute / unmute control for the looping hero video (starts muted so it can autoplay). */
.video-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 27, 61, .72);
  color: #fff;
  cursor: pointer;
}
.video-sound:hover { background: var(--rs-blue); }
.video-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-sound svg { width: 20px; height: 20px; }
.video-sound .snd-on { display: none; }
.video-sound[aria-pressed="true"] .snd-on { display: block; }
.video-sound[aria-pressed="true"] .snd-off { display: none; }
.video-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: #fff; border-top: 1px solid var(--rs-line);
  color: var(--rs-ink-2); font-size: 14px;
}
.video-caption a { flex: 0 0 auto; font-weight: 600; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-md);
  padding: 26px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--rs-ink-2); margin-bottom: 0; }
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: var(--rs-radius-sm);
  background: var(--rs-blue-tint);
  color: var(--rs-blue);
}
.card .card-icon svg { width: 22px; height: 22px; }

.platform-card { display: flex; flex-direction: column; gap: 14px; }
.platform-card img { height: 26px; width: auto; align-self: flex-start; }
.platform-card p { color: var(--rs-ink-2); margin: 0; }
.platform-card a { font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rs-blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--rs-ink-2); margin-bottom: 0; }

/* ---------- Trust panel ---------- */
.trust-panel {
  background: #fff;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-lg);
  padding: 40px;
  box-shadow: var(--rs-shadow-md);
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.trust-item h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.trust-item p { color: var(--rs-ink-2); margin: 0; font-size: 15.5px; }
.trust-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rs-green); flex: 0 0 auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq-item {
  border-bottom: 1px solid var(--rs-line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--rs-ink);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--rs-blue);
  transition: transform .18s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 4px 22px; color: var(--rs-ink-2); max-width: 720px; }
.faq-item .faq-body p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-band .lead { max-width: 640px; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Tables / platform steps ---------- */
.platform-block {
  background: #fff;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  scroll-margin-top: 84px;
}
.platform-block .platform-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.platform-block .platform-head img { height: 26px; width: auto; }
.platform-block .platform-head h2 { margin: 0; }
.platform-block ol, .platform-block ul { color: var(--rs-ink-2); padding-left: 22px; }
.platform-block li { margin-bottom: .5em; }
.platform-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--rs-bg-soft);
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-md);
  color: var(--rs-ink-2);
  font-size: 15.5px;
}
.platform-note strong { color: var(--rs-ink); }

/* ---------- Sample replies ---------- */
.sample {
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--rs-bg-soft);
  border-bottom: 1px solid var(--rs-line);
}
.sample-head h3 { margin: 0; font-size: 1.02rem; }
.sample-body { padding: 20px; color: var(--rs-ink-2); }
.sample-body p { margin: 0; }
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--rs-blue-tint);
  color: var(--rs-blue);
}
.truth-flag {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #F0D488;
  background: #FFF8E7;
  border-radius: var(--rs-radius-md);
  color: #6b5300;
  font-size: 15px;
}
.truth-flag strong { color: #4a3a00; }
.review-quote {
  border-left: 3px solid var(--rs-g300);
  padding: 4px 0 4px 18px;
  margin: 0 0 26px;
  color: var(--rs-ink-2);
  font-size: 1.05rem;
}
.review-quote .stars { color: var(--rs-gold); letter-spacing: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rs-line);
  background: var(--rs-bg-soft);
  padding: 56px 0 32px;
  margin-top: 24px;
}
.ask-title { font-weight: 700; font-size: 15px; margin: 0 0 16px; color: var(--rs-ink); }
.ask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.ask-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm);
  color: var(--rs-ink);
  font-weight: 600;
  font-size: 14.5px;
}
.ask-link:hover { border-color: var(--rs-blue); color: var(--rs-blue); text-decoration: none; }
.ask-link svg { width: 16px; height: 16px; color: var(--rs-ink-3); flex: 0 0 auto; }
.ask-link:hover svg { color: var(--rs-blue); }
.ask-logo { width: 18px; height: 18px; flex: 0 0 auto; }
.ask-note { color: var(--rs-ink-3); font-size: 14.5px; margin: 0 0 8px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 40px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rs-line);
}
.footer-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rs-ink-3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a {
  display: inline-block;
  min-height: 32px;
  padding: 4px 0;
  color: var(--rs-ink-2);
  font-size: 15px;
}
.footer-col a:hover { color: var(--rs-blue); }
.footer-bottom {
  border-top: 1px solid var(--rs-line);
  padding-top: 22px;
  color: var(--rs-ink-3);
  font-size: 14px;
}
.footer-family {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rs-line);
  color: var(--rs-ink-3); font-size: 14px;
}
.footer-family .family-label { margin-right: 4px; }
.family-link { display: inline-flex; align-items: center; gap: 8px; color: var(--rs-ink-2); font-weight: 600; }
.family-link:hover { color: var(--rs-blue); }
.family-link img { width: 22px; height: 22px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* Hamburger through tablet portrait so the primary row never overflows. */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 64px; /* matches the 64px sticky header height */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--rs-line);
    box-shadow: var(--rs-shadow-lg);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-list a { padding: 10px 12px; }
  .site-nav .btn { width: 100%; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 44px; }
  .trust-panel { padding: 28px; }
  .platform-block { scroll-margin-top: 80px; } /* 64px header + 16px breathing room */
}

/* Horizontal (not stacked) nav but tight: shrink link padding so the row fits. */
@media (min-width: 901px) and (max-width: 1024px) {
  .nav-list { gap: 0; }
  .nav-list a { padding: 0 8px; }
  .site-nav { gap: 4px; }
}

@media (max-width: 1100px) and (min-width: 981px) {
  /* Keep the hero copy column readable instead of squeezing it beside the video. */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 520px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .platform-block { padding: 26px; }
  .brand img { width: 158px; }
  .lead { font-size: 1.08rem; }
}

/* Logo row: even 2x2 at the widths where four logos wrap unevenly. */
@media (max-width: 520px), (min-width: 981px) and (max-width: 1100px) {
  .logo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    gap: 20px 24px;
  }
  .logo-row img { height: 22px; }
}

/* Footer: two columns stay until truly narrow, then a single column. */
@media (max-width: 400px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Compact card rhythm on the smallest phones; body text stays >= 16px. */
@media (max-width: 414px) {
  .trust-panel, .card { padding: 20px; }
}

/* Large screens: wider measure, slightly larger base type, readable prose blocks. */
@media (min-width: 1600px) {
  :root { --wrap: 1280px; }
  body { font-size: 17.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- d-video: platform pages (platforms hub + per-platform pages) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rs-line); border-radius: var(--rs-radius-md); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; background: #fff; }
.compare caption { text-align: left; padding: 12px 16px; color: var(--rs-ink-3); font-size: 14px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rs-line); }
.compare thead th {
  background: var(--rs-bg-soft);
  color: var(--rs-ink-3);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.compare tbody th { font-weight: 600; color: var(--rs-ink); white-space: nowrap; }
.compare td { color: var(--rs-ink-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm);
  background: #fff;
  color: var(--rs-ink);
  font-weight: 600;
  font-size: 15px;
}
.link-row a:hover { border-color: var(--rs-blue); color: var(--rs-blue); text-decoration: none; }
.link-row .link-row-label { font-weight: 700; color: var(--rs-ink); }

/* d-video: five-card platform grid (four native platforms + the Yelp paste path).
   Capped at 3 columns so the cards keep readable width; wraps to 2 and 1 as the viewport narrows. */
.grid-5 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-5 { grid-template-columns: 1fr; } }

/* Mobile: signal that the comparison table scrolls sideways. */
@media (max-width: 760px) {
  .compare caption::after { content: " Scroll sideways →"; font-weight: 600; color: var(--rs-blue); }
}
