:root {
  --bg: #f5fbfc;
  --surface: #ffffff;
  --surface-strong: #e9f8f8;
  --surface-soft: #f0f7ff;
  --text: #153447;
  --text-muted: #4f6b7b;
  --line: #cfe2eb;
  --primary: #1976d2;
  --primary-dark: #0f5aa3;
  --accent: #1fb7a6;
  --accent-dark: #12897c;
  --danger: #c2364a;
  --shadow: 0 18px 40px rgba(21, 52, 71, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 183, 166, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fdff 0%, var(--bg) 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea,
a {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

:focus-visible {
  outline: 3px solid rgba(25, 118, 210, 0.25);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.65);
}

.section-accent {
  background: linear-gradient(180deg, rgba(233, 248, 248, 0.85), rgba(240, 247, 255, 0.95));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.hero h1 {
  margin: 0 0 16px;
  line-height: 1.2;
}

.section-heading p,
.hero-text,
.info-card p,
.feature-card p,
.flow-step p,
.result-item p,
.audience-card li,
.apply-copy p,
.panel-card li {
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(248, 253, 255, 0.88);
  border-bottom: 1px solid rgba(207, 226, 235, 0.9);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--primary), #2196f3);
  color: #fff;
  box-shadow: 0 12px 24px rgba(25, 118, 210, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
}

.button-full {
  width: 100%;
}

.hero {
  padding-top: 56px;
}

.hero-layout,
.apply-layout,
.mid-cta-box {
  display: grid;
  gap: 24px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 12ch;
}

.hero-copy h1 span {
  display: block;
}

.hero-text {
  max-width: 58ch;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-shell {
  position: relative;
}

.preview-point p,
.device-caption p,
.app-nav-item,
.mission-meta,
.mission-label,
.weekly-title,
.app-stat-card span,
.weekly-card span {
  color: var(--text-muted);
}

.device-showcase {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero-device {
  padding-top: 12px;
}

.hero-device .device-frame {
  width: min(100%, 340px);
}

.hero-device .device-screen,
.hero-device .app-screen {
  min-height: 640px;
}

.hero-device .app-title {
  font-size: 1.9rem;
}

.hero-device .mission-card h3 {
  font-size: 1.75rem;
}

.device-showcase::before {
  content: "";
  position: absolute;
  inset: 10% 0 auto auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(25, 118, 210, 0.14), rgba(25, 118, 210, 0));
  pointer-events: none;
}

.device-frame {
  position: relative;
  width: min(100%, 380px);
  padding: 14px;
  border-radius: 44px;
  background: #0f1720;
  box-shadow:
    0 30px 60px rgba(10, 26, 38, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 140px;
  height: 26px;
  transform: translateX(-50%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  background: #05080b;
  z-index: 2;
}

.device-screen {
  overflow: hidden;
  min-height: 720px;
  border-radius: 32px;
  background: #f5f7fa;
  border: 1px solid rgba(21, 52, 71, 0.08);
}

.app-screen {
  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding: 34px 18px 18px;
  background:
    radial-gradient(circle at top right, rgba(31, 183, 166, 0.1), transparent 22%),
    #f4f5f7;
}

.app-header {
  padding: 32px 12px 16px;
  text-align: center;
}

.app-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-stats,
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-stat-card,
.weekly-card {
  padding: 20px 10px;
  border: 1px solid rgba(21, 52, 71, 0.08);
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
}

.app-stat-highlight {
  background: linear-gradient(180deg, #f9efb7 0%, #f1dc6d 100%);
}

.app-stat-card strong,
.weekly-card strong {
  display: block;
  margin-bottom: 6px;
  color: #1e2a44;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-stat-card span,
.weekly-card span {
  font-size: 1rem;
  font-weight: 700;
}

.mission-card {
  margin-top: 22px;
  padding: 24px 18px;
  border: 1px solid rgba(21, 52, 71, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
}

.mission-label,
.weekly-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.mission-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.2;
}

.mission-meta {
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: 700;
}

.mission-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: #f1dc6d;
  color: #1e2a44;
  font-weight: 800;
  font-size: 1.05rem;
}

.weekly-progress {
  margin-top: 26px;
}

.app-bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(21, 52, 71, 0.08);
}

.app-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 18px;
  font-weight: 800;
}

.app-nav-item.is-active {
  background: #f1dc6d;
  color: #1e2a44;
}

.device-caption {
  max-width: 340px;
  text-align: center;
}

.device-caption span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.panel-card,
.info-card,
.feature-card,
.flow-step,
.result-item,
.audience-card,
.form-shell,
.mid-cta-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(207, 226, 235, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 28px;
  min-height: 100%;
  background:
    linear-gradient(145deg, rgba(25, 118, 210, 0.08), rgba(31, 183, 166, 0.12)),
    rgba(255, 255, 255, 0.96);
}

.panel-label {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-list,
.audience-card ul {
  margin: 0;
  padding-left: 18px;
}

.summary-list li + li,
.audience-card li + li {
  margin-top: 10px;
}

.card-grid,
.result-list,
.audience-grid,
.flow-grid {
  display: grid;
  gap: 18px;
}

.info-card,
.feature-card,
.result-item,
.audience-card {
  padding: 24px;
}

.info-card:hover,
.feature-card:hover,
.flow-step:hover,
.result-item:hover,
.audience-card:hover,
.mid-cta-box:hover,
.form-shell:hover {
  transform: translateY(-4px);
}

.card-number,
.feature-badge,
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(25, 118, 210, 0.12);
}

.flow-step {
  padding: 24px;
}

.mid-cta-box {
  padding: 28px;
  align-items: center;
}

.apply-section {
  padding-bottom: 104px;
}

.form-shell {
  padding: 24px;
}

.beta-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #90a7b4;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12);
  outline: none;
}

.form-field.is-invalid input,
.form-field.is-invalid select {
  border-color: var(--danger);
}

.error-message {
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.form-status-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-status-message.is-error {
  color: var(--danger);
}

.success-message {
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(31, 183, 166, 0.12), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(31, 183, 166, 0.3);
}

.success-message h3 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid rgba(207, 226, 235, 0.9);
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0 36px;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card-grid-3,
  .result-list,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mid-cta-box {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .hero-layout,
  .apply-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
  }

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

  .result-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Hero dual phone mockup */
.hero-device {
  padding-top: 4px;
}

.hero-phones {
  position: relative;
  width: min(100%, 352px);
  height: 480px;
}

.hero-phone {
  position: absolute;
  width: 306px;
  padding: 6px;
  border-radius: 38px;
  background: #111418;
  box-shadow:
    0 22px 40px rgba(15, 23, 32, 0.18),
    0 0 0 1.5px rgba(17, 20, 24, 0.95);
}

.hero-phone .device-notch {
  top: 6px;
  width: 92px;
  height: 18px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.hero-phone-screen {
  min-height: 468px;
  border-radius: 32px;
  background: #f6f7f9;
  border: 1px solid rgba(17, 20, 24, 0.14);
}

.hero-phone-quiz {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 1;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.phone-statusbar-dark {
  color: #fff;
}

.phone-statusbar-light {
  color: #111827;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-bars {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    currentColor 0 18%,
    transparent 18% 28%,
    currentColor 28% 46%,
    transparent 46% 56%,
    currentColor 56% 78%,
    transparent 78% 88%,
    currentColor 88% 100%
  );
}

.signal-bars-dark {
  color: #111827;
}

.battery-pill {
  position: relative;
  width: 18px;
  height: 10px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
  color: #fff;
}

.battery-pill::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.battery-pill-dark {
  color: #111827;
}

.hero-phone-page {
  padding: 0 14px 14px;
}

.hero-phone-title {
  margin: 0 0 10px;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 900;
}

.video-topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #17b57b;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.video-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 188px;
  margin-top: 12px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, #030507 0%, #0f1720 100%);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-32%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #1f2937;
}

.video-stage h3 {
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.2;
}

.video-runtime {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 18px;
  background: #1e293b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.video-progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.video-progress span {
  display: block;
  width: 34%;
  height: 100%;
  background: #f1dc6d;
}

.video-summary-card,
.quiz-content-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}

.video-summary-card h3,
.quiz-content-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.35;
}

.video-summary-card p,
.video-tip-card p,
.quiz-label,
.quiz-feedback p {
  margin: 0;
  line-height: 1.55;
}

.video-summary-card p,
.video-tip-card p,
.quiz-label {
  color: #667085;
  font-size: 0.85rem;
}

.video-cta-button,
.quiz-next-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 16px;
  font-size: 0.94rem;
  font-weight: 900;
}

.video-cta-button {
  background: #f1dc6d;
  color: #1f2937;
}

.video-tip-card {
  margin-top: 12px;
  padding: 14px;
  border-left: 4px solid #60a5fa;
  border-radius: 16px;
  background: #edf4ff;
}

.hero-phone-page-quiz {
  padding-top: 6px;
}

.quiz-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: #f4df7c;
}

.quiz-page-label {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.02rem;
  font-weight: 900;
}

.quiz-dots {
  display: flex;
  gap: 6px;
}

.quiz-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.28);
}

.quiz-dots .is-active {
  width: 28px;
  background: #1f2937;
}

.quiz-counter {
  padding: 10px 12px;
  border-radius: 14px;
  background: #1e293b;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid #d6dae1;
  border-radius: 18px;
  background: #fff;
}

.quiz-option strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e5e7eb;
  color: #1f2937;
  font-size: 1rem;
}

.quiz-option span {
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.quiz-option.is-correct {
  border-color: #22c55e;
  background: #ebfff3;
}

.quiz-option.is-correct strong {
  background: #1dbb73;
  color: #fff;
}

.quiz-option.is-wrong {
  border-color: #ef4444;
  background: #fff3f3;
}

.quiz-option.is-wrong strong {
  background: #ef4444;
  color: #fff;
}

.quiz-feedback {
  margin-top: 10px;
  padding: 12px;
  border-left: 4px solid #22c55e;
  border-radius: 16px;
  background: #edf9f1;
}

.quiz-feedback p {
  color: #166534;
  font-size: 0.84rem;
  font-weight: 800;
}

.quiz-next-button {
  background: #1e293b;
  color: #fff;
}

@media (max-width: 719px) {
  .hero {
    padding-bottom: 40px;
  }

  .hero-layout {
    gap: 18px;
  }

  .hero-device {
    margin-top: 6px;
  }

  .hero-phones {
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
  }

  .hero-phone {
    position: relative;
    width: min(100%, 280px);
  }

  .hero-phone-quiz {
    left: auto;
    top: auto;
    transform: none;
  }
}

@media (min-width: 960px) {
  .hero-phones {
    width: 364px;
    height: 480px;
  }

  .hero-phone-quiz {
    top: 0;
  }
}
