:root {
  --ink: #17383b;
  --muted: #607779;
  --teal: #075e66;
  --teal-dark: #063f45;
  --green: #2e8a67;
  --cream: #f7f4ea;
  --paper: #fffef9;
  --line: #dce7e4;
  --shadow: 0 18px 55px rgba(8, 63, 69, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; background: radial-gradient(circle at 15% 0%, #dff2eb 0, transparent 32rem), var(--cream); }
button { font: inherit; cursor: pointer; }

.topbar { height: 72px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(7, 94, 102, .1); background: rgba(255, 254, 249, .86); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; }
.brand-logo { width: 45px; height: 45px; border-radius: 12px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 1px; }
.text-button { border: 0; background: transparent; color: var(--teal); padding: 10px; }

.app-shell { width: min(100% - 28px, 1000px); margin: 0 auto; padding: clamp(36px, 7vw, 78px) 0 46px; }
.welcome { text-align: center; }
.eyebrow { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
h1 { max-width: 820px; margin: 18px auto 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; }
.lead { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.22rem); line-height: 1.65; }

.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 38px auto 24px; text-align: left; }
.path-card { position: relative; min-height: 148px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 254, 249, .9); color: var(--ink); box-shadow: 0 6px 24px rgba(8, 63, 69, .04); transition: .2s ease; }
.path-card:hover, .path-card:focus-visible, .path-card.selected { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); outline: none; }
.path-card.selected::after { content: "✓"; position: absolute; top: 16px; right: 17px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); }
.path-icon { display: block; font-size: 1.55rem; margin-bottom: 12px; }
.path-card strong, .path-card small { display: block; }
.path-card strong { font-size: 1.04rem; }
.path-card small { color: var(--muted); line-height: 1.45; margin-top: 6px; max-width: 39ch; }

.notice { max-width: 760px; margin: 22px auto 28px; padding: 20px 22px; text-align: left; border: 1px solid #e7dcc0; border-radius: 16px; background: #fffaf0; }
.notice p { margin: 6px 0 0; color: #6b6047; line-height: 1.55; }
.primary-button { display: inline-block; border: 0; border-radius: 999px; padding: 15px 27px; background: linear-gradient(135deg, var(--teal), var(--green)); color: white; font-weight: 750; text-decoration: none; box-shadow: 0 10px 28px rgba(7, 94, 102, .22); transition: .2s ease; }
.primary-button:hover, .primary-button:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(7, 94, 102, .28); outline: 3px solid rgba(46, 138, 103, .18); }
.selection-hint { color: var(--muted); font-size: .92rem; margin: 14px auto 0; }

.how-it-works { max-width: 760px; margin: 40px auto 0; padding: 24px 28px; text-align: left; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 254, 249, .72); }
.how-it-works h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.65rem; }
.how-it-works ol { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.8; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px clamp(18px, 4vw, 56px); border-top: 1px solid rgba(7, 94, 102, .1); color: var(--muted); background: rgba(255, 254, 249, .65); }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--teal); text-decoration: none; }
footer a:hover { text-decoration: underline; }

dialog { width: min(92vw, 620px); border: 0; border-radius: 24px; padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(3, 35, 38, .3); }
dialog::backdrop { background: rgba(4, 32, 35, .58); backdrop-filter: blur(4px); }
.dialog-content { position: relative; padding: 30px; }
.dialog-content h2 { font-family: Georgia, serif; font-size: 2rem; margin: 0 0 12px; }
.dialog-content p, .dialog-content li { line-height: 1.55; color: var(--muted); }
.dialog-content li { margin-bottom: 8px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf3f1; font-size: 1.5rem; }
.dialog-action { margin-top: 8px; }

@media (max-width: 680px) {
  .topbar { height: 64px; }
  .brand small { display: none; }
  .text-button { font-size: .83rem; }
  .app-shell { padding-top: 30px; }
  .path-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .path-card { min-height: 120px; }
  footer { flex-direction: column; align-items: center; text-align: center; }
}
