@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("./assets/fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0d1b2a;
  --ink: #1e2f42;
  --slate: #4e6e99;
  --slate-dark: #3f5f86;
  --cream: #f7f3ec;
  --paper: #fffdf7;
  --fog: #efe8dc;
  --white: #ffffff;
  --teal: #1f6f61;
  --coral: #9f4c44;
  --muted: rgba(30, 47, 66, 0.72);
  --muted-strong: rgba(30, 47, 66, 0.86);
  --border: rgba(13, 27, 42, 0.16);
  --border-strong: rgba(13, 27, 42, 0.3);
  --shadow-sm: 0 4px 10px rgba(13, 27, 42, 0.07);
  --shadow-md: 0 8px 18px rgba(13, 27, 42, 0.09);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 6px;
  --radius-input: 10px;
  --radius-pill: 999px;
  --shell: min(1160px, calc(100% - 4rem));
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --section-space: clamp(3.5rem, 6vw, 5.5rem);
  --motion-fast: 160ms;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --accent: "Newsreader", Georgia, serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--cream);
  font-family: var(--body);
  font-size: 1rem;
  /* Text keeps Inter's text optical size, as before; display headings opt in below. */
  font-optical-sizing: none;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.1rem;
  color: var(--navy);
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h2 {
  margin-bottom: 1rem;
  max-width: 18ch;
  font-size: clamp(28px, 2.8vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 1rem;
}

[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: 5rem;
}

.site-header {
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--navy);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}


.brand-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--navy);
  text-decoration: none;
}

.nav .brand-link {
  flex: 0 0 auto;
}

.brand-lockup {
  display: block;
  width: 156px;
  height: auto;
  flex: 0 0 auto;
}

.desktop-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.desktop-links a,
.mobile-menu a {
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.64rem 0.74rem;
}

.desktop-links a:hover,
.desktop-links a:focus-visible,
.desktop-links a[aria-current="page"] {
  color: var(--navy);
  background: var(--fog);
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  width: var(--shell);
  margin: 0 auto;
  padding: var(--space-2) 0 var(--space-4);
  border: 0;
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  background: var(--cream);
  pointer-events: auto;
}

.mobile-menu a {
  width: 100%;
  padding: 0.82rem 0.95rem;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--navy);
  background: var(--fog);
}

.mobile-menu.is-open {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background var(--motion-fast) ease-out, border-color var(--motion-fast) ease-out, transform var(--motion-fast) ease-out;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn:active:not(:disabled),
.menu-button:active {
  transform: translateY(1px);
}

.btn-primary {
  color: var(--cream);
  background: var(--navy);
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ink);
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--paper);
}

.btn-secondary:hover {
  background: var(--fog);
  border-color: var(--navy);
}

.header-actions .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--slate-dark);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  color: var(--navy);
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  /* Holds the previous hero's line breaks, so they don't change (and the
     heading doesn't jump) when Inter replaces its fallback font on load. */
  max-width: 12em;
  margin-bottom: 1.4rem;
  color: var(--navy);
}

.hero h1 > span {
  display: block;
  color: var(--slate);
  text-wrap: balance;
}

.accent {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  font-size: 1.12em;
  /* The larger italic must not add height to its line. */
  line-height: 0;
  letter-spacing: -0.01em;
  color: var(--slate);
}

.hero .eyebrow {
  color: var(--ink);
  margin-bottom: var(--space-5);
}

/* Where the eyebrow can't fit on one line, it breaks only after its comma. */
.hero .eyebrow .nowrap {
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 32rem;
  margin-bottom: var(--space-8);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  margin-bottom: 1.25rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: var(--slate-dark);
  text-decoration-thickness: 2px;
}

.link-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link:active {
  color: var(--navy);
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.hero-visual {
  display: grid;
  place-items: center;
  margin: 0;
}

.hero-pebbles {
  width: 100%;
  max-width: 440px;
  height: auto;
}

.hero-footnote {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: var(--space-6);
  margin-top: var(--space-10);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-footnote i {
  padding-inline: 0.6rem;
  font-style: normal;
  color: var(--slate-dark);
}

.section {
  padding: var(--section-space) 0;
}

section[id] {
  scroll-margin-top: 1rem;
}

.brief-section,
.student-section,
.chatbot-section,
.faq-section {
  background: var(--cream);
}

.product-preview-section {
  background: var(--paper);
  border-block: 1px solid var(--border);
}

.split-intro,
.integrity-grid,
.student-grid,
.faq-layout,
.final-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split-intro > p,
.student-notes p,
.preview-copy-wrap > p {
  max-width: 60ch;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.65;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(1.6rem, 3.6vw, 3rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workflow article {
  min-height: 0;
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--border);
}

.workflow article:last-child {
  border-right: 0;
}

.workflow span {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--slate-dark);
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
}

.workflow p,
.integrity-list p,
.faq-list p,
.preview-copy p,
.final-cta-copy p,
.beta-checklist,
.privacy-note {
  margin-bottom: 0;
}

.product-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.preview-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: var(--space-6) 0;
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--fog);
}

.preview-tab {
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: var(--radius-input);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--motion-fast) ease-out, color var(--motion-fast) ease-out;
}

.preview-tab:hover:not(.active) {
  background: var(--paper);
}

.preview-tab.active {
  color: var(--cream);
  background: var(--navy);
}

/* Only anchor destinations reached by a pointer omit their focus outline. */
[data-anchor-focus="pointer"][tabindex="-1"]:focus {
  outline: none;
}

[data-anchor-focus="keyboard"]:focus,
.menu-button:focus-visible,
.preview-tab:focus-visible,
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--slate-dark);
  outline-offset: 3px;
}

.preview-copy {
  max-width: 560px;
  padding-top: var(--space-2);
}

.preview-copy h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.preview-copy ul,
.beta-checklist {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.preview-phone-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
}

.preview-panel {
  width: 100%;
  max-width: 360px;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.preview-panel img {
  width: 100%;
  height: auto;
}

.preview-panel a {
  display: block;
}

.preview-panel:not(.active) {
  display: none;
}

.preview-panel:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 5px;
}

.demo-caption {
  margin-top: 1.8rem;
  font-size: 0.82rem;
}

.integrity-section a {
  color: var(--cream);
  text-underline-offset: 0.2em;
}

.integrity-section :focus-visible,
.integrity-section [data-anchor-focus="keyboard"]:focus {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.integrity-section {
  padding-top: 0;
  color: var(--cream);
  background: var(--cream);
}

.integrity-grid {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--navy);
}

.integrity-section h2,
.integrity-section .eyebrow {
  color: var(--white);
}

.integrity-list {
  display: grid;
  gap: 1rem;
}

.integrity-list article {
  padding: 1.1rem 0 1.25rem;
  border-bottom: 1px solid rgba(247, 243, 236, 0.16);
}

.integrity-list article:first-child {
  padding-top: 0;
}

.integrity-list h3 {
  color: var(--white);
}

.integrity-list p {
  color: rgba(247, 243, 236, 0.72);
}

.student-notes {
  display: grid;
  gap: 1rem;
}

.student-reality-list {
  display: grid;
  gap: var(--space-6);
  padding-top: 0.25rem;
}

.student-reality-list article {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.student-reality-list h3 {
  margin-bottom: 0.25rem;
}

.student-reality-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.chatbot-section {
  padding-top: 0;
}

.chatbot-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.25rem 0 0;
  list-style: none;
}

.chatbot-list li {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-list details {
  border-bottom: 1px solid var(--border-strong);
}

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

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 24px;
  color: var(--slate-dark);
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:hover {
  color: var(--slate-dark);
}

.faq-list p {
  padding: 0 0 1.25rem;
}

.faq-list a,
.privacy-note a,
.legal-shell a {
  color: var(--slate-dark);
  font-weight: 600;
}

.legal-shell .btn-primary {
  color: var(--white);
}

.final-cta {
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.final-cta-panel {
  align-items: start;
}

.final-cta-copy {
  padding-block: 1rem;
}

.signup-pebbles {
  width: clamp(11rem, 20vw, 16rem);
  max-width: 100%;
  height: auto;
  margin-top: var(--space-8);
}

.final-cta .eyebrow {
  color: var(--slate-dark);
}

.beta-form {
  display: grid;
  gap: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.form-field {
  display: grid;
  gap: var(--space-2);
  color: var(--ink);
  font-weight: 600;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field > span,
.form-field > label,
.check-field span {
  font-size: 0.875rem;
  line-height: 1.35;
}

.form-field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #7a8794;
  border-radius: var(--radius-input);
  color: var(--navy);
  background: var(--paper);
  transition: border-color var(--motion-fast) ease-out, background var(--motion-fast) ease-out;
}

input,
select {
  min-height: 3.25rem;
  padding: 0.75rem 0.86rem;
}

textarea {
  min-height: 7rem;
  padding: 0.85rem;
  resize: vertical;
}

[aria-invalid="true"] {
  border-color: var(--coral);
}

.field-error {
  color: var(--coral);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.consent-group {
  display: grid;
  gap: 0.55rem;
}

.check-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--muted-strong);
}

.check-field input {
  width: 1.05rem;
  height: 1.05rem;
  min-height: auto;
  margin-top: 0.2rem;
}

.privacy-note,
.form-status {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.3rem;
  margin: 0;
}

.form-status[data-tone="success"] {
  color: var(--teal);
}

.form-status[data-tone="error"] {
  color: var(--coral);
}

.site-footer {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--navy);
  background: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 0.42fr));
  gap: 2rem;
}

.footer-brand p,
.footer-grid > div:first-child p {
  max-width: 330px;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-column h2,
.footer-column h3 {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: 0;
}

.footer-column a,
.footer-column p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  min-height: 32px;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-page {
  background: var(--cream);
}

.legal-main {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
}

.legal-shell {
  display: grid;
  gap: var(--space-4);
  max-width: 800px;
  padding-block: var(--space-6);
}

.legal-shell h1 {
  margin-bottom: 0.25rem;
  color: var(--navy);
  max-width: 20ch;
  margin-bottom: var(--space-5);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.12;
}

.legal-shell h2 {
  margin: 1.25rem 0 0.2rem;
  font-family: var(--body);
  max-width: none;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.legal-shell ul {
  margin-top: 0;
  color: var(--muted);
}

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

.legal-card {
  padding: var(--space-6);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.legal-card h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-card p {
  margin-bottom: 0;
}

.guide h1 {
  max-width: 24ch;
}

.guide .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.guide .eyebrow a:hover,
.guide .eyebrow a:focus-visible {
  text-decoration: underline;
}

.guide h3 {
  margin: var(--space-4) 0 0;
}

.guide ol {
  margin-top: 0;
  color: var(--muted);
}

.guide li + li {
  margin-top: var(--space-2);
}

.guide-meta,
.guide-note {
  font-size: 0.875rem;
}

.guide-meta {
  margin: 0 0 var(--space-4);
}

.guide-example,
.guide-template {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.guide-example .eyebrow,
.guide-example p {
  margin: 0;
}

.guide-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.guide-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.guide-table th,
.guide-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: var(--ink);
  font-weight: 600;
}

.guide-table td {
  color: var(--muted);
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-template h3 {
  margin: var(--space-3) 0 0;
}

.guide-template h3:first-child {
  margin-top: 0;
}

.guide-template ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-template li {
  margin: 0;
  padding: var(--space-3) 0 var(--space-8);
  border-bottom: 1px dashed var(--border-strong);
}

.guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.guide-cta {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  margin-top: var(--space-8);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--navy);
}

.legal-shell .guide-cta h2 {
  margin: 0;
  padding-top: 0;
  border-top: 0;
  color: var(--white);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.legal-shell .guide-cta p {
  margin: 0;
  color: rgba(247, 243, 236, 0.72);
}

.legal-shell .guide-cta .guide-cta-note {
  font-size: 0.875rem;
}

.legal-shell .guide-cta .btn-primary {
  color: var(--navy);
  background: var(--cream);
}

.legal-shell .guide-cta .btn-primary:hover,
.legal-shell .guide-cta .btn-primary:focus-visible {
  background: var(--white);
}

.guide-cta :focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

@media print {
  .guide-page .skip-link,
  .guide-page [data-site-header],
  .guide-page [data-site-footer],
  .guide-page .guide-cta {
    display: none;
  }

  .guide-page .guide-table {
    min-width: 0;
  }
}

.recovery-main {
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
}

.recovery-shell {
  display: grid;
  gap: 1.25rem;
  max-width: 720px;
}

.recovery-intro,
.recovery-card,
.recovery-support,
.recovery-link-button {
  width: 100%;
}

.recovery-intro h1 {
  margin-bottom: 0.8rem;
  color: var(--navy);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.12;
}

.recovery-intro > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}

.recovery-card {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.recovery-card[hidden],
.recovery-link-button[hidden] {
  display: none;
}

.recovery-card h2 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-family: var(--body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.recovery-card form,
.recovery-fields {
  display: grid;
  gap: 1rem;
}

.password-field-wrap {
  position: relative;
  display: block;
}

.password-field-wrap input {
  padding-right: 5rem;
  font-weight: 500;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  min-width: 4.25rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--slate-dark);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 600;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(78, 110, 153, 0.1);
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.recovery-submit {
  width: 100%;
  cursor: pointer;
}

.recovery-request-card input {
  font-weight: 500;
}

.recovery-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.recovery-card .form-status {
  min-height: 1.45rem;
}

.recovery-link-button {
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 0;
  color: var(--slate-dark);
  background: transparent;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.recovery-link-button:hover,
.recovery-link-button:focus-visible {
  color: var(--navy);
}

.recovery-support {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.recovery-support a {
  color: var(--slate-dark);
  font-weight: 600;
}

.recovery-page :focus-visible {
  outline: 3px solid var(--slate-dark);
  outline-offset: 3px;
}

/* Signup keeps the existing API fields, with progressive disclosure in JavaScript. */
.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step legend {
  margin-bottom: 0.5rem;
  padding: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
}

.form-help,
.form-progress {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted-strong);
}

.form-progress {
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--slate-dark);
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.form-optional {
  margin-block: 1rem;
  font-size: 0.9rem;
}

.form-optional summary {
  min-height: 44px;
  padding-block: 0.65rem;
  cursor: pointer;
}

.form-optional .form-field {
  margin-top: 0.75rem;
}

.form-step > .btn,
.form-actions {
  margin-top: 1.1rem;
}

.field-error:empty {
  display: none;
}

.check-field {
  min-height: 44px;
  padding-block: 0.4rem;
  cursor: pointer;
}

.check-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
}

.check-field em {
  font-style: normal;
}

.form-status:focus {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.beta-form > .form-status:empty {
  min-height: 0;
}

.beta-form > .form-status:not(:empty) {
  margin-top: var(--space-6);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

input,
select,
textarea {
  font-size: 16px;
  font-weight: 400;
}

input::placeholder,
textarea::placeholder {
  color: #64717e;
  opacity: 1;
}

.form-step .form-grid {
  row-gap: 1rem;
}

@media (min-width: 1061px) {
  .mobile-menu.is-open {
    display: none;
  }
}

@media (max-width: 1060px) {
  .desktop-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    flex-shrink: 0;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (min-width: 900px) {
  h1 {
    letter-spacing: -0.035em;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 2.5rem);
    --section-space: 3rem;
  }

  [data-site-header] {
    min-height: 4.5rem;
  }

  .nav {
    min-height: 4.5rem;
    gap: 0.65rem;
  }

  .nav .brand-link {
    gap: var(--space-2);
  }

  .nav .brand-lockup {
    width: 114px;
  }

  .header-actions .btn {
    min-height: 44px;
    padding: var(--space-3);
    font-size: 0.75rem;
  }

  .menu-button {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: var(--space-8);
  }

  .hero-grid,
  .product-preview-grid,
  .split-intro,
  .integrity-grid,
  .student-grid,
  .faq-layout,
  .final-cta-panel {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero h1 {
    margin-bottom: 1rem;
  }

  .hero .eyebrow {
    font-size: 0.6875rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.3rem;
  }

  .hero-actions {
    gap: var(--space-2) var(--space-4);
    margin-bottom: 0.75rem;
  }

  .hero-actions .btn,
  .hero-actions .text-link {
    font-size: 0.875rem;
  }

  .hero-actions .btn {
    padding-inline: var(--space-4);
  }

  .hero-note {
    font-size: 0.8125rem;
  }

  /* Keep the owner-supplied artwork, but let the product arrive sooner on phones. */
  .hero-pebbles {
    width: min(42%, 9rem);
  }

  .signup-pebbles,
  .hero-footnote {
    display: none;
  }

  /* On phones the screenshot follows the tabs directly; DOM and focus order are unchanged. */
  .product-preview-grid {
    gap: 0;
  }

  .preview-copy-wrap {
    display: contents;
  }

  .preview-phone-wrap {
    order: 1;
    margin-bottom: 0.75rem;
  }

  .preview-copy {
    order: 2;
  }

  .demo-caption {
    order: 3;
  }

  .preview-tabs {
    width: 100%;
    margin-top: 1rem;
  }

  .preview-tab {
    padding-inline: 0.35rem;
    font-size: 0.88rem;
  }

  .preview-copy {
    padding-top: 0.65rem;
  }

  .preview-copy ul {
    display: none;
  }

  .demo-caption {
    margin-top: 1rem;
  }

  .preview-panel {
    max-width: 400px;
    border-radius: var(--radius-md);
  }

  .workflow {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }

  .workflow article {
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .workflow article:last-child {
    border-bottom: 0;
  }

  .workflow span {
    margin-bottom: 0.7rem;
  }

  .form-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-column a {
    min-height: 44px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .legal-shell h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.15;
  }
}

@media (max-width: 480px) {
  /* Phones keep the second sentence on two lines, as before, for the same reason. */
  .hero h1 > span {
    max-width: 7.5em;
  }
}

@media (max-width: 360px) {
  :root {
    --shell: calc(100% - 2rem);
  }

  .nav .brand-lockup {
    width: 94px;
  }

  .nav .brand-link {
    gap: 6px;
  }

  .nav {
    gap: 0.45rem;
  }

  .header-actions .btn {
    padding-inline: 10px;
    font-size: 0.75rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled),
  .menu-button:active {
    transform: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
