:root {
    color-scheme: light;
    --bg: #f3f8f8;
    --bg-deep: #e7f2f1;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --surface-muted: #f5f8f8;
    --text: #12302f;
    --text-soft: #5f7473;
    --border: rgba(18, 48, 47, 0.12);
    --border-strong: rgba(18, 48, 47, 0.2);
    --teal: #0f766e;
    --teal-dark: #0b5c56;
    --teal-soft: #dff4f1;
    --violet: #6d5bd0;
    --violet-dark: #5442b8;
    --violet-soft: #ece9ff;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --shadow: 0 24px 80px rgba(18, 48, 47, 0.11);
    --shadow-small: 0 10px 30px rgba(18, 48, 47, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --focus: 0 0 0 4px rgba(15, 118, 110, 0.18);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #091716;
    --bg-deep: #0b201e;
    --surface: rgba(16, 36, 34, 0.9);
    --surface-solid: #102422;
    --surface-muted: #142b29;
    --text: #eefaf8;
    --text-soft: #a7bfbc;
    --border: rgba(219, 243, 239, 0.12);
    --border-strong: rgba(219, 243, 239, 0.2);
    --teal: #5ee0d2;
    --teal-dark: #82eee4;
    --teal-soft: #163d39;
    --violet: #a89af2;
    --violet-dark: #c2b8ff;
    --violet-soft: #292347;
    --danger: #ffb4ab;
    --danger-soft: #3a1d1b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --shadow-small: 0 10px 30px rgba(0, 0, 0, 0.2);
    --focus: 0 0 0 4px rgba(94, 224, 210, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    background: var(--bg);
}

body {
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(65, 190, 177, 0.18), transparent 32rem),
        radial-gradient(circle at 92% 28%, rgba(109, 91, 208, 0.14), transparent 28rem),
        linear-gradient(160deg, var(--bg), var(--bg-deep));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    min-width: 0;
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    color: white;
    background: linear-gradient(145deg, #0f766e, #28a99d);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}

.brand-mark svg {
    width: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.brand small {
    margin-top: 1px;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 15px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-small);
    font-size: 0.84rem;
    font-weight: 780;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-link:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
}

.theme-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-small);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
}

.theme-toggle:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.theme-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-icon-moon {
    display: block;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    min-height: 300px;
    padding: 54px 62px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(120deg, rgba(9, 78, 73, 0.98), rgba(16, 121, 112, 0.94) 58%, rgba(74, 66, 155, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    color: white;
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 280px;
    height: 280px;
    top: -170px;
    right: 18%;
    background: rgba(255, 255, 255, 0.08);
}

.hero::after {
    width: 180px;
    height: 180px;
    bottom: -120px;
    left: 42%;
    background: rgba(255, 255, 255, 0.06);
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #b9f2ec;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 5.8vw, 4.8rem);
    font-weight: 770;
    letter-spacing: -0.055em;
    line-height: 0.99;
}

.hero-copy {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.hero-orbit {
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    justify-self: end;
    position: relative;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.orbit-ring::before,
.orbit-ring::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    background: #bdf5ee;
    box-shadow: 0 0 20px rgba(189, 245, 238, 0.8);
}

.orbit-ring::before {
    width: 11px;
    height: 11px;
    top: 18px;
    left: 28px;
}

.orbit-ring::after {
    width: 7px;
    height: 7px;
    right: 10px;
    bottom: 52px;
}

.orbit-clock {
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 34px;
    box-shadow: 0 18px 50px rgba(3, 37, 34, 0.22);
    backdrop-filter: blur(12px);
    transform: rotate(-7deg);
}

.orbit-clock svg {
    width: 62px;
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0 0;
    padding: 16px 18px;
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent);
    border-radius: var(--radius-md);
}

.alert svg {
    width: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.alert strong,
.alert span {
    display: block;
}

.alert span {
    margin-top: 2px;
    font-size: 0.93rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.calculator-card {
    min-width: 0;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
}

.calculator-card-primary {
    border-top: 3px solid var(--teal);
}

.calculator-card:not(.calculator-card-primary) {
    border-top: 3px solid var(--violet);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.step-badge {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--teal);
    background: var(--teal-soft);
    border-radius: 13px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.step-badge-secondary {
    color: var(--violet);
    background: var(--violet-soft);
}

.card-heading h2,
.card-heading p {
    margin: 0;
}

.card-heading h2 {
    font-size: 1.22rem;
    letter-spacing: -0.025em;
}

.card-heading p {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.calculator-form {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 20px;
    margin-top: 24px;
}

.time-row {
    display: grid;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-group {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.field-group label,
.label-row {
    font-size: 0.86rem;
    font-weight: 700;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.label-hint {
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 600;
}

.text-button {
    padding: 0;
    color: var(--teal);
    background: transparent;
    border: 0;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.text-button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.input-clip {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 8px;
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-clip:hover {
    border-color: color-mix(in srgb, var(--teal) 42%, var(--border));
}

.input-clip:focus-within {
    border-color: var(--teal);
    box-shadow: var(--focus);
}

input[type="time"],
input[type="number"] {
    display: block;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 0 14px;
    color: var(--text);
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-clip input[type="time"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-min-logical-width: 0;
}

.input-clip input[type="time"]:focus-visible {
    box-shadow: none;
}

input[type="time"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
}

.field-help {
    margin: -10px 0 0;
    color: var(--text-soft);
    font-size: 0.74rem;
}

@supports (-webkit-touch-callout: none) {
    .input-clip input[type="time"] {
        width: -webkit-fill-available;
        max-width: -webkit-fill-available;
    }
}

input:hover {
    border-color: color-mix(in srgb, var(--teal) 42%, var(--border));
}

input:focus {
    border-color: var(--teal);
}

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.preset-button {
    min-width: 42px;
    padding: 7px 10px;
    color: var(--text-soft);
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform 140ms ease, color 140ms ease, border-color 140ms ease;
}

.preset-button:hover {
    transform: translateY(-1px);
    color: var(--teal);
    border-color: color-mix(in srgb, var(--teal) 42%, var(--border));
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    color: white;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.2);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.primary-button {
    background: linear-gradient(135deg, #0f766e, #169b90);
}

.secondary-button {
    background: linear-gradient(135deg, #6553c7, #806ee0);
    box-shadow: 0 12px 30px rgba(101, 83, 199, 0.2);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.primary-button svg,
.secondary-button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.result-card {
    margin-top: 24px;
    padding: 22px;
    background: linear-gradient(145deg, var(--teal-soft), var(--surface-solid));
    border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--border));
    border-radius: var(--radius-lg);
}

.result-card-secondary {
    background: linear-gradient(145deg, var(--violet-soft), var(--surface-solid));
    border-color: color-mix(in srgb, var(--violet) 24%, var(--border));
}

.result-topline {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.result-label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-pill {
    padding: 5px 9px;
    color: var(--teal);
    background: color-mix(in srgb, var(--teal-soft) 78%, transparent);
    border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.status-pill-violet {
    color: var(--violet);
    background: color-mix(in srgb, var(--violet-soft) 78%, transparent);
    border-color: color-mix(in srgb, var(--violet) 28%, transparent);
}

.result-value {
    margin-top: 8px;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 820;
    letter-spacing: -0.055em;
    line-height: 1;
}

.result-decimal {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.result-details div {
    min-width: 0;
}

.result-details dt {
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.result-details dd {
    margin: 4px 0 0;
    font-size: 0.82rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
    padding: 18px 22px;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.83rem;
}

.info-strip div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-strip svg {
    width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px 24px;
    align-items: center;
    margin-top: 44px;
    padding: 20px 22px;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-small);
    font-size: 0.78rem;
    backdrop-filter: blur(18px);
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    color: var(--text);
    font-size: 0.86rem;
}

.footer-brand span {
    margin-top: 2px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
}

.footer-links a {
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-meta {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}


.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    overflow: visible;
    clip: auto;
    color: white;
    background: var(--teal-dark);
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}

.content-panel,
.faq-section,
.legal-hero,
.prose-card,
.prose-aside {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
}

.content-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: center;
    margin-top: 42px;
    padding: 32px;
    border-radius: var(--radius-xl);
}

.content-intro .eyebrow,
.legal-hero .eyebrow {
    color: var(--teal);
}

.content-intro h2,
.legal-hero h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.content-intro h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.08;
}

.content-intro > p:last-child {
    margin: 14px 0 0;
    color: var(--text-soft);
}

.example-card {
    padding: 24px;
    background: linear-gradient(145deg, var(--teal-soft), var(--surface-solid));
    border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--border));
    border-radius: var(--radius-lg);
}

.example-label,
.feature-number {
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.example-card > strong {
    display: block;
    margin-top: 8px;
    font-size: 1.25rem;
}

.example-equation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.example-equation span:last-child {
    color: var(--text);
    font-weight: 850;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.feature-grid article {
    min-width: 0;
    padding: 22px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.feature-grid h2 {
    margin: 8px 0 0;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.feature-grid p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 0.83rem;
}

.faq-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    gap: 30px;
    margin-top: 22px;
    padding: 32px;
    border-radius: var(--radius-xl);
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-list details {
    border-bottom: 1px solid var(--border);
}

.faq-list summary {
    padding: 18px 2px;
    font-weight: 800;
    cursor: pointer;
}

.faq-list details p {
    margin: -6px 0 18px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.disclaimer-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 22px;
    padding: 16px 20px;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--violet-soft) 45%, var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    text-align: center;
}

.disclaimer-strip strong {
    color: var(--text);
}

.legal-hero {
    padding: 48px 52px;
    border-radius: var(--radius-xl);
}

.legal-hero h1 {
    max-width: 760px;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1;
}

.legal-hero > p:last-child {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.compact-hero {
    padding-block: 40px;
}

.prose-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.prose-card,
.prose-aside {
    padding: 30px;
    border-radius: var(--radius-xl);
}

.standalone-prose {
    max-width: 860px;
    margin: 22px auto 0;
}

.prose-card h2,
.prose-aside h2 {
    margin: 28px 0 0;
    letter-spacing: -0.025em;
}

.prose-card h2:first-child,
.prose-aside h2:first-child {
    margin-top: 0;
}

.prose-card p {
    color: var(--text-soft);
}

.prose-card a,
.prose-aside a {
    color: var(--teal);
    font-weight: 750;
}

.prose-aside {
    display: grid;
    gap: 12px;
}

.prose-aside a {
    text-decoration: none;
}

code {
    padding: 0.15em 0.38em;
    color: var(--text);
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9em;
}

.error-page {
    display: grid;
    min-height: 550px;
    padding: 80px 24px;
    place-items: center;
    align-content: center;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.error-code {
    color: var(--teal);
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.8;
    opacity: 0.16;
}

.error-page .eyebrow {
    margin-top: -20px;
    color: var(--teal);
}

.error-page h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.045em;
}

.error-page > p:not(.eyebrow) {
    max-width: 560px;
    margin: 14px 0 0;
    color: var(--text-soft);
}

.error-home-button {
    margin-top: 28px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 880px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 46px 38px;
    }

    .hero-orbit {
        display: none;
    }

    .calculator-grid,
    .content-panel,
    .faq-section,
    .prose-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prose-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prose-aside h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .site-header {
        padding-top: 18px;
    }

    .header-link {
        padding-inline: 12px;
        font-size: 0.8rem;
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: 0;
        padding: 36px 24px;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .calculator-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .input-clip,
    input[type="number"] {
        max-width: 100%;
    }

    .content-panel,
    .faq-section,
    .legal-hero,
    .prose-card,
    .prose-aside {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .feature-grid,
    .prose-aside {
        grid-template-columns: 1fr;
    }

    .time-row,
    .result-details,
    .info-strip {
        grid-template-columns: 1fr;
    }

    .result-details {
        gap: 14px;
    }

    .info-strip {
        padding: 16px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .footer-links,
    .footer-meta {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* v2.2.0 polish pass */
.page-shell {
    width: min(1200px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-top: 16px;
    padding: 14px 18px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
}

.brand {
    min-width: 0;
    transition: transform 160ms ease, opacity 160ms ease;
}

.brand:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.brand strong {
    font-size: 1.02rem;
}

.brand small {
    margin-top: 2px;
    font-size: 0.8rem;
}

.header-actions {
    gap: 10px;
}

.header-link {
    display: inline-flex !important;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    color: var(--text) !important;
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    font-size: 0.84rem;
    font-weight: 760;
    text-decoration: none !important;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
}

.skip-link {
    position: fixed;
    left: 14px;
    top: 14px;
    z-index: 200;
    padding: 11px 14px;
    color: white;
    background: linear-gradient(135deg, #0f766e, #169b90);
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    clip-path: inset(50%);
}

.skip-link:focus,
.skip-link:active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    clip-path: none;
}

.hero {
    margin-top: 18px;
    padding: 58px 60px;
}

.calculator-grid {
    margin-top: 24px;
}

.info-strip {
    margin-top: 24px;
}

.content-panel {
    margin-top: 52px;
}

.feature-grid,
.faq-section,
.disclaimer-strip {
    margin-top: 24px;
}

.site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 28px;
    margin-top: 40px;
    padding: 22px 24px;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.footer-brand {
    min-width: 0;
}

.footer-brand strong {
    font-size: 0.92rem;
    letter-spacing: -0.02em;
}

.footer-brand span {
    color: var(--text-soft);
    font-size: 0.79rem;
}

.footer-links {
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 160ms ease, color 160ms ease, border-color 160ms ease;
}

.footer-links a:hover {
    transform: translateY(-1px);
    color: var(--text);
    text-decoration: none;
    border-color: var(--border-strong);
}

.footer-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
    color: var(--text-soft);
    font-size: 0.74rem;
}

.prose-aside a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 12px;
    background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
}

@media (max-width: 880px) {
    .site-header {
        margin-top: 12px;
        padding: 12px 14px;
    }

    .hero {
        padding: 44px 34px;
    }
}

@media (max-width: 600px) {
    .page-shell {
        width: min(100% - 20px, 1200px);
    }

    .site-header {
        margin-top: 10px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .brand strong {
        font-size: 0.96rem;
    }

    .hero {
        margin-top: 14px;
        padding: 34px 22px;
    }

    .content-panel {
        margin-top: 40px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-meta {
        grid-column: auto;
    }
}

/* v2.2.1 cleanup pass */
.skip-link {
    display: none !important;
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 46px;
    padding: 26px 24px 28px;
    text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface) 86%, transparent));
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    color: var(--text);
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.footer-brand span {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 760;
    text-decoration: none;
    transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.footer-links a:hover {
    transform: translateY(-1px);
    color: var(--text);
    border-color: var(--border-strong);
    text-decoration: none;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-soft);
    font-size: 0.75rem;
    white-space: normal;
}

@media (max-width: 600px) {
    .site-footer {
        margin-top: 40px;
        padding: 22px 18px 24px;
        border-radius: 18px;
    }

    .footer-brand strong {
        font-size: 0.94rem;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        min-height: 36px;
        padding: 0 12px;
    }
}
