@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600&display=swap');

:root {
    color-scheme: light;
    --paper: #f7f5ec;
    --ink: #203b4c;
    --muted: #69766f;
    --navy: #203b4c;
    --yellow: #e8bd54;
    --line: #d9d8cf;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: 'Manrope', 'Segoe UI', sans-serif; }
a { color: inherit; }

.landing-shell { min-height: 100vh; }
.topbar { display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 0 max(34px, calc((100vw - 1408px) / 2)); background: var(--navy); color: var(--paper); }
.brand { display: inline-flex; align-items: baseline; gap: 0; color: var(--paper); text-decoration: none; }
.brand-mark { color: var(--yellow); font-family: 'Playfair Display', Georgia, serif; font-size: 37px; line-height: 1; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -.045em; }
.topbar-links { display: flex; align-items: center; gap: 31px; }
.topbar-link { color: #e1e6e4; font-size: 14px; text-decoration: none; }
.topbar-link:hover { color: var(--yellow); }
.account-entry { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid #ffffff50; color: var(--paper); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .18s ease,background .18s ease; }
.account-entry svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-entry:hover { border-color: var(--yellow); background: #ffffff0c; }
.account-entry:focus-visible,.topbar-link:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.landing-content { width: min(1408px, calc(100% - 64px)); margin: 0 auto; }
.hero { display: grid; min-height: 260px; grid-template-columns: minmax(0,1fr); align-items: center; padding: 40px 0 34px; }
.hero-copy { padding-left: 3px; }
.hero-kicker,.archive-kicker,.section-heading p,.section-heading span,.choice-meta { font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.hero-kicker { font-size: 14px; }
.hero-kicker { margin: 0 0 19px; color: #3f6b80; }
.hero-kicker span { margin: 0 5px; color: #9b9c91; }
.hero h1 { margin: 0; font-size: clamp(22px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.055em; line-height: 1.08; white-space: nowrap; }
.hero-description { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.archive-card { padding: 25px 27px 23px; background: var(--yellow); color: var(--navy); }
.archive-kicker { margin: 0 0 21px; }
.archive-years { position: relative; display: grid; gap: 15px; margin: 0 0 19px 8px; padding-left: 24px; }
.archive-years::before { position: absolute; top: 7px; bottom: 7px; left: 0; width: 2px; background: var(--navy); content: ''; }
.archive-years span { position: relative; font-size: 16px; font-weight: 800; }
.archive-years span::before { position: absolute; top: 7px; left: -29px; width: 9px; height: 9px; border: 2px solid var(--yellow); border-radius: 50%; background: var(--navy); content: ''; }
.archive-card > p:last-child { margin: 0; font-size: 12px; font-weight: 600; }

.choice-section { padding: 8px 0 75px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 2px 13px; border-bottom: 1px solid #9fa9a4; }
.section-heading p,.section-heading span { margin: 0; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.choice-card { display: flex; min-height: 328px; flex-direction: column; padding: 27px 25px 24px; text-decoration: none; }
.kpss-card { background: var(--navy); color: var(--paper); transition: background .18s ease,transform .18s ease; }
.kpss-card:hover { transform: translateY(-2px); background: #294b5f; }
.kpss-card:focus-visible { outline: 3px solid #3f6b80; outline-offset: 4px; }
.current-card { background: #3f6b80; color: var(--paper); transition: background .18s ease,transform .18s ease; }
.current-card:hover { transform: translateY(-2px); background: #345d71; }
.calculator-card { background: var(--yellow); color: var(--navy); transition: background .18s ease,transform .18s ease; }
.calculator-card:hover { transform: translateY(-2px); background: #ddb34b; }
.current-card:focus-visible,.calculator-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.choice-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--yellow); font-size: 11px; }
.current-card .choice-meta { color: #f4d477; }
.calculator-card .choice-meta { color: #203b4c; }
.choice-status { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; }
.choice-status i { width: 8px; height: 8px; border-radius: 50%; background: #9ac59d; }
.choice-card h2 { margin: 31px 0 0; font-size: 39px; font-weight: 800; letter-spacing: -.06em; line-height: .95; }
.choice-card h3 { margin: 5px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.choice-card p { max-width: 490px; margin: 17px 0 0; color: #d5dfe4; font-size: 14px; line-height: 1.65; }
.calculator-card p { color: #455963; }
.choice-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 27px; border-top: 1px solid #607687; color: var(--yellow); font-size: 15px; font-weight: 800; }
.choice-action span:last-child { font-size: 23px; }
.current-card .choice-action { border-color: #8aa3ad; color: #f4d477; }
.calculator-card .choice-action { border-color: #bd9b43; color: var(--navy); }
.landing-footer { display: flex; justify-content: space-between; padding: 17px 0 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.landing-footer span:last-child { font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.landing-footer i { color: #a98736; font-style: normal; }

.placeholder-content { display: grid; min-height: calc(100vh - 82px); place-items: center; padding-top: 20px; padding-bottom: 50px; }
.placeholder-panel { width: min(620px, 100%); padding: 42px; border: 1px solid var(--line); background: #fffdf7; }
.placeholder-panel .hero-kicker { margin-bottom: 15px; }
.placeholder-panel h1 { margin: 0; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.05em; }
.placeholder-panel > p:not(.hero-kicker) { margin: 14px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.placeholder-back { color: #3f6b80; font-weight: 800; text-decoration: none; }
.placeholder-back:hover { color: var(--navy); }

@media (max-width: 980px) {
    .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .topbar { min-height: 72px; padding: 0 22px; }
    .topbar-links { gap: 14px; }
    .topbar-link { display: none; }
    .landing-content { width: calc(100% - 44px); }
    .hero { min-height: 0; grid-template-columns: 1fr; gap: 0; padding: 48px 0 35px; }
    .hero-description { margin-top: 16px; font-size: 15px; }
    .choice-section { padding-bottom: 40px; }
    .choice-grid { grid-template-columns: 1fr; gap: 12px; }
    .choice-card { min-height: 290px; padding: 25px 24px 22px; }
    .choice-card h2 { margin-top: 27px; }
    .placeholder-content { min-height: calc(100vh - 72px); }
    .placeholder-panel { padding: 30px 25px; }
}

@media (max-width: 420px) {
    .landing-content { width: calc(100% - 32px); }
    .topbar { padding: 0 16px; }
    .brand-mark { font-size: 33px; }
    .brand-name { font-size: 20px; }
    .account-entry { min-height: 38px; padding: 0 9px; font-size: 12px; }
    .choice-card { min-height: 275px; }
    .choice-grid { grid-template-columns: 1fr; }
    .choice-meta { align-items: flex-start; flex-direction: column; gap: 9px; }
    .landing-footer { gap: 12px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Homepage redesign: calm, light editorial layout from the supplied Figma frame. */
body.homepage { background: #f7f9f7; }
.homepage .landing-shell { width: 100%; min-height: 100vh; margin: 0; overflow: hidden; background: #f7f9f7; }
.homepage .topbar { min-height: 78px; padding: 0 max(32px, calc((100% - 1120px) / 2)); border: 0; border-bottom: 1px solid #dfe7e4; border-radius: 0; background: #fff; color: var(--navy); }
.homepage .brand,.homepage .brand-name { color: var(--navy); }
.homepage .topbar-link { color: var(--navy); font-weight: 600; }
.homepage .topbar-link:hover { color: #276d81; }
.homepage .account-entry { min-height: 42px; border: 1px solid #dfe7e4; border-radius: 14px; color: var(--navy); }
.homepage .account-entry:hover { border-color: #b8cfca; background: #f5f8f7; }
.homepage .account-entry:focus-visible,.homepage .topbar-link:focus-visible { outline-color: #276d81; }
.homepage .landing-content { width: min(1200px, calc(100% - 64px)); }
.homepage .hero { min-height: 335px; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; padding: 58px 0 48px; }
.homepage .hero-copy { padding-left: 0; }
.homepage .hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: #276d81; font-size: 11px; letter-spacing: .12em; }
.homepage .hero-kicker i { width: 9px; height: 9px; border-radius: 50%; background: #f3b63f; }
.homepage .hero h1 { font-size: clamp(36px, 4.3vw, 48px); letter-spacing: -.04em; line-height: 1.12; white-space: nowrap; }
.homepage .hero-description { margin-top: 22px; color: #6c8290; font-size: 16px; }
.homepage .hero-subdescription { margin: 8px 0 0; color: #6c8290; font-size: 14px; line-height: 1.6; }
.homepage .guide-card { padding: 24px 19px 20px; border: 1px solid #dfe7e4; border-radius: 20px; background: #fff; }
.homepage .guide-title { margin: 0 0 23px; color: #276d81; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.homepage .guide-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.homepage .guide-card li { display: flex; min-height: 30px; align-items: center; gap: 10px; padding: 0 11px; border-radius: 9px; background: #f4f7f6; color: #71838d; font-size: 12px; font-weight: 600; }
.homepage .guide-card li i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #216c80; }
.homepage .guide-card li.guide-active { background: #fff4d7; color: var(--navy); }
.homepage .guide-card li.guide-active i { background: #f3b63f; }
.homepage .choice-section { padding: 0 0 52px; }
.homepage .section-heading { margin-bottom: 16px; padding: 0 0 12px; border-color: #dfe7e4; }
.homepage .section-heading p,.homepage .section-heading span { color: #708792; font-size: 10px; }
.homepage .choice-grid { gap: 28px; }
.homepage .choice-card { position: relative; min-height: 340px; padding: 26px 22px 14px; overflow: hidden; border: 1px solid #dfe7e4; border-radius: 19px; background: #fff; color: var(--navy); }
.homepage .choice-card::before { position: absolute; top: 0; right: 0; left: 0; height: 0; background: transparent; content: ''; }
.homepage .kpss-card { border-color: #e0c581; background: #fff; color: var(--navy); }
.homepage .kpss-card::before { height: 5px; background: #f3b63f; }
.homepage .kpss-card:hover { transform: translateY(-2px); border-color: #d9b85d; background: #fff; }
.homepage .current-card { background: #fff; color: var(--navy); }
.homepage .current-card:hover { transform: translateY(-2px); border-color: #c7d8d9; background: #fff; }
.homepage .calculator-card { background: #fff; color: var(--navy); }
.homepage .calculator-card:hover { transform: translateY(-2px); border-color: #d6dfe0; background: #fff; }
.homepage .choice-card:focus-visible { outline: 3px solid #276d81; outline-offset: 3px; }
.homepage .choice-topline { display: flex; min-height: 49px; align-items: flex-start; justify-content: space-between; }
.homepage .choice-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: #fff4d7; color: #9a6814; font-size: 29px; font-weight: 700; line-height: 1; }
.homepage .current-card .choice-icon { background: #e9f2f4; color: #216c80; font-size: 24px; }
.homepage .calculator-card .choice-icon { color: #a87920; }
.homepage .choice-status { min-height: 26px; align-items: center; padding: 0 12px; border-radius: 20px; background: #e8f4f0; color: #43806e; font-size: 10px; font-weight: 800; }
.homepage .choice-status i { width: 0; height: 0; }
.homepage .choice-status.available::before { width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #6daa89; content: ''; }
.homepage .choice-status.soon { background: #eef2f3; color: #81939a; }
.homepage .choice-status.years { background: #fff4d7; color: #94702f; }
.homepage .choice-meta { margin-top: 15px; color: #a87920; font-size: 10px; }
.homepage .current-card .choice-meta,.homepage .calculator-card .choice-meta { color: #276d81; }
.homepage .choice-card h2 { margin: 17px 0 0; font-size: 29px; letter-spacing: -.04em; line-height: 1.08; }
.homepage .choice-card h3 { margin-top: 1px; font-size: 27px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.homepage .choice-card p { margin-top: 19px; color: #718794; font-size: 13px; line-height: 1.6; }
.homepage .calculator-card p { color: #718794; }
.homepage .choice-action { min-height: 34px; margin-top: auto; padding: 0 12px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-size: 12px; }
.homepage .choice-action span:last-child { color: #f3b63f; font-size: 19px; }
.homepage .current-card .choice-action { background: #f4f7f6; color: #91a2a6; }
.homepage .current-card .choice-action span:last-child { color: #91a2a6; }
.homepage .calculator-card .choice-action { background: #e9f2f4; color: #276d81; }
.homepage .calculator-card .choice-action span:last-child { color: #276d81; }
.homepage .help-strip { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 27px; padding: 0 18px; border-radius: 13px; background: #e5f0f4; color: #718794; font-size: 12px; }
.homepage .help-strip strong { color: var(--navy); font-size: 12px; }
.homepage .landing-footer { padding: 15px 0 20px; border-color: #dfe7e4; color: #718794; font-size: 10px; }
.homepage .landing-footer span:last-child { font-size: 9px; }

@media (max-width: 980px) {
    .homepage .landing-shell { width: 100%; min-height: 100vh; margin: 0; }
    .homepage .topbar { padding-right: 32px; padding-left: 32px; }
    .homepage .hero { grid-template-columns: minmax(0,1fr) 260px; gap: 25px; }
    .homepage .hero h1 { font-size: clamp(30px, 4.5vw, 42px); white-space: normal; }
    .homepage .choice-grid { gap: 14px; }
    .homepage .choice-card { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 760px) {
    body.homepage { background: #f7f9f7; }
    .homepage .landing-shell { width: 100%; min-height: 100vh; margin: 0; }
    .homepage .topbar { min-height: 72px; padding: 0 22px; }
    .homepage .landing-content { width: calc(100% - 40px); }
    .homepage .hero { grid-template-columns: 1fr; gap: 22px; padding: 42px 0 32px; }
    .homepage .hero h1 { white-space: normal; }
    .homepage .guide-card { max-width: none; }
    .homepage .choice-section { padding-bottom: 30px; }
    .homepage .choice-grid { grid-template-columns: 1fr; gap: 12px; }
    .homepage .choice-card { min-height: 300px; padding: 23px 20px 14px; }
    .homepage .help-strip { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 14px 16px; }
    .homepage .landing-footer { gap: 12px; }
}
@media (max-width: 420px) {
    .homepage .landing-content { width: calc(100% - 32px); }
    .homepage .topbar { padding: 0 16px; }
    .homepage .account-entry { min-height: 38px; padding: 0 9px; font-size: 12px; }
    .homepage .choice-meta { align-items: center; flex-direction: row; }
    .homepage .landing-footer { font-size: 9px; }
}
