/* ============================================================
   MindType: landing (v2, "a world without keyboards")
   Brand: Azure blue on warm paper · Poppins / Inter / DM Mono
   Same tokens as the main site, only the layout is new.
   ============================================================ */

:root {
  --blue: #1a73ff;
  --blue-deep: #0b5be0;
  --blue-soft: #5b9bff;
  --blue-tint: #e9f1ff;
  --ink: #030415;
  --navy: #090d26;
  --navy-2: #121a3f;
  --slate: #5a6072;
  --paper: #fbf9fa;
  --line: #e9e7ec;
  --grad: linear-gradient(135deg, #5b9bff 0%, #1a73ff 100%);

  --shell: 1120px;
  --pad: clamp(20px, 5vw, 56px);

  --f-display: "Poppins", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; background: #fbf9fa; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: transparent; /* paper lives on <html>, so the ambient canvas shows through */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- ambient background ---------- */
#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.glow-cursor {
  position: fixed;
  top: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 115, 255, 0.09), transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.glow-cursor.is-on { opacity: 1; }

/* ---------- shared ---------- */
.kicker {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--blue);
  text-align: center;
  margin-bottom: 18px;
}
.kicker--hero { margin-bottom: 24px; }
.kicker--light { color: var(--blue-soft); position: relative; }

.section-h {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(30px, 4.8vw, 52px);
  text-align: center;
  text-wrap: balance;
}
.section-h .hl { color: var(--blue); }
.section-h--light { color: #fff; }
.section-h--light .hl { color: var(--blue-soft); }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn__ic { display: inline-flex; }

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 24px -8px rgba(26, 115, 255, 0.55);
}
.btn--primary:hover { box-shadow: 0 12px 30px -8px rgba(26, 115, 255, 0.68); transform: translateY(-1px); }

.btn--ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.btn--quiet:hover { border-color: var(--ink); }

.btn--ondark { color: var(--paper); border-color: rgba(251, 249, 250, 0.28); background: transparent; }
.btn--ondark:hover { border-color: rgba(251, 249, 250, 0.6); }

.btn--lg { --h: 54px; padding: 0 28px; font-size: 16px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: var(--shell);
  margin: 20px auto 0;
  padding: 16px var(--pad);
  background: #fff;
  border-radius: 100px;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 34px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--slate); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { height: 40px; }

@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ============================================================
   HERO: centered belief statement
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 148px) var(--pad) clamp(64px, 9vw, 120px);
  text-align: center;
}
.hero__glow {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 130%;
  background: radial-gradient(45% 45% at 50% 32%, rgba(26, 115, 255, 0.12), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__title-blue { color: var(--blue); }
.hero__sub {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--slate);
  margin: 22px auto 0;
  max-width: 34em;
  text-wrap: balance;
}

/* "keyboards", crossed out by the brand blue */
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 54%;
  height: 0.09em;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strike 0.5s ease-out 0.9s forwards;
}
@keyframes strike { to { transform: scaleX(1); } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 36px 0 22px; }
.hero__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  color: var(--slate);
  font-weight: 500;
}
.hero__note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }

/* ============================================================
   WHAT IS
   ============================================================ */
.what {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad) clamp(88px, 12vw, 150px);
  text-align: center;
}
.what__answer {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--slate);
  max-width: 42em;
  margin: 20px auto 0;
  text-wrap: pretty;
}
.what__answer--tight { margin-top: 10px; }
.what__q {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  margin-top: 36px;
}

.targets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.target {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.target:hover { border-color: var(--blue); color: var(--blue-deep); }
.target strong { font-weight: 600; color: var(--ink); }
.target.is-active { background: var(--blue-tint); border-color: transparent; color: var(--blue-deep); }
.target.is-active strong { color: var(--blue-deep); }

.shot {
  position: relative;
  margin: 32px auto 0;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--blue-tint);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__ph {
  display: none;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--slate);
}
.shot.is-empty .shot__img { display: none; }
.shot.is-empty .shot__ph { display: block; }

/* ============================================================
   MODES, the signature: three live demos
   ============================================================ */
.modes {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(88px, 12vw, 150px);
}
.modes__sub { text-align: center; color: var(--slate); font-size: 16px; margin-top: 16px; }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.mode {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mode:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 115, 255, 0.35);
  box-shadow: 0 24px 48px -28px rgba(9, 13, 38, 0.28);
}
.mode__k {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  color: var(--blue);
  font-weight: 500;
}
.mode__h { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin: 12px 0 8px; }
.mode__b { color: var(--slate); font-size: 15px; }

.demo {
  margin-top: 20px;
  background: var(--navy);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 15px 15px;
  position: relative;
  overflow: hidden;
}
.demo::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(60% 40% at 80% 0%, rgba(91, 155, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.demo__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.demo__app {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 249, 250, 0.42);
}
.demo__chip {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--paper);
  background: rgba(26, 115, 255, 0.18);
  border: 1px solid rgba(91, 155, 255, 0.38);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
  margin-left: 10px;
}
.chip-in { animation: chip-in 0.25s ease; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-3px); } }

/* the round trip: you say → MindType types */
.demo__lbl {
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(251, 249, 250, 0.4);
  margin-bottom: 6px;
  position: relative;
}
.demo__lbl--type { color: rgba(91, 155, 255, 0.75); }

.demo__said {
  font-size: 13px;
  font-style: italic;
  color: rgba(251, 249, 250, 0.68);
  line-height: 1.55;
  min-height: 3.7em;
  margin-bottom: 13px;
  position: relative;
  transition: opacity 0.25s ease;
}
.saywave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 11px;
  margin-right: 7px;
}
.saywave span {
  width: 2px;
  height: 30%;
  border-radius: 2px;
  background: var(--blue-soft);
  opacity: 0.45;
}
.demo.is-listening .saywave span { opacity: 1; animation: say-eq 0.9s ease-in-out infinite; }
.demo.is-listening .saywave span:nth-child(1) { animation-delay: -0.8s; }
.demo.is-listening .saywave span:nth-child(2) { animation-delay: -0.3s; }
.demo.is-listening .saywave span:nth-child(3) { animation-delay: -0.6s; }
.demo.is-listening .saywave span:nth-child(4) { animation-delay: -0.1s; }
@keyframes say-eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.demo__out {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 10px 13px 12px;
}
.demo__text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  min-height: 6.2em;
  transition: opacity 0.25s ease;
}
.demo.is-clearing .demo__said,
.demo.is-clearing .demo__text { opacity: 0; }

/* Polished: words that got fixed flash blue as they land */
.fix {
  color: var(--blue-soft);
  border-radius: 4px;
  animation: settle 1.6s ease 0.15s forwards;
}
@keyframes settle { to { color: var(--paper); } }

/* Composer: the completed thought stays blue, it's MindType's writing */
.compose { color: var(--blue-soft); }

.caret {
  display: inline-block;
  width: 2.5px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--blue-soft);
  border-radius: 2px;
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.modes__cta { display: flex; justify-content: center; margin-top: 36px; }

@media (max-width: 880px) { .mode-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================================================
   START: dark band, a real 1-2-3 sequence
   ============================================================ */
.start { background: var(--navy); color: var(--paper); position: relative; }
.start::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 85% 0%, rgba(26, 115, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.start__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--pad);
  position: relative;
}
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 56px;
}
.step {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(251, 249, 250, 0.16);
  border-radius: 16px;
  padding: 20px 24px;
}
.step--lead {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 16px 40px -16px rgba(26, 115, 255, 0.6);
}
.step__n {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-soft);
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 249, 250, 0.22);
  border-radius: 50%;
}
.step--lead .step__n { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.step__b { color: rgba(251, 249, 250, 0.72); font-size: 15.5px; }
.step__b strong { color: #fff; font-weight: 600; }
.step--lead .step__b { color: rgba(255, 255, 255, 0.88); }

@media (max-width: 560px) {
  .step { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   WHY: the numbers, then the security and privacy panel
   ============================================================ */
.why {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--pad);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 28px;
  text-align: center;
}
.stat__k {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  color: var(--blue);
  font-weight: 500;
}
.stat__n {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue);
}
.stat__b { color: var(--slate); font-size: 15px; margin-top: 6px; text-wrap: balance; }

.privacy {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  margin-top: 20px;
}
.privacy__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--blue);
}
.privacy__lock { display: inline-flex; color: var(--blue); }
.privacy__h { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.01em; text-wrap: balance; margin-top: 12px; }
.privacy__b { color: var(--slate); font-size: 15px; margin-top: 10px; }

.privacy__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.privacy__card {
  background: var(--blue-tint);
  border-radius: 14px;
  padding: 16px 18px;
}
/* With an odd number of cards, let the last one span the full row so the grid
   reads as intentional instead of leaving an empty cell. */
.privacy__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.privacy__k {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.privacy__k::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.6 9 10 3' fill='none' stroke='%230b5be0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.privacy__d { color: var(--slate); font-size: 13.5px; margin-top: 7px; line-height: 1.5; }

.why__cta { display: flex; justify-content: center; margin-top: 40px; }

@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; margin-top: 40px; }
  .privacy { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .privacy__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(96px, 13vw, 160px);
}
.pricing__answer {
  text-align: center;
  color: var(--slate);
  font-size: clamp(16px, 1.7vw, 19px);
  max-width: 36em;
  margin: 18px auto 0;
  text-wrap: balance;
}
.plans {
  display: grid;
  grid-template-columns: 200px repeat(3, 272px);
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin-top: 56px;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan--mid {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--blue), 0 30px 60px -30px rgba(26, 115, 255, 0.4);
}
.plan__badge {
  position: absolute;
  top: -12px;
  right: 26px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--grad);
  padding: 5px 12px;
  border-radius: 999px;
}
.plan__name { font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--slate); }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 18px; }
.plan__num { font-family: var(--f-display); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; }
.plan__per { color: var(--slate); font-size: 15px; }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; font-size: 15px; }
.plan__list li { position: relative; padding-left: 26px; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.6 9 10 3' fill='none' stroke='%230b5be0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan__save {
  margin-top: auto;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.plan__save-ic {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.plan__save-ic svg { width: 16px; height: 16px; display: block; }
.plan__save-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.25; min-width: 0; }
.plan__save-val { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.plan__save-sub { font-size: 12px; font-weight: 500; color: var(--slate); }

/* Tier 1 - Free: quiet, neutral */
.plan__save--t1 { background: rgba(100, 116, 139, 0.06); border-color: rgba(100, 116, 139, 0.14); }
.plan__save--t1 .plan__save-ic { background: rgba(100, 116, 139, 0.14); color: #475569; }
.plan__save--t1 .plan__save-val { color: #334155; }

/* Tier 2 - Light: fresh green, tinted chip */
.plan__save--t2 { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.18); }
.plan__save--t2 .plan__save-ic { background: rgba(16, 185, 129, 0.16); color: #059669; }
.plan__save--t2 .plan__save-val { color: #047857; }

/* Tier 3 - Pro: solid brand-gradient chip, it pops */
.plan__save--t3 { background: rgba(26, 115, 255, 0.09); border-color: rgba(26, 115, 255, 0.2); }
.plan__save--t3 .plan__save-ic { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(26, 115, 255, 0.6); }
.plan__save--t3 .plan__save-val { color: #0b5be0; }

/* Tier 4 - Unlimited: premium gold, biggest payoff */
.plan__save--t4 { background: rgba(217, 119, 6, 0.09); border-color: rgba(217, 119, 6, 0.22); }
.plan__save--t4 .plan__save-ic { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; box-shadow: 0 6px 14px -6px rgba(217, 119, 6, 0.65); }
.plan__save--t4 .plan__save-val { color: #b45309; }

.plan__cta { justify-content: center; }

.pricing__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

@media (max-width: 1120px) { .plans { grid-template-columns: repeat(2, minmax(0, 300px)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px var(--pad) 48px;
  border-top: 1px solid var(--line);
}
.foot__top {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
}
.foot__logo { height: 27px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--slate); }
.foot__links a:hover { color: var(--ink); }
.foot__legal { margin-top: 18px; font-size: 13px; color: var(--slate); }
.foot__kiitos { color: var(--blue); font-weight: 500; }
.foot__kiitos:hover { color: var(--blue-deep); }

@media (max-width: 720px) {
  .foot__links { margin-left: 0; width: 100%; }
}

/* ============================================================
   LEGAL PAGES  (privacy / terms)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad) clamp(72px, 10vw, 120px);
}
.legal__head { margin-bottom: clamp(32px, 5vw, 52px); }
.legal__kicker {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 16px;
}
.legal__title {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(34px, 6vw, 56px);
}
.legal__title .hl { color: var(--blue); }
.legal__meta {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.legal__lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--slate);
  text-wrap: pretty;
}

.legal__toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.legal__toc h2 {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--slate);
  font-weight: 500;
  margin-bottom: 14px;
}
.legal__toc ol {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 32px;
  font-size: 14.5px;
}
.legal__toc li { counter-increment: toc; padding: 4px 0; break-inside: avoid; }
.legal__toc a { color: var(--slate); display: flex; gap: 10px; }
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--blue);
  padding-top: 2px;
}
.legal__toc a:hover { color: var(--ink); }

.legal__section { padding-top: 14px; margin-bottom: 34px; scroll-margin-top: 110px; }
.legal__section h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.legal__section h2 .n {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  flex: none;
}
.legal__section h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16.5px;
  margin: 20px 0 8px;
}
.legal p { color: var(--slate); font-size: 15.5px; margin-bottom: 12px; }
.legal a:not(.btn):not(.brand):not(.foot__kiitos) { color: var(--blue-deep); font-weight: 500; }
.legal a:not(.btn):not(.brand):not(.foot__kiitos):hover { text-decoration: underline; }
.legal ul { list-style: none; margin: 4px 0 16px; display: flex; flex-direction: column; gap: 9px; }
.legal ul li {
  position: relative;
  padding-left: 26px;
  color: var(--slate);
  font-size: 15.5px;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.legal ul li strong { color: var(--ink); font-weight: 600; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 14px;
}
.legal__table th, .legal__table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--slate);
}
.legal__table th {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 500;
}
.legal__table tr:last-child td { border-bottom: none; }
.legal__table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

.legal__note {
  background: var(--blue-tint);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 8px 0 20px;
}
.legal__note p { color: var(--blue-deep); margin: 0; }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 28px;
}
.legal__back:hover { color: var(--blue); }

@media (max-width: 620px) {
  .legal__toc ol { columns: 1; }
}

/* ============================================================
   DOWNLOAD DIALOG
   ============================================================ */
.get {
  margin: auto; /* the global reset removes the UA centering */
  border: none;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  padding: 40px 36px 34px;
  width: min(92vw, 420px);
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(9, 13, 38, 0.5);
}
.get::backdrop {
  background: rgba(3, 4, 21, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.get[open] { animation: get-in 0.22s ease-out; }
@keyframes get-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.get__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--slate);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.get__close:hover { color: var(--ink); border-color: var(--ink); }
.get__icon {
  margin: 0 auto 16px;
  border-radius: 15px;
  box-shadow: 0 12px 28px -10px rgba(26, 115, 255, 0.4);
}
.get__h {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.get__b { color: var(--slate); font-size: 15px; margin: 10px 0 24px; text-wrap: balance; }
.get__actions { display: flex; flex-direction: column; gap: 10px; }
.get__actions .btn { width: 100%; justify-content: center; }
.get__fine {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--slate);
}

/* ============================================================
   Scroll reveals (class applied by JS; no-JS stays visible)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .strike::after { animation: none; transform: scaleX(1); }
  .fix { animation: none; color: var(--blue-soft); }
  .get[open] { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
