/* ============================================================
   NativeOffice — design system
   Create · Analyze · Present
   ============================================================ */

:root {
  --bg: #05060f;
  --bg-2: #0a0c1d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);

  --text: #f2f4ff;
  --text-dim: rgba(226, 230, 255, 0.62);
  --text-faint: rgba(226, 230, 255, 0.38);

  --blue: #4f8bff;
  --indigo: #5b6cff;
  --violet: #8b5cf6;
  --green: #2ece71;
  --orange: #ff8038;
  --red: #ff5470;

  --grad-brand: linear-gradient(120deg, #4f8bff, #5b6cff 45%, #8b5cf6);
  --grad-text: linear-gradient(100deg, #7db2ff, #8ea0ff 40%, #b794ff);

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 72px;

  --shadow-pop: 0 24px 80px -16px rgba(0, 0, 0, 0.6);
  --glow-blue: 0 0 60px -12px rgba(79, 139, 255, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(91, 108, 255, 0.4); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; }

/* ---------- aurora backdrop ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}
.aurora::before {
  background: radial-gradient(circle, #2a5bff, transparent 65%);
  top: -25vw;
  left: -12vw;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora::after {
  background: radial-gradient(circle, #7c3aed, transparent 65%);
  bottom: -28vw;
  right: -14vw;
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, 4vw) scale(1.15); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}

/* ---------- layout ---------- */
.wrap { width: min(1180px, 92vw); margin-inline: auto; }

section { padding: 110px 0; position: relative; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--stroke);
  background: var(--surface);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-brand); }
.kicker .dot.green { background: var(--green); }
.kicker .dot.orange { background: var(--orange); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  max-width: 720px;
}
.section-sub {
  margin-top: 18px;
  max-width: 580px;
  color: var(--text-dim);
  font-size: 17px;
}
.center { text-align: center; }
.center .section-title, .center .section-sub { margin-inline: auto; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 28px;
  border-radius: 14px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 32px -8px rgba(91, 108, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -8px rgba(91, 108, 255, 0.7); }

.btn-ghost {
  border: 1px solid var(--stroke-strong);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.32); background: var(--surface-2); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--stroke);
}
.nav-inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand img, .brand svg { width: 34px; height: 34px; }
.brand .two { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 28px; margin-left: 12px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 84px);
  padding-bottom: 60px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 82px);
  font-weight: 700;
  line-height: 1.06;
  max-width: 900px;
  margin-inline: auto;
}
.hero .section-sub { font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; margin-inline: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--text-faint); }
.hero-note .plat { color: var(--text-dim); }

/* fake app window */
.app-window {
  margin: 76px auto 0;
  width: min(980px, 94vw);
  border-radius: 22px;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(20, 23, 48, 0.9), rgba(9, 11, 26, 0.94));
  box-shadow: var(--shadow-pop), var(--glow-blue);
  overflow: hidden;
  text-align: left;
  backdrop-filter: blur(14px);
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
}
.tl-dot { width: 11px; height: 11px; border-radius: 50%; }
.tl-dot.r { background: #ff5f57; } .tl-dot.y { background: #febc2e; } .tl-dot.g { background: #28c840; }
.app-titlebar .title { margin-inline: auto; font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }

.app-body { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 380px; }
.sheet-pane { padding: 22px; border-right: 1px solid var(--stroke); }
.pane-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px;
}
.pane-label .sq { width: 8px; height: 8px; border-radius: 2.5px; }
.sq.green { background: var(--green); } .sq.violet { background: var(--violet); }

table.mini-sheet { width: 100%; border-collapse: collapse; font-size: 13px; font-family: var(--font-mono); }
.mini-sheet th, .mini-sheet td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 12px;
  text-align: left;
  color: var(--text-dim);
}
.mini-sheet thead th { background: rgba(46, 206, 113, 0.1); color: #7fe3a8; font-weight: 600; }
.mini-sheet tr.sel td { background: rgba(79, 139, 255, 0.14); color: var(--text); }

.code-pane { padding: 22px; background: rgba(0, 0, 0, 0.28); }
.code-block {
  font-family: var(--font-mono);
  font-size: 12.8px;
  line-height: 1.75;
  color: #c8d3f5;
  white-space: pre;
  overflow-x: auto;
}
.code-block .kw { color: #c099ff; } .code-block .st { color: #c3e88d; }
.code-block .fn { color: #82aaff; } .code-block .cm { color: #566089; }
.caret { display: inline-block; width: 8px; height: 15px; background: #82aaff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--stroke);
  padding: 20px 0;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-faint);
  display: flex; align-items: center; gap: 56px;
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--indigo); font-size: 12px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- app trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
.trio-card {
  position: relative;
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s;
}
.trio-card:hover { transform: translateY(-6px); border-color: var(--stroke-strong); }
.trio-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--tint, rgba(79,139,255,0.13)), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.trio-card:hover::before { opacity: 1; }
.trio-card.writer { --tint: rgba(59, 130, 246, 0.15); }
.trio-card.sheets { --tint: rgba(46, 206, 113, 0.13); }
.trio-card.slides { --tint: rgba(255, 128, 56, 0.14); }
.trio-card:hover.writer { box-shadow: 0 20px 60px -20px rgba(59,130,246,0.35); }
.trio-card:hover.sheets { box-shadow: 0 20px 60px -20px rgba(46,206,113,0.3); }
.trio-card:hover.slides { box-shadow: 0 20px 60px -20px rgba(255,128,56,0.3); }

.app-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 23px; color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,0.5);
}
.app-icon.w { background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.app-icon.s { background: linear-gradient(140deg, #22c55e, #15803d); }
.app-icon.p { background: linear-gradient(140deg, #fb923c, #ea580c); }

.trio-card h3 { font-size: 21px; margin-bottom: 4px; }
.trio-card .sub { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 14px; }
.trio-card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- signature features ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 80px;
}
.feature-split.flip .feature-visual { order: 2; }
.feature-copy h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin-bottom: 16px; }
.feature-copy p { color: var(--text-dim); font-size: 16px; max-width: 460px; }
.feature-copy .tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.tag.green { color: #7fe3a8; background: rgba(46, 206, 113, 0.12); border: 1px solid rgba(46, 206, 113, 0.25); }
.tag.violet { color: #c4b0ff; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); }

.feature-visual {
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 26, 54, 0.85), rgba(8, 10, 24, 0.9));
  padding: 26px;
  box-shadow: var(--shadow-pop);
  min-height: 300px;
}

.md-preview { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: #c8d3f5; }
.md-preview .h { color: #82aaff; font-weight: 700; }
.md-preview .b { color: #566089; }
.md-preview .li { color: #c3e88d; }

.checklist { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 15px; }
.checklist .chk {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(46, 206, 113, 0.14);
  color: var(--green); font-size: 12px; font-weight: 800;
}

/* ---------- feature grid ---------- */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.gcard {
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, background 0.3s;
}
.gcard:hover { transform: translateY(-4px); border-color: var(--stroke-strong); background: var(--surface-2); }
.gcard .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(91, 108, 255, 0.13);
  border: 1px solid rgba(91, 108, 255, 0.25);
  margin-bottom: 18px;
}
.gcard h4 { font-family: var(--font-display); font-size: 17px; margin-bottom: 8px; }
.gcard p { font-size: 14px; color: var(--text-dim); }

/* ---------- downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
.dl-card {
  position: relative;
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 38px 32px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s, box-shadow 0.35s;
}
.dl-card:hover { transform: translateY(-6px); border-color: var(--stroke-strong); box-shadow: var(--glow-blue); }
.dl-card.detected { border-color: rgba(91, 108, 255, 0.55); background: rgba(91, 108, 255, 0.06); }
.dl-card .badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #aeb9ff; background: rgba(91, 108, 255, 0.16); border: 1px solid rgba(91,108,255,0.35);
  padding: 4px 10px; border-radius: 999px;
  display: none;
}
.dl-card.detected .badge { display: block; }
.dl-card .os-ico { font-size: 44px; margin-bottom: 18px; line-height: 1; }
.dl-card h3 { font-size: 20px; margin-bottom: 6px; }
.dl-card .meta { font-size: 13px; color: var(--text-faint); margin-bottom: 24px; font-family: var(--font-mono); }
.dl-card .formats { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.hot {
  border-color: rgba(91, 108, 255, 0.6);
  background: linear-gradient(170deg, rgba(91, 108, 255, 0.1), rgba(139, 92, 246, 0.05));
  box-shadow: var(--glow-blue);
}
.price-card .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--grad-brand); color: #fff;
  padding: 5px 16px; border-radius: 999px;
  box-shadow: 0 6px 20px -4px rgba(91,108,255,0.6);
}
.price-card h3 { font-size: 19px; margin-bottom: 6px; }
.price-card .who { font-size: 13.5px; color: var(--text-faint); margin-bottom: 22px; }
.price-card .amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; }
.price-card .amount .per { font-size: 15px; font-weight: 500; color: var(--text-faint); font-family: var(--font-body); }
.price-card ul { list-style: none; margin: 26px 0 30px; display: grid; gap: 11px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 800; }
.price-card li.no { color: var(--text-faint); }
.price-card li.no::before { content: "—"; color: var(--text-faint); }

/* ---------- final CTA ---------- */
.final-cta {
  border: 1px solid var(--stroke-strong);
  border-radius: 28px;
  background:
    radial-gradient(700px circle at 20% 0%, rgba(79, 139, 255, 0.16), transparent 55%),
    radial-gradient(700px circle at 85% 100%, rgba(139, 92, 246, 0.16), transparent 55%),
    var(--bg-2);
  padding: clamp(48px, 7vw, 90px);
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--stroke);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 16px; font-weight: 600; }
.foot-grid a { display: block; font-size: 14.5px; color: var(--text-dim); margin-bottom: 10px; transition: color 0.2s; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { color: var(--text-faint); font-size: 14px; margin-top: 14px; max-width: 280px; }
.foot-base {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--stroke);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-faint);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 80px);
  background: rgba(18, 21, 44, 0.92);
  border: 1px solid var(--stroke-strong);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 14.5px;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  z-index: 200;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.45s;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============================================================
   AUTH + PLAN pages
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 30px) 20px 60px;
}
.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--stroke-strong);
  border-radius: 24px;
  background: linear-gradient(170deg, rgba(20, 24, 50, 0.85), rgba(8, 10, 24, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-pop);
  padding: 40px 38px;
}
.auth-card .logo-top { width: 52px; height: 52px; margin: 0 auto 18px; }
.auth-card h1 { font-size: 25px; text-align: center; margin-bottom: 8px; }
.auth-card .lead { text-align: center; color: var(--text-dim); font-size: 14.5px; margin-bottom: 28px; }

.from-app-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: #aeb9ff;
  background: rgba(91, 108, 255, 0.12);
  border: 1px solid rgba(91, 108, 255, 0.3);
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0 auto 22px;
  width: fit-content;
}
.from-app-chip .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 206, 113, 0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 206, 113, 0); } }

.oauth-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: var(--surface);
  font-size: 13.5px; font-weight: 600;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.oauth-btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.oauth-btn svg { width: 18px; height: 18px; }

.divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-faint); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus {
  outline: none;
  border-color: rgba(91, 108, 255, 0.65);
  background: rgba(91, 108, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.14);
}
.field .err { display: none; font-size: 12.5px; color: var(--red); margin-top: 6px; }
.field.invalid input { border-color: rgba(255, 84, 112, 0.6); }
.field.invalid .err { display: block; }

.auth-swap { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-dim); }
.auth-swap a { color: #8fb3ff; font-weight: 600; }
.auth-swap a:hover { text-decoration: underline; }

.auth-legal { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 20px; }
.auth-legal a { text-decoration: underline; }

/* spinner */
.spin {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rot 0.7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- plan selection ---------- */
.plan-page { min-height: 100vh; padding: calc(var(--nav-h) + 50px) 20px 80px; }
.plan-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.plan-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.plan-head p { color: var(--text-dim); }
.plan-head .hello { color: #8fb3ff; font-weight: 600; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: min(1080px, 100%);
  margin-inline: auto;
}
.plan-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: var(--surface);
  padding: 34px 30px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  text-align: left;
}
.plan-card:hover { transform: translateY(-5px); border-color: var(--stroke-strong); background: var(--surface-2); }
.plan-card.hot { border-color: rgba(91, 108, 255, 0.6); background: linear-gradient(170deg, rgba(91,108,255,0.1), rgba(139,92,246,0.05)); position: relative; }
.plan-card.hot:hover { box-shadow: var(--glow-blue); }
.plan-card .p-ico { font-size: 30px; margin-bottom: 16px; }
.plan-card h3 { font-size: 19px; margin-bottom: 4px; }
.plan-card .p-price { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 10px 0 4px; }
.plan-card .p-price .per { font-size: 13px; color: var(--text-faint); font-family: var(--font-body); font-weight: 500; }
.plan-card .p-desc { font-size: 14px; color: var(--text-dim); flex: 1; margin-bottom: 22px; }
.plan-card .btn { width: 100%; }

/* activation key panel */
.key-panel {
  width: min(560px, 100%);
  margin: 26px auto 0;
  border: 1px solid rgba(255, 128, 56, 0.4);
  background: rgba(255, 128, 56, 0.06);
  border-radius: 20px;
  padding: 30px;
  display: none;
}
.key-panel.open { display: block; animation: slideUp 0.45s cubic-bezier(0.22,1,0.36,1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } }
.key-panel h4 { font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.key-panel .hint { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; font-family: var(--font-mono); }
.key-row { display: flex; gap: 10px; }
.key-row input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.key-row input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,128,56,0.15); }
.key-msg { font-size: 13.5px; margin-top: 12px; display: none; }
.key-msg.ok { display: block; color: var(--green); }
.key-msg.bad { display: block; color: var(--red); }

/* handoff overlay */
.handoff {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 5, 12, 0.9);
  backdrop-filter: blur(16px);
  display: none;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.handoff.show { display: grid; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; } }
.handoff .box { max-width: 420px; }
.handoff .logo-big { width: 84px; height: 84px; margin: 0 auto 26px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.handoff h2 { font-size: 26px; margin-bottom: 10px; }
.handoff p { color: var(--text-dim); font-size: 15px; margin-bottom: 26px; }
.handoff .token-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7fe3a8;
  background: rgba(46, 206, 113, 0.1);
  border: 1px solid rgba(46, 206, 113, 0.3);
  border-radius: 10px;
  padding: 10px 16px;
  word-break: break-all;
  margin-bottom: 26px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .sheet-pane { border-right: none; border-bottom: 1px solid var(--stroke); }
  .trio, .grid-6, .dl-grid, .price-grid, .plan-grid { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 36px; }
  .feature-split.flip .feature-visual { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 520px) {
  .oauth-row { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- auth v2: Google-only sign-in, device pairing, account ---------- */
.oauth-btn-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  margin-bottom: 20px;
}
.oauth-btn-wide:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.oauth-btn-wide svg { width: 20px; height: 20px; }

.device-code {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 5px;
  text-align: center;
  color: #ffd479;
  background: rgba(255, 196, 84, 0.08);
  border: 1px solid rgba(255, 196, 84, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  margin: 6px 0 22px;
}

.acct-status {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 6px 16px;
  margin-bottom: 22px;
}
.acct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}
.acct-row + .acct-row { border-top: 1px solid var(--stroke); }
.acct-row span { color: var(--text-dim); }
