/* Public marketing surface. Extends the app's tokens in app.css.
 *
 * These pages exist to be found and read by strangers, so they are plain
 * server-rendered HTML with no client-side rendering: the content a crawler
 * sees is the content a person sees. */

body.pub { background: var(--ground); }

/* ---------- nav ---------- */

.pub-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 40px; background: var(--ink);
  border-bottom: 1px solid #1c2b31; flex-wrap: wrap;
}
.pub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pub-brand span {
  font-family: var(--serif); font-weight: 700; font-size: 19px; color: #eaf3f4;
  letter-spacing: -.01em;
}
.pub-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pub-links a { color: #9db1b7; font-size: 14px; text-decoration: none; }
.pub-links a:hover { color: #cfe0e3; }
.pub-links a.pub-cta {
  display: flex; align-items: center; height: 42px; padding: 0 20px;
  background: var(--teal-bright); color: #04181c; font-weight: 600;
  border-radius: 3px;
}
.pub-links a.pub-cta:hover { background: #45bacd; color: #04181c; }

/* ---------- shared section rhythm ---------- */

.pub-wrap { max-width: 1060px; margin: 0 auto; padding: 0 40px; }
.pub-section { padding: 76px 0; }
.pub-section + .pub-section { border-top: 1px solid var(--rule); }
.pub-section.on-white { background: var(--surface); }
.pub-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.pub-h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; max-width: 24ch;
}
.pub-lede { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 62ch; }

/* ---------- hero ---------- */

.pub-hero { background: var(--ink); padding: 84px 0 92px; }
.pub-hero .pub-wrap {
  display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center;
}
.pub-hero h1 {
  font-family: var(--serif); font-size: clamp(36px, 5.4vw, 58px); font-weight: 700;
  line-height: 1.05; letter-spacing: -.025em; color: #f2f8f9;
  margin: 0 0 22px; max-width: 15ch; text-wrap: balance;
}
.pub-hero p { font-size: 18px; line-height: 1.6; color: #a7bcc2; max-width: 46ch; }
.pub-hero em { color: #d8e7ea; font-style: normal; }
.pub-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 14px; }
.pub-btn {
  display: inline-flex; align-items: center; height: 52px; padding: 0 28px;
  border-radius: 3px; font-size: 15px; font-weight: 600; text-decoration: none;
}
.pub-btn-primary { background: var(--teal-bright); color: #04181c; }
.pub-btn-primary:hover { background: #45bacd; color: #04181c; }
.pub-btn-ghost { border: 1px solid #33474e; color: #cfe0e3; }
.pub-btn-ghost:hover { border-color: #4a6068; color: #eaf3f4; }
.pub-note { font-family: var(--mono); font-size: 12px; color: #6d858c; }

.dial-card {
  background: #101d22; border: 1px solid #22343a; border-radius: 4px;
  padding: 30px 32px 26px;
}
.dial-card .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: #6d858c; margin-bottom: 4px;
}
.dial-card .v {
  display: flex; align-items: baseline; justify-content: center; gap: 11px;
}
.dial-card .v b {
  font-family: var(--serif); font-size: 52px; font-weight: 700; color: #f2f8f9;
  line-height: 1;
}
.dial-card .v span { font-family: var(--mono); font-size: 13px; color: #5cb98d; }

/* ---------- stat strip ---------- */

.pub-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--rule); border-block: 1px solid var(--rule);
}
.pub-stats > div { background: var(--ground); padding: 26px 32px; }
.pub-stats b {
  display: block; font-family: var(--serif); font-size: 30px; font-weight: 600;
  color: var(--teal); line-height: 1; margin-bottom: 5px;
}
.pub-stats span { font-size: 13px; color: var(--body); }

/* ---------- steps ---------- */

.pub-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.pub-step { padding-top: 22px; border-top: 2px solid var(--rule); }
.pub-step:first-child { border-top-color: var(--teal); }
.pub-step .n {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--teal); display: block; margin-bottom: 12px;
}
.pub-step h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.pub-step p { font-size: 15px; line-height: 1.62; color: var(--body); }

/* ---------- comparison ---------- */

.pub-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin-top: 40px;
}
.pub-compare > div { background: var(--surface); padding: 30px 32px; }
.pub-compare > div.ours { box-shadow: inset 3px 0 0 var(--teal); }
.pub-compare .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.pub-compare .ours .k { color: var(--teal); }
.pub-compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.pub-compare li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--body); }
.pub-compare li svg { margin-top: 2px; }

/* ---------- exam cards ---------- */

.pub-exams { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 40px; }
.pub-exam { border: 1px solid var(--rule); background: var(--surface); padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
.pub-exam .top { display: flex; align-items: center; justify-content: space-between; }
.pub-exam .code { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--teal); background: var(--teal-soft); padding: 5px 10px; }
.pub-exam h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; }
.pub-exam p { font-size: 15px; line-height: 1.6; color: var(--body); flex-grow: 1; }
.pub-exam .facts { display: flex; gap: 26px; border-top: 1px solid var(--rule-soft); padding-top: 16px; }
.pub-exam .facts div { display: flex; flex-direction: column; }
.pub-exam .facts b { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--ink); }
.pub-exam .facts span { font-size: 12px; color: var(--muted); }

/* ---------- sample questions (the SEO surface) ---------- */

.q-item { border: 1px solid var(--rule); background: var(--surface); padding: 28px 30px; margin-bottom: 22px; }
.q-item .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.q-item .stem { font-size: 17px; line-height: 1.62; color: var(--ink); margin: 0 0 20px; }
.q-opts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.q-opts li { display: grid; grid-template-columns: 28px 1fr; gap: 13px; align-items: start; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 3px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.q-opts li.right { border-color: var(--pass); background: var(--pass-soft); }
.q-opts li .l { font-family: var(--mono); font-size: 13px; font-weight: 500; width: 24px; height: 24px; border: 1px solid #c3d4d6; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.q-opts li.right .l { background: var(--pass); border-color: var(--pass); color: #fff; }
.q-note { font-size: 13px; line-height: 1.6; color: var(--muted); padding: 8px 0 0 41px; }
.q-note.right { color: var(--pass); }
.q-why { font-size: 15px; line-height: 1.62; color: var(--body); border-left: 2px solid var(--teal); padding-left: 18px; margin-top: 18px; }

/* ---------- prose (guides, legal) ---------- */

.pub-prose { max-width: 68ch; }
.pub-prose h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 44px 0 14px; letter-spacing: -.015em; }
.pub-prose h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 30px 0 10px; }
.pub-prose p { font-size: 16px; line-height: 1.68; color: var(--body); margin: 0 0 16px; }
.pub-prose ul { margin: 0 0 16px; padding-left: 22px; }
.pub-prose li { font-size: 16px; line-height: 1.68; color: var(--body); margin-bottom: 8px; }
.pub-prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.pub-prose th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--rule); }
.pub-prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink-soft); }

/* ---------- footer ---------- */

.pub-foot { background: var(--ink); padding: 44px 40px 40px; margin-top: 0; }
.pub-foot-top { max-width: 1060px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid #1c2b31; }
.pub-foot-links { display: flex; gap: 30px; flex-wrap: wrap; }
.pub-foot-links a { color: #7f959b; font-size: 13px; text-decoration: none; }
.pub-foot-links a:hover { color: #cfe0e3; }
.pub-disclaimer { max-width: 1060px; margin: 22px auto 0; font-size: 12px; line-height: 1.7; color: #5d747a; }

@media (max-width: 900px) {
  .pub-hero .pub-wrap { grid-template-columns: 1fr; gap: 40px; }
  .pub-steps { grid-template-columns: 1fr; gap: 28px; }
  .pub-compare { grid-template-columns: 1fr; }
  .pub-wrap { padding: 0 20px; }
  .pub-nav { padding: 14px 20px; }
  .pub-section { padding: 52px 0; }
}
