/* StraightCalc — homepage and informational pages.
   Scoped styles keep the existing calculator UIs unchanged. */
.site-skip-link:focus {
    position: fixed; z-index: 100; top: 10px; left: 10px;
    width: auto; height: auto; margin: 0; padding: 10px 14px;
    clip: auto; overflow: visible; white-space: normal;
    color: #101c31; background: #fff; border-radius: 6px;
}
.site-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.site-footer-links a { color: #485d79; text-decoration: none; font-weight: 620; }
.site-footer-links a:hover { color: #1b56ce; text-decoration: underline; }
.site-footer-links a:focus-visible { outline-offset: 4px; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 38px; align-items: center; padding: 40px 0 58px; }
.home-hero-copy, .home-hero-demo { min-width: 0; }
.home-kicker, .home-section-kicker { color: #2055bf; font-weight: 850; font-size: .69rem; letter-spacing: .105em; margin: 0 0 16px; }
.home-kicker { display: flex; align-items: center; gap: 9px; }
.home-kicker-mark { display: inline-block; flex: none; width: 19px; height: 3px; background: #2864ed; }
.home-hero h1 { font-size: clamp(2.65rem, 5vw, 4.45rem); line-height: 1.09; letter-spacing: -.06em; margin: 0 0 23px; }
.home-hero h1 span { color: #2864ed; }
.home-lead { max-width: 600px; margin: 0; color: #52647b; font-size: 1.075rem; line-height: 1.75; }
.home-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 47px; padding: 12px 20px; border-radius: 7px; font-size: .91rem; line-height: 1.25; font-weight: 750; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.home-button:hover { transform: translateY(-1px); }
.home-button-primary { color: #fff; background: #2864ed; border: 1px solid #2864ed; }
.home-button-primary:hover { background: #164ec9; border-color: #164ec9; }
.home-button-secondary { color: #214fbb; background: #fff; border: 1px solid #c5d5eb; }
.home-button-secondary:hover { background: #f5f8ff; border-color: #9ab6ea; }
.home-hero-note { margin: 18px 0 0; color: #6a7b90; font-size: .75rem; }
.home-hero-demo { border: 1px solid #d3ddeb; border-radius: 13px; background: #fff; padding: 0 20px 20px; box-shadow: 0 24px 55px rgba(24, 48, 85, .065); }
.home-demo-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 18px 0 15px; border-bottom: 1px solid #e7ecf4; color: #536b91; font-size: .66rem; font-weight: 850; letter-spacing: .075em; }
.home-demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #2864ed; }
.home-demo-tag { margin-left: auto; color: #63728b; background: #f2f5fa; padding: 3px 7px; border-radius: 4px; font-size: .62rem; }
.home-demo-stage { margin-top: 14px; padding: 17px 17px 13px; border-radius: 9px; background: #f5f8fd; border: 1px solid #e0e8f4; }
.home-demo-stage-header { display: flex; align-items: center; gap: 10px; }
.home-demo-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; background: #e1ebff; border-radius: 6px; color: #2559c9; font-size: .72rem; font-weight: 850; }
.home-demo-stage-header div { display: grid; gap: 0; }
.home-demo-stage-header strong { color: #14233b; font-size: .88rem; }
.home-demo-stage-header small { color: #6d7e94; font-size: .73rem; }
.home-demo-big { color: #14233b; font-size: 2.1rem; letter-spacing: -.05em; font-weight: 820; line-height: 1.3; margin-top: 9px; }
.home-demo-big span { font-size: .92rem; letter-spacing: normal; color: #315d9a; font-weight: 680; }
.home-demo-stage p { margin: 0; color: #6b7e97; font-size: .72rem; }
.home-demo-connector { display: flex; align-items: center; justify-content: center; height: 19px; color: #4b78c5; font-size: 1.15rem; font-weight: 800; }
.home-demo-connector + .home-demo-stage { margin-top: 0; }
.home-demo-bottom { text-align: center; background: #162842; color: #bfd2ee; border-radius: 7px; padding: 11px 8px; margin-top: 15px; font-size: .8rem; }
.home-demo-bottom strong { color: #fff; }
.home-demo-bottom span { color: #91b7ff; }

.home-section { padding: 50px 0 56px; border-top: 1px solid #dee5ef; }
.home-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 28px; margin-bottom: 25px; }
.home-section-heading > div { min-width: 0; flex: 1 1 400px; }
.home-section-heading > p { flex: 1 1 250px; max-width: 360px; margin: 0; font-size: .88rem; line-height: 1.7; color: #687b91; }
.home-section-heading .home-section-kicker { margin-bottom: 8px; }
.home-section h2, .home-workspace h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.047em; line-height: 1.2; margin: 0; }
.home-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-tool-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 25px 26px 22px; background: #fff; border: 1px solid #d9e2ef; border-radius: 11px; text-decoration: none; color: #142034; transition: transform .15s, border-color .15s, box-shadow .15s; }
.home-tool-card:hover { transform: translateY(-2px); border-color: #98b9ff; box-shadow: 0 13px 30px rgba(23, 47, 84, .065); }
.home-tool-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #cfe0ff; border-radius: 9px; background: #edf3ff; color: #2258ce; font-size: 1.45rem; margin-bottom: 20px; }
.home-tool-category { margin-bottom: 5px; color: #4066a8; font-size: .64rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.home-tool-card strong { display: block; margin-bottom: 10px; color: #142034; letter-spacing: -.025em; line-height: 1.3; font-size: 1.21rem; }
.home-tool-description { display: block; color: #60738b; font-size: .87rem; line-height: 1.7; flex: 1; }
.home-tool-link { display: block; color: #1e55c7; font-size: .82rem; font-weight: 800; margin-top: 23px; }
.home-collection-note { color: #76879b; font-size: .77rem; margin: 16px 0 0; }

.home-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; background: #162842; color: #fff; border-radius: 12px; padding: 40px; margin: 6px 0 51px; }
.home-workspace .home-section-kicker { color: #9dbfff; margin-bottom: 12px; }
.home-workspace h2 { color: #fff; max-width: 500px; }
.home-workspace-copy > p:not(.home-section-kicker) { font-size: .93rem; line-height: 1.8; color: #cedaeb; margin: 19px 0; }
.home-check-list { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.home-check-list li { display: flex; align-items: baseline; gap: 9px; color: #e0eafa; font-size: .86rem; }
.home-check-list li::before { content: "✓"; color: #9ac0ff; font-weight: 900; }
.home-workspace-panel { min-width: 0; background: #fff; color: #182941; border-radius: 9px; padding: 20px; box-shadow: 0 15px 30px rgba(0, 0, 0, .09); }
.home-panel-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: .65rem; letter-spacing: .07em; color: #4c75ac; }
.home-panel-header span { color: #8b98ab; letter-spacing: normal; }
.home-sample-project { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin: 19px 0 15px; padding: 15px; background: #eff5ff; border: 1px solid #cdddff; border-radius: 8px; }
.home-sample-project div, .home-sample-record div { display: grid; gap: 2px; }
.home-sample-project strong { font-size: .88rem; }
.home-sample-project span:not(.home-sample-pill), .home-sample-record div > span { color: #6a7b90; font-size: .69rem; }
.home-sample-pill { color: #2459c3; font-size: .65rem; font-weight: 800; }
.home-sample-record { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid #e8edf5; }
.home-sample-record > span:last-child { margin-left: auto; color: #8ca5d1; }
.home-record-dot { display: inline-block; width: 8px; height: 8px; border: 2px solid #5086ee; border-radius: 50%; }
.home-sample-record strong { font-size: .8rem; }
.home-panel-note { color: #8390a4; font-size: .69rem; line-height: 1.65; margin: 15px 0 0; }

.home-values { padding-top: 5px; border: 0; }
.home-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-value-grid > div { min-width: 0; padding: 20px 0; border-top: 2px solid #cbd9ed; }
.home-value-index { color: #4267a6; font-size: .66rem; font-weight: 820; letter-spacing: .09em; }
.home-value-grid h3 { color: #172742; font-size: 1.13rem; letter-spacing: -.02em; margin: 10px 0 8px; }
.home-value-grid p { color: #65778d; font-size: .88rem; line-height: 1.75; margin: 0; }
.home-bottom-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 25px; border-top: 1px solid #dce4ee; padding: 27px 0 0; }
.home-bottom-note strong { font-size: 1.04rem; }
.home-bottom-note p { color: #65788c; margin: 5px 0 0; max-width: 640px; font-size: .85rem; }
.home-text-link { color: #1e55c7; white-space: nowrap; font-size: .86rem; font-weight: 800; text-decoration: none; }
.home-text-link:hover { text-decoration: underline; }

/* About and Privacy */
.info-hero { padding: 34px 0 30px; max-width: 810px; }
.info-hero h1 { font-size: clamp(2.3rem, 4vw, 3.25rem); margin: 0 0 13px; }
.info-hero > p:not(.home-section-kicker) { color: #60738a; font-size: 1.02rem; line-height: 1.7; margin: 0; }
.info-hero .info-date { color: #7d8ea3 !important; font-size: .81rem !important; margin-top: 16px !important; }
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); align-items: start; gap: 26px; }
.info-article { min-width: 0; padding: 8px 30px 6px; background: #fff; border-radius: 11px; border: 1px solid #dbe3ee; }
.info-article section { padding: 24px 0; border-bottom: 1px solid #e5ebf3; }
.info-article section:last-child { border: 0; }
.info-article h2 { font-size: 1.23rem; letter-spacing: -.025em; margin: 0 0 12px; color: #17243b; }
.info-article p { color: #576b81; font-size: .91rem; line-height: 1.83; margin: 0 0 12px; }
.info-article p:last-child { margin-bottom: 0; }
.info-article strong { color: #263c56; }
.info-article a, .info-inline-link { color: #245acb; font-weight: 690; text-decoration: underline; text-underline-offset: 3px; }
.info-article .info-inline-link { display: inline-block; font-size: .85rem; margin: 3px 0 2px; text-decoration: none; }
.info-article .info-inline-link:hover { text-decoration: underline; }
.info-side-card { padding: 24px; border: 1px solid #dbe3ee; background: #fff; border-radius: 10px; margin-bottom: 15px; }
.info-side-card .home-section-kicker { margin-bottom: 7px; }
.info-side-card h2 { font-size: 1.15rem; margin: 0 0 15px; letter-spacing: -.025em; }
.info-side-card p { color: #60758c; line-height: 1.74; font-size: .84rem; margin: 0 0 13px; }
.info-side-card a { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #245aca; font-size: .82rem; font-weight: 730; text-decoration: none; border-top: 1px solid #ebeff5; padding: 12px 0; }
.info-side-card a:hover { color: #133e9e; }
.info-side-card a:last-child { padding-bottom: 0; }
.info-side-muted { background: #edf3fb; border-color: #dce6f5; }
.info-side-muted strong { font-size: .84rem; }
.info-side-muted p { margin: 9px 0 0; }
.info-policy section { scroll-margin-top: 18px; }

@media (max-width: 930px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 22px; }
    .home-hero-demo { max-width: 600px; }
    .home-workspace { grid-template-columns: minmax(0, 1fr); }
    .home-workspace-panel { max-width: 580px; }
    .info-layout { grid-template-columns: minmax(0, 1fr); }
    .info-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .info-side-card { margin: 0; }
}
@media (max-width: 600px) {
    .home-hero { padding: 20px 0 36px; }
    .home-hero h1 { font-size: clamp(2.55rem, 9vw, 3.3rem); }
    .home-lead { font-size: .96rem; }
    .home-actions { flex-direction: column; }
    .home-button { width: 100%; }
    .home-hero-demo { padding: 0 13px 13px; }
    .home-section { padding: 35px 0; }
    .home-tool-grid, .home-value-grid, .info-sidebar { grid-template-columns: minmax(0, 1fr); }
    .home-tool-card { padding: 21px; }
    .home-workspace { padding: 26px 19px; gap: 24px; margin: 5px 0 35px; }
    .home-workspace-panel { padding: 15px; }
    .home-bottom-note { padding-top: 22px; }
    .info-hero { padding: 16px 0 23px; }
    .info-article { padding: 0 18px; }
    .info-article section { padding: 20px 0; }
}

/* Homepage: first link into the reusable countdown collection */
.home-countdown-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, .65fr); gap: 28px; align-items: center; margin: 4px 0 42px; padding: 27px 34px; border: 1px solid #d6e1ee; border-radius: 12px; background: linear-gradient(115deg, #ffffff 0%, #f0f5ff 100%); }
.home-countdown-feature h2 { color: #162942; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.035em; margin: 0 0 9px; }
.home-countdown-feature p:not(.home-section-kicker) { color: #60758f; font-size: .87rem; line-height: 1.7; max-width: 580px; margin: 0 0 19px; }
.home-countdown-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid #cbdcf8; background: #e4edff; border-radius: 10px; padding: 17px 10px; min-height: 182px; }
.home-countdown-preview-kicker { color: #4167ad; font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.home-countdown-preview > strong { color: #1a3764; font-size: 2.2rem; letter-spacing: -.055em; line-height: 1.4; }
.home-countdown-preview > strong span { color: #2661df; font-size: 3.3rem; }
.home-countdown-preview > small { color: #375688; font-weight: 800; font-size: .72rem; letter-spacing: .09em; }
.home-countdown-preview-link { color: #5675a3; font-size: .72rem; margin-top: 12px; }
@media (max-width: 700px) {
    .home-countdown-feature { grid-template-columns: minmax(0, 1fr); padding: 21px; gap: 18px; }
    .home-countdown-preview { min-height: 120px; }
    .home-countdown-feature .home-button { width: 100%; }
}
