/* ---------- Tokens ---------- */
:root {
  --ink-strong: #1E3A8A;
  --ink-on-blue: #ffffff;
  --accent: #3B66E6;
  --accent-deep: #2B4FC4;
  --card-top: #6A93FF;
  --card-bottom: #3F6BEB;
  --positive: #B9FFB0;
  --negative: #FFC4C4;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --bg-start: #E2EAFF;
  --bg-end: #9DA5FF;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px -12px rgba(30, 58, 138, 0.45);
  --shadow-card: 0 22px 45px -18px rgba(30, 58, 138, 0.55);
  --font-display: 'IM Fell English SC', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.25rem 3rem;
  font-family: var(--font-body);
  line-height: 1.5;
  text-align: center;
  color: var(--ink-strong);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
  -webkit-font-smoothing: antialiased;
}

section,
.main,
.foot,
.nav {
  max-width: 1100px;
  margin-inline: auto;
}

/* ---------- Header ---------- */
.head {
  display: table;
  margin: 2.5rem auto 0;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--accent);
  background: var(--surface);
  border: 3px solid var(--surface-solid);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.head small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  opacity: 0.85;
}

/* ---------- Quick nav ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.nav a {
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Section titles ---------- */
.section-title {
  margin: 3.5rem auto 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  color: var(--accent);
}

.main > .section-title {
  flex-basis: 100%;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 1 300px;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  padding: 2rem 1.5rem 1.75rem;
  color: var(--ink-on-blue);
  background: linear-gradient(170deg, var(--card-top) 0%, var(--card-bottom) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 55px -20px rgba(30, 58, 138, 0.65);
  }
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.price {
  margin: 0.5rem 0 1.25rem;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Divider under the price */
.price::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
}

/* ---------- Feature list inside cards ---------- */
.card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
  text-align: left;
}

.card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.card li:last-child {
  border-bottom: none;
}

/* Neutral bullet for plain items */
.card li:not(.positive, .negative)::before {
  content: "•";
  flex: 0 0 auto;
  width: 1em;
  text-align: center;
  opacity: 0.8;
}

.positive,
.negative {
  font-weight: 600;
}

.positive { color: var(--positive); }
.negative { color: var(--negative); }

.tagline {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- Welcome ---------- */
.welcome {
  margin-top: 3rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}

.steps li {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.steps--compact li {
  padding: 1.25rem 1.1rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-deep);
}

.steps p {
  font-size: 0.95rem;
}

/* ---------- Shared panels & callouts ---------- */
.panel,
.callout {
  max-width: 820px;
  margin-inline: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.panel > p,
.callout p {
  margin-bottom: 0.75rem;
  font-size: 0.97rem;
}

.callout {
  border-left: 6px solid var(--accent);
}

/* ---------- Checklist & bullets ---------- */
.checklist,
.bullets {
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.checklist li,
.bullets li {
  margin-bottom: 0.7rem;
  padding-left: 0.25rem;
}

.checklist li::marker {
  color: var(--accent);
  font-weight: 700;
}

.bullets li::marker {
  color: var(--accent);
}

/* ---------- Comparison table ---------- */
.table-wrap {
  max-width: 900px;
  margin-inline: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: center;
}

caption {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--accent-deep);
  caption-side: top;
}

th,
td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(30, 58, 138, 0.12);
  vertical-align: middle;
}

thead th {
  color: #ffffff;
  background: linear-gradient(170deg, var(--card-top) 0%, var(--card-bottom) 100%);
  font-weight: 700;
}

thead th:first-child,
tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-strong);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: rgba(226, 234, 255, 0.45);
}

/* ---------- Glossary ---------- */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin-inline: auto;
  text-align: left;
}

.glossary > div {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.glossary dt {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
}

.glossary dd {
  font-size: 0.93rem;
}

/* ---------- Button ---------- */
.buy-btn {
  display: block;
  margin-top: auto;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface-solid);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
  .buy-btn:hover {
    transform: translateY(-2px);
    background: #F3F6FF;
    box-shadow: 0 12px 22px -8px rgba(0, 0, 0, 0.4);
  }
}

.buy-btn:active {
  transform: translateY(0);
}

.buy-btn:focus-visible,
.faq summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
}

.faq details {
  margin-bottom: 0.75rem;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--accent-deep);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 3.5rem;
  font-size: 0.9rem;
}

.foot p + p {
  margin-top: 0.5rem;
}

.foot a {
  color: var(--accent-deep);
  font-weight: 600;
}

.fine-print {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .head {
    padding: 0.8rem 1.5rem;
  }

  .card {
    max-width: 100%;
  }

  .panel,
  .callout {
    padding: 1.25rem 1.1rem 1rem;
  }
}
