:root {
  color-scheme: light;
  --ink: #09262d;
  --muted: #53646a;
  --line: #cfd9d8;
  --soft-line: #e8eeee;
  --teal: #00645f;
  --teal-dark: #004a46;
  --teal-soft: #e5f3f1;
  --gold: #b56b13;
  --coral: #d86d4a;
  --surface: #ffffff;
  --wash: #f7faf9;
  --shadow: 0 20px 52px rgb(7 38 45 / 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--soft-line);
  background: rgb(255 255 255 / 0.93);
  backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0;
}

.brand span {
  color: var(--teal-dark);
  font-weight: 850;
}

nav {
  display: flex;
  gap: 34px;
  color: #1f3339;
  font-size: 0.98rem;
  font-weight: 650;
}

nav a:hover {
  color: var(--teal);
}

.header-cta {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
}

main {
  overflow: hidden;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.98fr) minmax(360px, 1.02fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(40px, 6vw, 82px) clamp(18px, 4vw, 58px);
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 54%, rgb(247 250 249 / 0.72) 100%),
    radial-gradient(circle at 88% 20%, rgb(229 243 241 / 0.75), transparent 34%);
}

.hero-copy {
  max-width: 660px;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy > p {
  max-width: 600px;
  color: #31474d;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 24px;
}

.button,
.download-skill {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 22px;
  font-size: 0.98rem;
  font-weight: 850;
  cursor: pointer;
}

.button.primary,
.download-skill {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 10px 24px rgb(0 100 95 / 0.19);
}

.button.primary:hover,
.download-skill:hover,
.header-cta:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: #879aa0;
  background: #ffffff;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.privacy-note,
.local-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #274248;
  font-weight: 650;
  line-height: 1.42;
}

.privacy-note svg,
.local-box svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.insurance-line {
  margin: 24px 0 0;
  color: var(--gold) !important;
  font-size: 1.16rem !important;
  font-weight: 850;
}

.hero-media {
  position: relative;
  min-height: 560px;
  border-radius: 8px;
}

.hero-media img {
  width: 100%;
  height: 620px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.bundle-card,
.proposal-card {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 18px 44px rgb(7 38 45 / 0.16);
  backdrop-filter: blur(12px);
}

.bundle-card {
  top: 42px;
  left: -26px;
  width: min(280px, 56%);
  padding: 22px;
}

.bundle-card h2,
.proposal-card h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.bundle-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--teal);
  font-weight: 900;
}

.proposal-card {
  right: -16px;
  bottom: 52px;
  width: min(330px, 68%);
  padding: 22px;
}

.proposal-card dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.proposal-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.proposal-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.proposal-card dd {
  margin: 0;
  font-weight: 850;
}

.education-section,
.how-section,
.builder-section,
.skills-section,
.coming-section,
.managed-section {
  padding: clamp(42px, 5.5vw, 76px) clamp(18px, 4vw, 58px);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 22px;
}

.section-heading h2,
.managed-section h2 {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.section-heading p,
.managed-section p {
  color: #385158;
  font-size: 1.04rem;
  line-height: 1.55;
}

.builder-section {
  background: var(--wash);
}

.education-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  margin: calc(clamp(42px, 5.5vw, 76px) * -1) calc(clamp(18px, 4vw, 58px) * -1) 0;
  background: #ffffff;
}

.explain-copy {
  max-width: 820px;
}

.explain-copy h2 {
  margin-bottom: 16px;
  color: var(--teal-dark);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.explain-copy p {
  color: #385158;
  font-size: 1.08rem;
  line-height: 1.62;
}

.explain-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 14px 34px rgb(7 38 45 / 0.07);
}

.explain-panel h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.explain-panel ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explain-panel li {
  display: flex;
  gap: 10px;
  color: #334a50;
  font-weight: 700;
  line-height: 1.4;
}

.explain-panel li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
}

.how-section {
  margin: 0 calc(clamp(18px, 4vw, 58px) * -1);
  padding-top: 24px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.how-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}

.how-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 900;
}

.how-grid h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
}

.how-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.control-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid #c6dcda;
  border-radius: 8px;
  background: var(--teal-soft);
  padding: 16px 18px;
  color: #243d43;
  font-weight: 700;
}

.control-note strong {
  color: var(--teal-dark);
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.43fr);
  gap: 24px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 14px 36px rgb(7 38 45 / 0.06);
}

.profile-form {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
}

.steps {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.step-button {
  display: block;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: #ffffff;
  color: #263f46;
  padding: 0 16px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.step-button:last-child {
  border-bottom: 0;
}

.step-button.active {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.form-pages {
  min-width: 0;
}

fieldset {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.active {
  display: grid;
  gap: 16px;
}

legend {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
}

.form-help {
  margin: -6px 0 2px;
  color: #465d63;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.5;
}

label {
  display: grid;
  gap: 7px;
  color: #1f373e;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d5d3;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 0.95rem;
  font-weight: 550;
}

textarea {
  min-height: 92px;
  line-height: 1.45;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgb(0 100 95 / 0.17);
  border-color: var(--teal);
}

.form-controls,
.export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.bundle-preview {
  border-left: 1px solid var(--soft-line);
  padding-left: 24px;
}

.bundle-preview h3 {
  color: var(--teal-dark);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.preview-list {
  display: grid;
  gap: 18px;
  margin: 22px 0;
}

.preview-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.preview-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.icon-box,
.skill-icon {
  display: grid;
  place-items: center;
  border: 1px solid #b9d2cf;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.icon-box {
  width: 42px;
  height: 42px;
}

.local-box {
  align-items: flex-start;
  border: 1px dashed #9fb1b5;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfd;
}

.skill-fields {
  display: grid;
  gap: 14px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.skill-card {
  display: grid;
  min-height: 248px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 12px 30px rgb(7 38 45 / 0.06);
}

.skill-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.skill-card h3 {
  margin-bottom: 9px;
  font-size: 1.22rem;
}

.skill-card p {
  color: #3b5258;
  line-height: 1.48;
}

.download-skill {
  align-self: end;
  width: 100%;
  margin-top: 12px;
}

.coming-section {
  padding-top: 20px;
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.coming-grid article {
  display: grid;
  place-items: center;
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  text-align: center;
  color: #253f47;
  font-weight: 850;
}

.coming-grid span {
  margin-top: 12px;
  color: #6d7c81;
  font-size: 0.92rem;
  font-weight: 650;
}

.managed-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 32px;
  align-items: center;
  margin: 0 clamp(18px, 4vw, 58px) 54px;
  border: 1px solid #c6dcda;
  border-radius: 8px;
  background: linear-gradient(105deg, #e9f6f4, #ffffff 72%);
}

.waitlist-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}

.waitlist-form .button {
  width: 100%;
}

#waitlistMessage {
  min-height: 20px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 750;
}

dialog {
  width: min(920px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgb(9 38 45 / 0.48);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.dialog-header button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  padding: 8px 12px;
  cursor: pointer;
}

#markdownPreview {
  display: block;
  width: 100%;
  min-height: 62vh;
  border: 0;
  border-radius: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--soft-line);
  color: #465c62;
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--teal-dark);
}

@media (max-width: 1060px) {
  .hero-section,
  .education-section,
  .builder-shell,
  .managed-section {
    grid-template-columns: 1fr;
  }

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

  .bundle-preview {
    border-left: 0;
    border-top: 1px solid var(--soft-line);
    padding: 24px 0 0;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 16px 18px;
  }

  nav {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.2rem);
  }

  .hero-media {
    min-height: 430px;
  }

  .hero-media img {
    height: 430px;
  }

  .bundle-card {
    left: 14px;
    width: 70%;
  }

  .proposal-card {
    right: 14px;
    width: 72%;
  }

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

  .steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
  }

  .step-button {
    min-height: 48px;
    border-right: 1px solid var(--soft-line);
    border-bottom: 0;
    white-space: nowrap;
  }

  .builder-shell {
    padding: 16px;
  }

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

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

  .managed-section {
    margin-inline: 18px;
  }

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