:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #646464;
  --line: #e3dfd8;
  --paper: #fffdfa;
  --surface: #ffffff;
  --soft: #f7f3ee;
  --orange: #ff5a1f;
  --orange-dark: #d83c06;
  --orange-soft: #fff0e8;
  --green: #087a49;
  --green-soft: #eaf8f0;
  --yellow-soft: #fff6d9;
  --shadow: 0 24px 65px rgba(23, 23, 23, 0.09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 90, 31, 0.09), transparent 31rem),
    var(--paper);
}
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  color: white;
  background: var(--orange);
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(255, 90, 31, 0.25);
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1.23rem; letter-spacing: -0.04em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.site-nav a { color: var(--muted); font-size: 0.82rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  padding: 10px 14px;
  border-radius: 11px;
  color: white !important;
  background: var(--orange);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: 44px;
  align-items: center;
  min-height: 510px;
  padding: clamp(34px, 6vw, 68px);
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 90, 31, 0.35), transparent 24rem),
    var(--ink);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 13px;
  color: #ff8a5f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-hero h1 { margin: 0; font-size: clamp(2.65rem, 6vw, 5.15rem); line-height: 0.98; letter-spacing: -0.065em; }
.lede { margin: 24px 0 0; color: rgba(255,255,255,0.78); font-size: clamp(1.04rem, 2vw, 1.25rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
}
.button.primary { color: white; background: var(--orange); }
.button.primary:hover { background: var(--orange-dark); }
.button.secondary { color: white; border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); }
.free-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 21px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 700; }
.free-line li::before { content: "✓"; margin-right: 7px; color: #7ee2aa; }

.hero-panel { padding: 24px; border: 1px solid rgba(255,255,255,0.16); border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 28px 70px rgba(0,0,0,0.24); }
.hero-panel h2 { margin: 0 0 14px; font-size: 1.35rem; }
.hero-panel p { color: var(--muted); line-height: 1.55; }
.flow-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.flow-item:last-child { border-bottom: 0; }
.flow-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: var(--orange); font-weight: 900; }
.flow-item strong { display: block; margin: 2px 0 5px; }
.flow-item small { color: var(--muted); line-height: 1.45; }

.content-section { padding: clamp(52px, 8vw, 88px) 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.05em; }
.section-heading p { margin: 15px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.section-heading p a { color: var(--orange-dark); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 30px rgba(23,23,23,0.04); }
.card h3 { margin: 0 0 9px; font-size: 1.16rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }

.example-box { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: clamp(22px, 4vw, 36px); border-radius: 22px; background: var(--soft); border: 1px solid var(--line); }
.example-side { padding: 19px; border-radius: 16px; background: white; }
.example-side span { color: var(--orange-dark); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.example-side p { margin: 9px 0 0; font-size: 1.08rem; line-height: 1.5; }
.example-arrow { color: var(--orange); font-size: 1.8rem; font-weight: 900; }

.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.prose { max-width: 820px; }
.prose h2 { margin: 42px 0 12px; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -0.035em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: #4d4d4d; line-height: 1.72; }
.prose ul, .prose ol { padding-left: 24px; }
.prose a { color: var(--orange-dark); }

.faq { display: grid; gap: 10px; }
.faq details { padding: 17px 19px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq summary { cursor: pointer; font-weight: 850; }
.faq p { margin: 12px 0 0; color: var(--muted); line-height: 1.62; }

.cta-band { margin: 12px 0 78px; padding: clamp(28px, 5vw, 50px); border-radius: 24px; text-align: center; color: white; background: var(--ink); }
.cta-band h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.05em; }
.cta-band p { max-width: 680px; margin: 14px auto 23px; color: rgba(255,255,255,0.72); line-height: 1.6; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.plan.featured { border: 2px solid var(--orange); box-shadow: var(--shadow); }
.plan-badge { display: inline-flex; padding: 6px 9px; border-radius: 99px; color: var(--orange-dark); background: var(--orange-soft); font-size: 0.75rem; font-weight: 900; }
.plan h2 { margin: 15px 0 4px; }
.plan .price { margin: 13px 0; font-size: 2.1rem; font-weight: 950; letter-spacing: -0.05em; }
.plan p, .plan li { color: var(--muted); line-height: 1.6; }

.notice-box { padding: 16px 18px; border: 1px solid #e9c264; border-radius: 14px; background: var(--yellow-soft); color: #6a4800; line-height: 1.6; }
.privacy-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.privacy-table th, .privacy-table td { padding: 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.privacy-table th { background: var(--soft); }

.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-grid h3 { margin: 0 0 10px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.footer-grid a { display: block; margin: 6px 0; text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
/* Footers with a "Free tools" column: five columns on wide screens, brand on its own row on tablets. */
@media (min-width: 851px) { .footer-grid.has-tools { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); } }
@media (min-width: 621px) and (max-width: 850px) { .footer-grid.has-tools > :first-child { grid-column: 1 / -1; } }
.date-modified { margin: 0 0 18px; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 850px) {
  .site-header { align-items: flex-start; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .page-hero { grid-template-columns: 1fr; min-height: 0; }
  .cards { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-shell { width: min(100% - 20px, 1140px); }
  .site-header { display: grid; }
  .site-nav { justify-content: flex-start; gap: 11px 15px; }
  .brand-copy small { display: none; }
  .page-hero { padding: 30px 21px; border-radius: 22px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .example-box { grid-template-columns: 1fr; }
  .example-arrow { transform: rotate(90deg); text-align: center; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .privacy-table { display: block; overflow-x: auto; }
}

/* Compact phone header: brand + app button on one row, links in one swipeable row.
   CSS only, so every link stays in the HTML for crawlers and works without JavaScript. */
@media (max-width: 620px) {
  .site-header { position: relative; gap: 10px; padding: 14px 0 6px; }
  .site-header .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; }
  .site-nav {
    flex-wrap: nowrap;
    gap: 0 18px;
    margin: 0 -10px;
    padding: 2px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-header > .brand { justify-self: start; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; padding: 9px 0; white-space: nowrap; font-size: 0.86rem; }
  .site-nav .nav-cta {
    position: absolute;
    top: 14px;
    right: 0;
    padding: 10px 13px;
    font-size: 0.86rem;
    line-height: 1.15;
  }
}

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

/* Free starter decks on the audience pages (nclex-pharmacology-flashcards, nremt-flashcards, ...). */
.deck-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: deck; }
.deck-list li { counter-increment: deck; display: grid; gap: 4px; padding: 14px 16px 14px 52px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: white; }
.deck-list li::before { content: counter(deck); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: white; background: var(--orange); font-size: 0.78rem; font-weight: 900; }
.deck-q { font-weight: 800; line-height: 1.4; }
.deck-a { color: var(--muted); line-height: 1.5; }
.deck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 0; }
.deck-fallback { color: var(--orange-dark); font-weight: 700; }
.deck-fallback[hidden] { display: none; }
@media (max-width: 760px) { .deck-list { grid-template-columns: 1fr; } }
