﻿.home-page {
    --home-accent: #91405a;
}

.home-page .hero {
    padding: 42px 0 36px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0, #f8e6eb 0, transparent 68%);
}

.home-page .hero-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
    color: var(--home-accent);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .09em;
}

.home-page .hero-label > span {
    font-size: 1rem;
}

.home-page h1 {
    margin: 20px auto;
    color: var(--color-plum);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 6.5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.home-page h1 > span {
    display: block;
    margin-top: 12px;
    color: var(--home-accent);
    font-size: .6em;
    font-style: italic;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.home-page .hero-intro {
    max-width: 610px;
    margin: 0 auto 24px;
    font-size: 1.025rem;
    line-height: 1.8;
}

.home-page .hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    max-width: 640px;
    margin-inline: auto;
}

.home-page .hero-button,
.home-page .hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}

.home-page .hero-button {
    border-color: var(--color-plum);
    background: var(--color-plum);
    color: var(--color-white);
    box-shadow: 0 6px 18px #38223f12;
}

.home-page .hero-button:hover {
    background: #513459;
    text-decoration: none;
}

.home-page .hero-secondary {
    background: var(--color-white);
    color: var(--color-plum);
}

.home-page .hero-secondary:hover {
    border-color: var(--color-rose);
    background: #fffafb;
    text-decoration: none;
}

.home-page .hero-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin: 24px 0 10px;
    padding: 0;
    list-style: none;
    color: var(--color-plum);
    font-size: .78rem;
}

.home-page .hero-benefits li::before {
    content: "\2713";
    margin-right: 7px;
    color: var(--home-accent);
}

.home-page .hero-note {
    max-width: 440px;
    margin: 0 auto;
    font-size: .78rem;
}

.home-page .tools-section {
    padding: 32px 0 48px;
    scroll-margin-top: 24px;
}

.home-page .section-heading {
    max-width: 630px;
    margin: 0 auto 28px;
    text-align: center;
}

.home-page .eyebrow,
.home-page .journal-label {
    color: var(--home-accent);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.home-page .section-heading h2,
.home-page .home-perspective h2 {
    margin: 10px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.home-page .section-heading p {
    margin: 0;
}

.home-page .tools-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.home-page .tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 25px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: 0 6px 24px #38223f04;
}

.home-page .calculator-card {
    transition: border-color .18s ease, box-shadow .18s ease;
}

.home-page .calculator-card:hover {
    border-color: var(--color-rose);
    box-shadow: 0 10px 30px #38223f0c;
    text-decoration: none;
}

.home-page a:focus-visible,
.home-page summary:focus-visible {
    outline: 3px solid var(--color-plum);
    outline-offset: 5px;
}

.home-page .tool-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    background: #fcf0f3;
    color: var(--home-accent);
}

.home-page .tool-input {
    color: var(--color-text);
    font-size: .75rem;
    font-weight: 600;
}

.home-page .tool-card h3 {
    margin: 9px 0 10px;
    font-size: 1.2rem;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.home-page .tool-card p {
    margin: 0 0 22px;
    font-size: .94rem;
    line-height: 1.75;
}

.home-page .tool-card > .text-link {
    width: 100%;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid var(--color-border);
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
}

.home-page .calculator-card:hover .text-link,
.home-page .tool-card > a.text-link:hover {
    text-decoration: underline;
}

.home-page .home-perspective {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding: 26px;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-rose);
    border-radius: 0 20px 20px 0;
    background: #f6edef;
}

.home-page .home-perspective h2 {
    max-width: 370px;
    margin-bottom: 0;
    font-size: 1.85rem;
}

.home-page .home-perspective p {
    margin: 0 0 10px;
    font-size: .94rem;
}

.home-page .home-perspective .text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: .9rem;
    font-weight: 650;
}

.home-page .latest-section {
    padding-bottom: 48px;
}

.home-page .journal-card {
    border-top: 3px solid var(--color-border);
}

.home-page .journal-card h3 {
    margin-top: 16px;
}

.home-page .journal-label {
    font-size: .65rem;
    letter-spacing: .08em;
}

.home-page .journal-card > a.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    gap: 8px;
}

.home-page .section-action {
    margin-top: 26px;
    text-align: center;
}

.home-page .home-faq {
    padding-block: 36px 56px;
    border-top: 1px solid var(--color-border);
}

.home-page .home-faq-list {
    max-width: 800px;
    margin-inline: auto;
}

.home-page .home-faq details {
    margin-bottom: 12px;
    padding: 0 20px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-white);
}

.home-page .home-faq summary {
    padding-block: 19px;
    color: var(--color-plum);
    font-size: .95rem;
    font-weight: 650;
    cursor: pointer;
}

.home-page .home-faq summary::marker {
    color: var(--home-accent);
}

.home-page .home-faq details[open] summary {
    border-bottom: 1px solid var(--color-border);
}

.home-page .home-faq details p {
    margin: 16px 0 20px;
    font-size: .94rem;
    line-height: 1.8;
}

@media (min-width: 640px) {
    .home-page .hero { padding: 56px 0 42px; }
    .home-page .hero-label { font-size: .72rem; letter-spacing: .13em; }
    .home-page .hero-intro { font-size: 1.1rem; }
    .home-page .hero-actions { flex-direction: row; flex-wrap: wrap; }
    .home-page .calculator-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-page .calculator-card { grid-column: span 2; }
    .home-page .calculator-card:last-child:nth-child(odd) { grid-column: 2 / span 2; }
    .home-page .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .home-perspective { padding: 32px; }
    .home-page .tools-section { padding-block: 40px 64px; }
    .home-page .latest-section { padding-bottom: 64px; }
    .home-page .home-faq { padding-block: 48px 72px; }
}

@media (min-width: 960px) {
    .home-page .tools-grid { gap: 22px; }
    .home-page .calculator-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .home-page .calculator-card:nth-child(4) { grid-column: 2 / span 2; }
    .home-page .calculator-card:last-child:nth-child(odd) { grid-column: span 2; }
    .home-page .journal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-page .tool-card { padding: 28px; }
    .home-page .home-perspective { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 48px; margin-top: 36px; padding: 36px; }
    .home-page .section-heading { margin-bottom: 36px; }
}
