/* Pridiem website.
   A product site, not an advert: the real extension (its card, its list, its reminders) is
   shown large on every section. Text is near-black on white; the brand colour (--brand, a
   bright friendly blue for trust and calm) is on everything you can press, soft pastel panels
   hold the screenshots, and the calendar tile carries the red. One typeface, Archivo: tight
   and heavy for headlines, condensed for the numbers on tiles. */

@font-face {
  font-family: "Archivo TG";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --brand: #2f5cff;
  --brand-hover: #1f48e6;
  --brand-soft: #edf1ff;
  --brand-softer: #f6f8ff;
  --on-brand: #ffffff;
  --ink: #12151c;
  --text: #3b4250;
  --slate: #626a7a;
  --faint: #9aa1ae;
  --line: #e7e9ef;
  --page: #ffffff;
  --soft: #f5f6f8;
  --card: #ffffff;
  --red: #e03a3a;
  --green: #1f9d6b;
  --on-ink: #ffffff;

  /* Pastel panels behind the screenshots */
  --p-blue: #e9efff;
  --p-lilac: #f0ebff;
  --p-mint: #e3f5ec;
  --p-peach: #fff0e4;

  --shadow-card: 0 1px 2px rgba(23, 32, 51, 0.06), 0 12px 32px -10px rgba(23, 32, 51, 0.22);
  --shadow-float: 0 2px 4px rgba(23, 32, 51, 0.06), 0 30px 60px -20px rgba(23, 32, 51, 0.35);
  --font: "Archivo TG", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

/* Dark colours: used when the device is set to dark and the visitor hasn't chosen light
   with the header button, or when they've chosen dark (js/theme.js sets <html data-theme>).
   :where() keeps these at the same weight as the :root above, so nothing else changes. */
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --brand: #5a7dff;
    --brand-hover: #7391ff;
    --brand-soft: #18204a;
    --brand-softer: #121733;
    --ink: #f2f4f8;
    --text: #c9cfdb;
    --slate: #9ba3b4;
    --faint: #6f788a;
    --line: #262c3b;
    --page: #0b0e16;
    --soft: #131722;
    --card: #191e2b;
    --on-ink: #0b0e16;
    --p-blue: #16204a;
    --p-lilac: #211a45;
    --p-mint: #11291f;
    --p-peach: #2e1f14;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -12px rgba(0, 0, 0, 0.7);
    --shadow-float: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root:where([data-theme="dark"]) {
  --brand: #5a7dff;
  --brand-hover: #7391ff;
  --brand-soft: #18204a;
  --brand-softer: #121733;
  --ink: #f2f4f8;
  --text: #c9cfdb;
  --slate: #9ba3b4;
  --faint: #6f788a;
  --line: #262c3b;
  --page: #0b0e16;
  --soft: #131722;
  --card: #191e2b;
  --on-ink: #0b0e16;
  --p-blue: #16204a;
  --p-lilac: #211a45;
  --p-mint: #11291f;
  --p-peach: #2e1f14;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  --shadow-float: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }

a { color: inherit; }

img, svg { display: block; }

.hidden,
[hidden] { display: none !important; }

.nowrap { white-space: nowrap; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--text { max-width: 820px; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
}

/* ---------- Buttons: pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.98); }

.btn--sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }

/* The main action everywhere: brand colour */
.btn--ink {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 60%, transparent);
}

.btn--ink:hover { background: var(--brand-hover); }

.btn--soft { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--soft:hover { background: var(--soft); }

.btn--light { background: #ffffff; color: var(--brand); }
.btn--light:hover { background: #f1f4ff; }

/* ---------- The calendar tile ---------- */

.tile {
  display: inline-flex;
  flex-direction: column;
  flex: none;
  width: 54px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.12), 0 2px 6px -1px rgba(23, 32, 51, 0.16);
}

.tile__month {
  display: block;
  min-height: 18px;
  padding: 3px 0 2px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tile__day {
  display: block;
  padding: 2px 0 5px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 62%;
  font-variant-numeric: tabular-nums;
}

.tile--sm { width: 42px; border-radius: 10px; }
.tile--sm .tile__month { min-height: 14px; padding: 2px 0 1px; font-size: 8.5px; }
.tile--sm .tile__day { padding: 1px 0 3px; font-size: 21px; }

.tile--off { box-shadow: 0 0 0 1px var(--line); background: var(--card); }
.tile--off .tile__month { background: var(--faint); }
.tile--off .tile__day { color: var(--faint); }

/* The tile set inside the hero headline, like a word */
.tile--inline {
  display: inline-block;
  width: 0.92em;
  margin-right: 0.14em;
  vertical-align: -0.1em;
  border-radius: 0.16em;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 0.018em rgba(23, 32, 51, 0.14), 0 0.06em 0.16em rgba(23, 32, 51, 0.2);
}

.tile--inline .tile__month {
  min-height: 0;
  padding: 0.05em 0 0.03em;
  font-size: 0.17em;
  letter-spacing: 0.04em;
}

.tile--inline .tile__day {
  padding: 0 0 0.06em;
  font-size: 0.58em;
  line-height: 1.12;
  letter-spacing: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand--small .brand__name { font-size: 16px; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a { color: var(--slate); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Light/dark switch (js/theme.js). Shows the theme it switches to: a moon on light pages,
   a sun on dark ones. Hidden until the head script has run, as it needs JavaScript. */
.theme-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.tg-js .theme-toggle { display: inline-flex; }

.theme-toggle:hover {
  color: var(--ink);
  background: var(--soft);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
}

.theme-toggle__icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}

@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-header__inner { justify-content: space-between; }
}

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

.hero {
  position: relative;
  padding: 56px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 82% 30%, color-mix(in srgb, var(--brand) 16%, transparent) 0%, transparent 70%),
    radial-gradient(50% 60% at 10% 0%, var(--p-lilac) 0%, transparent 70%),
    linear-gradient(180deg, var(--brand-softer) 0%, var(--page) 100%);
}

/* A faint dot grid that fades out towards the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(23, 32, 51, 0.1);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.news-pill:hover { color: var(--ink); }

.news-pill__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 700;
}

.hero__title {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(42px, 5.6vw, 70px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__line2 { display: block; white-space: nowrap; }

.hero__lead {
  max-width: 30em;
  margin-top: 22px;
  color: var(--slate);
  font-size: 19px;
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  color: var(--slate);
  font-size: 14.5px;
}

.hero__points li {
  position: relative;
  padding-left: 22px;
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

@media (max-width: 980px) {
  .hero { padding: 40px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 560px) {
  .hero__lead { font-size: 17.5px; }
  .hero__ctas .btn { width: 100%; }
}

/* The stage: a browser with the live card, and the real popup open beside it */
/* The popup sits below the card so it never hides the card's buttons. */
.stage {
  position: relative;
  padding: 0 48px 176px 0;
}

.stage__popup {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.08), var(--shadow-float);
  transform: rotate(2deg);
}

.stage__popup img { width: 100%; height: auto; }

.stage__caption {
  position: absolute;
  left: 4px;
  bottom: 120px;
  color: var(--slate);
  font-size: 13.5px;
}

@media (max-width: 560px) {
  .stage { padding: 0 0 210px; }
  .stage__popup { width: 170px; right: 6px; }
  .stage__caption { bottom: auto; top: calc(100% - 200px); max-width: 45%; }
}

.demo {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-radius: 16px;
  background: #fbfbfb;
  color: #222;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.08), var(--shadow-float);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #ececec;
  background: #f2f2f2;
}

.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6d6d6; }

.demo__url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  color: #777;
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo__ext {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e4e9ff;
}

.demo__page {
  padding: 32px 30px;
  font-family: Georgia, "Times New Roman", serif;
}

.demo__brand { font-size: 14px; color: #555; }
.demo__plan { margin-top: 22px; font-size: 30px; font-weight: 700; color: #222; }
.demo__offer { max-width: 15em; margin-top: 8px; font-size: 16px; color: #333; }

.demo__fakebtn {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 14px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #efefef;
  font-family: system-ui, sans-serif;
  font-size: 13px;
}

.demo__line { display: block; height: 9px; margin-top: 14px; border-radius: 5px; background: #ebebeb; }
.demo__line--1 { width: 40%; margin-top: 30px; }
.demo__line--2 { width: 32%; }

/* The Pridiem card (mirrors the extension's content.css) */
.tgcard {
  position: absolute;
  top: 60px;
  right: 14px;
  width: min(352px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-areas: "tile body" "actions actions";
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.07), var(--shadow-card);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tgcard--in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tgcard { transform: none; transition: opacity 0.2s linear; }
}

.tgcard .tile { grid-area: tile; align-self: start; }

.tgcard__body { grid-area: body; min-width: 0; }

.tgcard__kind { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tgcard__text { margin-top: 2px; color: var(--text); }
.tgcard__text strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
.tgcard__source { margin-top: 6px; color: var(--slate); font-size: 12px; }

.tgcard__actions { grid-area: actions; display: flex; gap: 8px; }
.tgcard__actions .btn { height: 40px; padding: 0 18px; font-size: 14px; }

.tgcard__length {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--slate);
  font-size: 13px;
}

.tgcard__length select {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tgcard__length select option { color: #12151c; }

.tgcard--done .tile__month { background: var(--green); }

@media (max-width: 560px) {
  .demo { min-height: 450px; }
  .demo__page { padding: 196px 22px 28px; }
  .demo__plan { margin-top: 10px; }
  .tgcard { top: 54px; right: 10px; width: calc(100% - 20px); }
  .tgcard__actions { flex-wrap: wrap; }
  .tgcard__actions .btn { flex: 1 1 auto; }
}

/* ---------- Where trials hide ---------- */

.kinds { padding: 8px 0 24px; }

.kinds__lead {
  color: var(--slate);
  font-size: 16px;
  text-align: center;
}

.kinds__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.kind {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.kind__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.kind__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kind__icon--red { background: #ffe5e5; color: #d93636; }
.kind__icon--pink { background: #ffe6f3; color: #d0367f; }
.kind__icon--blue { background: #e6edff; color: #2f5cff; }
.kind__icon--teal { background: #dcf5f1; color: #138a7a; }
.kind__icon--orange { background: #ffeddc; color: #d46a10; }
.kind__icon--violet { background: #eee8ff; color: #6a4cff; }
.kind__icon--sky { background: #def3ff; color: #1885c4; }
.kind__icon--amber { background: #fff3d1; color: #b07800; }

/* ---------- Features ---------- */

.features { padding: 64px 0 40px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
  padding: 56px 0;
}

.feature--flip .feature__text { order: 2; }

.feature__title {
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.feature__lead { margin-top: 16px; color: var(--slate); font-size: 18px; }

.feature__points {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.feature__points li {
  position: relative;
  padding: 7px 0 7px 32px;
  color: var(--text);
  font-size: 16px;
}

.feature__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.feature__points li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.feature__note { margin-top: 20px; color: var(--slate); font-size: 15px; }

.feature__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 44px 32px;
  border-radius: 32px;
  overflow: hidden;
}

.feature__panel--blue { background: var(--p-blue); }
.feature__panel--lilac { background: var(--p-lilac); }
.feature__panel--mint { background: var(--p-mint); }
.feature__panel--peach { background: var(--p-peach); }

.feature__shot {
  display: block;
  width: 340px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.08), var(--shadow-float);
}

.feature__shot img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature--flip .feature__text { order: 0; }
  .feature__panel { min-height: 0; padding: 32px 18px; border-radius: 24px; }
}

/* A Chrome notification, as it appears on the desktop */
.notif {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.06), var(--shadow-float);
}

.notif--back {
  position: absolute;
  z-index: 0;
  top: calc(50% - 116px);
  left: 50%;
  width: calc(100% - 96px);
  max-width: 340px;
  padding-bottom: 40px;
  opacity: 0.55;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.06), var(--shadow-card);
}

.notif__head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--slate);
  font-size: 12.5px;
}

.notif__head span { margin-left: auto; color: var(--slate); }

.notif__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.notif__body > img { flex: none; border-radius: 9px; }

.notif__title { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.notif__text { margin-top: 3px; color: var(--slate); font-size: 14px; line-height: 1.4; }

.notif__btns { display: flex; gap: 8px; margin-top: 12px; }

.notif__btns span {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Reads the small print (inside a panel) */
.reads {
  width: 100%;
  max-width: 480px;
  padding: 0;
  list-style: none;
}

.read {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.05), var(--shadow-card);
}

.read + .read { margin-top: 12px; }

.read__quote {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.4;
}

.read__result {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
}

.read__result b { color: var(--ink); white-space: nowrap; }

.read--quiet .read__quote,
.read--quiet .read__result { color: var(--slate); }

/* ---------- Generic sections ---------- */

.section { padding: 96px 0; }
.section--soft { background: var(--soft); }

@media (max-width: 760px) {
  .section { padding: 72px 0; }
}

.section__title {
  color: var(--ink);
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.section__lead { max-width: 36em; margin-top: 14px; color: var(--slate); font-size: 18.5px; }

.section__title--center,
.section__lead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Privacy */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; }
}

.fact {
  padding: 26px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.fact__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 14px;
  background: var(--brand-soft);
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact__title { color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.fact p { margin-top: 6px; color: var(--slate); font-size: 15.5px; }

.privacy__more { margin-top: 28px; font-weight: 600; }

.privacy__more a,
.faq a {
  color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 20px;
  margin-top: 52px;
}

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 28px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.plan--pro {
  background: linear-gradient(160deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 78%, #12151c) 100%);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--brand) 70%, transparent);
}

.plan__name { font-size: 17px; font-weight: 600; color: inherit; }

.plan__price {
  margin-top: 4px;
  color: var(--ink);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.plan--pro .plan__price { color: #ffffff; }

.plan__per { font-size: 18px; font-weight: 500; letter-spacing: 0; color: inherit; }

.plan__list { flex: 1; margin: 24px 0 28px; padding: 0; list-style: none; }

.plan__list li { position: relative; padding: 6px 0 6px 28px; font-size: 15.5px; }

.plan__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 13px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.plan--pro .plan__list li::before { border-color: #ffffff; }

.plan__cta { box-shadow: 0 0 0 1px var(--line); }

/* Questions */
.faq { margin-top: 36px; }

.faq__item {
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.faq__item + .faq__item { margin-top: 8px; }

.faq__item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 13px;
  height: 1.8px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--brand);
  transition: transform 0.2s ease;
}

.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }

.faq__item p { padding: 0 24px 22px; color: var(--slate); font-size: 16px; }

/* Closing call: one brand-coloured panel */
.closer { padding: 88px 0 96px; text-align: center; }

.closer__inner {
  padding: 88px 32px 92px;
  border-radius: 36px;
  background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--brand) 70%, #ffffff) 0%, var(--brand) 60%);
  color: rgba(255, 255, 255, 0.86);
}

.closer .btn--ink { background: #ffffff; color: var(--brand); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35); }
.closer .btn--ink:hover { background: #f1f4ff; }

@media (max-width: 560px) {
  .closer__inner { padding: 64px 20px 68px; border-radius: 26px; }
}

.closer__title {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.closer__lead { margin: 16px auto 32px; color: rgba(255, 255, 255, 0.86); font-size: 18px; }

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

.site-footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 15px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}

.site-footer__about p { max-width: 24em; margin-top: 12px; font-size: 14.5px; }

.site-footer__col { display: flex; flex-direction: column; gap: 10px; }

.site-footer__col h2 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: var(--ink); }

.site-footer__copy {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 14px;
}

/* ---------- Simple inner pages (What's new) ---------- */

.page-head {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, var(--brand-softer) 0%, var(--page) 100%);
}

.page-head__title {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.page-head__lead { margin-top: 12px; max-width: 46em; color: var(--slate); font-size: 18.5px; }

.release {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0 72px;
}

@media (max-width: 760px) {
  .release { grid-template-columns: 1fr; gap: 16px; }
}

.release__version {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 700;
}

.release__body { max-width: 720px; }

.release__body h2 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.release__body h3 {
  margin-top: 32px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.release__body ul { margin-top: 10px; padding-left: 20px; }
.release__body li { margin-top: 8px; color: var(--text); }
.release__body li::marker { color: var(--brand); }

/* ---------- Product pages (/subscription-tracker) ---------- */

.sub__ctas { margin-top: 28px; }

.sub { padding-top: 24px; padding-bottom: 88px; }

.sub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px;
  align-items: start;
}

.sub h2 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sub__steps > * + * { margin-top: 18px; }

.sub__list { padding-left: 22px; }
.sub__list li { margin-top: 14px; color: var(--text); }
.sub__list li::marker { color: var(--brand); font-weight: 700; }
.sub__list strong, .sub__facts strong { color: var(--ink); }

.sub__panel { padding: 36px 28px; border-radius: 24px; }

.sub__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.sub__facts h2 { font-size: 20px; }
.sub__facts p { margin-top: 10px; }

.sub__faq { margin-top: 72px; max-width: 820px; }
.sub__faq .faq { margin-top: 20px; }

@media (max-width: 900px) {
  .sub__grid { grid-template-columns: 1fr; gap: 32px; }
  .sub__facts { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Guides (/forgot-to-cancel-free-trial) ---------- */

.guide__checked { margin-top: 14px; color: var(--slate); font-size: 15px; }

.guide { padding: 8px 24px 88px; overflow-wrap: break-word; }
.guide > * + * { margin-top: 18px; }

.guide__answer {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.guide h2 {
  margin-top: 48px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  scroll-margin-top: 88px;
}

.guide h3 {
  margin-top: 28px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.guide h2 + p,
.guide h3 + p { margin-top: 10px; }

.guide ul { padding-left: 22px; }
.guide li + li { margin-top: 8px; }
.guide li::marker { color: var(--brand); }
.guide strong { color: var(--ink); font-weight: 650; }
.guide a:not(.btn) { color: var(--brand); text-underline-offset: 3px; }

.guide__product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.guide__product p { flex: 1 1 320px; }

.guide__sources {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.guide__sources h2 { margin-top: 24px; font-size: 20px; }
.guide__sources ul { margin-top: 12px; }
.guide__note { margin-top: 18px; color: var(--slate); }

@media (max-width: 560px) {
  .guide { padding: 0 16px 64px; }
  .guide__answer { font-size: 17px; padding: 18px; }
}

/* ---------- Stripe checkout modal ---------- */

.stripe-modal { position: fixed; inset: 0; z-index: 100; }

.stripe-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 25, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stripe-modal-outer {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: 48px 16px;
  overflow-y: auto;
  pointer-events: none;
}

.stripe-modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 30px 60px -20px rgba(12, 16, 25, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.25s ease;
  pointer-events: auto;
}

.stripe-modal.is-open .stripe-modal-backdrop,
.stripe-modal.is-open .stripe-modal-panel { opacity: 1; transform: none; }

.stripe-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--slate);
  cursor: pointer;
}

.stripe-modal-close:hover { color: var(--ink); }
.stripe-modal-close svg { width: 12px; height: 12px; }

.stripe-modal-close path,
.return-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stripe-modal-title { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.stripe-modal-subtitle { margin: 4px 0 20px; color: var(--slate); font-size: 15px; }

.stripe-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 0;
  color: var(--slate);
  font-size: 15px;
}

.tg-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: tg-spin 0.8s linear infinite;
}

@keyframes tg-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .tg-spinner { animation-duration: 2.4s; }
}

.stripe-modal-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 0 8px;
  color: var(--slate);
  text-align: center;
}
