/* =============================================================
   Notion4Agents — Premium static rebuild
   1. Tokens
   ============================================================= */
:root {
  /* Brand */
  --yellow: #FFDD00;
  --yellow-soft: #FFF1A8;
  --blue: #38B6FF;        /* Logo blue (the "4" in NOTION4AGENTS) */
  --blue-hover: #5CC4FF;  /* lighter on hover — cheerful, not darker */
  --blue-link: #38B6FF;
  --blue-dark: #0099FF;   /* deeper, only for active/pressed */
  --blue-soft: #E6F4FF;

  /* Neutrals */
  --ink: #0F1115;
  --ink-soft: #2A2F3A;
  --ink-mute: #5A6171;
  --line: #E5E7EC;
  --bg: #FFFFFF;
  --bg-soft: #FAFBFD;
  --bg-card: #FFFFFF;

  /* Type — Apple system font with Inter as universal fallback (visually identical) */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,17,21,0.05), 0 2px 6px rgba(15,17,21,0.04);
  --shadow-md: 0 10px 30px -10px rgba(15,17,21,0.12), 0 4px 10px rgba(15,17,21,0.04);
  --shadow-lg: 0 30px 60px -20px rgba(15,17,21,0.18), 0 8px 20px rgba(15,17,21,0.06);
  --shadow-yellow: 0 18px 40px -20px rgba(255,221,0,0.6);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; color: var(--ink-soft); font-size: 17px; line-height: 1.47059; font-weight: 400; letter-spacing: -0.022em; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--ink); }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 4px solid rgba(56,182,255,0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--blue);
  margin-bottom: 0.5rem;
  text-transform: none;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }
.muted { color: var(--ink-mute); font-size: .95rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.016em;
  text-transform: none;
  color: var(--ink-mute);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: .4rem .8rem;
  border-radius: 999px;
}

/* =============================================================
   4. Typography
   ============================================================= */
/* Apple typography scale — values from apple.com */
h1, .h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.5rem);   /* 40–56px → matches .typography-tile-headline */
  line-height: 1.07143;
  letter-spacing: -0.005em;
}
h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);       /* 32–48px → matches .typography-headline */
  line-height: 1.0835;
  letter-spacing: -0.002em;
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem); /* 20–24px */
  line-height: 1.1905;
  letter-spacing: 0;
}
em {
  font-style: italic;
  font-weight: inherit;
  color: inherit;
}

/* Highlighter — the brand motif */
.hl {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.hl > span {
  position: relative;
  z-index: 2;
}
.hl::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.05em;
  height: 0.42em;
  background: var(--yellow);
  border-radius: 6px;
  z-index: 1;
  transform-origin: left center;
  transform: scaleX(var(--hl-scale, 0));
  transition: transform 1s var(--ease-out);
}
.hl.hl-blue::after { background: var(--blue-soft); }
.is-ready .hl::after { --hl-scale: 1; }
/* Defensive: if JS never adds is-ready, still show after a beat */
@keyframes hlFallback { to { --hl-scale: 1; } }
@property --hl-scale { syntax: '<number>'; inherits: true; initial-value: 0; }
.hl { animation: hlFallback .01s 1.5s forwards; }

/* =============================================================
   5. Buttons
   ============================================================= */
/* Button system — Apple-style pill, brand blue, light hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 22px;
  min-height: 44px;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.1764805882;
  letter-spacing: -0.022em;
  border-radius: 980px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transition: background-color .2s linear,
              border-color .2s linear,
              color .2s linear,
              transform .35s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}
.btn:hover,
.btn:focus-visible {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}
.btn:active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}
.btn-primary:active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

/* Outlined / ghost — blue text + blue border, fill on hover */
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-ghost:active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.btn-magnetic > span { display: inline-block; pointer-events: none; }

/* Apple small button variant */
.btn-small {
  padding: 8px 16px;
  min-height: 32px;
  font-size: 14px;
  letter-spacing: -0.016em;
}

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  animation: splashSafety .01s 2.5s forwards;
}
.splash.is-out {
  animation: splashOut .6s var(--ease-out) forwards;
}
.splash-logo {
  width: 180px;
  opacity: 0;
  animation: splashLogoIn .6s var(--ease-out) .1s forwards;
}
@keyframes splashLogoIn { to { opacity: 1; transform: scale(1); } }
@keyframes splashOut {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.nav.is-scrolled { border-color: var(--line); background: rgba(255,255,255,0.92); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}
.nav-brand img { height: 30px; width: auto; }
.nav-links {
  display: none;
  gap: 2rem;
  margin-inline: auto;
}
.nav-links a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: .5rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--ink); border-radius: 2px;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-cta { display: none; padding: 7px 16px; min-height: 32px; font-size: 14px; letter-spacing: -0.016em; }
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: .55rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.nav-burger span {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav.is-menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-links { display: inline-flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* Mobile menu drawer */
@media (max-width: 959px) {
  .nav.is-menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
    margin: 0;
  }
  .nav.is-menu-open .nav-links a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(45% 38% at 15% 25%, rgba(56,182,255,0.10) 0%, transparent 70%),
    radial-gradient(50% 45% at 85% 20%, rgba(15,17,21,0.04) 0%, transparent 70%);
  filter: blur(40px) saturate(110%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) translate(0,0); }
  50%      { transform: scale(1.08) translate(-1.5%, 1%); }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-title {
  margin-block: 0.75rem 1.25rem;
  max-width: 22ch;
}
@media (max-width: 539px) {
  .hero-title { max-width: 100%; font-size: clamp(2rem, 8vw, 2.5rem); }
}
.hero-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.3125rem);  /* 17.6–21px → .typography-promo-subhead */
  line-height: 1.1905;
  font-weight: 400;
  letter-spacing: 0.011em;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  max-width: 480px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.002em;
  color: var(--ink);
}
.hero-stats span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--ink-mute);
}
.hero-art {
  position: relative;
}
.hero-illu {
  max-width: 100%;
  filter: drop-shadow(0 30px 40px rgba(15,17,21,0.08));
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* =============================================================
   9. Section base
   ============================================================= */
.section {
  padding: clamp(3.5rem, 7vw, 7rem) 0;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--line);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   10. Dive section
   ============================================================= */
.dive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 1.5rem;
}
.dive-art {
  background: transparent;
  padding: clamp(1rem, 3vw, 2rem);
  display: grid;
  place-items: center;
}
.dive-art img { max-width: 320px; width: 90%; }
.dive-copy h2 { margin-bottom: 1rem; }
.dive-copy p { margin-bottom: 1.5rem; font-size: 1.05rem; }

@media (min-width: 960px) {
  .dive-grid { grid-template-columns: 1fr 1.1fr; }
}

/* =============================================================
   11. Testimonials marquee
   ============================================================= */
.section-testimonials { padding-bottom: clamp(4rem, 8vw, 8rem); }
.testimonials-title { text-align: center; margin-bottom: 3rem; }
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  padding-block: 1rem;
  width: max-content;
  animation: marqueeScroll 80s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testimonial {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 2px;
}
.testimonial blockquote {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: auto;
}
.testimonial-meta img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.testimonial-meta strong { font-size: .92rem; display: block; }
.testimonial-meta span { font-size: .8rem; color: var(--ink-mute); }

/* =============================================================
   12. Mission + Product
   ============================================================= */
.mission-grid, .product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.mission-art, .product-art {
  background: transparent;
  padding: clamp(1rem, 3vw, 2rem);
  display: grid; place-items: center;
}
.mission-art img, .product-art img { max-width: 100%; }

@media (min-width: 960px) {
  .mission-grid { grid-template-columns: 1fr 1.1fr; }
  .product-grid { grid-template-columns: 1.1fr 1fr; }
}

.mission-copy h2 { margin-bottom: 1rem; }
.mission-copy p { margin-bottom: 1rem; font-size: 1.05rem; }
.signature {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 1rem;
}

/* =============================================================
   13. Steps
   ============================================================= */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-block: 3rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  transform-style: preserve-3d;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  font-family: var(--sans);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-yellow);
}
.step:nth-child(2) .step-num { background: var(--blue-soft); color: var(--blue-dark); box-shadow: 0 18px 40px -20px rgba(0,153,255,0.5); }
.step:nth-child(3) .step-num { background: var(--ink); color: #fff; box-shadow: 0 18px 40px -20px rgba(15,17,21,0.5); }

.glass {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: var(--shadow-md);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(255,255,255,0.95); }
}

@media (min-width: 720px)  { .steps { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   14. Creator
   ============================================================= */
.creator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.creator-art {
  background: transparent;
  padding: clamp(1rem, 3vw, 2rem);
  display: grid; place-items: center;
}
.creator-art img { max-width: 320px; width: 95%; }
.creator-copy h2 { margin-bottom: 1rem; }
.creator-copy p { margin-bottom: 1rem; }

@media (min-width: 960px) {
  .creator-grid { grid-template-columns: 1fr 1.1fr; }
}

/* =============================================================
   15. FAQ
   ============================================================= */
.faq-wrap { max-width: 760px; margin-inline: auto; }
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.faq-item[open] { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), background .35s var(--ease-out);
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  width: 12px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.faq-icon { position: relative; }
.faq-icon::after { transform: rotate(90deg); transition: transform .35s var(--ease-out); }
.faq-item[open] .faq-icon { background: var(--yellow); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.65;
}

/* =============================================================
   16. CTA cards (newsletter + contact)
   ============================================================= */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1fr 1fr; } }

.card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta-card::before, .contact-card::before {
  content: "";
  position: absolute;
  inset: -50% -50% auto auto;
  width: 60%; height: 60%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(56,182,255,0.14) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.contact-card::before {
  background: radial-gradient(50% 50% at 50% 50%, rgba(56,182,255,0.10) 0%, transparent 70%);
}
.card h3 {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  margin-block: .25rem .75rem;
}
.card p { margin-bottom: 1.25rem; }

.form-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.form-row input {
  flex: 1 1 220px;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.form-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,182,255,0.20); }
.form-row .btn { padding: 10px 20px; font-size: 15px; min-height: 40px; }

/* Compact / elegant button modifier */
.btn-compact {
  padding: 8px 20px !important;
  min-height: 38px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;
}

.form-stack {
  display: grid;
  gap: .9rem;
}
.form-stack > .btn {
  width: auto;
  justify-self: start;
  padding: 9px 22px;
  font-size: 15px;
  min-height: 38px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.form-stack label { display: grid; gap: .35rem; }
.form-stack .lbl {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.form-stack input,
.form-stack textarea {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.form-stack textarea { resize: vertical; min-height: 100px; }
.form-stack input:focus,
.form-stack textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56,182,255,0.20);
}
.honeypot { position: absolute !important; left: -9999px; opacity: 0; pointer-events: none; }
.form-status { margin-top: .75rem; font-size: .9rem; color: var(--ink-mute); min-height: 1.2em; }
.form-status.is-success { color: #0a8a4a; }
.form-status.is-error   { color: #c0392b; }

/* =============================================================
   MailerLite embed override — match Apple/site style
   ============================================================= */
.ml-embedded { width: 100% !important; min-height: 60px; }
.ml-embedded .ml-form-embedWrapper,
.ml-embedded .ml-form-embedContainer,
.ml-embedded .ml-form-embedContent,
.ml-embedded .ml-form-align-center,
.ml-embedded .ml-form-embedBody {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  font-family: var(--sans) !important;
}
.ml-embedded .ml-form-embedContent h4,
.ml-embedded .ml-form-embedContent p { display: none !important; }
.ml-embedded form { margin: 0 !important; }
.ml-embedded .ml-form-fieldRow {
  margin-bottom: .75rem !important;
  padding: 0 !important;
}
.ml-embedded .ml-form-fieldRow input,
.ml-embedded input[type="email"] {
  width: 100% !important;
  padding: 12px 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 980px !important;
  background: #fff !important;
  font: 400 17px var(--sans) !important;
  letter-spacing: -0.022em !important;
  color: var(--ink) !important;
  height: auto !important;
  min-height: 44px !important;
  box-shadow: none !important;
}
.ml-embedded input[type="email"]:focus {
  outline: none !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(56,182,255,0.20) !important;
}
.ml-embedded .ml-form-embedSubmit {
  margin-top: .25rem !important;
  text-align: left !important;
}
/* MailerLite wrapper divs (NOT buttons) — keep transparent */
.ml-embedded .ml-button-horizontal,
.ml-embedded .ml-mobileButton-horizontal,
.ml-embedded .ml-form-embedSubmit {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  width: auto !important;
  display: block !important;
  text-align: left !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

/* Style only the ACTUAL button elements */
.ml-embedded button[type="submit"] {
  background: var(--blue) !important;
  color: #fff !important;
  border: 1px solid var(--blue) !important;
  border-radius: 980px !important;
  padding: 9px 22px !important;
  min-height: 38px !important;
  font: 500 15px var(--sans) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: background-color .2s linear, border-color .2s linear !important;
  width: auto !important;
  display: inline-block !important;
  box-shadow: none !important;
  text-transform: none !important;
  opacity: 1 !important;
}
.ml-embedded button[type="submit"]:hover,
.ml-embedded button[type="submit"]:focus {
  background: var(--blue-hover) !important;
  border-color: var(--blue-hover) !important;
  color: #fff !important;
  opacity: 1 !important;
}
.ml-embedded button[type="submit"]:active {
  background: var(--blue-dark) !important;
  border-color: var(--blue-dark) !important;
  color: #fff !important;
}
/* Hide the duplicate "mobile" submit button — desktop submit is enough */
.ml-embedded .ml-mobileButton-horizontal { display: none !important; }
/* Loading button styling */
.ml-embedded button.loading {
  background: var(--blue) !important;
  color: #fff !important;
  opacity: .75 !important;
}
.ml-embedded .ml-form-successBody,
.ml-embedded .ml-form-successContent {
  background: transparent !important;
  padding: 0 !important;
  text-align: left !important;
}
.ml-embedded .ml-form-successContent h4 {
  font: 600 1.1rem var(--sans) !important;
  letter-spacing: -0.025em !important;
  color: var(--ink) !important;
  margin: 0 0 .35rem !important;
}
.ml-embedded .ml-form-successContent p {
  font: 400 .95rem var(--sans) !important;
  color: var(--ink-soft) !important;
  margin: 0 !important;
  display: block !important;
}
.ml-embedded .ml-form-embedPermissions { display: none !important; }
/* Hide MailerLite branding badge if displayed */
.ml-form-embedSubmitLoad { display: none !important; }
.ml-embedded .row-form, .ml-embedded .row-success { padding: 0 !important; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}
.footer-brand img { height: 30px; width: auto; margin-bottom: .75rem; }
.footer-brand p { max-width: 32ch; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.footer-cols h4 {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.footer-cols ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-cols a {
  font-size: .94rem;
  color: var(--ink-soft);
  position: relative;
  display: inline-block;
}
.footer-cols a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .3s var(--ease-out);
}
.footer-cols a:hover { color: var(--ink); }
.footer-cols a:hover::after { transform: scaleX(1); transform-origin: left center; }
.footer-foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--ink-mute);
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.2fr 2fr; gap: 3rem; }
}

/* =============================================================
   18. Template page-specific styles
   ============================================================= */
.tpl-hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
.tpl-hero-art {
  margin-top: 2.5rem;
  background: transparent;
  padding: clamp(1rem, 3vw, 2rem);
  display: grid; place-items: center;
}
.tpl-hero-art img { max-width: 720px; width: 100%; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 720px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-art {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 1.25rem;
  display: grid; place-items: center;
  min-height: 160px;
}
.feature-art img { max-height: 140px; width: auto; }
.feature h3 { margin-bottom: .5rem; }
.feature p { font-size: .95rem; color: var(--ink-soft); }

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-block: 2rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.tag:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tag::before { content: "✓"; color: var(--blue); font-weight: 700; }

/* Pain/relief comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 960px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.compare-card.pain { background: #FFF5F4; border-color: #F5C7C3; }
.compare-card.gain { background: #F0FAEF; border-color: #BFE3BD; }
.compare-card h3 {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.compare-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.compare-list li { display: grid; grid-template-columns: 32px 1fr; gap: .75rem; align-items: start; }
.compare-list li::before {
  content: ""; display: block; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid #F5C7C3; margin-top: 2px;
}
.compare-card.gain .compare-list li::before { border-color: #6FBF6C; background: #6FBF6C;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><polyline points="3,8 7,12 13,5" stroke="white" stroke-width="2.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: 14px; background-position: center; background-repeat: no-repeat; }
.compare-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: .2rem; }
.compare-list span { font-size: .94rem; color: var(--ink-soft); }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}
.pricing-art {
  background: transparent;
  padding: clamp(1rem, 3vw, 2rem);
  display: grid; place-items: center;
}
.pricing-art img { max-width: 100%; }
.pricing-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(56,182,255,0.20) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.pricing-badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.pricing-card h3 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: .5rem;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-block: 1.5rem;
}
.pricing-price .now {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.pricing-price .was {
  font-size: 1.1rem;
  color: var(--ink-mute);
  text-decoration: line-through;
}
.pricing-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; margin-block: 1.5rem 2rem; }
.pricing-features li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .96rem;
}
.pricing-features li::before {
  content: "";
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><polyline points="3,8 7,12 13,5" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: 11px; background-position: center; background-repeat: no-repeat;
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .pricing { grid-template-columns: 1fr 1.05fr; }
}

/* =============================================================
   19. Responsive tweaks
   ============================================================= */
@media (max-width: 539px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(3) { display: none; }
  .testimonial { width: 280px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   20. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-illu { animation: none; }
  .hero-mesh { animation: none; }
  .marquee-track { animation: none; }
}
