/* ============================================================
   WinMyAppeals: light clinical trust design system
   ============================================================ */

:root {
  --bg: #f7f9fc;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --ink: #0e2235;
  --ink-soft: #4a5b6e;
  --ink-faint: #8a99ab;
  --accent: #1f6ff2;
  --accent-deep: #1554c0;
  --accent-soft: #e3edfe;
  --green: #16a34a;
  --green-soft: #e6f6ec;
  --red: #d6453d;
  --line: #dde5ef;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 2px 8px rgba(14, 34, 53, 0.05), 0 12px 32px rgba(14, 34, 53, 0.07);
  --shadow-lift: 0 4px 12px rgba(14, 34, 53, 0.07), 0 24px 56px rgba(14, 34, 53, 0.12);

  --container: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.container--narrow { width: min(820px, calc(100% - 48px)); }

.section { padding: clamp(96px, 12vw, 160px) 0; position: relative; }

/* ---------- Type ---------- */

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.h2--center { text-align: center; }

.h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; width: 100%; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
              background 0.3s var(--ease-out), color 0.3s var(--ease-out);
  will-change: transform;
}
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 111, 242, 0.32);
}
.btn--primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 12px 32px rgba(31, 111, 242, 0.42);
}
.btn--primary svg { transition: transform 0.3s var(--ease-out); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-faint); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.btn--outline:hover { background: var(--accent-soft); }

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.preloader__bar {
  width: 220px;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-inline: auto;
}
.preloader__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.preloader__status {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Custom cursor ---------- */

.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(31, 111, 242, 0.45);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  background: rgba(31, 111, 242, 0.08);
  border-color: rgba(31, 111, 242, 0.7);
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.45s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  width: min(var(--container), calc(100% - 48px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(221, 229, 239, 0.8);
  box-shadow: 0 4px 24px rgba(14, 34, 53, 0.06);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}
.nav__links { display: flex; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__signin {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.nav__signin:hover { color: var(--ink); }
/* Utility used by the live functional scripts (auth toggles, menus) */
.hidden { display: none !important; }

.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
}
.nav__menu-btn .material-symbols-outlined { font-size: 26px; }

/* Mobile dropdown panel: toggled via the .hidden class by the nav script */
.mobile-panel {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 48px));
  z-index: 95;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 12px;
}
.mobile-panel a, .mobile-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.mobile-panel a:hover, .mobile-panel button:hover { background: var(--bg-soft); color: var(--ink); }
.mobile-panel .mobile-panel__cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 6px;
}
.mobile-panel .mobile-panel__cta:hover { background: var(--accent-deep); color: #fff; }
.mobile-panel__divider {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}
.mobile-panel__email {
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding: 6px 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-panel .sign-out-btn { color: var(--red); }

/* Account dropdown: ids and class hooks match the live auth script */
.account-dropdown { position: relative; }
.account-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.25s var(--ease-out);
}
.account-avatar:hover { box-shadow: 0 0 0 4px rgba(31, 111, 242, 0.18); }
.account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 6px;
  z-index: 110;
}
.account-menu.open { display: block; }
.account-menu-email {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  word-break: break-all;
}
.account-menu a, .account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover { background: var(--bg-soft); color: var(--ink); }
.account-menu .sign-out-btn { color: var(--red); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 80px;
  max-width: 880px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero__line { display: block; overflow: hidden; }
.hero__line span { display: inline-block; }
.hero__line--accent { color: var(--accent); }
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto 36px;
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__note { font-size: 0.85rem; color: var(--ink-faint); }
.hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll-line {
  width: 1.5px;
  height: 44px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 1.8s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}
.hero__scroll-text {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

/* ---------- Stats ---------- */

.stats { padding: 0 0 clamp(72px, 9vw, 120px); }
.stats__grid {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.stat {
  padding: 40px 28px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.stat__unit { font-size: 0.5em; margin-left: 4px; font-weight: 600; }
.stat__label { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
  text-decoration: line-through;
  text-decoration-color: rgba(214, 69, 61, 0.55);
  text-decoration-thickness: 2px;
}
.marquee__item--stamp {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  border: 1.5px solid var(--green);
  border-radius: 6px;
  padding: 4px 12px;
  transform: rotate(-3deg);
  align-self: center;
}

/* ---------- Why ---------- */

.why__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.why__visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(32px, 4vw, 56px);
}
.why__big-number { margin-bottom: 40px; }
.why__percent {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}
.why__percent-label {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.why__bar-chart { display: grid; gap: 20px; }
.why__bar { display: grid; gap: 8px; }
.why__bar-fill {
  height: 14px;
  border-radius: 100px;
  width: 0%;
  position: relative;
}
.why__bar-fill--give-up { background: var(--line); }
.why__bar-fill--appeal { background: var(--accent); }
.why__bar-label { font-size: 0.82rem; color: var(--ink-faint); font-weight: 500; }

/* ---------- How ---------- */

.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how__pin { margin-top: clamp(40px, 5vw, 72px); }
.how__layout {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.how__progress { position: relative; }
.how__progress-line {
  position: sticky;
  top: 20vh;
  width: 4px;
  height: 60vh;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.how__progress-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transform-origin: top;
  transform: scaleY(0);
}
.how__steps { display: grid; gap: clamp(48px, 7vw, 96px); padding: 8vh 0; }
.how-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  transition: box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.how-step.is-active {
  border-color: rgba(31, 111, 242, 0.4);
  box-shadow: var(--shadow-lift);
}
.how-step__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--accent-soft);
  -webkit-text-stroke: 1.5px var(--accent);
  line-height: 1;
}
.how-step__body p { color: var(--ink-soft); max-width: 48ch; }
.how-step__icon {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}
.how-step__icon svg { width: 30px; height: 30px; }

/* ---------- Guarantee ---------- */

.guarantee__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  background: linear-gradient(135deg, #0e2235 0%, #163a5f 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 5vw, 72px);
  box-shadow: var(--shadow-lift);
}
.guarantee__card .h2 { color: #fff; }
.guarantee__card .lead { color: rgba(255, 255, 255, 0.75); margin-bottom: 0; }
.guarantee__shield {
  width: 88px; height: 88px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #7db4ff;
}
.guarantee__shield svg { width: 44px; height: 44px; }
.guarantee__levels { display: grid; gap: 12px; }
.guarantee__level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  min-width: 180px;
  font-size: 0.9rem;
}
.guarantee__level em {
  font-style: normal;
  font-weight: 700;
  color: #6ee7a0;
}

/* ---------- Use cases ---------- */

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s var(--ease-out);
  will-change: transform;
}
.case-card:hover { box-shadow: var(--shadow-lift); }
.case-card__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 24px;
}
.case-card__icon svg { width: 26px; height: 26px; }
.case-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Letter ---------- */

.letter { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.letter__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.letter-mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 28px;
  max-width: 420px;
  margin-inline: auto;
  will-change: transform;
}
.letter-mock__header { display: flex; gap: 6px; margin-bottom: 24px; }
.letter-mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.letter-mock__body { display: grid; gap: 12px; }
.letter-mock__line {
  height: 9px;
  border-radius: 5px;
  background: var(--bg-soft);
}
.letter-mock__line--title { width: 55%; height: 13px; background: var(--line); }
.letter-mock__line--short { width: 70%; }
.letter-mock__highlight {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
}
.letter-mock__highlight--alt {
  color: var(--green);
  background: var(--green-soft);
  border-left-color: var(--green);
}
.letter-mock__stamp {
  position: absolute;
  top: 18px;
  right: -16px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 6px;
  padding: 6px 12px;
  background: #fff;
  transform: rotate(6deg);
  box-shadow: var(--shadow-soft);
}

.checklist { display: grid; gap: 14px; margin-top: 8px; }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.checklist__mark {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-soft);
  position: relative;
  margin-top: 2px;
}
.checklist__mark::after {
  content: "";
  position: absolute;
  top: 6px; left: 8px;
  width: 6px; height: 10px;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out) 0.15s;
}
.checklist__item.is-checked .checklist__mark::after { transform: rotate(45deg) scale(1); }

/* ---------- Pricing ---------- */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s var(--ease-out);
  will-change: transform;
}
.price-card:hover { box-shadow: var(--shadow-lift); }
.price-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-lift);
}
.price-card__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 6px 16px;
  white-space: nowrap;
}
.price-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.price-card__price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.price-card__price sup { font-size: 0.55em; font-weight: 800; vertical-align: baseline; color: inherit; }
.price-card__price [data-price] { font-size: 1em; font-weight: 800; color: inherit; }
.price-card__price [data-suffix] { font-size: 0.55em; font-weight: 800; color: inherit; }
.price-card__desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 24px; }
.price-card__billed-as {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: -4px;
  margin-bottom: 18px;
  min-height: 1.1em;
}

/* Two-tier membership grid */
.pricing__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-inline: auto;
}

/* Monthly / annual billing toggle */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
}
.pricing .container { text-align: center; }
.billing-toggle__option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.billing-toggle__option.is-active {
  background: var(--accent);
  color: #fff;
}
.billing-toggle__save {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--secondary, #006d40);
  color: #fff;
  padding: 3px 8px;
  border-radius: 100px;
}
.billing-toggle__option.is-active .billing-toggle__save {
  background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 640px) {
  .pricing__grid--two { grid-template-columns: 1fr; max-width: 480px; }
}

/* "Protection status: Active" guardian card (hero problem section) */
.why__guard-card {
  background: #002045;
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-lift);
  color: #fff;
}
.why__guard-icon { width: 46px; height: 46px; color: #74db9d; margin-bottom: 18px; }
.why__guard-icon svg { width: 100%; height: 100%; }
.why__guard-status {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #74db9d; margin: 0 0 8px;
}
.why__guard-active {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: #fff; margin: 0 0 14px; display: flex; align-items: center; gap: 11px;
}
.why__guard-active::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: #74db9d; box-shadow: 0 0 0 4px rgba(116,219,157,0.22);
}
.why__guard-note { font-size: 0.95rem; line-height: 1.6; color: #c9d8f0; margin: 0; }

.cases__note {
  text-align: center; color: var(--ink-faint);
  font-size: 0.85rem; margin-top: 28px;
}

/* Already-a-member banner on the pricing page */
.member-banner {
  max-width: 720px;
  margin: 0 auto clamp(24px, 4vw, 40px);
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 22px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.member-banner a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.price-card__cta.is-current {
  background: #006d40;
  border-color: #006d40;
  color: #fff;
  cursor: default;
}
.price-card__features {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
  flex-grow: 1;
}
.price-card__features li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.price-card__features li::before {
  content: "";
  position: absolute;
  left: 4px; top: 7px;
  width: 5px; height: 9px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.price-card__cta { width: 100%; }
.pricing__note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ---------- FAQ ---------- */

.faq__list { margin-top: clamp(40px, 5vw, 56px); display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-out);
}
.faq-item[open] { box-shadow: var(--shadow-soft); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__icon {
  flex-shrink: 0;
  position: relative;
  width: 14px; height: 14px;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.faq-item__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-item__icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq-item[open] .faq-item__icon::after { transform: scaleY(0); }
.faq-item__a { padding: 0 26px; overflow: hidden; }
.faq-item__a p { padding-bottom: 24px; color: var(--ink-soft); font-size: 0.95rem; max-width: 64ch; }

/* ---------- Final CTA ---------- */

.final__card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-soft);
  padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.final__card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(31, 111, 242, 0.1), transparent 70%);
  pointer-events: none;
}
.final__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.final__title span { display: inline-block; }
.final__lead { margin-inline: auto; margin-bottom: 36px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 40px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 32px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a {
  font-size: 0.88rem;
  transition: color 0.25s;
}
.footer__links a:hover { color: #fff; }
.footer__legal p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 90ch;
}
.footer__copyright { margin-top: 16px; }

/* ---------- Reveal defaults (JS sets initial state; this is the no-JS fallback) ---------- */

.no-js [data-reveal], .no-js [data-hero-fade] { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .why__layout, .letter__layout { grid-template-columns: 1fr; }
  .guarantee__card { grid-template-columns: 1fr; text-align: left; }
  .guarantee__levels { grid-template-columns: repeat(3, 1fr); }
  .cases__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price-card--featured { order: -1; }
}

@media (max-width: 820px) {
  .nav__links, .nav__signin, .nav__actions .btn { display: none; }
  .nav__menu-btn { display: flex; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .how__layout { grid-template-columns: 1fr; }
  .how__progress { display: none; }
  .how-step { grid-template-columns: auto 1fr; }
  .how-step__icon { display: none; }
  .guarantee__levels { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 111, 242, 0.12);
}
.input::placeholder { color: var(--ink-faint); }

/* ---------- Auth (login page) ---------- */

.auth-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 130px 24px 70px;
}
.auth-card {
  width: min(450px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(26px, 4vw, 40px);
}
.auth-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 6px;
}
.auth-card__sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.auth-tabs {
  display: flex;
  gap: 5px;
  background: var(--bg-soft);
  padding: 5px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 100px;
  border: none;
  background: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.25s;
}
.auth-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.msg {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.msg--error { background: #fdecea; color: #b3362f; }
.msg--success { background: var(--green-soft); color: #0f7a37; }
.btn--google {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  gap: 12px;
}
.btn--google:hover { box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-faint);
  font-size: 0.8rem;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-link {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.auth-link:hover { text-decoration: underline; }

/* ---------- Notice banner (e.g. no tokens remaining) ---------- */

.notice-banner {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(720px, calc(100% - 48px));
  background: #fff8e6;
  border: 1px solid #f0c36d;
  color: #8a5a00;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

/* ---------- Content pages (about, legal, privacy, terms) ---------- */

.page-hero {
  padding: clamp(150px, 18vw, 200px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-inline: auto;
}
.prose {
  max-width: 760px;
  margin-inline: auto;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.prose p, .prose li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 12px;
}
.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.prose strong { color: var(--ink); }
.prose .prose-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 40px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
