/* ==========================================================================
   Design Snap — site styles
   Same tokens as the extension. One accent, borders over shadows, system UI.
   ========================================================================== */

:root {
  --bg:         #ffffff;
  --surface:    #f5f5f5;
  --surface2:   #ebebeb;
  --border:     #e2e2e2;
  --text:       #111111;
  --muted:      #999999;      /* large labels & decorative text only (AA) */
  --muted-ink:  #6f6f6f;      /* readable secondary text at small sizes */
  --accent:     #16a34a;
  --accent-ink: #15803d;      /* accent on white at small sizes (AA) */
  --accent-dim: rgba(22, 163, 74, 0.08);
  --radius:     6px;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'Menlo', 'Consolas', 'Monaco', monospace;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --header-h:   60px;
}

/* --- Reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a { color: var(--accent-ink); text-decoration: none; }

code, pre, .mono { font-family: var(--font-mono); }

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

::selection { background: var(--accent-dim); color: var(--text); }

section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* --- Layout --------------------------------------------------------------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-alt { background: var(--surface); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 { font-size: 32px; letter-spacing: -0.5px; }

.section-head > p { color: var(--muted-ink); margin-bottom: 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 150ms ease, transform 150ms ease,
              border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover { opacity: 0.82; }
.btn-primary:active { transform: scale(0.96); }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--muted-ink);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-secondary:active { transform: scale(0.96); }

.btn-sm { padding: 9px 14px; font-size: 14px; }

/* --- Badges & swatches ---------------------------------------------------- */

.badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent-ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  line-height: 1.4;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-ink);
}

.swatch i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--c, var(--surface2));
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}

.logo img { width: 26px; height: 26px; }

.logo em { font-style: normal; color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted-ink);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color 150ms ease, background 150ms ease;
}

.site-nav a:hover { color: var(--text); background: var(--surface); }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-ink);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 9px;
  transition: color 150ms ease, border-color 150ms ease;
}

.lang-switch:hover { color: var(--accent-ink); border-color: var(--accent); }

.site-nav a.header-cta {
  margin-left: 4px;
  color: #ffffff;
}

.site-nav a.header-cta:hover {
  background: var(--bg);
  color: var(--accent-ink);
  border-color: var(--accent);
  opacity: 1;
}

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

.hero {
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 em { font-style: normal; color: var(--accent); }

.hero-lede {
  font-size: 17px;
  color: var(--muted-ink);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-proof {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-ink);
  margin: 0;
}

.hero-proof b { color: var(--accent-ink); font-weight: 700; }

/* --- Hero demo (animated popup mock) --------------------------------------- */

.demo-wrap { position: relative; }

.demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.demo-logo {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.demo-logo img { width: 18px; height: 18px; }

.demo-logo em { font-style: normal; color: var(--accent); }

.demo-bar .badge { margin-left: auto; }

.demo-extract {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  padding: 6px 14px;
  cursor: default;
  pointer-events: none;
  transition: transform 150ms ease, opacity 150ms ease;
}

.demo-extract.pressed { transform: scale(0.92); opacity: 0.82; }

.demo-tabs {
  display: flex;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.demo-tabs span { padding: 9px 0 7px; border-bottom: 2px solid transparent; }

.demo-tabs .on { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }

.demo-body { padding: 14px; min-height: 208px; }

.demo-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
  margin-bottom: 14px;
}

.demo-swatch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-ink);
}

.demo-swatch i {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--c);
}

.demo-rows { display: grid; gap: 6px; }

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 12px;
}

.demo-row span { color: var(--muted-ink); }

.demo-row code { color: var(--text); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.demo-foot {
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-ink);
}

/* demo animation states */
.demo .pop {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.demo.play .pop {
  opacity: 1;
  transform: none;
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* --- Trust strip ------------------------------------------------------------ */

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-ink);
}

.trust svg { flex: none; color: var(--accent); }

/* --- Feature blocks (alternating) ------------------------------------------ */

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}

.feature-block + .feature-block { border-top: 1px solid var(--border); }

.feature-block.flip .feature-media { order: -1; }

.feature-copy h3 { font-size: 24px; letter-spacing: -0.4px; }

.feature-copy > p { color: var(--muted-ink); }

.feature-copy ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-copy li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
}

.feature-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.feature-copy li code {
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Browser-window frame around screenshots */
.window {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.window-bar span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* --- Feature cards grid ----------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 200ms ease;
}

.card:hover { border-color: var(--accent); }

.card h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card svg { flex: none; color: var(--accent); }

.card p { font-size: 14px; color: var(--muted-ink); margin: 0; }

.card .badge { margin-left: auto; }

/* --- Export code samples ----------------------------------------------------- */

.exports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 200ms ease;
  display: flex;
  flex-direction: column;
}

.code-card:hover { border-color: var(--accent); }

.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.code-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.code-head .badge { margin-left: auto; }

.code-card pre {
  margin: 0;
  padding: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  overflow-x: auto;
  color: var(--text);
  scrollbar-width: thin;
  flex: 1;
}

.code-card pre::-webkit-scrollbar { height: 3px; }
.code-card pre::-webkit-scrollbar-thumb { background: #d0d0d0; }

.code-card .cm { color: var(--muted); }        /* comment */
.code-card .ck { color: var(--accent-ink); }   /* key / selector */
.code-card .cv { color: #7c3aed; }             /* value — only inside code samples */

.exports-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--muted-ink);
}

/* --- How it works ------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-dim);
  border-radius: 4px;
  width: fit-content;
  padding: 2px 8px;
  margin-bottom: 16px;
}

.step h3 { font-size: 18px; }

.step p { font-size: 14.5px; color: var(--muted-ink); margin: 0; }

/* --- Pricing ------------------------------------------------------------------ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease;
}

.plan:hover { border-color: var(--accent); }

.plan-name { font-size: 16px; margin-bottom: 2px; }

.plan-tag {
  font-size: 12.5px;
  color: var(--muted-ink);
  margin-bottom: 18px;
  min-height: 1.4em;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.plan-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-ink);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
  flex: 1;
}

.plan li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}

.plan .btn { width: 100%; }

.plan-featured {
  border-color: var(--accent);
  transform: scale(1.02);
  z-index: 1;
}

.plan-flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 4px;
  padding: 3px 10px;
  white-space: nowrap;
}

.plan-featured .plan-flag {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

.pricing-grid.in .plan-featured .plan-flag {
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 400ms var(--ease-out) 500ms, transform 400ms var(--ease-out) 500ms;
}

.pricing-note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted-ink);
}

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

.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  padding: 18px 4px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-q:hover { color: var(--accent-ink); }

.faq-q svg {
  flex: none;
  color: var(--muted);
  transition: transform 250ms var(--ease-out);
}

.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--accent); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out);
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a > div { overflow: hidden; }

.faq-a p {
  margin: 0 0 18px;
  padding: 0 4px;
  max-width: 68ch;
  font-size: 14.5px;
  color: var(--muted-ink);
}

.faq-a code {
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* --- Privacy strip --------------------------------------------------------------- */

.privacy-strip { text-align: center; }

.privacy-strip .container { max-width: 720px; }

.privacy-strip h2 { font-size: 26px; letter-spacing: -0.5px; }

.privacy-strip p { color: var(--muted-ink); }

/* --- Footer ----------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1.2fr 0.8fr 0.8fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--muted-ink);
  font-size: 13.5px;
  margin: 12px 0 16px;
  max-width: 30ch;
}

.footer-badge {
  display: inline-block;
  margin-top: 18px;
}

.footer-badge img {
  border-radius: var(--radius);
}

.footer-grid .footer-head {
  margin: 0;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.footer-grid ul a { color: var(--muted-ink); transition: color 150ms ease; }

.footer-grid ul a:hover { color: var(--accent-ink); }

.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-ink);
}

.footer-meta .mono { font-size: 12px; }

/* --- Inner pages (privacy / contact) ----------------------------------------------- */

.page {
  padding: 72px 0 96px;
}

.page .container { max-width: 760px; }

.page-head { margin-bottom: 40px; }

.page-head h1 { font-size: clamp(30px, 4.5vw, 40px); letter-spacing: -0.8px; }

.page-head .meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-ink);
}

.prose h2 {
  font-size: 21px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose p, .prose li { color: #333333; font-size: 15px; }

.prose ul { padding-left: 22px; margin: 0 0 1em; }

.prose li { margin-bottom: 6px; }

.prose strong { color: var(--text); }

.prose code {
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
}

.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted-ink);
}

.prose td code { white-space: nowrap; }

.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.callout p { margin: 0; font-size: 15px; color: var(--text); }

/* Contact */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 8px;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--accent-ink);
  display: inline-block;
  margin: 4px 0 12px;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms ease;
}

.contact-email:hover { border-bottom-color: var(--accent); }

.contact-card p { font-size: 14px; color: var(--muted-ink); margin: 0; }

/* --- Tool pages & comparison -------------------------------------------------------- */

.hero-solo .container {
  display: block;
  max-width: 820px;
}

a.card { display: block; color: inherit; }

.cmp-wrap { overflow-x: auto; }

table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.cmp th, .cmp td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.cmp thead th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted-ink);
}

.cmp tbody th {
  font-weight: 600;
  font-size: 13.5px;
  background: var(--bg);
}

.cmp td.yes { color: var(--accent-ink); font-weight: 600; }
.cmp td.no { color: var(--muted); }

/* --- Reveal-on-scroll -------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* Underlined animated links */
.link-u {
  position: relative;
  font-weight: 600;
}

.link-u::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-out);
}

.link-u:hover::after { transform: scaleX(1); }

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

@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .plan-featured { transform: none; }
  .feature-block,
  .feature-block.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature-block.flip .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .exports { grid-template-columns: 1fr; }
}

/* The full nav no longer fits between 640 and ~700px — collapse it earlier.
   Section links stay reachable through the footer and in-page flow. */
@media (max-width: 720px) {
  .site-nav a:not(.lang-switch):not(.header-cta) { display: none; }
  .site-header .container { gap: 12px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 26px; }
  .hero { padding: 48px 0 56px; }
  .hero-lede { font-size: 16px; }
  .feature-block { padding: 32px 0; }
  .feature-copy h3 { font-size: 20px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .trust ul { justify-content: flex-start; gap: 10px 24px; padding: 14px 0; }
  .footer-grid { gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .page { padding: 56px 0 72px; }
  .contact-card { padding: 24px 20px; }
  .prose td code { white-space: normal; }
  .prose code { overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .demo { max-width: 100%; }
}

@media (max-width: 400px) {
  .logo { font-size: 16px; gap: 8px; }
  .logo img { width: 24px; height: 24px; }
  .btn-sm { padding: 8px 11px; font-size: 13px; }
  .lang-switch { padding: 5px 7px; }
  .demo-swatches { grid-template-columns: repeat(2, 1fr); }
}

/* --- Reduced motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal { opacity: 1; transform: none; }
  .demo .pop { opacity: 1; transform: none; }
  .plan-featured .plan-flag { opacity: 1; transform: translateX(-50%); }
}
