* {
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --text: #111111;
  --muted-dark: rgba(255, 255, 255, 0.72);
  --muted-light: #6f6f6f;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: #e7e7e7;
  --pill-dark: rgba(255, 255, 255, 0.22);
  --card: #fafafa;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--black);
  color: var(--white);
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 1180px;
}

/* HEADER */

.topbar {
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

html.auth-gate-pending body {
  visibility: hidden;
}

/* `hidden` must win over display — class rules below would otherwise keep guest row visible */
.nav-auth-guest[hidden],
.nav-auth-user[hidden] {
  display: none !important;
}

.nav-auth-guest:not([hidden]),
.nav-auth-user:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-size: 15px;
  color: #555555;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--black);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s ease;
  white-space: nowrap;
}

button.btn {
  font: inherit;
  cursor: pointer;
}

.btn-header {
  background: var(--black);
  color: var(--white);
  padding: 14px 24px;
}

.btn-header:hover {
  background: #222222;
}

.btn-header-secondary {
  background: var(--white);
  color: var(--black);
  border: 1px solid #d0d0d0;
  padding: 14px 24px;
}

.btn-header-secondary:hover {
  background: #f5f5f5;
  border-color: #b0b0b0;
}

.btn-hero {
  background: var(--white);
  color: var(--black);
  padding: clamp(14px, 2vw, 20px) clamp(20px, 2.6vw, 40px);
  font-size: 22px;
}

.btn-hero:hover {
  background: #ececec;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  padding: 14px 24px;
}

.btn-dark:hover {
  background: #2a2a2a;
}

/* HERO */

.hero {
  background: var(--black);
  color: var(--white);
  padding: 40px 0 0;
  overflow-x: auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  min-width: 900px;
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.hero-title {
  margin: 0;
  font-size: 128px;
  line-height: 0.96;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--white);
}

.hero-cta {
  margin-top: 26px;
}

.tool-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.tool-logo {
  height: 32px;
  width: auto;
  display: block;
}

.tool-logo--stripe {
  height: 26px;
}

.tool-logo--zoom,
.tool-logo--meet {
  height: 24px;
}

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-image-box {
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.hero-image-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center right;
}

/* WHITE SECTION */

.section-white {
  background: var(--white);
  color: var(--text);
  padding: 88px 0 110px;
}

.content-block + .content-block {
  margin-top: 92px;
}

.section-title {
  margin: 0 0 26px;
  font-size: 50px;
  line-height: 1.02;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text);
}

.bullet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.bullet-card {
  position: relative;
  min-height: 88px;
  padding: 22px 22px 22px 54px;
  border: 1px solid var(--line-light);
  border-radius: 24px;
  background: var(--card);
  font-size: 20px;
  line-height: 1.42;
  color: #1f1f1f;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.bullet-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--text);
}

.split-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  align-items: start;
}

.split-label {
  position: relative;
  top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.split-content {
  max-width: 860px;
}

.body-copy p {
  margin: 0 0 24px;
  font-size: 23px;
  line-height: 1.62;
  letter-spacing: -0.01em;
  color: #171717;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.cta-panel {
  margin-top: 40px;
  padding: 28px 30px;
  border: 1px solid #e8e8e8;
  border-radius: 28px;
  background: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 8px;
}

.cta-title {
  font-size: 29px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* SKILLS ROADMAP */

.skills-roadmap {
  margin-top: 92px;
}

.skills-copy h2 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.1;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.skills-copy p {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.6;
  color: #232323;
}

.skills-copy p:last-child {
  margin-bottom: 0;
}

.skills-image-wrap {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid #e5e5e5;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  cursor: zoom-in;
  max-width: 640px;
}

.skills-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* SKILLS MODAL */

.skills-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.skills-modal.is-open {
  display: flex;
}

.skills-modal-inner {
  max-width: 100vw;
  max-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
}

.skills-modal-image {
  display: block;
  width: 1600px;
  max-width: none;
}

.skills-modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

/* TABLET */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 34vw);
    gap: 28px;
    align-items: center;
  }

  .hero-image-box {
    max-width: 340px;
    border-radius: 22px 22px 0 0;
  }

  .section-title {
    font-size: 40px;
  }

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

  .split-block {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .split-label {
    top: 0;
  }

  .body-copy p {
    font-size: 20px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-roadmap {
    margin-top: 64px;
  }

  .skills-copy h2 {
    font-size: 30px;
  }

  .skills-copy p {
    font-size: 18px;
  }
}

/* MOBILE */

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .topbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    font-size: 17px;
  }

  .nav {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .nav-link {
    font-size: 12px;
  }

  .btn-header {
    padding: 9px 12px;
    font-size: 12px;
  }

  .btn-header-secondary {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 18px 0 0;
  }

  .hero-inner {
    min-width: 0;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 12px;
    align-items: center;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .hero-cta {
    margin-top: 8px;
  }

  .btn-hero {
    padding: 7px 12px;
    font-size: 12px;
  }

  .tool-row {
    margin-top: 8px;
    gap: 10px;
  }

  .tool-logo {
    height: 24px;
  }

  .section-white {
    padding: 64px 0 80px;
  }

  .content-block + .content-block {
    margin-top: 64px;
  }

  .section-title {
    font-size: 31px;
    margin-bottom: 20px;
  }

  .bullet-card {
    min-height: auto;
    padding: 18px 18px 18px 46px;
    border-radius: 20px;
    font-size: 17px;
  }

  .bullet-card::before {
    left: 18px;
    top: 23px;
    width: 10px;
    height: 10px;
  }

  .body-copy p {
    font-size: 17px;
    line-height: 1.58;
    margin-bottom: 18px;
  }

  .cta-title {
    font-size: 23px;
  }

  .cta-panel {
    padding: 22px 22px;
    border-radius: 22px;
  }

  .skills-roadmap {
    margin-top: 52px;
  }
}

/* Login form (app page) */

a.brand:hover {
  color: #333333;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
}

.form-field {
  margin: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #333333;
}

.form-actions {
  margin-top: 4px;
}

.form-actions .btn-dark {
  width: 100%;
  border: none;
  cursor: pointer;
  font: inherit;
}

.form-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
  font-size: 15px;
}

.form-meta a {
  color: #555555;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-meta a:hover {
  color: var(--black);
}

.form-meta-note {
  color: #8a8a8a;
  font-size: 15px;
  cursor: default;
  text-decoration: line-through;
  text-decoration-color: #c4c4c4;
}

.form-banner {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.form-banner[hidden] {
  display: none !important;
}

.form-banner--error {
  background: #fff0f0;
  color: #6b1111;
  border: 1px solid #f0b4b4;
}

.form-banner--success {
  background: #eef8f0;
  color: #1b4d24;
  border: 1px solid #b8dcc2;
}

.form-field-hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: #6f6f6f;
  line-height: 1.4;
}

.form-field-error {
  margin: 6px 0 0;
  font-size: 14px;
  color: #a33030;
  line-height: 1.4;
}

.form-input--invalid {
  border-color: #d08080;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.dashboard-email {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
}

.dashboard-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prompt-machine-section {
  min-height: calc(100vh - 96px);
}

.prompt-machine-container {
  max-width: 900px;
}

.prompt-machine-shell {
  margin: 0 auto;
  max-width: 760px;
}

.prompt-machine-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.prompt-machine-title {
  margin-bottom: 18px;
}

.prompt-machine-card {
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  padding: 26px;
  background: #fcfcfc;
}

.prompt-machine-prompt-wrap {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.prompt-machine-prompt {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  font-weight: 600;
  color: #161616;
}

.prompt-machine-answer-wrap {
  margin-top: 12px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.prompt-machine-answer {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  color: #1d1d1d;
}

.prompt-machine-answer--hidden {
  visibility: hidden;
}

.prompt-machine-actions {
  margin-top: 24px;
  min-height: 54px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.prompt-machine-reveal {
  font-size: 19px;
  padding: 16px 34px;
  border: none;
}

.prompt-machine-next {
  font-size: 17px;
  padding: 14px 28px;
}

.prompt-machine-status {
  margin-top: 16px;
  min-height: 20px;
  text-align: center;
}
