/* =====================================================================
   InnoKEYS — marketing site design system
   Apple-inspired: generous whitespace, big type, soft depth,
   brand gradient (blue #2563eb -> purple #9333ea), Inter.
   ===================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

/* ------------------------------- Tokens ------------------------------ */
:root {
  --primary: #2563eb;
  --primary-500: #3b82f6;
  --primary-600: #1d4ed8;
  --purple: #9333ea;
  --purple-500: #a855f7;
  --link: #2563eb;

  --grad-brand: linear-gradient(90deg, var(--primary), var(--purple));
  --grad-brand-135: linear-gradient(135deg, #3b82f6 0%, #2563eb 46%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(147,51,234,0.10));

  --bg: #ffffff;
  --bg-tint: #f5f6fa;
  --bg-inset: #eef1f7;
  --ink: #0b0c10;
  --ink-2: #1d1f27;
  --muted: #5b6472;
  --muted-2: #5e6a78;
  --card: #ffffff;
  --card-2: #f8fafc;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.14);

  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 30px 60px -24px rgba(15, 23, 42, 0.28), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 20px 60px -18px rgba(37, 99, 235, 0.42);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 40px;
  --pill: 999px;

  --nav-h: 66px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  --mono: 'SFMono-Regular', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
}

html[data-theme='dark'] {
  --bg: #0a0b10;
  --bg-tint: #0f1117;
  --bg-inset: #12141c;
  --ink: #f4f6fb;
  --ink-2: #e6e9f0;
  --muted: #a3adbd;
  --muted-2: #7c869a;
  --card: #12141c;
  --card-2: #161922;
  --link: #7cb0ff;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(168,85,247,0.16));
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 24px 70px -20px rgba(59, 130, 246, 0.5);
}

/* --------------------------- Base / reset ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(147, 51, 234, 0.18); }

/* ----------------------------- Typography ---------------------------- */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.022em; font-weight: 700; color: var(--ink); }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -0.018em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.34rem); color: var(--muted); line-height: 1.55; }
.eyebrow {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--link);
}
html[data-theme='dark'] .eyebrow { color: var(--link); }
p { color: var(--muted); }
strong { color: var(--ink-2); font-weight: 650; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ------------------------------ Layout ------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: 1320px; }
.container-narrow { max-width: 820px; }
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }
.bg-tint { background: var(--bg-tint); }
.bg-inset { background: var(--bg-inset); }
.center { text-align: center; }
.section-head { max-width: 760px; margin-inline: auto; }
.section-head.left { margin-inline: 0; }
.section-head .lead { margin-top: 18px; }
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 22px; } .mt-l { margin-top: 40px; }

/* dark contrast band */
.band-dark {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(59,130,246,0.28), transparent 60%),
              radial-gradient(1000px 500px at 100% 0%, rgba(147,51,234,0.26), transparent 55%),
              #0a0b12;
  color: #eef1f8;
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p, .band-dark .lead { color: #b9c2d4; }
.band-dark .eyebrow { color: #93b4ff; }

/* -------------------------- Buttons / pills -------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; line-height: 1; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--pill); border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff; background: var(--grad-brand-135);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -18px rgba(37,99,235,0.6); }
.btn-ghost {
  color: var(--ink); background: var(--card); border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--link); color: var(--link); }
.btn-light { background: #fff; color: #0b0c10; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--pill);
  background: var(--grad-soft); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.pill.pulse .dot { box-shadow: 0 0 0 0 rgba(37,99,235,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }

/* ------------------------------- Navbar ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.018em; flex: none; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; flex: none; display: block; }
.brand .mark { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.brand .suffix { color: var(--muted-2); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; flex: 1 1 auto; min-width: 0; }
.nav-links > a {
  padding: 8px 13px; border-radius: 10px; font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav-links > a:hover { background: var(--bg-tint); color: var(--link); }
.nav-links > a.active, .nav-links > a[aria-current="page"] { color: var(--link); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }

/* nav overflow "More" dropdown */
.nav-more { position: relative; flex: none; }
.nav-more[hidden] { display: none; }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 10px;
  font-size: 0.94rem; font-weight: 500; color: var(--ink-2); background: transparent; border: 0;
  white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.nav-more-btn:hover { background: var(--bg-tint); color: var(--link); }
.nav-more-btn .chev { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.2s; }
.nav-more.open .nav-more-btn .chev { transform: rotate(180deg); }
.nav-more-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 120;
}
.nav-more.open .nav-more-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-more-menu a { display: block; padding: 9px 11px; border-radius: 10px; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav-more-menu a:hover { background: var(--bg-tint); color: var(--link); }
.nav-more-menu a.active, .nav-more-menu a[aria-current="page"] { color: var(--link); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); color: var(--ink-2);
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { color: var(--link); border-color: var(--link); }
.icon-btn svg { width: 19px; height: 19px; }

/* language switcher */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--ink-2);
  font-weight: 600; font-size: 0.9rem; transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--link); }
.lang-toggle .flag { font-size: 1.05rem; line-height: 1; }
.lang-toggle .chev { width: 15px; height: 15px; opacity: 0.6; transition: transform 0.2s; }
.lang.open .lang-toggle .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 120;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 11px; border: 0; background: transparent; border-radius: 10px; color: var(--ink-2);
  font-size: 0.92rem; font-weight: 500;
}
.lang-menu button:hover { background: var(--bg-tint); }
.lang-menu button.active { color: var(--link); font-weight: 700; }
.lang-menu button .flag { font-size: 1.1rem; }

/* mobile nav */
.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-desktop-cta { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90;
    background: var(--bg); padding: 22px 24px 40px;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { display: block; padding: 15px 6px; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 22px; }
}

/* ------------------------------- Hero -------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(680px 380px at 18% 8%, rgba(37,99,235,0.16), transparent 62%),
    radial-gradient(620px 420px at 88% 4%, rgba(147,51,234,0.16), transparent 60%);
}
.dot-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 26px 26px; color: rgba(15,23,42,0.05);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent 75%);
}
html[data-theme='dark'] .dot-grid { color: rgba(255,255,255,0.06); }
.hero-inner { max-width: 900px; margin-inline: auto; text-align: center; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 680px; margin-inline: auto; }
.hero .btn-row { margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted-2); }

/* ------------------------- Screenshot frames ------------------------- */
.shot { border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--card); overflow: hidden; }
.browser {
  border-radius: var(--r-lg); border: 1px solid var(--border-strong); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--card);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 15px;
  background: var(--card-2); border-bottom: 1px solid var(--border);
}
.browser-bar .dots { display: flex; gap: 7px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d8dde5; display: block; }
html[data-theme='dark'] .browser-bar .dots i { background: #333947; }
.browser-bar .url {
  flex: 1; margin-left: 10px; height: 26px; border-radius: 8px; background: var(--bg-tint);
  display: flex; align-items: center; padding: 0 12px; font-size: 0.78rem; color: var(--muted-2);
  border: 1px solid var(--border); gap: 7px;
}
.browser-bar .url svg { width: 12px; height: 12px; }
.browser img { width: 100%; display: block; }
.hero-shot { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.hero-shot .browser { transform: perspective(1600px) rotateX(2deg); }

.figure-caption { margin-top: 14px; text-align: center; font-size: 0.86rem; color: var(--muted-2); }

/* device / phone */
.phone {
  width: 260px; border-radius: 34px; border: 8px solid #14161d; background: #14161d;
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.phone img { width: 100%; border-radius: 26px; }

/* ------------------------------ Cards -------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.card p { font-size: 0.98rem; }
.card .ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); color: var(--link); border: 1px solid var(--border);
}
.card .ico svg { width: 26px; height: 26px; }
html[data-theme='dark'] .card .ico { color: var(--primary-500); }

.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--link); font-weight: 600; font-size: 0.95rem; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.card:hover .card-link svg { transform: translateX(3px); }

/* feature list row */
.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--success); margin-top: 1px; }
.checklist li span { color: var(--muted); }
.checklist li strong { display: block; color: var(--ink-2); margin-bottom: 1px; }

/* split feature (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.split.rev .split-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }
.split-media img { border-radius: var(--r-md); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 8px; }
.stat .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.stat .num .gradient-text { display: inline; }
.stat .lbl { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { margin: 0; }
.bento .b-3 { grid-column: span 3; }
.bento .b-2 { grid-column: span 2; }
.bento .b-4 { grid-column: span 4; }
.bento .b-6 { grid-column: span 6; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .b-3, .bento .b-2, .bento .b-4, .bento .b-6 { grid-column: span 2; } }

/* logos / trust row */
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; opacity: 0.9; }
.trust-row .tag {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--muted);
  font-size: 0.98rem;
}
.trust-row .tag svg { width: 20px; height: 20px; color: var(--link); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.step .n {
  counter-increment: step; width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #fff;
  background: var(--grad-brand-135); box-shadow: var(--shadow-glow);
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }

/* code block */
.code {
  background: #0c1020; color: #d7ddf0; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden; box-shadow: var(--shadow-md); text-align: left;
}
.code-head { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: #0a0d1a; border-bottom: 1px solid rgba(255,255,255,0.07); }
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b3350; }
.code-head .file { margin-left: 6px; font-size: 0.8rem; color: #8b95b5; font-family: var(--mono); }
.code-tabs { display: flex; gap: 4px; margin-left: auto; }
.code-tabs button { font-size: 0.76rem; color: #8b95b5; background: transparent; border: 0; padding: 4px 9px; border-radius: 7px; font-family: var(--mono); }
.code-tabs button.active { color: #fff; background: rgba(255,255,255,0.09); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.85rem; line-height: 1.7; }
.code .tok-k { color: #c191ff; } .code .tok-s { color: #7ee0a2; } .code .tok-c { color: #808ea8; } .code .tok-f { color: #6db3ff; } .code .tok-n { color: #ffb877; } .code .tok-nk { color: #ff9e64; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 650; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ''; position: absolute; background: var(--primary); border-radius: 2px; transition: transform 0.25s; }
.faq summary .plus::before { top: 10px; left: 3px; right: 3px; height: 2px; }
.faq summary .plus::after { left: 10px; top: 3px; bottom: 3px; width: 2px; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--link); box-shadow: var(--shadow-glow); }
.price-card .tier { font-weight: 700; font-size: 1.15rem; }
.price-card .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.price-card .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card .desc { margin-top: 8px; min-height: 44px; }
.price-card .checklist { margin-top: 22px; margin-bottom: 26px; }
.price-card .checklist li { font-size: 0.94rem; }
.price-card .checklist li span { color: var(--muted); }
.price-card .btn { margin-top: auto; }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand-135); color: #fff; font-size: 0.76rem; font-weight: 700;
  padding: 5px 14px; border-radius: var(--pill); letter-spacing: 0.02em; box-shadow: var(--shadow-glow);
}

/* CTA band */
.cta-band { border-radius: var(--r-2xl); padding: clamp(40px, 6vw, 76px); text-align: center; overflow: hidden; position: relative; }
.cta-band .btn-row { margin-top: 30px; justify-content: center; }

/* contact form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted-2); }
.form-status { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: rgba(5,150,105,0.12); color: var(--success); border: 1px solid rgba(5,150,105,0.3); }
.form-status.err { display: block; background: rgba(220,38,38,0.1); color: var(--danger); border: 1px solid rgba(220,38,38,0.3); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ------------------------------ Footer ------------------------------- */
.footer { background: var(--bg-tint); border-top: 1px solid var(--border); padding-block: 64px 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { font-size: 1.28rem; }
.footer-about { margin-top: 16px; max-width: 320px; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--link); }
.footer-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: var(--muted-2); font-size: 0.88rem; }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--link); }

/* ---------------------------- Utilities ------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.tag-inline { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--pill); background: var(--grad-soft); border: 1px solid var(--border); font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }

/* scroll-driven top progress (optional subtle) */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; }
