/* AutoQube landing v4 — the film. Scroll-scrubbed cinematic hero (desktop),
   play-once hero (mobile). Tokens mirror autoqube-mobile/src/theme/index.ts */
:root {
  --bg: #0B0B0F;
  --surface: #15151B;
  --raised: #1E1E26;
  --line: rgba(255, 255, 255, 0.08);
  --text: #F5F5F7;
  --text2: #98989F;
  --text3: #5B5B64;
  --green: #30D158;
  --radius-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.92; }
.nav-links { display: flex; gap: 22px; font-size: 13px; }
.nav-links a, .nav-links button {
  color: var(--text2); background: none; border: none; cursor: pointer;
  font: inherit; font-size: 13px; padding: 0; transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links button:hover { color: var(--text); }

/* ---------- Film stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 1;
  background: var(--bg);
}
#film {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.stage-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(11, 11, 15, 0.55) 100%),
    linear-gradient(rgba(11, 11, 15, 0.35), transparent 18%, transparent 80%, rgba(11, 11, 15, 0.5));
  pointer-events: none;
}

/* ---------- Hero question ---------- */
.caption {
  position: fixed; z-index: 2; pointer-events: none;
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  will-change: transform, opacity, filter;
}
.cap-hero { inset: 0; display: grid; place-items: center; }
.cap-hero h2 {
  font-size: clamp(62px, 10.5vw, 136px); font-weight: 700;
  letter-spacing: -0.02em; text-align: center; line-height: 1.05;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.95), 0 0 60px rgba(0, 0, 0, 0.85);
}
@media (max-width: 640px) { .cap-hero h2 { font-size: clamp(50px, 15.5vw, 72px); padding: 0 12px; } }

/* ---------- Act II cards — fly through the tunnel ---------- */
.cards { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.card {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  will-change: transform, opacity, filter;
}
.card-inner {
  text-align: center;
  max-width: min(88vw, 560px);
  padding: 40px 48px;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, rgba(11, 11, 15, 0.82), rgba(11, 11, 15, 0.35) 70%, transparent 100%);
  border-radius: 32px;
}
#card-plans .card-inner, #card-templates .card-inner { max-width: min(92vw, 780px); }
#card-templates .tpl-grid { margin-top: 26px; gap: 10px 30px; }
#card-templates .tpl-col p { font-size: 12.5px; }
.tpl-note { font-size: 12px; color: var(--text3); margin-top: 22px; }
#card-plans .pill { margin-top: 24px; }
.p-icon { display: block; width: 40px; height: 17px; color: var(--text3); margin: 12px auto 0; }
.p-icon-wide { width: 74px; height: 17px; }
.p-icon-max { width: 93px; height: 21px; }
@media (max-width: 640px) {
  #card-templates .card-inner { padding: 24px 20px; }
  #card-templates .tpl-grid { grid-template-columns: 1fr; gap: 18px; }
  #card-templates .tpl-col p { font-size: 12px; }
  #card-templates h2 { font-size: 22px; }
}
@media (max-width: 640px) { .card-inner { padding: 30px 24px; } }
.card .pill {
  display: inline-block; font-size: 12px; color: var(--green);
  border: 1px solid rgba(48, 209, 88, 0.28); border-radius: var(--radius-pill);
  padding: 4px 13px; margin-bottom: 18px;
}
.card h2 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.15; margin-bottom: 12px;
}
.card h2.huge { font-size: clamp(48px, 9vw, 80px); letter-spacing: -0.02em; margin-bottom: 8px; }
.card .kicker { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text3); margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--text2); }
.card .cta-row { margin-top: 24px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.card .plans-grid { margin-top: 26px; gap: 10px 26px; }
.card-plain { background: radial-gradient(ellipse 85% 85% at 50% 50%, rgba(11, 11, 15, 0.65), transparent 100%); }
.card h2.statement {
  font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.02em; margin: 0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.95), 0 0 90px rgba(0, 0, 0, 0.7);
}
@media (max-width: 640px) { .card h2.statement { font-size: clamp(38px, 11vw, 52px); } }

/* Template icons — small robot glyphs */
.t-icon { display: block; width: 46px; height: 23px; color: var(--text3); margin: 0 auto 10px; }

.scroll-hint {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text3); opacity: 0;
  animation: hint-in 1.2s ease 1.6s forwards;
  will-change: opacity;
}
@keyframes hint-in { to { opacity: 1; } }
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0;
  background: linear-gradient(var(--text3), transparent);
  animation: hint-drip 2.2s ease-in-out infinite;
}
@keyframes hint-drip {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: var(--radius-pill);
  padding: 10px 24px; font-size: 13.5px; font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 4px 28px rgba(245, 245, 247, 0.25); }
.link-quiet {
  font-size: 13.5px; color: var(--text2); transition: color 0.3s ease;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
}
.link-quiet:hover { color: var(--text); }

/* ---------- Journey — Act I (film) + Act II (tunnel) runway ---------- */
.journey { height: 1500vh; }

/* ---------- After — fluid, no hairlines ---------- */
.after { position: relative; z-index: 10; background: var(--bg); }
.after section { display: grid; place-items: center; padding: 13vh 24px 2vh; }
.after .block {
  max-width: 640px; text-align: center;
  opacity: 0; transform: translateY(26px); filter: blur(5px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
  will-change: transform, opacity, filter;
}
.after .block.in { opacity: 1; transform: none; filter: none; }
.after .kicker { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }
.after h2 { font-size: clamp(26px, 4.4vw, 42px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; margin-bottom: 16px; }
.after p { font-size: 16px; color: var(--text2); }
.after .cta-row { margin-top: 26px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Plans — pure typography, no lines */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 40px;
  margin-top: 44px; width: 100%; max-width: 680px;
}
.plan-col { text-align: center; }
.plan-col .p-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.plan-col .p-price { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 19 Tem: gelecek fiyatlar siteden kaldırıldı — "during beta" etiketi çizgisiz */
.plan-col .p-was { font-size: 13px; color: var(--text3); font-weight: 400; margin-left: 7px; }
.plan-col .p-beta { font-size: 12.5px; color: var(--green); font-weight: 600; margin: 4px 0 12px; }
.plan-col .p-tpl { font-size: 13.5px; color: var(--text2); }
.plan-col .p-soon {
  display: inline-block; margin-top: 10px; font-size: 11.5px; color: var(--text3);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 11px;
}
.plans-note { font-size: 12.5px; color: var(--text3); margin-top: 30px; }
.plans-note button { font-size: 12.5px; vertical-align: baseline; }
@media (max-width: 700px) { .plans-grid { grid-template-columns: 1fr; gap: 34px; } }

/* Templates explained — post-tunnel */
.tpl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 40px;
  margin-top: 44px; width: 100%; max-width: 720px;
}
.tpl-col { text-align: center; }
.tpl-col .t-label {
  display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text3); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 3px 11px; margin-bottom: 12px;
}
.tpl-col .t-name { font-size: 22px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 8px; }
.tpl-col p { font-size: 13.5px; color: var(--text2); }
.tpl-col .t-plan {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text3); text-align: center; margin-top: 10px;
}
@media (max-width: 700px) { .tpl-grid { grid-template-columns: 1fr; gap: 30px; } }

/* FAQ — borderless, fluid */
.faq-wrap { width: 100%; max-width: 620px; margin-top: 34px; text-align: left; }
details.faq { padding: 13px 0; }
details.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline;
  justify-content: space-between; gap: 18px;
  font-size: 16px; font-weight: 600; color: var(--text);
  transition: color 0.3s ease;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: #fff; }
details.faq summary .plus {
  flex-shrink: 0; color: var(--text3); font-weight: 400; font-size: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
details.faq[open] summary .plus { transform: rotate(45deg); }
details.faq p { font-size: 14.5px; color: var(--text2); margin-top: 10px; max-width: 560px; }
details.faq .soon-tag {
  font-size: 11px; color: var(--green); border: 1px solid rgba(48, 209, 88, 0.28);
  border-radius: var(--radius-pill); padding: 2px 9px; margin-left: 10px;
  font-weight: 500; white-space: nowrap;
}

/* ---------- Footer ---------- */
footer { position: relative; z-index: 10; background: var(--bg); padding: 2vh 24px 14px; }
.foot-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.foot-links { display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center; font-size: 13px; margin-bottom: 26px; }
.foot-links a, .foot-links button {
  color: var(--text2); background: none; border: none; cursor: pointer;
  font: inherit; font-size: 13px; padding: 0; transition: color 0.3s ease;
}
.foot-links a:hover, .foot-links button:hover { color: var(--text); }
footer p { font-size: 12.5px; color: var(--text3); line-height: 1.7; }
footer p + p { margin-top: 10px; }

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.drawer {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0;
  width: min(560px, 92vw); background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; will-change: transform;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.drawer-head h2 { font-size: 15px; font-weight: 600; }
.drawer-head .d-actions { display: flex; align-items: center; gap: 18px; }
.drawer-head a { font-size: 12.5px; color: var(--text2); }
.drawer-head a:hover { color: var(--text); }
.drawer-close {
  background: var(--raised); border: 1px solid var(--line); color: var(--text2);
  width: 30px; height: 30px; border-radius: 50%; font-size: 14px; line-height: 1;
  cursor: pointer; transition: color 0.25s ease, transform 0.25s ease;
}
.drawer-close:hover { color: var(--text); transform: scale(1.06); }
.drawer-body { overflow-y: auto; padding: 26px 26px 48px; overscroll-behavior: contain; font-size: 14px; }
.drawer-body .doc-banner {
  border: 1px solid rgba(255, 214, 10, 0.35); background: rgba(255, 214, 10, 0.06);
  color: #E8C547; border-radius: 12px; padding: 13px 16px; font-size: 12.5px; margin-bottom: 24px;
}
.drawer-body h1 { font-size: 22px; margin-bottom: 8px; line-height: 1.25; }
.drawer-body .meta { font-size: 12.5px; color: var(--text3); margin-bottom: 26px; }
.drawer-body h2 { font-size: 16px; margin: 30px 0 10px; }
.drawer-body h3 { font-size: 14px; margin: 20px 0 6px; }
.drawer-body p { color: var(--text2); margin-bottom: 12px; }
.drawer-body p strong, .drawer-body li strong { color: var(--text); }
.drawer-body ul { margin: 0 0 12px 20px; color: var(--text2); }
.drawer-body li { margin-bottom: 5px; }
.drawer-body hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.drawer-body a { text-decoration: underline; text-underline-offset: 3px; }
.drawer-body table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 14px 0 20px; color: var(--text2); }
.drawer-body th { text-align: left; font-weight: 600; color: var(--text); padding: 8px; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.drawer-body td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.drawer-body .table-scroll { overflow-x: auto; }
.drawer-body .placeholder { color: var(--text3); font-style: italic; }
.drawer-loading { color: var(--text3); font-size: 13.5px; padding: 20px 0; }

@media (max-width: 640px) {
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 82vh;
    border-left: none; border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0; transform: translateY(104%);
  }
  .drawer-head { padding: 14px 20px; }
  .drawer-head::before {
    content: ""; position: absolute; top: 7px; left: 50%;
    width: 38px; height: 4px; border-radius: 2px;
    background: var(--line); transform: translateX(-50%);
  }
  .drawer-body { padding: 20px 20px 56px; }
  .nav { padding: 14px 18px; }
  .nav-links { gap: 16px; }
  .nav-links .hide-m { display: none; }
  .captions { bottom: max(7vh, 52px); }
  .caption h2 { font-size: 23px; }
  .caption p { font-size: 13.5px; }
}

/* ---------- Reduced motion: poster + static stacked cards ---------- */
@media (prefers-reduced-motion: reduce) {
  .journey { height: 0; }
  .stage { position: relative; height: 66svh; inset: auto; }
  #tunnel { display: none; }
  .captions, .scroll-hint { display: none; }
  .cards { position: static; pointer-events: auto; }
  .card { position: static; opacity: 1 !important; transform: none !important; filter: none !important; padding: 6vh 20px; pointer-events: auto !important; }
  .after .block { transition: none; opacity: 1; transform: none; filter: none; }
  .drawer, .drawer-overlay, .btn { transition: none; }
}

.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}
