@font-face {
  font-family: Montserrat;
  src: url("./assets/montserrat.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #111e32;
  --ink: #22314a;
  --muted: #536073;
  --gold: #af8149;
  --gold-ink: #765022;
  --gold-light: #eadcc4;
  --cream: #f6f2eb;
  --paper: #fffcf8;
  --line: #e6ddd0;
  --white: #fff;
  --error: #9c2c2b;
  color: var(--navy);
  font-family: Montserrat, Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; background: var(--white); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a37136; outline-offset: 4px; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; background: white; z-index: 4; padding: 10px 18px; inset: 8px auto auto 8px; }

.page { width: min(1152px, calc(100% - 96px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { text-decoration: none; line-height: 1.14; font-size: .99rem; font-weight: 750; display: flex; align-items: center; gap: 13px; }
.wordmark > span:last-child { white-space: nowrap; }
.brand-line { display: block; font-size: .83rem; font-weight: 550; margin-top: 3px; }
.brand-mark { display: flex; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #ddc6a7; border-radius: 11px; align-items: flex-end; justify-content: center; padding-bottom: 9px; gap: 3px; background: var(--cream); }
.brand-mark i { width: 4px; height: 7px; background: var(--gold); border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 17px; }
.library-button { background: white; border: 1px solid var(--line); color: var(--navy); border-radius: 30px; padding: 7px 8px 7px 14px; display: flex; gap: 9px; align-items: center; min-height: 44px; font-size: .87rem; font-weight: 680; }
.library-button:hover, .button.secondary:hover { background: var(--cream); }
.library-mark { color: var(--gold-ink); font-size: 1.25rem; line-height: 1; }
.count { font-variant-numeric: tabular-nums; background: var(--cream); padding: 2px 8px; border-radius: 20px; color: var(--gold-ink); font-weight: 750; }

.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.47fr) minmax(310px, 1fr); align-items: center; gap: clamp(36px, 7vw, 105px); padding-block: 62px 66px; }
.eyebrow { color: var(--gold-ink); font-size: .79rem; letter-spacing: .12em; font-weight: 750; line-height: 1.4; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow span { display: inline-block; flex: 0 0 28px; height: 1px; background: var(--gold); }
h1 { margin-top: 19px; font-size: clamp(2.5rem, 5.2vw, 4.65rem); letter-spacing: -.065em; font-weight: 750; line-height: 1.025; }
.hero-copy > p { max-width: 505px; margin: 22px 0 27px; color: var(--ink); font-size: clamp(1rem, 1.45vw, 1.15rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border-radius: 8px; font-size: .93rem; line-height: 1.35; font-weight: 700; border: 1px solid transparent; text-align: center; text-decoration: none; }
.primary { background: var(--navy); color: white; border-color: var(--navy); }
.primary:hover { background: #273853; border-color: #273853; }
.secondary { background: white; color: var(--navy); border-color: #d7cebe; }
.hero-guide { padding: 11px; border: 1px solid #dac5a8; border-radius: 19px; background: #eee5d7; transform: rotate(1.6deg); margin-right: 5px; box-shadow: 0 18px 35px #49301512; }
.hero-guide-inner { border: 1px solid #e6d9c6; border-radius: 12px; padding: 23px 24px 12px; background: var(--paper); }
.guide-title { font-size: 1.12rem; font-weight: 740; padding-bottom: 10px; }
.hero-guide ol { list-style: none; margin: 0; padding: 0; }
.hero-guide li { display: flex; align-items: center; gap: 13px; min-height: 53px; border-top: 1px solid #ebdfcf; font-size: .93rem; font-weight: 630; }
.hero-guide li span { color: var(--gold-ink); font-variant-numeric: tabular-nums; font-size: .76rem; font-weight: 740; }

.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 42px; align-items: start; padding-block: 45px 67px; scroll-margin-top: 20px; }
.progress-panel { padding-top: 13px; }
.progress-panel .eyebrow { margin-bottom: 18px; }
.step-list { list-style: none; display: grid; gap: 5px; margin: 0; padding: 0; }
.step-control { display: flex; align-items: center; width: 100%; gap: 11px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: .89rem; font-weight: 600; min-height: 46px; }
.step-control:not(:disabled):hover { background: var(--paper); }
.step-control:disabled { cursor: default; }
.step-control[aria-current="step"] { background: var(--cream); border-color: var(--line); color: var(--navy); font-weight: 750; }
.step-number { flex: 0 0 26px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #dbd3c7; font-size: .76rem; font-variant-numeric: tabular-nums; }
.step-control[aria-current="step"] .step-number { background: var(--navy); border-color: var(--navy); color: white; }
.step-control.done .step-number { color: var(--gold-ink); background: var(--cream); border-color: #dfc9aa; }
.save-hint { border-top: 1px solid var(--line); margin-top: 19px; padding: 15px 3px 4px; font-size: .82rem; color: var(--muted); }
.text-button { border: none; background: transparent; border-radius: 4px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; font-size: .87rem; font-weight: 650; }
.text-button:hover { color: var(--gold-ink); }
.quiet { color: var(--muted); }
.wizard { min-width: 0; min-height: 420px; border: 1px solid var(--line); border-radius: 17px; padding: clamp(24px, 4.3vw, 46px); box-shadow: 0 6px 26px #27190608; }
.wizard h2, .dialog-header h2, .small-dialog h2 { font-size: clamp(1.7rem, 3.3vw, 2.45rem); letter-spacing: -.045em; font-weight: 750; }
.step-heading { margin-top: 10px; }
.step-heading:focus { outline: none; }
.intro { color: var(--muted); margin-top: 11px; max-width: 64ch; }
.field-grid { display: grid; gap: 21px; margin-top: 29px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .library-filters label, legend { display: block; font-weight: 700; font-size: .93rem; line-height: 1.4; margin-bottom: 7px; }
.field-help { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
input:not([type="radio"]), select, textarea { width: 100%; min-height: 50px; color: var(--navy); border: 1px solid #cabfae; border-radius: 8px; background: var(--paper); padding: 10px 13px; font-size: 1rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 82px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #647082; opacity: 1; }
.field-error { color: var(--error); font-size: .86rem; font-weight: 650; margin-top: 5px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.form-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 28px; }
.form-nav .primary:last-child { margin-left: auto; }
.workbook-ref { font-size: .83rem; color: var(--muted); }
.seed-box { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 14px 16px; margin-top: 20px; font-size: .88rem; overflow-wrap: anywhere; }
.seed-box strong { display: block; margin-bottom: 3px; }
.seed-box .text-button { padding-bottom: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.time-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 8px; }
.time-option { display: flex; align-items: center; gap: 7px; border: 1px solid #d5c9b8; background: var(--paper); border-radius: 8px; padding: 10px 9px; min-height: 48px; cursor: pointer; font-size: .88rem; font-weight: 650; }
.time-option:has(input:checked) { border-color: var(--gold-ink); background: #f4e9d8; }
.time-option input { accent-color: var(--navy); width: 16px; height: 16px; margin: 0; flex: 0 0 16px; }
.summary { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; margin-top: 23px; padding: 14px 17px; }
.summary > summary { cursor: pointer; font-weight: 720; font-size: .94rem; }
.profile-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 22px; margin: 13px 0 0; font-size: .88rem; overflow-wrap: anywhere; }
.profile-list dt { font-weight: 700; }
.profile-list dd { margin: 1px 0 0; color: var(--ink); }
.idea-list { margin-top: 19px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.idea-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: white; overflow-wrap: anywhere; }
.idea-card.selected { border-color: var(--gold-ink); background: var(--paper); }
.card-label { margin-bottom: 8px; color: var(--gold-ink); font-size: .78rem; font-weight: 740; line-height: 1.35; }
.idea-card h3 { margin-bottom: 9px; font-size: 1.1rem; letter-spacing: -.025em; }
.idea-card p:not(.card-label) { margin-bottom: 10px; font-size: .86rem; color: var(--ink); }
.idea-card .card-reason { flex: 1; }
.idea-card .button { padding-inline: 8px; font-size: .83rem; width: 100%; }
.selected-plan { margin-top: 19px; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 18px 20px; overflow-wrap: anywhere; }
.selected-plan h3 { margin-bottom: 8px; font-size: 1.14rem; }
.selected-plan p { margin-top: 7px; color: var(--ink); font-size: .91rem; }
.selected-plan .button { margin-top: 15px; }

footer { border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 20px; min-height: 65px; padding-block: 10px; color: var(--muted); font-size: .84rem; }
dialog { border: 1px solid var(--line); border-radius: 17px; padding: 0; width: min(800px, calc(100% - 32px)); max-height: 90dvh; color: var(--navy); background: white; box-shadow: 0 18px 70px #111e3233; }
dialog::backdrop { background: #111e3280; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-shell { padding: clamp(20px, 4vw, 34px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; }
.dialog-header .eyebrow { margin-bottom: 8px; }
.dialog-header p:last-child { color: var(--muted); margin-top: 9px; }
.icon-button { border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--navy); min-width: 44px; min-height: 44px; font-size: 1.45rem; line-height: 1; }
.library-filters { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.chip { border: 1px solid #d7cdbf; border-radius: 22px; color: var(--navy); background: white; min-height: 40px; padding: 6px 12px; font-size: .84rem; font-weight: 650; }
.chip[aria-pressed="true"] { color: white; background: var(--navy); border-color: var(--navy); }
.library-count { color: var(--muted); font-size: .88rem; margin-block: 16px 7px; }
.catalog-list { display: grid; gap: 7px; }
.catalog-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; }
.catalog-item h3 { font-size: 1rem; margin-bottom: 5px; }
.catalog-item p { color: var(--muted); font-size: .86rem; }
.catalog-item .button { font-size: .82rem; min-height: 42px; padding: 8px 10px; }
.empty-message { padding: 16px; background: var(--cream); border-radius: 8px; }
.small-dialog { max-width: 460px; padding: 25px; }
.small-dialog h2 { font-size: 1.6rem; }
.small-dialog p { margin: 10px 0 20px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1.24fr) minmax(270px, 1fr); gap: 34px; }
  .workspace { grid-template-columns: 177px minmax(0, 1fr); gap: 23px; }
  .idea-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page { width: calc(100% - 36px); }
  .masthead-inner { min-height: 66px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding-block: 37px 38px; }
  .hero-guide { display: none; }
  .hero-copy > p { margin-block: 14px 18px; }
  .hero-break { display: none; }
  .workspace { display: flex; flex-direction: column; padding-block: 18px 35px; gap: 16px; }
  .progress-panel, .wizard { width: 100%; }
  .progress-panel { padding-top: 3px; }
  .progress-panel .eyebrow { margin-bottom: 8px; }
  .step-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .step-control { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 6px 2px; font-size: .69rem; }
  .step-number { width: 24px; height: 24px; }
  .save-hint { border: 0; margin: 4px 0 0; padding: 4px 0 0; }
  .wizard { min-height: auto; padding: 23px 18px; }
  .field-grid.two { grid-template-columns: 1fr; }
  .time-options { grid-template-columns: 1fr; }
  .profile-list { grid-template-columns: 1fr; }
  .catalog-item { grid-template-columns: 1fr; }
  .catalog-item .button { justify-self: start; }
}

@media (max-width: 367px) {
  .masthead-inner { gap: 6px; }
  .wordmark { font-size: .82rem; gap: 7px; }
  .brand-line { font-size: .75rem; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; padding-bottom: 6px; }
  .library-button { font-size: .74rem; padding-left: 8px; gap: 5px; }
  .library-mark { display: none; }
  .button { padding-inline: 13px; }
}

.access-body { min-height: 100dvh; display: flex; flex-direction: column; }
.access-main { flex: 1; padding-block: clamp(38px, 7vw, 94px); }
.access-intro { max-width: 720px; margin-bottom: clamp(28px, 5vw, 48px); }
.access-intro h1 { font-size: clamp(2.35rem, 5.5vw, 4.65rem); }
.access-intro > p:last-child { color: var(--ink); margin-top: 20px; font-size: clamp(1rem, 1.8vw, 1.14rem); max-width: 59ch; }
.access-guide { max-width: 720px; margin-bottom: 24px; }
.access-guide h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 0 0 14px; }
.access-guide p { color: var(--ink); margin: 0 0 8px; }
.access-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.access-card { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; padding: clamp(19px, 3.2vw, 35px); background: var(--paper); }
.access-card > h2 { font-size: clamp(1.3rem, 2.4vw, 1.62rem); }
.access-card > p { flex: 1; color: var(--muted); line-height: 1.58; }
.access-card .button { margin-top: 5px; }
.login-card { max-width: 485px; }
.login-card .field { width: 100%; }
.login-card > .login-support { align-self: stretch; margin: 0; overflow-wrap: anywhere; }
.login-support a { text-decoration: underline; }
.access-logout { margin-top: 20px; }
.shortlist-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; margin-top: 14px; }
.shortlist-bar > p { font-size: .87rem; color: var(--muted); }
.compare-panel { padding: 14px; margin-top: 12px; background: var(--cream); border-radius: 8px; }
.compare-panel .idea-list { margin-top: 10px; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.catalog-actions [aria-pressed="true"] { border-color: var(--gold-ink); background: var(--cream); }
#export-button, #retry-save, #reset-button { display: block; text-align: left; }
.save-hint { overflow-wrap: anywhere; }
.button:disabled, .library-button:disabled { opacity: .6; cursor: default; }
@media (max-width: 720px) {
  .access-options { grid-template-columns: 1fr; gap: 13px; }
}
