:root {
  --navy: #0d1b2a;
  --ink: #1e2f42;
  --slate: #4e6e99;
  --slate-dark: #3f5f86;
  --cream: #f7f3ec;
  --paper: #fffdf7;
  --fog: #e8e4dd;
  --white: #ffffff;
  --teal: #2a7f6f;
  --coral: #d4614a;
  --muted: rgba(30, 47, 66, 0.72);
  --muted-strong: rgba(30, 47, 66, 0.86);
  --border: rgba(13, 27, 42, 0.14);
  --border-strong: rgba(13, 27, 42, 0.28);
  --shadow-sm: 0 12px 28px rgba(13, 27, 42, 0.07);
  --shadow-md: 0 22px 56px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 32px 92px rgba(13, 27, 42, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shell: min(1160px, calc(100vw - 2rem));
  --display: "Fraunces", Georgia, serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  color: var(--navy);
  background: var(--cream);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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: 650;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.1rem;
  color: var(--white);
  font-size: clamp(3rem, 5vw, 5.35rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 4.8vw, 5rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0 0.65rem;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.62rem 0.7rem 0.62rem 0.9rem;
  border: 1px solid rgba(247, 243, 236, 0.18);
  border-radius: 22px;
  background: rgba(13, 27, 42, 0.92);
  box-shadow: 0 18px 46px rgba(13, 27, 42, 0.18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--white);
  text-decoration: none;
}

.brand-link img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.brand-wordmark {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

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

.desktop-links a,
.mobile-menu a {
  border-radius: var(--radius-pill);
  color: rgba(247, 243, 236, 0.78);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-links a {
  padding: 0.64rem 0.74rem;
}

.desktop-links a:hover,
.desktop-links a:focus-visible,
.desktop-links a[aria-current="page"] {
  color: var(--white);
  background: rgba(247, 243, 236, 0.1);
}

.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 rgba(247, 243, 236, 0.2);
  border-radius: 50%;
  color: var(--white);
  background: rgba(247, 243, 236, 0.08);
  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: 0.35rem;
  width: var(--shell);
  margin: 0.65rem auto 0;
  padding: 0.75rem;
  border: 1px solid rgba(247, 243, 236, 0.16);
  border-radius: 22px;
  background: rgba(13, 27, 42, 0.98);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

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

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--white);
  background: rgba(247, 243, 236, 0.1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.84rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 760;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--slate);
  box-shadow: 0 12px 30px rgba(78, 110, 153, 0.3);
}

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

.btn-secondary {
  color: var(--ink);
  border-color: var(--border-strong);
  background: rgba(255, 253, 247, 0.72);
}

.nav .btn-secondary {
  color: var(--white);
  border-color: rgba(247, 243, 236, 0.24);
  background: rgba(247, 243, 236, 0.1);
}

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

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--slate-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero {
  padding: clamp(7.4rem, 11vw, 9.5rem) 0 clamp(3rem, 5vw, 4.8rem);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(247, 243, 236, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(247, 243, 236, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #0d1b2a 0%, #102033 68%, #15273a 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.78fr);
  gap: clamp(2.4rem, 5vw, 5.2rem);
  align-items: center;
  min-height: min(650px, calc(100vh - 4rem));
}

.hero-name {
  margin-bottom: 0.4rem;
  color: rgba(247, 243, 236, 0.88);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  font-weight: 650;
  line-height: 1;
}

.hero-subtitle {
  max-width: 640px;
  margin-bottom: 1.35rem;
  color: rgba(247, 243, 236, 0.82);
  font-size: clamp(1.03rem, 1.22vw, 1.18rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-note {
  max-width: 580px;
  margin: 0;
  color: rgba(247, 243, 236, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-visual {
  display: grid;
  justify-items: end;
  align-items: center;
  min-height: 545px;
}

.phone-frame,
.preview-panel {
  margin: 0;
  overflow: hidden;
  border: 10px solid #101927;
  border-radius: 36px;
  background: #101927;
  box-shadow: var(--shadow-lg);
}

.phone-frame img,
.preview-panel img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 25px;
  filter: brightness(1.02) saturate(1.05) contrast(1.08);
}

.hero-phone {
  width: min(33vw, 312px);
  transform: rotate(2deg);
}

.section {
  padding: clamp(3.2rem, 6vw, 6rem) 0;
}

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

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

.product-preview-section {
  background: var(--paper);
}

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

.split-intro > p,
.student-notes p,
.preview-copy-wrap > p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.58;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 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: 250px;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  border-right: 1px solid var(--border);
}

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

.workflow span {
  display: inline-block;
  margin-bottom: 4rem;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.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, 0.9fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.preview-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 0.35rem;
  margin: 1.4rem 0 1rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(247, 243, 236, 0.66);
}

.preview-tab {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  color: rgba(13, 27, 42, 0.66);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

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

.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 rgba(78, 110, 153, 0.36);
  outline-offset: 3px;
}

.preview-copy {
  max-width: 560px;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

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

.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: 560px;
}

.preview-panel {
  width: min(82vw, 330px);
}

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

.integrity-section {
  color: var(--white);
  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: 0.85rem;
  padding-top: 0.25rem;
}

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

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

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

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 247, 0.62);
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: var(--ink);
  font-weight: 800;
}

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

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

.final-cta {
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0) 0%, rgba(13, 27, 42, 0.04) 100%),
    var(--cream);
}

.final-cta-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

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

.beta-form {
  display: grid;
  gap: 1rem;
}

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

.form-field {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

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

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--navy);
  background: var(--white);
}

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

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

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

.field-error {
  min-height: 1.1rem;
  color: #a84235;
  font-size: 0.78rem;
  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: #a84235;
}

.site-footer {
  padding: 3rem 0;
  color: var(--white);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 0.42fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 243, 236, 0.14);
}

.footer-brand p,
.footer-grid > div:first-child p {
  max-width: 330px;
  margin: 0.9rem 0 0;
  color: rgba(247, 243, 236, 0.66);
}

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

.footer-column h2,
.footer-column h3 {
  margin: 0 0 0.35rem;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column p {
  margin: 0;
  color: rgba(247, 243, 236, 0.66);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--white);
}

.legal-page {
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.08), transparent 20rem),
    var(--cream);
}

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

.legal-shell {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow-md);
}

.legal-shell h1 {
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-size: clamp(2.55rem, 6.8vw, 5.2rem);
  line-height: 0.98;
}

.legal-shell h2 {
  margin: 1.25rem 0 0.2rem;
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.3;
}

.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: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(247, 243, 236, 0.66);
}

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

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

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

  .header-actions .btn-secondary {
    display: none;
  }

  .hero-grid,
  .product-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-items: center;
    min-height: 520px;
  }

  .hero-phone {
    width: min(42vw, 312px);
    transform: rotate(1.5deg);
  }

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

  .workflow article:nth-child(2) {
    border-right: 0;
  }

  .workflow article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (min-width: 901px) and (max-width: 1060px) {
  .desktop-links {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .header-actions .btn-secondary {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100vw - 1.5rem);
  }

  html {
    scroll-padding-top: 6.5rem;
  }

  h1 {
    font-size: clamp(2.85rem, 13vw, 4.4rem);
    line-height: 0.98;
  }

  .site-header {
    padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
  }

  .nav {
    min-height: 3.75rem;
    border-radius: 18px;
  }

  .brand-link img {
    width: 34px;
    height: 34px;
  }

  .brand-wordmark {
    font-size: 1.45rem;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero {
    padding-top: 7.4rem;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-phone {
    width: min(78vw, 300px);
    transform: rotate(1deg);
  }

  .split-intro,
  .integrity-grid,
  .student-grid,
  .faq-layout,
  .final-cta-panel,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow article,
  .workflow article:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

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

  .preview-tabs {
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .preview-phone-wrap {
    min-height: 500px;
  }

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

@media (max-width: 430px) {
  .hero-phone,
  .preview-panel {
    width: min(82vw, 292px);
  }

  .legal-shell h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    line-height: 1.02;
  }
}

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