:root {
  color-scheme: light;
  --bg: #fcfcff;
  --surface: #fff;
  --fg: #161420;
  --muted: #f4f6fb;
  --border: #e4e6ee;
  --accent: #6930C3;
  --accent-strong: #7400B8;
  --ink-soft: #666a7a;
  --card-shadow: 0 16px 34px -30px rgba(17, 9, 36, 0.44);
  --soft-violet: #f3eefc;
  --soft-violet-border: #e6dcfb;
  --footer-bg: #1a1730;
  --footer-border: #2d2747;
  --footer-ink: #cac7de;
  --btn-base: #6520ca;
  --btn-hover: #4e149f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.75;
}

.font-display {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
}

.glass {
  background: var(--surface);
  box-shadow: 0 14px 28px -24px rgba(24, 20, 44, 0.28);
}

[data-od-id="language-toggle"] .lang-toggle-btn {
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 0.375rem;
}

[data-od-id="language-toggle"] .lang-toggle-btn::before {
  display: none !important;
}

[data-od-id="language-toggle"] .lang-toggle-btn[aria-pressed="false"] {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #6224cc !important;
}

[data-od-id="language-toggle"] .lang-toggle-btn[aria-pressed="false"]:hover {
  background: #f5eeff !important;
  border-color: #d8c3ff !important;
  color: #6224cc !important;
  box-shadow: none !important;
}

[data-od-id="language-toggle"] .lang-toggle-btn[aria-pressed="true"] {
  background: #6224cc !important;
  border-color: #6224cc !important;
  color: #fff !important;
  box-shadow: none !important;
}

[data-od-id="language-toggle"] .lang-toggle-btn[aria-pressed="true"]:hover {
  background: #5a20bc !important;
  border-color: #5a20bc !important;
  color: #fff !important;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.modal-visible {
  opacity: 1;
}

.modal-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-panel-visible {
  opacity: 1;
  transform: scale(1);
}

.modal-panel-hidden {
  opacity: 0;
  transform: scale(0.97);
}

.kicker-caps {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  color: var(--accent);
}

.kicker-caps::before {
  content: "// ";
}

.trueclose-card {
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Zero-specificity defaults so any Tailwind bg-[]/border-[] utility on the
   same element always wins, regardless of stylesheet load order. */
:where(.trueclose-card) {
  border: 1px solid var(--border);
  background: var(--surface);
}

.trueclose-card:hover {
  transform: translateY(-4px);
  border-color: #dcd4f4;
  box-shadow: 0 24px 36px -30px rgba(16, 8, 34, 0.35);
}

section {
  position: relative;
  overflow: clip;
}

.tc-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  background: var(--btn-base) !important;
  border-color: var(--btn-base) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px -16px rgba(101, 32, 202, 0.7);
}

.tc-button::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  top: -10px;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--btn-hover);
  transition: all 0.8s ease;
  z-index: -1;
}

.tc-button:hover {
  transform: translateY(-1px);
  border-color: var(--btn-hover) !important;
  box-shadow: 0 16px 26px -16px rgba(78, 20, 159, 0.72);
}

.tc-button:hover::before {
  width: 420px;
  height: 420px;
}

.tc-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(101, 32, 202, 0.22), 0 16px 26px -16px rgba(78, 20, 159, 0.72);
}

#app-preview .engine-open-btn {
  background: #fff !important;
  border-color: #fff !important;
  color: #6224cc !important;
  box-shadow: 0 10px 20px -16px rgba(17, 8, 36, 0.48);
}

#app-preview .engine-open-btn::before {
  display: none;
}

#app-preview .engine-open-btn:hover {
  background: #f7f3ff !important;
  border-color: #f7f3ff !important;
  color: #6224cc !important;
  box-shadow: 0 14px 22px -16px rgba(17, 8, 36, 0.5);
}

#app-preview .engine-open-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.34), 0 12px 20px -14px rgba(17, 8, 36, 0.46);
}

.faq-trigger[aria-expanded="true"] span:last-child {
  color: #6930C3;
}

#site-topbar {
  background: #0d0119;
  border-bottom: 1px solid #26233b;
  color: #d9d7e6;
}

#site-header {
  background: #fff;
  border-color: #e3e3e3;
  box-shadow: 0 14px 24px -26px rgba(12, 8, 32, 0.42);
}

#hero {
  background: #fff;
  border-color: #e3e3e3;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/heroBG.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

#hero::after {
  content: none;
}

#hero > div {
  position: relative;
  z-index: 1;
}

#traps,
#comparison {
  background: #fff;
}

#faq {
  background: #f3f7fc;
}

#traps::before,
#comparison::before,
#faq::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px dashed rgba(105, 48, 195, 0.2);
  top: -90px;
  right: -80px;
  pointer-events: none;
}

#live-engine {
  border-color: #dbe7f7;
}

#comparison tbody tr:hover {
  background: #f4f7ff;
}

#comparison thead {
  border-bottom: 1px solid #e7d9ff;
}

#app-modal-panel {
  border-color: #e2dfe7;
  background: #fff;
  box-shadow: 0 24px 80px -40px rgba(11, 22, 73, 0.55);
}

#app-modal-panel h3 {
  color: #0f0f0f;
}

#app-container {
  border-color: #e3e3e3;
  background: #f4f7ff;
}

#site-footer {
  background:
    radial-gradient(circle at 26% -60%, rgba(114, 35, 206, 0.26), rgba(31, 24, 51, 0) 52%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0, rgba(255, 255, 255, 0.022) 1px, transparent 1px, transparent 5px),
    var(--footer-bg);
  border-color: var(--footer-border);
}

#site-footer a,
#site-footer p,
#site-footer span {
  color: var(--footer-ink);
}

#site-footer a:hover {
  color: #64DFDF;
}

#site-footer [data-i18n="disclaimerFr"] {
  background: none;
  border: 0;
  color: #d7d5e4;
}

#hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.024em;
  max-width: 11.6ch;
}

#hero p[data-i18n="heroSub"] {
  max-width: 56ch;
  color: #6a6a6a;
  font-size: 18px;
  line-height: 1.72;
}

#main-nav a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 700;
  color: #5f5f71;
}

#main-nav a:hover {
  color: #6930C3;
}

#live-engine,
#traps,
#comparison,
#blueprint,
#how-it-works,
#faq {
  scroll-margin-top: 120px;
}

#hero .kicker-caps {
  color: #6222cc;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(105, 48, 195, 0.18);
}

#hero [data-od-id="hero-metrics-card"] {
  border-color: #ece7f4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
}

#traps .trueclose-card,
#blueprint .trueclose-card,
#faq article,
#comparison .rounded-xl {
  border-color: #ece7f4;
  box-shadow: 0 8px 26px -24px rgba(12, 8, 32, 0.24);
}

#traps .trap-visual-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  background-image:
    linear-gradient(to top, rgba(98, 36, 204, 0.9) 0%, rgba(98, 36, 204, 0.66) 28%, rgba(98, 36, 204, 0.3) 52%, rgba(98, 36, 204, 0.08) 66%, rgba(98, 36, 204, 0) 78%),
    var(--trap-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 32px -24px rgba(6, 14, 34, 0.7);
}

#traps .trap-house-poor {
  --trap-image: url("../images/house_poor.jpg");
}

#traps .trap-lead-gen {
  --trap-image: url("../images/lead-gen trap.jpg");
}

#traps .trap-us-error {
  --trap-image: url("../images/error.jpg");
}

#traps .trap-closing-surprise {
  --trap-image: url("../images/surprise.jpg");
}

#traps .trap-ird-penalty {
  --trap-image: url("../images/IRD.jpg");
}

#traps .trap-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(123, 192, 255, 0.1) 0%, rgba(123, 192, 255, 0) 38%);
  pointer-events: none;
}

#traps .trap-visual-card > * {
  position: relative;
  z-index: 1;
}

#traps .trap-visual-card h3 {
  color: #f6f9ff;
}

#traps .trap-visual-card p {
  color: rgba(231, 239, 255, 0.9);
}

#blueprint::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(105, 48, 195, 0.12);
}

#blueprint [data-od-id="purchase-flow-card"] {
  animation: purchase-flow-float 6.8s ease-in-out infinite;
  transform: translateY(0);
  will-change: transform;
}

#blueprint [data-od-id="purchase-flow-card"].trueclose-card:hover {
  transform: translateY(0);
}

@keyframes purchase-flow-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #blueprint [data-od-id="purchase-flow-card"] {
    animation: none;
  }
}

#faq .faq-trigger {
  font-size: 16px;
  line-height: 1.5;
}

#how-it-works [data-od-id^="how-step-"] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

#how-it-works.steps-visible [data-od-id^="how-step-"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#how-it-works.steps-visible [data-od-id="how-step-1"] { transition-delay: 0.05s; }
#how-it-works.steps-visible [data-od-id="how-step-2"] { transition-delay: 0.2s; }
#how-it-works.steps-visible [data-od-id="how-step-3"] { transition-delay: 0.35s; }
#how-it-works.steps-visible [data-od-id="how-step-4"] { transition-delay: 0.5s; }

@media (max-width: 1023px) {
  #hero {
    min-height: auto;
    background: #edf1f6;
  }
  #hero::before {
    background-image: url("../images/heroBG - Mobile.jpg");
  }
  #hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(237, 241, 246, 0.8);
    pointer-events: none;
    z-index: 0;
  }
  #hero h1 {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #how-it-works [data-od-id^="how-step-"] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.reddit-social-proof {
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.reddit-social-proof::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(98, 36, 204, 0.09), transparent 70%);
  top: -120px;
  left: -100px;
  pointer-events: none;
}

.reddit-social-proof::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(117, 217, 209, 0.14), transparent 70%);
  bottom: -80px;
  right: -60px;
  pointer-events: none;
}

.reddit-quote-card {
  background: #ffffff;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.45);
}

.reddit-quote-card:hover {
  border-color: rgba(98, 36, 204, 0.35);
  background: #f8f5ff;
}

.reddit-quote-card .quote-text {
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
}

.reddit-quote-card .quote-text::before {
  content: "\201C";
  font-size: 28px;
  line-height: 0;
  vertical-align: -6px;
  margin-right: 2px;
  color: #7400B8;
  font-style: normal;
  font-weight: 700;
}

.reddit-quote-card .quote-text::after {
  content: "\201D";
  font-size: 28px;
  line-height: 0;
  vertical-align: -6px;
  margin-left: 2px;
  color: #7400B8;
  font-style: normal;
  font-weight: 700;
}

.reddit-quote-card .quote-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
}

.reddit-quote-card .quote-meta .quote-source {
  color: #6224cc;
  text-decoration: none;
  font-weight: 600;
}

.reddit-icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.simulation-counter {
  background: linear-gradient(135deg, #0d0119 0%, #1a0a2e 100%);
  border-top: 1px solid rgba(105, 48, 195, 0.2);
  border-bottom: 1px solid rgba(105, 48, 195, 0.2);
  position: relative;
  overflow: hidden;
}

.simulation-counter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(105, 48, 195, 0.08), transparent 65%);
  pointer-events: none;
}

.counter-number {
  font-family: "Space Grotesk", "Manrope", monospace;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  background: linear-gradient(135deg, #64DFDF 0%, #80FFDB 50%, #72EFDD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  transition: transform 0.3s ease;
}

.counter-number.bump {
  transform: scale(1.08);
}

.counter-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.counter-sublabel {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  margin-top: 2px;
}

.counter-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #75D9D1;
  margin-right: 8px;
  animation: counter-blink 1.15s steps(2, start) infinite;
}

@keyframes counter-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

.engine-counter-card {
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(2px);
}

.engine-counter-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.engine-counter-prefix {
  color: #75D9D1;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1;
  animation: counter-blink 2s steps(2, start) infinite;
}

.engine-counter-card .counter-number {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  font-size: clamp(54px, 9vw, 72px);
  line-height: 1;
}

.engine-counter-card .counter-label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
}

.engine-counter-card .counter-sublabel {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  margin-top: 0.2rem;
  letter-spacing: 0;
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .engine-counter-card {
    border-radius: 30px;
    padding: 1.5rem 1.8rem;
  }
}

.trust-badges-section {
  background: #0d0119;
  border-top: 1px solid rgba(105, 48, 195, 0.15);
  position: relative;
  overflow: hidden;
}

.trust-badges-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.012) 0, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 5px);
  pointer-events: none;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.trust-badge:hover {
  border-color: rgba(100, 223, 223, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.trust-badge-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(100, 223, 223, 0.1);
  border: 1px solid rgba(100, 223, 223, 0.15);
}

.trust-badge-icon svg {
  width: 22px;
  height: 22px;
  color: #64DFDF;
}

.trust-badge-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trust-badge-desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 2px;
}

@media (min-width:1024px){.tc-blueprint-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tc-blueprint-grid>*{grid-column:auto!important}}

/* Blueprint title: make the price stand out against the semibold heading */
#blueprint-title { font-weight: 500; }
#blueprint-title b { font-weight: 700; }
