/* Anaesthesia Qbank — shared styles.
   Follows the godoctor.com theme: Poppins throughout, uppercase headings at
   weight 500 with tight leading, indigo pill CTAs, and the lime-to-teal
   accent gradient that the iOS app also uses. */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #09090b;
  --muted: #4a5160;
  --line: rgba(9, 9, 11, 0.1);

  --indigo: #6663f1;
  --lime: #afed69;
  --teal: #13c3b9;

  --accent-bar: linear-gradient(to right, #afed69 0%, #13c3b9 100%);
  --hero: linear-gradient(to right top, #3dc89e 0%, #8ad1ff 50%, #98ffea 100%);

  --radius: 24px;
  --max: 1120px;
  --prose: 46rem;
}

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

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--indigo);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

h1,
h2,
h3 {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 0.92;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  line-height: 1.02;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

/* The thin gradient rule godoctor.com uses to break up sections. */
.accent-bar {
  height: 4px;
  width: 100%;
  background: var(--accent-bar);
  border-radius: 999px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand small {
  font-size: 0.7em;
  font-weight: 700;
}
.brand span {
  color: var(--teal);
}
.brand:hover {
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.07);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-outline {
  border-color: var(--indigo);
  color: var(--indigo);
  background: #fff;
}

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

.hero {
  background: var(--hero);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  margin-bottom: 1.25rem;
}
.hero-lede {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  max-width: 32rem;
  color: rgba(9, 9, 11, 0.82);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: rgba(9, 9, 11, 0.7);
}

/* Placeholder for Apple's official App Store badge -- swap in the real asset
   from Apple's marketing resources once the app is live, and link it. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem 0.6rem 1rem;
  border-radius: 14px;
  background: #0b0b0f;
  color: #fff;
  line-height: 1.15;
}
.store-badge svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: currentColor;
}
.store-badge .badge-small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store-badge .badge-large {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
}
/* Device frame: a bare 19.5:9 screenshot reads as stretched without one. */
.phone {
  justify-self: center;
  position: relative;
  width: min(100%, 288px);
  padding: 11px;
  background: #0b0b0f;
  border-radius: 46px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.16) inset,
    0 30px 70px rgba(9, 13, 25, 0.32);
}
.phone::after {
  /* Dynamic Island */
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 31%;
  height: 22px;
  background: #0b0b0f;
  border-radius: 999px;
  z-index: 2;
}
.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

/* Sections ---------------------------------------------------------------- */

section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.section-soft {
  background: var(--bg-soft);
}
.centered {
  text-align: center;
}
.centered .section-lede {
  margin-inline: auto;
}
.section-lede {
  color: var(--muted);
  margin: 1rem 0 0;
  max-width: var(--prose);
  font-size: 1.02rem;
}
.section-head {
  margin-bottom: 2.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.card .accent-bar {
  width: 44px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

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

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  max-width: 780px;
  margin-inline: auto;
  text-align: left;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 18px 44px rgba(19, 195, 185, 0.16);
}
.price {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0;
  line-height: 1.1;
}
.price small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
}
.price-card ul {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.price-card li + li {
  margin-top: 0.4rem;
}
.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-bar);
  color: #09090b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

/* Prose pages ------------------------------------------------------------- */

.page-head {
  background: var(--hero);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.page-head p {
  margin: 0.75rem 0 0;
  color: rgba(9, 9, 11, 0.75);
}
.prose {
  max-width: var(--prose);
}
.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.2rem;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose strong {
  color: var(--ink);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.93rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.table-scroll {
  overflow-x: auto;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--bg-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 780px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .phone {
    order: -1;
    width: min(100%, 232px);
  }
  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

/* Screenshot gallery ------------------------------------------------------ */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.shot {
  text-align: center;
}
.shot .phone {
  width: min(100%, 232px);
  padding: 9px;
  border-radius: 38px;
}
.shot .phone::after {
  top: 18px;
  height: 18px;
}
.shot .hero-shot {
  border-radius: 30px;
}
.shot figcaption {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.shot figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
