/* brokersmarter.ca — shared styles
   Brand: McIntosh Mortgage Group / The Mortgage House
   Keep this file in the same folder as the HTML pages. */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,700;1,500&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --gold-light: #D5B898;
  --gold-deep: #BA906E;
  --teal: #1D353D;
  --black: #000000;
  --white: #FFFFFF;
  --blue: #4C6E8C;
  --blue-light: #7FA0BC;
  --max-width: 1000px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--teal);
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page > h1,
.page > .lede,
.page > p,
.page > h2,
.page > .callout,
.page > form,
.section-block > h1,
.section-block > .lede,
.section-block > p,
.section-block > h2 {
  max-width: 68ch;
}

/* ---------- Hero band (homepage) ---------- */

.hero-band {
  background: linear-gradient(180deg, #FBF6EF 0%, #FFFFFF 100%);
  background-image:
    radial-gradient(rgba(186,144,110,0.10) 1.5px, transparent 1.5px),
    linear-gradient(180deg, #FBF6EF 0%, #FFFFFF 100%);
  background-size: 22px 22px, auto;
  margin: -48px calc(-50vw + 50%) 8px;
  padding: 56px 24px 44px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-inner > h1,
.hero-inner > .lede,
.hero-inner > p {
  max-width: 62ch;
}

.hero-text { flex: 1 1 auto; min-width: 0; }

.hero-photo-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}

.hero-photo-frame {
  position: relative;
  width: 340px;
  max-width: 40vw;
}

.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-deep), var(--blue-light), var(--gold-light));
  opacity: 0.5;
}

.hero-photo-frame .hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 4px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(29,53,61,0.16);
}

.hero-photo-frame .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-frame .hero-photo svg { width: 46px; height: 46px; color: var(--gold-deep); }

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

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.hero-dots span:nth-child(2) { background: var(--blue); }
.hero-dots span:nth-child(3) { background: var(--gold-light); }

@media (max-width: 720px) {
  .hero-inner { flex-direction: column-reverse; align-items: center; text-align: left; }
  .hero-photo-col { flex-direction: row; padding-top: 0; }
}

.hero-inner-stacked {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero-text-centered { max-width: 640px; }
.hero-text-centered .lede { max-width: none; }

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ---------- Generic section block ---------- */

.section-block {
  margin: 56px 0;
}

.section-heading {
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 24px;
  max-width: 60ch;
}

/* ---------- Icon row with description text ---------- */

.icon-item .icon-desc {
  font-size: 13.5px;
  color: #5C6E73;
  margin: 0;
}

.icon-row-5 .icon-item { flex: 1 1 170px; }

/* ---------- Coming soon pills ---------- */

.coming-soon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px dashed var(--gold-deep);
  color: var(--teal);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.coming-soon-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.coming-soon-card {
  border-style: dashed;
  background: #FFF;
}

.coming-soon-tag {
  display: inline-block;
  align-self: flex-start;
  background: #FBF3EC;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Founder section ---------- */

.founder-section {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #FBF8F3;
  border: 1.5px solid #EFE8DC;
  border-radius: 14px;
  padding: 30px 32px;
}

.founder-photo {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 6px 18px rgba(29,53,61,0.14);
}

.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.founder-text { flex: 1 1 auto; min-width: 0; }
.founder-text .eyebrow { margin-bottom: 10px; }
.founder-text p { margin: 0; max-width: 60ch; }

@media (max-width: 560px) {
  .founder-section { flex-direction: column; text-align: center; }
}

.founder-section-stacked {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 28px;
  padding: 36px 32px 40px;
}

.founder-section-stacked .founder-text p { max-width: 60ch; margin: 0 auto; }
.founder-section-stacked .eyebrow { margin: 0 auto 10px; }

.founder-photo-frame {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 56px 24px;
  margin: 16px calc(-50vw + 50%) -80px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF6EF 100%);
  border-top: 1px solid #E8E1D8;
}

.final-cta h2 {
  font-size: 26px;
  margin: 0 0 20px;
}

/* ---------- Icon row (homepage) ---------- */

.icon-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 8px 0 36px;
}

.icon-item {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #FBF8F3;
  border: 1px solid #EFE8DC;
  border-radius: 10px;
  padding: 18px 18px 20px;
}

.icon-item .icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* A touch of gold worked into the rhythm so it isn't all one flat blue down the row. */
.icon-row .icon-item:nth-child(3n) .icon-badge { background: var(--gold-deep); }

.icon-item .icon-badge svg { width: 19px; height: 19px; color: var(--white); }

.icon-item span.icon-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

/* ---------- Course/nav dropdown ---------- */

details.nav-dropdown { position: relative; }

details.nav-dropdown summary.nav-link {
  list-style: none;
  cursor: pointer;
}

details.nav-dropdown summary.nav-link::-webkit-details-marker { display: none; }

details.nav-dropdown summary.nav-link::after {
  content: " \25BE";
  font-size: 10px;
}

details.nav-dropdown[open] summary.nav-link::after { content: " \25B4"; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--white);
  border: 1px solid #E8E1D8;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(29,53,61,0.14);
  padding: 8px;
  min-width: 230px;
  z-index: 30;
}

.dropdown-panel .dropdown-link {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  color: var(--teal);
  border-radius: 6px;
}

.dropdown-panel .dropdown-link:hover {
  background: #FBF3EC;
  color: var(--gold-deep);
}

/* ---------- CTA band (homepage) ---------- */

.cta-band {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #FBF8F3;
  border: 1.5px solid #EFE8DC;
  border-radius: 14px;
  padding: 28px 32px;
  margin: 12px 0 8px;
}

.cta-illustration { flex: 0 0 auto; width: 84px; height: 84px; }
.cta-illustration svg { width: 100%; height: 100%; }

.cta-body { flex: 1 1 auto; min-width: 0; }
.cta-body h2 { margin: 0 0 8px; }
.cta-body p { margin: 0 0 18px; max-width: 56ch; }

@media (max-width: 560px) {
  .cta-band { flex-direction: column; text-align: left; padding: 24px; }
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #E8E1D8;
}

.site-logo {
  height: auto;
  width: 230px;
  max-width: 50vw;
}

nav.site-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 22px;
}

nav.site-nav .nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

nav.site-nav .nav-link:hover {
  color: var(--gold-deep);
}

nav.site-nav .nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

nav.site-nav .nav-link.locked {
  color: #B9C2C4;
  cursor: not-allowed;
  pointer-events: none;
}

nav.site-nav .nav-link.locked::after {
  content: " 🔒";
  font-size: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  background: #FBF3EC;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

h1 {
  font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--teal);
  margin: 0 0 18px;
}

h2 {
  font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  color: var(--teal);
  margin: 36px 0 10px;
}

.rule {
  height: 2px;
  width: 64px;
  background: var(--gold-deep);
  border: none;
  margin: 0 0 24px;
}

.rule.full {
  width: 100%;
  height: 1px;
  background: var(--gold-light);
  margin: 40px 0;
}

.lede {
  font-size: 19px;
  color: var(--teal);
  margin-bottom: 28px;
}

.callout {
  background: #FBF3EC;
  border-left: 3px solid var(--gold-deep);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 16px;
}

.day-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.progress span {
  height: 4px;
  flex: 1;
  background: #E8E1D8;
  border-radius: 999px;
}

.progress span.done { background: var(--gold-deep); }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  min-height: 48px;
  box-sizing: border-box;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: #3D5A73;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(76,110,140,0.3);
}

.btn.secondary {
  background: transparent;
  color: var(--teal) !important;
  border: 1.5px solid var(--gold-deep);
}

.btn.secondary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 18px rgba(186,144,110,0.28);
}

.btn.blue { background: var(--blue); }
.btn.blue:hover { background: #3D5A73; box-shadow: 0 8px 18px rgba(76,110,140,0.3); }

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  flex-wrap: wrap;
  gap: 12px;
}

.back-link {
  color: var(--gold-deep);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 20px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #D9D2C7;
  border-radius: 6px;
  font-family: inherit;
  /* 16px minimum keeps iPhones from auto-zooming in when a field is tapped */
  font-size: 16px;
  color: var(--teal);
  background: var(--white);
  min-height: 48px;
}

textarea { resize: vertical; min-height: 100px; }

.field-hint {
  font-size: 14px;
  color: #5C6E73;
  margin: -4px 0 16px;
  max-width: 60ch;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #FBF8F3;
  border: 1.5px solid #D9D2C7;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 10px 0;
}

.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin-top: 2px;
  accent-color: var(--gold-deep);
}

.check-row label {
  font-size: 14.5px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}

.yesno-q { margin: 20px 0; }

.yesno-q > p.q-text {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  max-width: 60ch;
}

.yesno-options {
  display: flex;
  gap: 10px;
}

.yesno-options .check-row {
  flex: 1;
  margin: 0;
  justify-content: center;
  align-items: center;
}

.yesno-options label { font-weight: 700; }

.required-mark { color: #A8502E; }

.steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 2px 0 2px 40px;
  margin-bottom: 14px;
  max-width: 62ch;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li p { margin: 0; }

.check-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FBF8F3;
  border: 1.5px solid #EFE8DC;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  max-width: 62ch;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1.5px solid var(--gold-deep);
  background: var(--white);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.faq-item {
  border: 1.5px solid #E8E1D8;
  border-radius: 8px;
  padding: 4px 16px;
  max-width: 62ch;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold-deep);
  font-weight: 700;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #445459;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.card {
  background: #FBF8F3;
  border: 1px solid #EFE8DC;
  border-radius: 10px;
  padding: 18px 20px;
}

.card h4 {
  font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--teal);
}

.card p { margin: 0; font-size: 14px; color: #445459; }

.model-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-list li {
  border: 1.5px solid #E8E1D8;
  border-radius: 8px;
  padding: 14px 16px;
  max-width: 62ch;
}

.model-list li.model-selected {
  border-color: var(--gold-deep);
  background: #FBF3EC;
}

.model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.model-name { font-weight: 700; font-size: 15px; color: var(--teal); }

.tag-default {
  display: inline-block;
  margin-left: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.chip {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.chip-light { background: #EAF1F6; color: var(--blue); }
.chip-standard { background: #FBF3EC; color: var(--gold-deep); }
.chip-heavy { background: #F3E9E4; color: #A8502E; }

.model-list li p { margin: 0; font-size: 13.5px; color: #5C6E73; }

.note {
  background: #F5F8F8;
  border-left: 3px solid var(--blue);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14.5px;
  border-radius: 0 6px 6px 0;
  max-width: 62ch;
}

.note.tight { margin: 10px 0; }

.promptbox {
  border: 1.5px solid #E8E1D8;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0 20px;
  max-width: 62ch;
}

.promptbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FBF8F3;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  border-bottom: 1px solid #E8E1D8;
}

.copy-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover { background: #3D5A73; }
.copy-btn.copied { background: var(--gold-deep); }

.promptbox pre {
  padding: 16px;
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--teal);
  background: var(--white);
  max-height: 220px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent 100%);
}

.promptbox pre.expanded {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.expand-toggle {
  display: block;
  width: 100%;
  background: #FBF8F3;
  border: none;
  border-top: 1px solid #E8E1D8;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: center;
}

.expand-toggle:hover { background: #F5EEE3; }

.saythis {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 6px;
  display: inline-block;
  margin: 10px 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ref-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #FBF8F3;
  border: 1px solid #EFE8DC;
  border-radius: 8px;
  padding: 14px 16px;
}

.ref-item .k { font-weight: 700; font-size: 13.5px; color: var(--gold-deep); }
.ref-item span:last-child { font-size: 13.5px; color: #445459; }

.part-list { margin: 24px 0; }

.part-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid #E8E1D8;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.part-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(29,53,61,0.1);
}

.part-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.part-card-body { flex: 1 1 auto; min-width: 0; }

.part-card-body h3 {
  font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--teal);
}

.part-card-body p { margin: 0; font-size: 13.5px; color: #5C6E73; }

.part-arrow { flex: 0 0 auto; color: var(--gold-deep); font-size: 20px; }

html.gate-locked body > *:not(#gate-overlay) { display: none !important; }

#gate-overlay {
  position: fixed;
  inset: 0;
  background: #FBF6EF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.gate-box {
  background: var(--white);
  border: 1px solid #E8E1D8;
  border-radius: 14px;
  padding: 40px 36px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(29,53,61,0.16);
}

.gate-logo { width: 160px; margin: 0 auto 22px; display: block; }

.gate-label { font-size: 14px; color: #5C6E73; margin: 0 0 22px; line-height: 1.5; }

#gate-form { display: flex; flex-direction: column; gap: 12px; }

#gate-password {
  padding: 12px 14px;
  border: 1.5px solid #D9D2C7;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
}

.gate-error { color: #A8502E; font-size: 13px; margin-top: 16px; }

.placeholder-note {
  background: #FFF7E8;
  border: 1px dashed var(--gold-deep);
  color: #7A5A2E;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 28px;
}

.course-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1.5px solid #E8E1D8;
  border-radius: 12px;
  padding: 24px 26px 24px 30px;
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(29,53,61,0.05);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold-deep), var(--blue));
}

.course-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(29,53,61,0.12);
}

.course-card {
  display: flex;
  align-items: center;
  gap: 28px;
}

.course-card-illustration { flex: 0 0 auto; width: 96px; height: 96px; }
.course-card-illustration svg { width: 100%; height: 100%; }
.course-card-body { flex: 1 1 auto; min-width: 0; }
.course-card-body h2 { margin-top: 0; }

@media (max-width: 560px) {
  .course-card { flex-direction: column; text-align: center; }
  .course-card-body div[style] { justify-content: center; }
}

.course-card .eyebrow {
  margin-bottom: 8px;
}

.course-card h2 {
  margin: 0 0 8px;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  color: var(--teal);
}

.course-card p {
  margin: 0 0 14px;
  color: var(--teal);
}

.course-card .btn.secondary {
  padding: 10px 22px;
  font-size: 13px;
}

footer.site-footer {
  text-align: center;
  font-size: 13px;
  color: #6B7B80;
  padding: 40px 24px 32px;
  border-top: 1px solid #E8E1D8;
  margin-top: 40px;
}

footer.site-footer p { margin: 4px 0; }

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .lede { font-size: 17px; }
  .page { padding: 28px 18px 60px; }
  header.site-header { padding: 24px 16px 18px; }

  /* Menu: tighter, smaller, and centered in two rows if needed rather than
     crowding — still tappable at a comfortable size. */
  nav.site-nav { gap: 10px 16px; }
  nav.site-nav .nav-link {
    font-size: 11.5px;
    padding: 6px 2px;
  }

  /* Stack Back / Continue buttons full-width and easy to tap with a thumb,
     Continue on top since that's the one most people want. */
  .nav-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }
  .nav-row .btn { width: 100%; }
  .nav-row .back-link { text-align: center; }

  .course-card { padding: 20px 18px; }

  form .nav-row { flex-direction: column; }
}
