/* Critical font loading: direct WOFF2 files (no render-blocking Google Fonts stylesheet) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/space-grotesk:vf@5.3.0/latin-ext-wght-normal.woff2') format('woff2-variations');
  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-display: swap;
  font-weight: 300 700;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/space-grotesk:vf@5.3.0/latin-wght-normal.woff2') format('woff2-variations');
  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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 300 600;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@5.3.0/latin-ext-wght-normal.woff2') format('woff2-variations');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 300 600;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@5.3.0/latin-wght-normal.woff2') format('woff2-variations');
  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;
}

/* ==========================================================================
   semgard. — static rebuild (HTML / CSS / JS)
   Design tokens ported 1:1 from the original Tailwind/shadcn config.
   ========================================================================== */

:root {
  --background: 220 20% 7%;
  --foreground: 40 30% 92%;

  --card: 220 18% 11%;
  --card-foreground: 40 30% 92%;

  --popover: 220 18% 13%;
  --popover-foreground: 40 30% 92%;

  --primary: 12 80% 60%;
  --primary-foreground: 220 20% 7%;

  --secondary: 220 15% 16%;
  --secondary-foreground: 40 20% 80%;

  --muted: 220 15% 14%;
  --muted-foreground: 220 10% 50%;

  --accent: 12 80% 60%;
  --accent-foreground: 220 20% 7%;

  --destructive: 0 72% 51%;
  --destructive-foreground: 40 30% 92%;

  --border: 220 15% 18%;
  --input: 220 15% 18%;
  --ring: 12 80% 60%;

  --radius: 0.75rem;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --gradient-accent: linear-gradient(135deg, hsl(12 80% 60%), hsl(30 90% 55%));
  --gradient-card: linear-gradient(145deg, hsl(220 18% 12%), hsl(220 18% 9%));
  --shadow-glow: 0 0 40px hsl(12 80% 60% / 0.15);
  --shadow-card: 0 8px 32px hsl(220 20% 4% / 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
img { max-width: 100%; display: block; }
/* Belt-and-suspenders: any plain content image (not inside an
   object-fit/aspect-ratio crop wrapper) always scales proportionally,
   never distorts, regardless of its width/height attributes. */
.certificate-card img,
.case-step__img img,
.result-figure img,
.post-section figure img {
  width: 100%;
  height: auto;
  display: block;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }

/* ---------- Utility helpers ---------- */
.min-h-screen { min-height: 100vh; }
.bg-background { background: hsl(var(--background)); }

.wrap-6xl, .wrap-5xl, .wrap-4xl, .wrap-3xl, .wrap-xl {
  margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem;
}
.wrap-6xl { max-width: 72rem; }
.wrap-5xl { max-width: 64rem; }
.wrap-4xl { max-width: 56rem; }
.wrap-3xl { max-width: 48rem; }
.wrap-xl  { max-width: 36rem; }
/* React source of truth: homepage sections already provide px-6.
   Their inner max-width wrappers are mx-auto only, with no second gutter. */
.section > .wrap-6xl,
.section > .wrap-5xl,
.section > .wrap-4xl,
.section > .wrap-3xl,
.section > .wrap-xl {
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 639px) {
  /* Intentional mobile safety fix: keep the unbroken domain inside narrow phones
     without changing the desktop/tablet typography from the React original. */
  #case-study .section-title {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }

  /* Keep validation/error toasts inside narrow phone viewports. */
  .toast-region {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}


.font-display { font-family: var(--font-display); }
.gradient-accent { background: var(--gradient-accent); }
.gradient-card { background: var(--gradient-card); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-card { box-shadow: var(--shadow-card); }
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow {
  color: hsl(var(--primary));
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  display: inline-block;
}
.text-muted { color: hsl(var(--muted-foreground)); }

/* ---------- Scroll-reveal (progressive enhancement) ----------
   IMPORTANT: elements are FULLY VISIBLE by default. JavaScript is the one
   that opts an element INTO the hidden-then-reveal animation (by adding
   .js-hidden right before observing it). This means: if JS fails to run,
   errors out, or is blocked/cached-stale, the page still renders 100% —
   nothing can ever get stuck invisible. */
[data-animate].js-hidden {
  opacity: 0;
  transform: translateY(30px);
  /* 0.3s matches Framer Motion's default tween duration, which is what the
     original site uses on every whileInView block that doesn't explicitly
     set its own duration (i.e. most of them). Elements that DO specify a
     custom duration in the original (portfolio cards, certificate, hero)
     get it applied inline via data-duration — see main.js. */
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
[data-animate="scale"].js-hidden { transform: scale(0.97); }
[data-animate].js-hidden.is-visible { opacity: 1; transform: translateY(0); }
[data-animate="scale"].js-hidden.is-visible { transform: scale(1); }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  opacity: 0; transform: translateY(-20px);
  animation: navIn 0.5s ease-out forwards;
}
@keyframes navIn { to { opacity: 1; transform: translateY(0); } }
.navbar__inner {
  max-width: 72rem; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); }
.navbar__logo span { color: hsl(var(--primary)); }
.navbar__links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 640px) { .navbar__links { display: flex; } }

.dropdown { position: relative; }
.dropdown__trigger {
  background: none; border: none; padding: 0;
  font-size: 0.875rem; color: hsl(var(--muted-foreground));
  display: inline-flex; align-items: center; gap: 0.25rem;
  transition: color 0.2s;
}
.dropdown__trigger:hover, .dropdown__trigger[aria-expanded="true"] { color: hsl(var(--foreground)); }
.dropdown__trigger .icon { width: 0.75rem; height: 0.75rem; transition: transform 0.2s; }
.dropdown__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dropdown__content {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 220px;
  background: hsl(var(--popover)); color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
  box-shadow: var(--shadow-card); padding: 0.25rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.dropdown.is-open .dropdown__content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 0.5rem 0.6rem; font-size: 0.875rem; border-radius: calc(var(--radius) - 4px);
  color: hsl(var(--popover-foreground)); white-space: nowrap;
}
.dropdown__item:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    hsl(var(--background) / 0.6) 0%,
    hsl(var(--background) / 0.8) 55%,
    hsl(var(--background)) 100%);
}
.hero__content { position: relative; z-index: 10; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.hero__eyebrow { color: hsl(var(--primary)); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.875rem; margin-bottom: 1.5rem; }
.hero__title { font-size: 3rem; font-weight: 700; line-height: 0.95; margin-bottom: 2rem; }
/* LCP-safe hero title entrance.
   Keep the same vertical motion/timing as the original hero reveal, but never
   hide the H1 with opacity: 0. The shared scroll-reveal system below the hero
   remains completely unchanged. */
.hero__title--lcp-safe {
  opacity: 1;
  animation: heroTitleLcpIn 700ms ease-out 150ms both;
}
@keyframes heroTitleLcpIn {
  from { transform: translateY(30px); }
  to { transform: translateY(0); }
}
@media (min-width: 640px) { .hero__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 6rem; } }
.hero__lede { color: hsl(var(--muted-foreground)); font-size: 1.125rem; max-width: 42rem; margin: 0 auto 2.5rem; font-family: var(--font-body); }
@media (min-width: 640px) { .hero__lede { font-size: 1.25rem; } }
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  font-family: var(--font-display); font-weight: 600; padding: 0.75rem 2rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s, opacity 0.2s;
  border: 1px solid transparent; font-size: 1rem;
}
.btn--primary { background: var(--gradient-accent); color: hsl(var(--primary-foreground)); }
.btn--primary:hover { box-shadow: var(--shadow-glow); transform: scale(1.05); }
.btn--outline { border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn--outline:hover { background: hsl(var(--secondary)); }

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  cursor: pointer; opacity: 0; animation: fadeIn 0.3s ease-out 1.2s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero__scroll-pill {
  width: 1.25rem; height: 2rem; border-radius: 999px; border: 2px solid hsl(var(--muted-foreground) / 0.4);
  display: flex; justify-content: center; padding-top: 0.375rem;
  animation: bob 1.5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.hero__scroll-dot { width: 0.25rem; height: 0.375rem; border-radius: 999px; background: hsl(var(--primary)); }

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { padding: 8rem 1.5rem; }
.section--tight-top { padding-top: 0; }
.section-head { margin-bottom: 4rem; }
.section-head--center { text-align: center; }
.section-title { font-size: 2.25rem; font-weight: 700; margin-top: 1rem; color: hsl(var(--foreground)); }
@media (min-width: 640px) { .section-title { font-size: 3rem; } }
/* ResultsSection is deliberately smaller than the shared section heading in React. */
#wyniki .section-title { font-size: 1.875rem; }
@media (min-width: 640px) { #wyniki .section-title { font-size: 2.25rem; } }
@media (min-width: 768px) { #wyniki .section-title { font-size: 3rem; } }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-card { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.portfolio-card__img-wrap { aspect-ratio: 4 / 3; overflow: hidden; }
.portfolio-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-card:hover .portfolio-card__img-wrap img { transform: scale(1.05); }

.portfolio-card__bar {
  position: absolute; inset: auto 0 0 0; padding: 1.25rem;
  background: linear-gradient(to top, hsl(var(--background) / 0.9), transparent);
  transition: opacity 0.3s;
}
.portfolio-card__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  background: hsl(var(--background) / 0.85); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 1.5rem; opacity: 0; transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card:hover .portfolio-card__bar { opacity: 0; pointer-events: none; }

.portfolio-card__cat { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: hsl(var(--primary)); margin-bottom: 0.5rem; display: block; }
.portfolio-card__bar .portfolio-card__cat { margin-bottom: 0; }
.portfolio-card__title { font-size: 1.25rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.portfolio-card__bar .portfolio-card__title { font-size: 1.125rem; margin-bottom: 0; }
.portfolio-card__desc {
  font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.portfolio-card__link {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  width: auto; height: 2.25rem; padding: 0 0.75rem; gap: 0.5rem; white-space: nowrap;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--foreground)); border-radius: calc(var(--radius) - 2px);
  transition: background-color 0.2s;
}
.portfolio-card__link:hover { background: hsl(var(--secondary)); }
.portfolio-card__link .icon { width: 0.75rem; height: 0.75rem; margin-right: 0.25rem; }

/* ==========================================================================
   Certificate
   ========================================================================== */
.certificate-card { border-radius: 1rem; overflow: hidden; border: 1px solid hsl(var(--border)); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); transition: border-color 0.2s; }
.certificate-card:hover { border-color: hsl(var(--primary) / 0.3); }
.certificate-card__footer {
  background: var(--gradient-card); padding: 1rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.5rem;
}
@media (min-width: 640px) { .certificate-card__footer { flex-direction: row; } }
.certificate-card__footer strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; color: hsl(var(--foreground)); }
.certificate-card__footer small { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.certificate-card__verify { font-size: 0.75rem; color: hsl(var(--primary)); flex-shrink: 0; }
.certificate-card__verify:hover { text-decoration: underline; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-row { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; align-items: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .contact-row { flex-direction: row; } }
.contact-pill {
  display: flex; align-items: center; gap: 0.75rem; background: var(--gradient-card);
  border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1rem 1.5rem;
  transition: border-color 0.2s;
}
.contact-pill:hover { border-color: hsl(var(--primary) / 0.4); }
.contact-pill .icon { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.contact-pill span:not(.icon) { font-weight: 500; color: hsl(var(--foreground)); }
.contact-pill .icon--arrow { width: 1rem; height: 1rem; color: hsl(var(--muted-foreground)); transition: color 0.2s; margin-left: auto; }
.contact-pill:hover .icon--arrow { color: hsl(var(--primary)); }
@media (max-width: 359px) {
  .contact-pill { max-width: 100%; padding-left: 1rem; padding-right: 1rem; gap: 0.5rem; }
  .contact-pill span:not(.icon) { font-size: 0.875rem; }
}

.contact-static { display: flex; align-items: center; gap: 0.75rem; color: hsl(var(--muted-foreground)); }
.contact-static .icon { width: 1.25rem; height: 1.25rem; }

/* ==========================================================================
   Case study
   ========================================================================== */
.case-steps { display: flex; flex-direction: column; gap: 3rem; }
.case-step, .lead-card, .result-card, .result-highlight, .result-verify, .metric-card {
  background: var(--gradient-card); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.5rem;
}
@media (min-width: 640px) { .case-step { padding: 2rem; } }
.case-step__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.case-step__num {
  display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); font-weight: 600; font-size: 0.875rem; flex-shrink: 0;
}
.case-step__title { font-size: 1.25rem; font-weight: 600; color: hsl(var(--foreground)); }
@media (min-width: 640px) { .case-step__title { font-size: 1.5rem; } }
.case-step__text { color: hsl(var(--muted-foreground)); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .case-step__text { font-size: 1.125rem; } }
.case-step__img { border-radius: 0.75rem; overflow: hidden; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.case-step__caption { margin-top: 0.75rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); text-align: center; font-style: italic; }

/* ==========================================================================
   Results
   ========================================================================== */
.metrics-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }
.metric-card { text-align: center; box-shadow: var(--shadow-card); }
.metric-card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); margin-bottom: 1rem;
}
.metric-card__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: hsl(var(--muted-foreground)); }
.metric-card__value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: hsl(var(--foreground)); margin-top: 0.5rem; }
.metric-card__period { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

.results-secondary { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .results-secondary { grid-template-columns: repeat(2, 1fr); } }
.result-card { padding: 1.5rem; }
@media (min-width: 640px) { .result-card { padding: 2rem; } }
.result-card__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.result-card__head .icon { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.result-card__head h3 { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); }
.result-card__phrase { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); }
.result-card__vol { color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }
.result-card__vol strong { color: hsl(var(--foreground)); font-weight: 500; }

.result-highlight {
  border: 1px solid hsl(var(--primary) / 0.3); box-shadow: var(--shadow-glow); background: hsl(var(--primary) / 0.05);
  display: flex; flex-direction: column; justify-content: center; padding: 1.5rem;
}
@media (min-width: 640px) { .result-highlight { padding: 2rem; } }
.result-highlight__value { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; }
@media (min-width: 640px) { .result-highlight__value { font-size: 2.25rem; } }
.result-highlight__caption { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: hsl(var(--muted-foreground)); margin-top: 0.75rem; line-height: 1.6; }

.result-verify {
  margin-top: 1.5rem; border: 1px dashed hsl(var(--border)); text-align: center; padding: 1.5rem 1.5rem;
  background: transparent;
}
@media (min-width: 640px) { .result-verify { padding: 2.5rem 1.5rem; } }
.result-verify h3 { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); }
@media (min-width: 640px) { .result-verify h3 { font-size: 1.875rem; } }
.result-verify p { color: hsl(var(--muted-foreground)); margin-top: 1rem; }
.result-verify .phrase { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: hsl(var(--primary)); margin-top: 0.75rem; }
@media (min-width: 640px) { .result-verify .phrase { font-size: 1.5rem; } }

.result-figure { margin-top: 1.5rem; padding: 1rem; box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .result-figure { padding: 1.5rem; } }
.result-figure img { border-radius: 0.75rem; border: 1px solid hsl(var(--border)); }

/* ==========================================================================
   Lead form
   ========================================================================== */
.lead-card { max-width: 36rem; margin: 0 auto; padding: 2rem; box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .lead-card { padding: 2.5rem; } }
.lead-card h2 { font-size: 1.875rem; font-weight: 700; color: hsl(var(--foreground)); text-align: center; }
@media (min-width: 640px) { .lead-card h2 { font-size: 2.25rem; } }
.lead-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.field-label { display: block; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }
.field-input {
  width: 100%; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--background) / 0.6);
  padding: 0.75rem 1rem; color: hsl(var(--foreground)); transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}
.field-input::placeholder { color: hsl(var(--muted-foreground)); }
.field-input:focus { border-color: hsl(var(--primary) / 0.6); outline: none; box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lead-submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius); background: hsl(var(--primary)); padding: 0.75rem 1.5rem; font-weight: 500;
  color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-glow); transition: opacity 0.2s; border: none; font-size: 1rem;
}
.lead-submit:hover { opacity: 0.9; }
.lead-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.lead-form__note { text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.lead-success { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
.lead-success .icon { width: 2.5rem; height: 2.5rem; color: hsl(var(--primary)); }
.lead-success p { color: hsl(var(--foreground)); font-weight: 500; }

/* Toast */
.toast-region { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; max-width: 22rem; }
.toast {
  background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); border: 1px solid hsl(var(--destructive) / 0.5);
  border-radius: calc(var(--radius) - 2px); padding: 0.9rem 1.1rem; box-shadow: var(--shadow-card);
  animation: toastIn 0.2s ease-out;
}
.toast strong { display: block; font-size: 0.875rem; margin-bottom: 0.15rem; }
.toast p { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid hsl(var(--border)); padding: 2rem 1.5rem; }
.footer__inner { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 640px) { .footer__inner { flex-direction: row; } }
.footer__logo { width: 12rem; height: auto; }
.footer__copy { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* ==========================================================================
   Blog index
   ========================================================================== */
.page-main { max-width: 56rem; margin: 0 auto; padding: 8rem 1.5rem 5rem; }
.blog-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 3rem; }
@media (min-width: 768px) { .blog-title { font-size: 3rem; } }
.blog-title span { color: hsl(var(--primary)); }
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-list__item {
  display: block; padding: 1.5rem; border-radius: 0.5rem; border: 1px solid hsl(var(--border) / 0.5);
  transition: border-color 0.2s;
}
.blog-list__item:hover { border-color: hsl(var(--primary) / 0.5); }
.blog-list__item h2 { font-size: 1.5rem; font-weight: 600; }

/* ==========================================================================
   Blog post
   ========================================================================== */
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground));
  margin-bottom: 2rem; transition: color 0.2s;
}
.back-link:hover { color: hsl(var(--foreground)); }
.back-link .icon { width: 1rem; height: 1rem; }
.post-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 2rem; }
@media (min-width: 768px) { .post-title { font-size: 3rem; } }

.toc { margin-bottom: 3rem; padding: 1.5rem; border-radius: 0.75rem; background: hsl(var(--card) / 0.4); border: 1px solid hsl(var(--border) / 0.4); }
.toc h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.toc ul { list-style: disc; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.toc a:hover { color: hsl(var(--foreground)); }

.post-article { display: flex; flex-direction: column; gap: 3rem; font-size: 1.25rem; color: hsl(var(--muted-foreground)); line-height: 1.8; }
.post-section { display: flex; flex-direction: column; gap: 1.5rem; scroll-margin-top: 7rem; }
.post-section > h2 { font-size: 1.875rem; font-weight: 700; color: hsl(var(--foreground)); }
.post-section h3 { font-size: 1.5rem; font-weight: 600; color: hsl(var(--foreground)); }
.post-section figure { margin: 1.5rem 0; }
.post-section figure img { border-radius: 0.5rem; border: 1px solid hsl(var(--border)); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3); }
.post-section figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); text-align: center; font-style: italic; }
.post-subsection { display: flex; flex-direction: column; gap: 1rem; }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card { background: hsl(var(--card) / 0.4); border: 1px solid hsl(var(--border) / 0.4); border-radius: calc(var(--radius)); padding: 1.5rem; }
.pricing-card h3 { font-size: 1.25rem; font-weight: 600; }
.pricing-card__price { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); margin-top: 0.25rem; }
.pricing-card ul { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.pricing-card li { display: flex; align-items: flex-start; gap: 0.5rem; }
.pricing-card li .icon { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); margin-top: 0.125rem; }

/* Keyword table */
.keyword-table-wrap { overflow-x: auto; border-radius: 0.75rem; border: 1px solid hsl(var(--border) / 0.4); background: hsl(var(--card) / 0.3); padding: 1rem; }
.keyword-table { width: 100%; text-align: left; border-collapse: collapse; }
.keyword-table th { padding: 0.75rem 1rem 0.75rem 0; font-family: var(--font-display); font-weight: 600; color: hsl(var(--foreground)); border-bottom: 1px solid hsl(var(--border) / 0.4); }
.keyword-table td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid hsl(var(--border) / 0.2); }
.keyword-table tr:last-child td { border-bottom: 0; }

/* Comparison */
.compare-intro { font-size: 0.875rem; font-style: italic; color: hsl(var(--muted-foreground) / 0.7); }
.compare-rows { display: flex; flex-direction: column; gap: 1rem; }
.compare-row { display: grid; grid-template-columns: 1fr; border-radius: 0.75rem; overflow: hidden; border: 1px solid hsl(var(--border) / 0.4); }
@media (min-width: 768px) { .compare-row { grid-template-columns: 1fr 1fr; } }
.compare-cell { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1.25rem; }
.compare-cell--neg { background: rgb(239 68 68 / 0.1); }
.compare-cell--pos { background: rgb(34 197 94 / 0.1); }
.compare-cell .icon { width: 1.5rem; height: 1.5rem; margin-top: 0.125rem; }
.compare-cell--neg .icon { color: rgb(239 68 68); }
.compare-cell--pos .icon { color: rgb(34 197 94); }
.compare-cell span { color: hsl(var(--foreground) / 0.9); }

/* CTA block */
.post-cta { border-radius: 0.75rem; border: 1px solid hsl(var(--border) / 0.4); background: hsl(var(--card) / 0.4); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.post-cta ul { display: flex; flex-direction: column; gap: 0.5rem; }
.post-cta li { display: flex; align-items: flex-start; gap: 0.5rem; }
.post-cta li .icon { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); margin-top: 0.125rem; }
.post-cta__btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.5rem;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: 0.5rem 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; transition: opacity 0.2s;
}
.post-cta__btn:hover { opacity: 0.9; }

/* FAQ accordion (native <details>) */
.accordion-item { border-bottom: 1px solid hsl(var(--border) / 0.4); }
.accordion-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-weight: 500; color: hsl(var(--foreground)); text-align: left;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .icon { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 0.2s; color: hsl(var(--muted-foreground)); }
.accordion-item[open] summary .icon { transform: rotate(180deg); }
.accordion-item__content { padding: 0 0 1.1rem; }

/* ==========================================================================
   Privacy policy
   ========================================================================== */
.privacy-title { font-size: 2.25rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 1rem; }
@media (min-width: 640px) { .privacy-title { font-size: 3rem; } }
.privacy-lede { color: hsl(var(--muted-foreground)); margin-bottom: 3.5rem; }
.privacy-body { display: flex; flex-direction: column; gap: 3rem; font-size: 0.9375rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.privacy-body section { display: flex; flex-direction: column; gap: 0.75rem; }
.privacy-body h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.privacy-body ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.privacy-body a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 4px; }
.privacy-body strong { color: hsl(var(--foreground)); }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: hsl(var(--muted)); text-align: center; }
.notfound h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.notfound p { font-size: 1.25rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.notfound a { color: hsl(var(--primary)); text-decoration: underline; }
.notfound a:hover { color: hsl(var(--primary) / 0.9); }
