/* ============================================================
   TrustStudy — website · orange / black (matches the extension)
   ============================================================ */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #131316;
  --bg-3:      #1b1b20;
  --line:      #29292f;
  --line-soft: #1f1f25;
  --txt:       #f4f4f5;
  --txt-dim:   #a0a0a8;
  --txt-micro: #66666e;
  --accent:    #ff7a18;
  --accent-2:  #ffa04d;
  --accent-dk: #d4600a;
  --ok:        #5ee08a;
  --r:         13px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --maxw:      1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.accent { color: var(--accent); }
b { color: var(--txt); font-weight: 600; }

/* subtle film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

kbd {
  display: inline-block; min-width: 20px; text-align: center;
  padding: 1px 6px; margin: 0 1px; border-radius: 6px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-bottom-width: 2px; font: inherit; font-size: .82em; color: var(--txt-dim);
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 6px; color: var(--accent-2); font-size: .9em;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x); border-radius: 11px;
  border: 1px solid transparent; font-family: inherit; font-weight: 600;
  font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease), filter .15s, background .15s, border-color .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff; box-shadow: 0 6px 20px -6px rgba(255, 122, 24, .5);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(255, 122, 24, .6); }
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-1px); }
.btn-sm { --pad-y: 9px; --pad-x: 15px; font-size: 14px; }
.btn-lg { --pad-y: 15px; --pad-x: 26px; font-size: 16px; }
.btn-block { width: 100%; }

.chrome-dot {
  width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 30%),
    conic-gradient(#ea4335 0 33%, #34a853 0 66%, #4285f4 0 100%);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(18px, 5vw, 44px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(10, 10, 12, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; }
.nav-links { margin-left: auto; display: flex; gap: 28px; }
.nav-links a {
  color: var(--txt-dim); text-decoration: none; font-size: 15px; font-weight: 500;
  position: relative; transition: color .15s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--accent); transition: width .22s var(--ease);
}
.nav-links a:hover { color: var(--txt); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px clamp(18px, 5vw, 44px) 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-40%);
  width: 900px; height: 900px; max-width: 130vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 24, .16), transparent 60%);
  filter: blur(20px); pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .8; } 50% { opacity: 1; transform: translateX(-40%) scale(1.06); } }
.hero-inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent-2);
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 40px;
  background: rgba(255, 122, 24, .05);
}
.hero-title {
  margin: 22px 0 20px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05;
  font-weight: 800; letter-spacing: -1.2px;
}
.hero-sub { color: var(--txt-dim); font-size: 17.5px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.hero-meta { display: flex; align-items: center; gap: 14px; color: var(--txt-micro); font-size: 14.5px; }
.hero-meta b { color: var(--accent-2); }
.hero-meta .dot { color: var(--line); }

/* Hero product video */
.hero-mock { position: relative; }
.hero-video-wrap {
  margin-left: auto; margin-right: -55px; max-width: 100%;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: 0 40px 90px -34px rgba(0, 0, 0, .85);
}
.hero-video-wrap.landscape { max-width: 100%; }
.hero-video-wrap.portrait { max-width: 660px; }
.hero-video { display: block; width: 100%; height: auto; }
.mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 14px;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
}
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #34343c; }
.mock-bar span:first-child { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-url {
  margin-left: 10px; flex: 1; font-size: 12.5px; color: var(--txt-micro);
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 5px 12px;
}
.mock-body { position: relative; padding: 26px 24px 30px; min-height: 250px; }
.mock-q-title { font-weight: 600; margin-bottom: 16px; font-size: 15px; }
.mock-choices { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.mock-choices li {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--txt-dim); font-size: 14px; background: var(--bg);
}
.mock-choices li.hit {
  border-color: var(--accent); color: var(--txt);
  background: rgba(255, 122, 24, .08); box-shadow: 0 0 0 1px rgba(255, 122, 24, .25);
}
/* the on-page answer box, like the real #qh-box */
.qh-box {
  position: absolute; right: 20px; bottom: 20px;
  background: rgba(10, 10, 12, .92); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 13px; backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
  animation: pop .5s var(--ease) .3s both;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.qh-label { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--txt-micro); margin-bottom: 3px; }
.qh-answer { display: flex; align-items: baseline; gap: 7px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; }
.qh-num { color: var(--txt-dim); }
.qh-sep { color: var(--txt-micro); }
.qh-val { color: var(--accent); }
.mock-key { text-align: center; margin-top: 20px; color: var(--txt-micro); font-size: 13.5px; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px clamp(18px, 5vw, 44px); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { margin: 16px 0 12px; font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.8px; line-height: 1.12; }
.section-head p { color: var(--txt-dim); font-size: 17px; }
#demo { padding-top: 36px; }
.try-it { margin: 0 !important; }
.try-do { color: var(--txt-dim); font-size: 18px; margin-top: 10px; }
.try-arrow {
  font-size: 42px; line-height: 1; color: var(--accent); margin-top: 12px;
  animation: try-bounce 1.6s ease-in-out infinite;
}
@keyframes try-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

/* Interactive demo */
.demo-stage { max-width: 780px; margin: 0 auto; }
.demo-window {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, .85);
}
.demo-body { position: relative; padding: 30px clamp(18px, 4vw, 40px) 40px; min-height: 330px; }
.demo-site-brand { font-weight: 800; letter-spacing: -.3px; color: var(--txt); font-size: 15px; opacity: .65; }
.demo-qtag { color: var(--txt-micro); font-size: 12.5px; margin: 16px 0 8px; letter-spacing: .6px; text-transform: uppercase; }
.demo-q { font-size: clamp(19px, 2.6vw, 25px); font-weight: 700; margin-bottom: 22px; letter-spacing: -.4px; }
.demo-choices { list-style: none; display: flex; flex-direction: column; gap: 11px; max-width: 420px; }
.demo-choices li {
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  color: var(--txt-dim); font-size: 15px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.demo-choices li:hover { border-color: #3a3a42; color: var(--txt); transform: translateX(3px); }
/* you picked the right one — or we reveal the right one after a wrong pick */
.demo-choices li.picked-right,
.demo-choices li.reveal-right {
  border-color: var(--ok); background: rgba(94, 224, 138, .1); color: var(--txt);
  box-shadow: 0 0 0 1px rgba(94, 224, 138, .3);
}
.demo-choices li.picked-right::after,
.demo-choices li.reveal-right::after { content: "✓"; float: right; color: var(--ok); font-weight: 700; }
/* you picked a wrong one */
.demo-choices li.picked-wrong {
  border-color: #e5484d; background: rgba(229, 72, 77, .1); color: var(--txt);
  box-shadow: 0 0 0 1px rgba(229, 72, 77, .3);
}
.demo-choices li.picked-wrong::after { content: "✕"; float: right; color: #ff7a7a; font-weight: 700; }

.demo-feedback {
  margin-top: 16px; font-size: 14.5px; font-weight: 600; min-height: 20px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.demo-feedback.show { opacity: 1; transform: none; }
.demo-feedback.ok { color: var(--ok); }
.demo-feedback.no { color: #ff7a7a; }

/* the answer — plain text, like the extension shows it (no box, no colour) */
.demo-answer {
  position: absolute; right: 28px; bottom: 26px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: .5px; color: var(--txt-dim);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.demo-answer.show { opacity: 1; transform: none; }

.demo-arrow {
  position: absolute; right: 30px; bottom: 66px; text-align: right;
  color: var(--txt-micro); font-size: 13.5px; font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease) .12s, transform .3s var(--ease) .12s;
}
.demo-arrow.show { opacity: 1; transform: none; }
.demo-arrow::after { content: "↓"; display: block; font-size: 22px; line-height: 1; margin-top: 2px; color: var(--txt-dim); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.demo-keys { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.demo-key {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--txt);
  padding: 11px 18px; border-radius: 11px; font: inherit; font-size: 14.5px; cursor: pointer;
  transition: border-color .15s, transform .12s, background .15s;
}
.demo-key span { color: var(--txt-dim); }
.demo-key:hover { border-color: var(--accent); transform: translateY(-1px); }
.demo-key:hover span { color: var(--txt); }
.demo-key:active { transform: translateY(1px); }

/* How it works */
.how { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.steps { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; max-width: 300px; padding: 8px 6px; }
.step-n {
  font-family: ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 700;
  color: var(--accent); background: rgba(255, 122, 24, .08);
  border: 1px solid rgba(255, 122, 24, .22); padding: 4px 11px; border-radius: 30px;
}
.step h3 { margin: 16px 0 8px; font-size: 19px; }
.step p { color: var(--txt-dim); font-size: 15px; }
.step-arrow { align-self: center; color: var(--line); font-size: 26px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px;
  transition: transform .2s var(--ease), border-color .2s;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 122, 24, .25), 0 18px 50px -20px rgba(255, 122, 24, .35);
}
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dk)); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 4px 13px; border-radius: 30px;
}
.plan-name { font-size: 19px; font-weight: 700; }
.plan-tag { color: var(--txt-micro); font-size: 13.5px; margin-top: 2px; }
.plan-price { margin: 16px 0 4px; }
.plan-price b { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; }
.plan-price span { color: var(--txt-dim); font-size: 15px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.plan-feats li { display: flex; gap: 9px; align-items: flex-start; color: var(--txt-dim); font-size: 14.5px; }
.plan-feats li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.plan .btn-block { margin-top: auto; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: 100px clamp(18px, 5vw, 44px); text-align: center; }
.cta-glow {
  position: absolute; inset: 0; margin: auto; width: 700px; height: 380px; max-width: 120vw;
  background: radial-gradient(ellipse at center, rgba(255, 122, 24, .18), transparent 65%); filter: blur(14px);
}
.cta-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; }
.cta-inner p { color: var(--txt-dim); font-size: 18px; margin: 14px 0 30px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line-soft); max-width: var(--maxw); margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 44px); display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-logo { height: 26px; }
.foot-brand p { color: var(--txt-micro); font-size: 14px; }
.foot-links { margin-left: auto; display: flex; gap: 22px; }
.foot-links a { color: var(--txt-dim); text-decoration: none; font-size: 14.5px; transition: color .15s; }
.foot-links a:hover { color: var(--accent-2); }
.foot-links a.soon { opacity: .6; }
.foot-copy { color: var(--txt-micro); font-size: 13.5px; width: 100%; padding-top: 8px; }

/* Toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 50; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--txt); padding: 12px 20px; border-radius: 12px; font-size: 14.5px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-mock { max-width: 560px; }
  .hero-video-wrap { margin: 0 auto; }
  .hero-video-wrap.portrait { max-width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
