:root {
  --navy: #082f52;
  --gold: #a9823a;
  --cream: #f7ecd9;
  --cream-light: #fff8ed;
  --paper: #fffaf3;
  --line: rgba(169, 130, 58, 0.28);
  --shadow: rgba(8, 47, 82, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--cream-light);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  position: relative; /* non-rolling/non-sticky navbar */
  z-index: 20;
  width: 100%;
  background: linear-gradient(180deg, #fff7e8 0%, #f5e5c9 100%);
  border-bottom: 1px solid rgba(169, 130, 58, 0.36);
  box-shadow: 0 4px 16px rgba(8, 47, 82, 0.06);
}

.site-nav {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 46px);
  min-height: 76px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.nav-menu a,
.nav-dropdown__trigger {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible {
  color: var(--gold);
  outline: none;
}

.nav-dropdown { position: relative; }

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: none;
  width: 270px;
  transform: translateX(-50%);
  padding: 12px 10px 10px;
  background: rgba(255, 248, 237, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 38px var(--shadow);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown__menu:hover {
  display: grid;
  gap: 3px;
}

/* Keeps the desktop Resources dropdown connected to the trigger so it does not collapse while moving the cursor down. */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 100%;
  height: 18px;
}

.nav-dropdown__menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 0.82rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible { background: #ead8b9; }

.nav-toggle {
  display: none;
  appearance: none;
  border: 1.5px solid rgba(169, 130, 58, 0.48);
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.86);
  width: 52px;
  height: 52px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0;
  background: var(--navy);
  border-radius: 999px;
  flex: 0 0 auto;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: #fffaf3;
  border-color: rgba(169, 130, 58, 0.7);
  box-shadow: 0 10px 26px rgba(8, 47, 82, 0.14);
  outline: none;
}

.nav-toggle[aria-expanded="true"] {
  background: #f5e5c9;
}

.hero-static {
  width: 100%;
  background: var(--cream-light);
  line-height: 0;
  overflow: hidden;
}

.hero-static img {
  display: block;
  width: 100%;
  height: auto;
}

.next-section {
  padding: clamp(44px, 7vw, 92px) 20px;
  background: linear-gradient(180deg, #fff8ed 0%, #f7ecd9 100%);
}

.section-card {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(169, 130, 58, 0.28);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(8, 47, 82, 0.08);
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-card h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-card p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #17344d;
  font-size: 1.08rem;
  line-height: 1.75;
}

.section-card .signature {
  margin-top: 26px;
  color: var(--navy);
  font-weight: 800;
}

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

/* Tablet and phone: hamburger appears at 1024px and below */
@media (max-width: 1024px) {
  .site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 68px;
    padding: 12px 18px;
  }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    min-height: 0;
    padding: 14px 18px 18px;
    background: linear-gradient(180deg, #fff7e8 0%, #f5e5c9 100%);
    border-bottom: 1px solid rgba(169, 130, 58, 0.32);
    box-shadow: 0 16px 32px rgba(8, 47, 82, 0.08);
    text-align: center;
  }

  .nav-menu.is-open {
    display: grid;
    gap: 0;
  }

  .nav-menu > a,
  .nav-dropdown__trigger {
    display: block;
    padding: 15px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
  }

  .nav-menu > a:hover,
  .nav-dropdown__trigger:hover { background: rgba(255, 250, 243, 0.58); }

  .nav-dropdown::after { display: none; }

  .nav-dropdown__menu {
    position: static;
    display: none;
    width: min(360px, 100%);
    margin: 0 auto 8px;
    transform: none;
    box-shadow: none;
    background: rgba(255, 250, 243, 0.56);
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: grid;
    gap: 3px;
  }

  .nav-dropdown.is-open .nav-dropdown__trigger {
    background: rgba(255, 250, 243, 0.72);
    color: var(--gold);
  }
}

/* Mobile/tablet: preserve the full static hero image so baked-in text never gets cropped. */
@media (max-width: 1024px) {
  .hero-static {
    overflow: visible;
    background: var(--cream-light);
  }

  .hero-static img {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    object-fit: contain;
  }
}

@media (max-width: 520px) {
  .hero-static {
    padding: 0;
  }

  .hero-static img {
    width: 100%;
  }
}

/* Full page sections under the locked hero */
.section {
  padding: clamp(48px, 7vw, 96px) 20px;
}

.founder-note {
  background: linear-gradient(180deg, #fff8ed 0%, #f7ecd9 100%);
}

.start-section,
.journey-section,
.continue-section {
  background: #fff8ed;
}

.tools-section {
  background: linear-gradient(180deg, #f7ecd9 0%, #fff8ed 100%);
}

.tools-section.alt,
.reflection-section {
  background: linear-gradient(180deg, #fff8ed 0%, #f7ecd9 100%);
}

.section-heading {
  width: min(960px, 100%);
  margin: 0 auto clamp(28px, 4vw, 46px);
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.section-heading p:not(.section-kicker) {
  max-width: 720px;
  margin: 0 auto;
  color: #234059;
  font-size: 1.08rem;
  line-height: 1.7;
}

.quick-grid,
.tool-grid,
.continue-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.quick-grid {
  grid-template-columns: repeat(4, 1fr);
}

.quick-card,
.tool-card,
.continue-card,
.reflection-card {
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(169, 130, 58, 0.26);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(8, 47, 82, 0.08);
}

.quick-card {
  padding: 28px 24px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #f1dfbf;
  font-size: 1.4rem;
}

.quick-card h3,
.tool-card h3,
.continue-card h3,
.timeline-item h3,
.theme-callout h3,
.bridge-text h3,
.reflection-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.15;
}

.quick-card h3,
.tool-card h3,
.continue-card h3,
.timeline-item h3 {
  font-size: 1.45rem;
}

.quick-card p,
.tool-card p,
.continue-card p,
.timeline-item p,
.theme-callout p,
.bridge-text p,
.reflection-card p {
  color: #213c55;
  font-size: 1rem;
  line-height: 1.65;
}

.recommended {
  margin: 0 0 12px;
  color: var(--gold) !important;
  font-weight: 900;
}

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

.tool-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.tool-card {
  padding: 30px;
}

.tool-card p { margin: 0 0 16px; }
.tool-card p:last-child { margin-bottom: 0; }

.tool-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #213c55;
  line-height: 1.7;
}

.tool-card.wide {
  grid-column: span 2;
}

.fine-print {
  color: #6f5a33 !important;
  font-size: 0.95rem !important;
  font-weight: 700;
}

.theme-callout,
.bridge-text {
  width: min(900px, 100%);
  margin: 34px auto 0;
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
  background: #082f52;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(8, 47, 82, 0.16);
}

.theme-callout h3,
.theme-callout p,
.bridge-text h3,
.bridge-text p {
  color: #fff8ed;
}

.theme-callout p,
.bridge-text p {
  max-width: 620px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: rgba(169, 130, 58, 0.18);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(169, 130, 58, 0.26);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(8, 47, 82, 0.08);
}

.timeline-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 22px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid rgba(169, 130, 58, 0.28);
  background: rgba(255, 248, 237, 0.74);
  color: rgba(169, 130, 58, 0.74);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stage {
  margin: 0 0 8px;
  color: var(--gold) !important;
  font-size: 0.82rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item h3 { margin-bottom: 8px; }
.timeline-item p:last-child { margin-bottom: 0; }

.reflection-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  text-align: center;
}

.reflection-card h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.reflection-card p {
  max-width: 740px;
  margin: 0 auto 18px;
  font-size: 1.1rem;
}

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

.continue-card {
  display: block;
  padding: 30px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.continue-card span {
  display: block;
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.continue-card:hover,
.continue-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(169, 130, 58, 0.55);
  box-shadow: 0 20px 54px rgba(8, 47, 82, 0.12);
  outline: none;
}

@media (max-width: 980px) {
  .quick-grid,
  .tool-grid.three,
  .continue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tool-card.wide {
    grid-column: span 1;
  }
}

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

  .quick-grid,
  .tool-grid.three,
  .continue-grid {
    grid-template-columns: 1fr;
  }

  .quick-card,
  .tool-card,
  .continue-card,
  .section-card,
  .reflection-card,
  .timeline-item {
    border-radius: 18px;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-item {
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding: 22px;
  }

  .timeline-number {
    width: 28px;
    height: 20px;
    margin-top: 2px;
    padding: 0;
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }
}

/* Resource-style app/company cards */
.resource-note {
  padding: 24px 20px 0;
  background: #fff8ed;
}

.resource-note p {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid rgba(169, 130, 58, 0.22);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.82);
  color: #31485f;
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
}

.resource-card {
  display: flex;
  flex-direction: column;
}

.tool-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-card__top.compact {
  margin-bottom: 10px;
}

.tool-card__top h3 {
  margin-bottom: 0;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.tool-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid rgba(169, 130, 58, 0.38);
  border-radius: 999px;
  background: #fff8ed;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tool-actions a:hover,
.tool-actions a:focus-visible {
  transform: translateY(-1px);
  background: #ead8b9;
  border-color: rgba(169, 130, 58, 0.7);
  outline: none;
}

.resource-tools .tool-card p:last-of-type {
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .tool-card__top {
    align-items: flex-start;
  }

  .tool-actions a {
    flex: 1 1 auto;
  }
}

/* v10: real resource-style logos and store badges */
.tool-card__top {
  align-items: center;
}

.app-logo {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  display: block;
  border-radius: 19px;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(8, 47, 82, 0.10);
}

.tool-card__top.compact .app-logo {
  width: 66px;
  height: 66px;
  border-radius: 16px;
}

.tool-actions {
  align-items: center;
}

.store-badge {
  display: inline-flex !important;
  width: 150px;
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(8, 47, 82, 0.10);
}

.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(169, 130, 58, 0.42);
  border-radius: 999px;
  background: #fff8ed;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.official-link:hover,
.official-link:focus-visible,
.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.official-link:hover,
.official-link:focus-visible {
  background: #ead8b9;
  border-color: rgba(169, 130, 58, 0.72);
}

@media (max-width: 640px) {
  .app-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .tool-card__top.compact .app-logo {
    width: 58px;
    height: 58px;
  }

  .store-badge {
    width: 142px;
    flex: 0 0 auto !important;
  }

  .official-link {
    flex: 1 1 100%;
  }
}

/* v11: finalized resource-card overview using real app/company logos */
.logo-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logo-quick-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.quick-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fffaf3;
  border: 1px solid rgba(169, 130, 58, 0.24);
  box-shadow: 0 10px 22px rgba(8, 47, 82, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-logos a:hover,
.quick-logos a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(169, 130, 58, 0.58);
  box-shadow: 0 14px 28px rgba(8, 47, 82, 0.12);
  outline: none;
}

.quick-logos img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 11px;
}

.logo-quick-card .recommended {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.9rem;
}

.tool-card:target,
.timeline-item:target {
  scroll-margin-top: 28px;
  border-color: rgba(169, 130, 58, 0.72);
  box-shadow: 0 18px 54px rgba(8, 47, 82, 0.14);
}

@media (max-width: 980px) {
  .logo-quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .quick-logos a {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .quick-logos img {
    width: 39px;
    height: 39px;
  }
}


/* v13 polish: centered founder signatures, navy disclaimer transition, and final footer */
.founder-card {
  text-align: center;
}

.founder-card .section-kicker,
.reflection-card .section-kicker {
  text-align: center;
}

.founder-card p {
  margin-left: auto;
  margin-right: auto;
}

.founder-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 28px auto 0;
  text-align: center;
  color: var(--navy);
  line-height: 1.45;
}

.founder-signature__name,
.founder-signature__title {
  display: block;
  width: 100%;
  text-align: center;
}

.founder-signature__name {
  font-weight: 900;
  font-size: 1.03rem;
}

.founder-signature__title {
  margin-top: 4px;
  color: #6f5a33;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-disclaimer {
  padding: clamp(54px, 7vw, 88px) 20px;
  background: linear-gradient(135deg, #082f52 0%, #0b3c66 100%);
  color: #fff8ed;
  text-align: center;
}

.resource-disclaimer__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.resource-disclaimer .section-kicker {
  color: #e4bd77;
  margin-bottom: 14px;
}

.resource-disclaimer h2 {
  margin: 0 auto 22px;
  max-width: 760px;
  color: #fff8ed;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.12;
}

.resource-disclaimer p:not(.section-kicker) {
  max-width: 780px;
  margin: 0 auto 16px;
  color: rgba(255, 248, 237, 0.88);
  font-size: 1rem;
  line-height: 1.75;
}

.resource-disclaimer p:last-child {
  margin-bottom: 0;
}

.language-footer {
  padding: 24px 20px;
  background: #061f38;
  color: rgba(255, 248, 237, 0.86);
  text-align: center;
  border-top: 1px solid rgba(228, 189, 119, 0.22);
}

.language-footer p {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .founder-signature,
  .founder-signature__name,
  .founder-signature__title {
    text-align: center;
    align-items: center;
  }
}


/* Final polish: the learning journey no longer uses prominent number circles. */
.timeline-number { display: none !important; }
.timeline-item { grid-template-columns: 1fr !important; }
.timeline-item::before { display: none !important; }

/* Continue Exploring: polished Haneul-style markers instead of emoji. */
.continue-marker {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(169, 130, 58, 0.12);
  border: 1px solid rgba(169, 130, 58, 0.32);
  color: #a9823a;
}
.continue-marker svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.continue-card .continue-marker + h3 { margin-top: 0.15rem; }
