/* ============================================================
   Cliviq 2: additions to styles.css (home page and legal pages)
   ============================================================ */

/* Self-hosted Space Grotesk (SIL OFL, fonts/OFL.txt): no request to Google */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }

/* ============================================================
   Hero
   ============================================================ */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: start;
}
.hero-grid > div:first-child { padding-top: 28px; }
.hero .hero-ctas { margin-bottom: 18px; }
.hero-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-tertiary);
}
.hero-note span + span::before { content: "·"; margin: 0 8px; }

/* A verbatim exchange: question, tools Cliviq ran, answer, figure */
.convo {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elev);
  overflow: hidden;
}
.convo-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunken);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-tertiary);
}
.convo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ask {
  align-self: flex-end;
  max-width: 90%;
  margin: 0;
  padding: 10px 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px 12px 4px 12px;
  font-size: 14.5px;
  line-height: 1.5;
}
.tools {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-tertiary);
  line-height: 1.9;
}
.tools code {
  color: var(--fg);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.answer {
  font-size: 14.5px;
  color: var(--fg-secondary);
  line-height: 1.55;
}
.answer p { margin: 0 0 8px; }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--fg); font-weight: 600; }
.convo figure {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.convo figure img { width: 100%; height: auto; }
.convo-source {
  margin: 0;
  padding: 0 20px 16px;
  font-size: 12px;
  color: var(--fg-tertiary);
}

/* ============================================================
   Testers
   ============================================================ */

section.compact { padding: 64px 0; }
.testers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.testers li {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 14.5px;
}
.testers li small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-tertiary);
  margin-left: 6px;
}
.testers-note {
  margin: 0;
  max-width: 760px;
  font-size: 15.5px;
  color: var(--fg-secondary);
}

/* ============================================================
   Figures gallery
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.shot .frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.shot .frame img { width: 100%; height: 100%; object-fit: contain; }
.shot figcaption {
  padding: 14px 16px 16px;
  font-size: 13.5px;
  color: var(--fg-secondary);
  line-height: 1.5;
}
.shot figcaption b {
  display: block;
  margin-bottom: 3px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
}
.fineprint {
  margin: 22px 0 0;
  max-width: 780px;
  font-size: 13px;
  color: var(--fg-tertiary);
}
.fineprint a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Checks
   ============================================================ */

.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.check-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.check-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.check-card > p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-secondary);
  line-height: 1.55;
}
.output {
  margin: auto 0 0;
  padding: 14px 16px;
  background: var(--bg-dark);
  color: #e7e7e7;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.output .dim { color: var(--fg-on-dark-secondary); }
.output-caption {
  margin: -4px 0 0;
  font-size: 12.5px;
  color: var(--fg-tertiary);
}
.output-caption a, .section-sub a { text-decoration: underline; text-underline-offset: 2px; }
.honest {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: 28px 26px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.honest h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.022em; }
.honest p { margin: 0; font-size: 14.5px; color: var(--fg-secondary); line-height: 1.55; }
.honest blockquote {
  margin: 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--accent);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg);
}
.honest blockquote p { color: var(--fg); margin: 0 0 8px; }
.honest blockquote footer { font-size: 12.5px; color: var(--fg-tertiary); }

/* ============================================================
   Pricing
   ============================================================ */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.plan-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.price {
  margin: 0;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.price small {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg-tertiary);
}
.price-alt { margin: -6px 0 0; font-size: 14.5px; color: var(--fg-secondary); }
.plan-for { margin: 0; font-size: 15px; color: var(--fg); }
.plan ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--fg-secondary);
}
.plan li { position: relative; padding-left: 24px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 10px;
  height: 5px;
  border-left: 1.6px solid var(--fg);
  border-bottom: 1.6px solid var(--fg);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; justify-content: center; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 17px;
  font-size: 22px;
  font-weight: 400;
  color: var(--fg-tertiary);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  margin: 0 0 20px;
  max-width: 720px;
  font-size: 15.5px;
  color: var(--fg-secondary);
}
.faq a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Download, footer
   ============================================================ */

.cta-section .hero-ctas { justify-content: center; margin-bottom: 16px; }
.cta-note { margin: 0; font-size: 13.5px; color: var(--fg-tertiary); }
.cta-note a { text-decoration: underline; text-underline-offset: 2px; }

.footer-legal {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--fg-tertiary);
}

/* ============================================================
   Legal pages
   ============================================================ */

.legal { padding: 56px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.legal .updated { margin: 0 0 28px; font-size: 14px; color: var(--fg-tertiary); }
.legal h2 {
  margin: 40px 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal h3 { margin: 24px 0 6px; font-size: 17px; font-weight: 600; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--fg-secondary); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; color: var(--fg); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--fg-secondary);
}
.legal th { color: var(--fg); font-weight: 600; }
.draft-note {
  margin: 0 0 32px;
  padding: 12px 16px;
  background: var(--amber-soft);
  border: 1px dashed var(--amber);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #5b4506;
}
.todo {
  padding: 0 4px;
  background: var(--amber-soft);
  border-radius: 3px;
  color: #5b4506;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
}

@media (max-width: 880px) {
  .container { padding: 0 20px; }
  .hero-grid, .checks-grid, .plans, .honest, .gallery { grid-template-columns: 1fr; }
  .hero-grid > div:first-child { padding-top: 0; }
  .honest { gap: 20px; }
  .price { font-size: 40px; }
  .legal h1 { font-size: 32px; }
  .legal table { font-size: 13px; }
  .legal th, .legal td { padding-right: 8px; overflow-wrap: anywhere; }
  .nav-links { gap: 16px; }
}
