:root {
    --tyngka-bg: #f7f9fc;
    --tyngka-surface: #ffffff;
    --tyngka-text: #172033;
    --tyngka-muted: #667085;
    --tyngka-border: #e4e7ec;
    --tyngka-primary: #2563eb;
    --tyngka-primary-dark: #1d4ed8;
    --tyngka-success: #059669;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-card: 0 8px 30px rgba(16, 24, 40, 0.08);
    --shadow-hover: 0 12px 35px rgba(16, 24, 40, 0.12);

    --content-width: 1100px;
}


/* ---------- Global ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--tyngka-bg);
    color: var(--tyngka-text);
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}


/* ---------- Layout ---------- */

.container {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 70px;
}


/* ---------- Navigation ---------- */

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 70px;
    padding: 4px 0;
}

.brand {
    flex-shrink: 0;
    color: var(--tyngka-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand:hover {
    color: var(--tyngka-primary-dark);
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    text-decoration: none;
    color: var(--tyngka-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.navigation a:hover {
    color: var(--tyngka-primary);
}

.navigation a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 4px;
    border-radius: 4px;
}


/* ---------- Page Header ---------- */

h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.subtitle {
    max-width: 700px;
    margin: 0;
    color: var(--tyngka-muted);
    font-size: 18px;
    line-height: 1.6;
}


/* ---------- Calculator Grid ---------- */

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 45px;
}


/* ---------- Calculator Cards ---------- */

.calculator-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 28px;
    background: var(--tyngka-surface);
    border: 1px solid var(--tyngka-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);

    text-decoration: none;
    color: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.calculator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #c7d7fe;
}

.calculator-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.25;
}

.calculator-card p {
    margin: 0;
    color: var(--tyngka-muted);
    line-height: 1.6;
}

.calculator-card span {
    margin-top: auto;
    padding-top: 24px;
    color: var(--tyngka-primary);
    font-weight: 700;
}

.calculator-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ---------- Calculator ---------- */

.calculator {
    max-width: 720px;
    margin-top: 40px;
    padding: 32px;
    background: var(--tyngka-surface);
    border: 1px solid var(--tyngka-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.calculator h2 {
    margin-top: 0;
    margin-bottom: 28px;
    font-size: 24px;
}


/* ---------- Form Fields ---------- */

label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--tyngka-text);
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 13px 14px;
    background: #ffffff;
    color: var(--tyngka-text);
    border: 1px solid var(--tyngka-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus {
    border-color: var(--tyngka-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* ---------- Buttons ---------- */

button {
    width: 100%;
    margin-top: 28px;
    padding: 14px 20px;

    background: var(--tyngka-primary);
    color: white;

    border: none;
    border-radius: var(--radius-sm);

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

button:hover {
    background: var(--tyngka-primary-dark);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}


/* ---------- Results ---------- */

.result {
    margin-top: 30px;
    padding-top: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 16px 0;

    border-bottom: 1px solid var(--tyngka-border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item span {
    color: var(--tyngka-muted);
    font-size: 15px;
}

.result-item strong {
    color: var(--tyngka-text);
    font-size: 21px;
}


/* ---------- Information Sections ---------- */

.about-section {
    max-width: 760px;
    margin-top: 60px;
}

.about-section h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.about-section p {
    margin: 0 0 16px;
    color: var(--tyngka-muted);
    line-height: 1.7;
}

/* ---------- Mobile ---------- */

@media (max-width: 850px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .container {
        width: min(
            100% - 32px,
            var(--content-width)
        );
        padding: 20px 0 50px;
    }

    .navigation {
        flex-wrap: wrap;
        gap: 18px;
        margin-bottom: 45px;
    }

    .navigation-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    h1 {
        font-size: 34px;
    }

    .subtitle {
        font-size: 16px;
    }

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

    .calculator-card {
        min-height: auto;
        padding: 24px;
    }

    .calculator {
        padding: 24px 20px;
    }

    .result-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}
/* =========================================
   Calculator Page Template
   ========================================= */

.page-header {
    max-width: 760px;
    margin-bottom: 42px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--tyngka-primary);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.calculator-input-card {
    max-width: none;
    margin-top: 0;
}

.calculator-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.calculator-heading h2 {
    margin: 0 0 4px;
}

.calculator-heading p {
    margin: 0;
    color: var(--tyngka-muted);
    font-size: 14px;
}

.calculator-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex-shrink: 0;

    background: #eff6ff;
    color: var(--tyngka-primary);

    border-radius: 12px;

    font-size: 20px;
    font-weight: 800;
}

.calculator-note {
    margin: 16px 0 0;

    color: var(--tyngka-muted);
    font-size: 12px;
    line-height: 1.5;
}


/* ---------- Result Card ---------- */

.result-card {
    display: flex;
    flex-direction: column;

    min-height: 100%;

    padding: 32px;

    background:
        linear-gradient(
            145deg,
            #eff6ff 0%,
            #ffffff 55%
        );

    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
}

.result-card-header h2 {
    margin: 0;
    font-size: 26px;
}

.result-card .result {
    margin-top: 30px;
}

.result-card .result-item {
    padding: 20px 0;
}

.result-card .result-item:first-child {
    padding-top: 0;
}

.result-card .result-item:first-child strong {
    color: var(--tyngka-primary);
    font-size: 30px;
}

.result-card .result-item strong {
    font-size: 21px;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    margin-top: 10px;
    padding: 28px 0;
}

.result-placeholder[hidden] {
    display: none;
}

.result-placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 16px;

    background: #ffffff;
    color: var(--tyngka-primary);

    border: 1px solid var(--tyngka-border);
    border-radius: 12px;

    font-size: 22px;
    font-weight: 700;
}

.result-placeholder p {
    max-width: 340px;
    margin: 0;

    color: var(--tyngka-muted);
    line-height: 1.6;
}


/* ---------- Content Sections ---------- */

.content-section {
    max-width: 820px;
    margin-top: 80px;
}

.content-section h2,
.related-section h2 {
    margin: 0 0 18px;

    font-size: 30px;
    line-height: 1.2;
}

.content-section > p {
    color: var(--tyngka-muted);
    line-height: 1.8;
}


/* ---------- Information Cards ---------- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.info-card {
    padding: 24px;

    background: var(--tyngka-surface);

    border: 1px solid var(--tyngka-border);
    border-radius: var(--radius-md);
}

.info-number {
    display: block;
    margin-bottom: 18px;

    color: var(--tyngka-primary);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.info-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.info-card p {
    margin: 0;

    color: var(--tyngka-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ---------- Example ---------- */

.example-section {
    margin-top: 80px;
}

.example-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;

    padding: 32px;

    background: var(--tyngka-text);
    color: white;

    border-radius: var(--radius-lg);
}

.example-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.example-card p {
    margin: 0;

    color: #cbd5e1;

    line-height: 1.6;
}

.example-card .eyebrow {
    color: #93c5fd;
}

.example-value {
    padding-left: 24px;

    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.example-value span {
    display: block;

    margin-bottom: 6px;

    color: #94a3b8;

    font-size: 13px;
}

.example-value strong {
    font-size: 20px;
}


/* ---------- Assumptions ---------- */

.assumption-list {
    margin: 25px 0 0;
    padding-left: 22px;

    color: var(--tyngka-muted);
}

.assumption-list li {
    margin-bottom: 12px;
    line-height: 1.7;
}


/* ---------- Related Calculators ---------- */

.related-section {
    margin-top: 80px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 24px;

    background: var(--tyngka-surface);

    border: 1px solid var(--tyngka-border);
    border-radius: var(--radius-md);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: #c7d7fe;
    box-shadow: var(--shadow-card);
}

.related-card strong {
    font-size: 17px;
}

.related-card span {
    color: var(--tyngka-muted);
    font-size: 14px;
    line-height: 1.5;
}


/* ---------- Footer ---------- */

.site-footer {
    margin-top: 100px;
    padding: 30px 20px;

    background: #eef2f7;

    border-top: 1px solid var(--tyngka-border);
}

.footer-inner {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: var(--tyngka-muted);
    font-size: 13px;
}

.footer-inner strong {
    color: var(--tyngka-text);
    letter-spacing: 0.08em;
}


/* ---------- Calculator Mobile ---------- */

@media (max-width: 850px) {

    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .example-card {
        grid-template-columns: 1fr 1fr;
    }

    .example-card > div:first-child {
        grid-column: 1 / -1;
    }

    .example-value {
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 600px) {

    .page-header {
        margin-bottom: 30px;
    }

    .calculator-layout {
        gap: 16px;
    }

    .calculator,
    .result-card {
        padding: 24px 20px;
    }

    .content-section,
    .example-section,
    .related-section {
        margin-top: 60px;
    }

    .content-section h2,
    .related-section h2 {
        font-size: 26px;
    }

    .example-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .example-card > div:first-child {
        grid-column: auto;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}
/* =========================================================
   Projection Chart
   ========================================================= */

.projection-chart-section {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--tyngka-border);
}

.projection-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.projection-chart-header h3 {
    margin: 0;
    font-size: 18px;
}

/* Small chart maximize control */

.chart-expand-button {
    width: 34px !important;
    height: 34px;
    min-width: 34px;
    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff !important;
    color: var(--tyngka-muted) !important;

    border: 1px solid var(--tyngka-border) !important;
    border-radius: 8px;

    font-size: 16px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.chart-expand-button:hover {
    background: #eff6ff !important;
    color: var(--tyngka-primary) !important;
    border-color: #c7d7fe !important;
    transform: none;
}

.projection-chart {
    margin-top: 18px;
    min-height: 210px;
    cursor: zoom-in;
}

.chart-svg {
    display: block;
    width: 100%;
    height: 210px;
}

.chart-line {
    fill: none !important;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-invested {
    stroke: #94a3b8;
}

.chart-projected {
    stroke: var(--tyngka-primary);
}

.chart-grid-line {
    stroke: #e5e7eb;
    stroke-width: 1;
}

.chart-axis-label {
    fill: #98a2b3;
    font-size: 11px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 8px;

    color: var(--tyngka-muted);
    font-size: 12px;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.invested {
    background: #94a3b8;
}

.legend-dot.projected {
    background: var(--tyngka-primary);
}


/* =========================================================
   Expanded Chart Dialog
   ========================================================= */

.chart-dialog {
    width: min(1000px, calc(100% - 32px));

    padding: 32px;

    background: var(--tyngka-surface);
    color: var(--tyngka-text);

    border: 1px solid var(--tyngka-border);
    border-radius: var(--radius-lg);

    box-shadow: 0 30px 80px rgba(16, 24, 40, 0.25);
}

.chart-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.chart-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.chart-dialog-header h2 {
    margin: 0;
    font-size: 28px;
}


/* Small close button */

.chart-close-button {
    width: 36px !important;
    height: 36px;

    min-width: 36px;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    color: var(--tyngka-muted) !important;

    border: 1px solid var(--tyngka-border) !important;
    border-radius: 8px;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.chart-close-button:hover {
    background: #f2f4f7 !important;
    color: var(--tyngka-text) !important;
    transform: none;
}

.projection-chart-large {
    margin-top: 25px;
}

.projection-chart-large .chart-svg {
    height: 450px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .projection-chart {
        min-height: 180px;
    }

    .chart-svg {
        height: 180px;
    }

    .chart-dialog {
        width: calc(100% - 20px);
        padding: 22px 16px;
    }

    .projection-chart-large .chart-svg {
        height: 300px;
    }
}

/* =========================================================
   HOMEPAGE
   ========================================================= */

.homepage {
    padding-bottom: 100px;
}


/* Hero */

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 70px;
    align-items: center;
    min-height: 560px;
    margin-bottom: 100px;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero-content h1 span {
    display: block;
    color: var(--tyngka-primary);
}

.hero-description {
    max-width: 650px;
    margin: 0;
    color: var(--tyngka-muted);
    font-size: 19px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.hero-button.primary {
    background: var(--tyngka-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.hero-button.primary:hover {
    background: var(--tyngka-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.24);
}

.hero-button.secondary {
    background: white;
    color: var(--tyngka-text);
    border: 1px solid var(--tyngka-border);
}

.hero-button.secondary:hover {
    border-color: #c7d7fe;
    transform: translateY(-2px);
}


/* Hero visual */

.hero-visual {
    position: relative;
}

.hero-visual-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    background:
        linear-gradient(
            145deg,
            #eff6ff 0%,
            #ffffff 60%
        );
    border: 1px solid #dbeafe;
    border-radius: 28px;
    box-shadow:
        0 25px 60px rgba(16, 24, 40, 0.10);
}

.hero-visual-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -100px;
    top: -100px;
    background: #dbeafe;
    border-radius: 50%;
    opacity: 0.45;
}

.hero-value {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: var(--tyngka-primary);
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-visual-card p {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin: 12px 0 0;
    color: var(--tyngka-muted);
    line-height: 1.7;
}

.hero-mini-chart {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 120px;
    margin-top: 35px;
    padding-top: 15px;
    border-bottom: 1px solid var(--tyngka-border);
}

.hero-mini-chart span {
    display: block;
    flex: 1;
    min-width: 10px;
    background: linear-gradient(
        to top,
        #bfdbfe,
        var(--tyngka-primary)
    );
    border-radius: 5px 5px 0 0;
}

.hero-mini-chart span:nth-child(1) {
    height: 20%;
}

.hero-mini-chart span:nth-child(2) {
    height: 28%;
}

.hero-mini-chart span:nth-child(3) {
    height: 36%;
}

.hero-mini-chart span:nth-child(4) {
    height: 48%;
}

.hero-mini-chart span:nth-child(5) {
    height: 61%;
}

.hero-mini-chart span:nth-child(6) {
    height: 78%;
}

.hero-mini-chart span:nth-child(7) {
    height: 100%;
}

.hero-chart-label {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: var(--tyngka-muted);
    font-size: 12px;
}


/* Homepage sections */

.home-section {
    margin-top: 110px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--tyngka-muted);
    font-size: 17px;
    line-height: 1.7;
}


/* Calculator cards */

.home-calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-calculator-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 30px;
    background: var(--tyngka-surface);
    border: 1px solid var(--tyngka-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.home-calculator-card:hover {
    transform: translateY(-5px);
    border-color: #c7d7fe;
    box-shadow: var(--shadow-hover);
}

.home-calculator-card.featured {
    background:
        linear-gradient(
            145deg,
            #eff6ff 0%,
            #ffffff 70%
        );
    border-color: #dbeafe;
}

.home-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 25px;
    background: #eff6ff;
    color: var(--tyngka-primary);
    border-radius: 13px;
    font-size: 21px;
    font-weight: 800;
}

.home-calculator-card .card-label {
    margin-bottom: 8px;
    color: var(--tyngka-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.home-calculator-card h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.25;
}

.home-calculator-card p {
    margin: 0;
    color: var(--tyngka-muted);
    line-height: 1.65;
}

.card-link {
    margin-top: auto;
    padding-top: 28px;
    color: var(--tyngka-primary);
    font-size: 14px;
    font-weight: 700;
}


/* Why section */

.why-section {
    padding-top: 20px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    padding: 28px;
    border-top: 1px solid var(--tyngka-border);
}

.why-number {
    display: block;
    margin-bottom: 22px;
    color: var(--tyngka-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.why-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.why-card p {
    margin: 0;
    color: var(--tyngka-muted);
    line-height: 1.7;
}


/* Education */

.education-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    padding: 55px;
    background: var(--tyngka-text);
    color: white;
    border-radius: 28px;
}

.education-content {
    max-width: 680px;
}

.education-content .eyebrow {
    color: #93c5fd;
}

.education-content h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.education-content p {
    margin: 0 0 16px;
    color: #cbd5e1;
    line-height: 1.75;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: #93c5fd;
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    color: white;
}

.education-highlight {
    display: grid;
    gap: 14px;
}

.education-stat {
    padding: 25px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
}

.education-stat span {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.education-stat strong {
    display: block;
    color: white;
    font-size: 28px;
}

.education-stat p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 13px;
}


/* CTA */

.home-cta {
    margin-top: 110px;
    padding: 70px 30px;
    text-align: center;
    background:
        linear-gradient(
            145deg,
            #eff6ff,
            #ffffff
        );
    border: 1px solid #dbeafe;
    border-radius: 28px;
}

.home-cta h2 {
    max-width: 700px;
    margin: 0 auto 16px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.home-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--tyngka-muted);
    line-height: 1.7;
}


/* Footer */

.homepage-footer {
    align-items: center;
}

.homepage-footer p {
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--tyngka-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--tyngka-primary);
}


/* Homepage responsive */

@media (max-width: 900px) {

    .hero-section {
        grid-template-columns: 1fr;
        gap: 45px;
        min-height: auto;
    }

    .hero-visual {
        max-width: 600px;
    }

    .home-calculator-grid {
        grid-template-columns: 1fr;
    }

    .home-calculator-card {
        min-height: 250px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .education-section {
        grid-template-columns: 1fr;
        padding: 40px;
    }

}


@media (max-width: 600px) {

    .homepage {
        padding-bottom: 70px;
    }

    .hero-section {
        margin-bottom: 70px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
    }

    .home-section {
        margin-top: 75px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .education-section {
        margin-left: -8px;
        margin-right: -8px;
        padding: 30px 24px;
        border-radius: 22px;
    }

    .home-cta {
        margin-top: 75px;
        padding: 50px 24px;
        border-radius: 22px;
    }

    .home-cta h2 {
        font-size: 32px;
    }

    .homepage-footer {
        align-items: flex-start;
    }

    .footer-links {
        gap: 14px;
    }

}
/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
