/* Tutor alpha site. System fonts only, no external requests. Mobile first. */

:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --tint: #efe8dc;
  --ink: #1d2433;
  --muted: #545b6b;
  --line: #ddd4c4;
  --accent: #1f5f5b;
  --accent-strong: #164845;
  --accent-soft: #e1eeeb;
  --warm: #a84b26;
  --warm-soft: #f6e3d7;
  --error: #a3271f;
  --error-soft: #fbe9e7;
  --radius: 14px;
  --sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 46rem;
}

.muted {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.brand-by {
  color: var(--muted);
  font-weight: 400;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal {
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* Buttons */

.button {
  display: inline-block;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.button-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.button-quiet {
  background: transparent;
  color: var(--accent);
}

.button-quiet:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button-light {
  background: #fff;
  border-color: #fff;
  color: var(--accent-strong);
}

.button-light:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-strong);
}

/* Sections */

.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%);
}

.hero-inner {
  max-width: 52rem;
}

.eyebrow {
  display: inline-block;
  background: var(--warm-soft);
  color: var(--warm);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.lead {
  font-size: 1.2rem;
  max-width: 44rem;
}

.hero-actions {
  margin-top: 1.5rem;
}

.reassurance {
  color: var(--muted);
  font-size: 0.95rem;
}

.band {
  padding: 3rem 0;
}

.band-tinted {
  background: var(--tint);
}

.band-accent {
  background: var(--accent);
  color: #fff;
}

.band-accent h2 {
  color: #fff;
}

.band-accent :focus-visible {
  outline-color: #fff;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 44rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
}

.card h3 {
  color: var(--accent-strong);
}

.checks,
.crosses {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checks li,
.crosses li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.checks li::before,
.crosses li::before {
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.checks li::before {
  content: "✓";
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.crosses li::before {
  content: "✕";
  background: var(--warm-soft);
  color: var(--warm);
}

.stack {
  list-style: none;
  counter-reset: stack;
  padding: 0;
  margin: 1.5rem 0;
}

.stack li {
  counter-increment: stack;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 0.4rem 3.6rem;
  margin-bottom: 0.75rem;
}

.stack li::before {
  content: counter(stack);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
}

.price-line {
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.promise {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 0.75rem;
}

.fit {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.fit-col {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 0.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 0.6rem 0 0.2rem;
}

/* Application form */

.apply-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.field {
  margin: 0 0 1.5rem;
}

fieldset.field {
  border: 0;
  padding: 0;
  min-width: 0;
}

label,
legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  padding: 0;
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid #8d8574;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

textarea {
  resize: vertical;
}

.ages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.age label {
  font-weight: 400;
  font-size: 0.95rem;
}

.choices {
  display: grid;
  gap: 0.5rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  flex: none;
  accent-color: var(--accent);
}

.choice-hint {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.has-error input[type="email"],
.has-error select,
.has-error textarea,
.has-error .choice {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.error-summary {
  border: 2px solid var(--error);
  background: var(--error-soft);
  border-radius: 10px;
  padding: 1rem 1.25rem 0.25rem;
  margin-bottom: 1.5rem;
}

.error-summary h3 {
  color: var(--error);
}

.error-summary a {
  color: var(--error);
  font-weight: 700;
}

/* Honeypot: kept off-screen rather than display:none, which some bots detect. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.steps {
  padding-left: 1.25rem;
}

.steps li {
  margin-bottom: 0.6rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
}

.draft-banner {
  background: var(--warm-soft);
  color: var(--warm);
  border: 1px solid var(--warm);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 700;
}

/* Admin */

.admin h1 {
  font-size: 2rem;
}

.narrow-box {
  max-width: 32rem;
}

.stack-form {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.stack-form .button {
  justify-self: start;
}

.notice {
  border-left: 4px solid var(--error);
  background: var(--error-soft);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filters a {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
}

.filters a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.app-head h2 {
  font-family: var(--sans);
  font-size: 1.15rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.status {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--tint);
}

.status-shortlisted,
.status-invited {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-declined {
  background: var(--error-soft);
  color: var(--error);
}

.status-waitlisted {
  background: var(--warm-soft);
  color: var(--warm);
}

.answers {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: 0.3rem 1rem;
  margin: 1rem 0;
}

.answers dt {
  color: var(--muted);
}

.answers dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.app-actions {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.button-row label {
  margin: 0;
}

.button-row input[type="email"] {
  width: auto;
  flex: 1 1 14rem;
}

.input-small {
  max-width: 10rem;
}

.inline-form {
  margin: 0;
}

.note-form {
  display: grid;
  gap: 0.4rem;
}

.note-form .button {
  justify-self: start;
}

.invite-code code {
  display: inline-block;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  border: 2px dashed var(--accent);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  overflow-wrap: anywhere;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}

caption {
  text-align: left;
  color: var(--muted);
  padding: 0.5rem 0;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

/* Wider screens */

@media (min-width: 48rem) {
  .band {
    padding: 4.5rem 0;
  }

  .hero {
    padding: 5.5rem 0 4.5rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .choices-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apply-form {
    padding: 2rem 2.25rem;
  }
}

/* Landing: the stakes line under the problem cards, and the offer's value anchor. */
.stakes {
  margin-top: 1.5rem;
  max-width: 46rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.anchor {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.band-accent .promise {
  color: var(--ink);
  margin: 1.5rem 0;
}

.band-accent .promise h3 {
  margin-top: 0;
}

/* Family privacy notice, rendered from docs/compliance. */
.legal-notice h3 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
}

.legal-notice .table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
}

.legal-notice table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.legal-notice th,
.legal-notice td {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.legal-notice thead th {
  background: var(--tint);
}

.legal-notice tbody th {
  font-weight: 600;
  min-width: 9rem;
}

.legal-notice code {
  font-size: 0.9em;
  background: var(--tint);
  border-radius: 4px;
  padding: 0 0.25rem;
}
