/* QuickOTP website — shared styles (dark SaaS theme, matches extension popup palette) */
:root {
  --bg: #0f1117;
  --bg-alt: #12151d;
  --card: #181b24;
  --card-2: #1d212c;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: #272b38;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-text: #0b0d14;
  --soft: #22264a;
  --good: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--soft);
  color: #c7d2fe;
  padding: .15em .45em;
  border-radius: 6px;
  word-break: break-word;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 23, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: var(--accent-text); }

/* Hamburger & mobile drawer */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 0 solid var(--border);
  background: var(--bg-alt);
  transition: max-height .28s ease, opacity .22s ease, border-color .22s ease;
}
.mobile-menu.is-open {
  max-height: 420px;
  opacity: 1;
  border-top: 1px solid var(--border);
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}
.mobile-menu-inner a:not(.btn) {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
}
.mobile-menu-inner a:not(.btn):hover,
.mobile-menu-inner a:not(.btn)[aria-current="page"] {
  color: var(--text);
  background: var(--card);
  text-decoration: none;
}
.mobile-menu-inner .btn { margin-top: 8px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 8px 24px -8px rgba(129, 140, 248, .6); }
.btn-primary:hover { background: #a5b4fc; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); background: var(--card); }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px; z-index: 0;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(129, 140, 248, .22), transparent 70%),
    radial-gradient(500px 280px at 85% 10%, rgba(52, 211, 153, .10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-grid > *, .grid-2 > *, .grid-3 > *, .legal-layout > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; flex-wrap: wrap;
  padding: 6px 14px; border-radius: 999px; background: var(--soft); color: #c7d2fe;
  font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 20px; }
h1 .grad { background: linear-gradient(90deg, #a5b4fc, #818cf8 50%, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: .86rem; color: var(--muted); }

/* Mockup */
.mock {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 0;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(129, 140, 248, .08);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--card-2); border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f50; display: block; flex: none; }
.mock-bar .url { margin-left: 10px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 4px 12px; }
.mock-body { padding: 28px 26px 30px; }
.mock-body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.mock-body p { margin: 0 0 20px; color: var(--muted); font-size: .88rem; }
.otp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.otp-box {
  flex: 1; height: 62px; display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 700; line-height: 1;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, opacity .2s ease;
}
.otp-box.is-filled {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, .25), 0 6px 18px -8px rgba(129, 140, 248, .55);
  animation: otpPop .24s cubic-bezier(.22, 1, .36, 1) both;
}
.mock.is-resetting .otp-box { opacity: .35; }
@keyframes otpPop {
  0% { transform: scale(.86); opacity: .4; }
  65% { transform: scale(1.07); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.mock-verify {
  width: 100%; padding: 12px; border: 0; border-radius: 10px; background: var(--card-2); color: var(--muted);
  font: inherit; font-weight: 600; text-align: center;
  transition: background .28s ease, color .28s ease, box-shadow .28s ease, transform .2s ease;
}
.mock-verify.is-ready {
  background: linear-gradient(135deg, #4f46e5, #10b981);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(16, 185, 129, .5);
}

.chip {
  display: flex; align-items: center; gap: 12px; margin: 0 26px 26px; padding: 12px 14px;
  background: var(--soft); border: 1px solid rgba(129, 140, 248, .35); border-radius: 12px;
  transition: border-color .25s ease, background .25s ease, opacity .2s ease;
}
.chip[data-state="scanning"] { border-color: rgba(148, 163, 184, .28); }
.chip[data-state="filled"] { border-color: rgba(52, 211, 153, .45); }
.chip .ic { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.chip .t { font-size: .8rem; color: #c7d2fe; line-height: 1.3; flex: 1; min-width: 0; transition: opacity .22s ease, transform .22s ease; }
.chip-status { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; display: none; }
.chip[data-state="scanning"] .chip-dot { display: inline-block; background: #fbbf24; animation: chipPulse 1s ease-in-out infinite; }
.chip[data-state="scanning"] .t { color: var(--muted); }
.chip .t strong {
  display: block; color: var(--text); font-size: .95rem; letter-spacing: .08em;
  font-family: ui-monospace, Menlo, Consolas, monospace; transition: opacity .22s ease, color .22s ease;
}
.chip[data-state="scanning"] .t strong { color: var(--muted); opacity: .45; }
.chip[data-state="detected"] .t { animation: chipSlide .25s ease both; }
.chip .go {
  background: var(--accent); color: var(--accent-text); border-radius: 8px; padding: 7px 12px;
  font-size: .8rem; font-weight: 700; min-width: 92px; text-align: center; flex: none; white-space: nowrap;
  transition: background .22s ease, color .22s ease, transform .15s ease, box-shadow .2s ease;
}
.chip[data-state="scanning"] .go { background: var(--card-2); color: var(--muted); }
.chip[data-state="detected"] .go { box-shadow: 0 0 0 2px rgba(129, 140, 248, .35); }
.chip[data-state="filled"] .go { background: var(--good); color: #06281e; }
.chip .go.is-clicking { transform: scale(.92); box-shadow: 0 0 0 4px rgba(129, 140, 248, .45); }
@keyframes chipPulse { 50% { opacity: .35; transform: scale(.85); } }
@keyframes chipSlide { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; margin: 10px 0 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 12px; background: var(--soft); color: var(--accent); font-weight: 800; font-size: 1.1rem;
}
.feature-ic { font-size: 1.5rem; width: 48px; height: 48px; display: grid; place-items: center; background: var(--soft); border-radius: 12px; margin-bottom: 16px; }
.security .card { display: flex; gap: 18px; align-items: flex-start; }
.security .feature-ic { margin: 0; flex: none; }
.security-foot { margin-top: 32px; text-align: center; color: var(--muted); font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing { max-width: 860px; margin: 0 auto; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.pro { border-color: var(--accent); box-shadow: 0 20px 60px -30px rgba(129, 140, 248, .6); background: linear-gradient(180deg, #1b1f35, var(--card) 45%); }
.badge { position: absolute; top: -13px; right: 24px; background: var(--accent); color: var(--accent-text); font-size: .74rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 1.3rem; }
.price { font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-alt { color: var(--muted); font-size: .95rem; margin: 0 0 4px; }
.price-alt strong { color: var(--text); }
.plan .desc { margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--border); flex: 1; }
.plan li { position: relative; padding: 6px 0 6px 28px; color: #d1d5db; font-size: .96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.plan .btn-row { display: grid; gap: 10px; }
.fine { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .box { background: linear-gradient(135deg, #1d2145, var(--card)); border: 1px solid var(--border); border-radius: 24px; padding: 64px 24px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 36px; background: var(--bg-alt); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid p { color: var(--muted); font-size: .9rem; margin: 10px 0 0; max-width: 340px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-links .footer-heading { margin: 0 0 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text); }
.copy { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 64px 0 24px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal-hero p { color: var(--muted); margin: 0; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 32px 0 88px; align-items: start; }
.legal-body { padding-bottom: 88px; }
.toc { position: sticky; top: 90px; font-size: .9rem; }
.toc .toc-title { margin: 0 0 12px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 5px 14px; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; padding-top: 8px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #d1d5db; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.callout {
  background: var(--soft); border: 1px solid rgba(129, 140, 248, .4); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 20px 24px; margin: 20px 0; color: #e0e7ff;
}
.callout p { margin: 0; color: #e0e7ff; }
.callout strong.t { display: block; margin-bottom: 8px; color: #fff; font-size: 1.02rem; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--card-2); color: var(--text); font-weight: 600; }
td { color: #d1d5db; }
tr:last-child td { border-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding: 20px 18px 64px; }
  .toc { display: none; }
  .legal { max-width: 100%; width: 100%; }
}
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 44px 0 56px; }
  .legal-hero { padding: 40px 0 16px; }
  .legal-body { padding-bottom: 64px; }
  .card { padding: 22px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.95rem; }
  .lead { font-size: 1rem; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .mock-body { padding: 20px 16px 22px; }
  .otp-row { gap: 6px; }
  .otp-box { font-size: 1.25rem; height: 48px; border-radius: 10px; }
  .chip { margin: 0 16px 18px; padding: 10px 12px; gap: 10px; }
  .chip .t { font-size: .74rem; }
  .chip .t strong { font-size: .88rem; }
  .chip .go { padding: 6px 10px; font-size: .74rem; min-width: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .otp-box, .chip-dot, .chip .t { animation: none; transition: none; }
  .otp-box.is-filled { border-color: var(--accent); }
  .btn:hover { transform: none; }
  .mobile-menu, .nav-toggle span { transition: none; }
}
