/*
 * TassuTie — alasivujen tyylit, site.css:n päälle
 *
 * Ominaisuudet ja vertailu (features.html), lakitekstit (privacy, terms,
 * delete-account) ja sovelluksen älylinkki (app/).
 */

/* ── Sivun otsikko ────────────────────────────────────────── */

.page-hero { padding: 3rem 0 2.5rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16em; }
.page-hero p { margin-top: 1rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 40em; }
.page-hero .last-updated { font-size: 0.95rem; margin-top: 0.75rem; }

@media (min-width: 60rem) {
    .page-hero { padding: 4.5rem 0 3rem; }
}

/* ── Lakitekstit ──────────────────────────────────────────── */

.content { padding: 0 0 5rem; }

.content-wrapper { max-width: 46rem; }

.content-wrapper h2 {
    font-size: 1.45rem;
    margin: 2.75rem 0 0.75rem;
    letter-spacing: -0.01em;
}
.content-wrapper h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.content-wrapper p,
.content-wrapper li { color: var(--ink); }
.content-wrapper p + p { margin-top: 0.9rem; }
.content-wrapper ul,
.content-wrapper ol { margin: 0.75rem 0 0; padding-left: 1.3rem; }
.content-wrapper li + li { margin-top: 0.4rem; }
.content-wrapper ul + p,
.content-wrapper ol + p { margin-top: 1rem; }

.info-box,
.contact-box {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-sm);
    background: var(--mist);
    border-left: 4px solid var(--pine-soft);
}
.contact-box { margin-top: 2.5rem; }
.info-box p,
.contact-box p { margin: 0; }
.info-box p + p,
.contact-box p + p { margin-top: 0.6rem; }

/* ── Ominaisuudet ja vertailu ─────────────────────────────── */

.plans-section { padding-bottom: 4rem; }

.compare { background: var(--mist); }

.compare-scroll {
    margin-top: 2rem;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--paper);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
    padding: 0.75rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.compare-table tbody th { font-weight: 500; }
.compare-table thead th {
    position: sticky;
    top: 0;
    background: var(--pine);
    color: var(--on-dark);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}
.compare-table thead th:not(:first-child) { font-size: 1.05rem; }
.compare-table thead th small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--on-dark-muted);
}
.compare-table th:first-child,
.compare-table td:first-child { padding-left: 1rem; }
.compare-table th:not(:first-child),
.compare-table td:not(:first-child) { width: 5.5rem; text-align: center; font-size: 0.88rem; }

@media (min-width: 48rem) {
    .compare-table { font-size: 1rem; }
    .compare-table th,
    .compare-table td { padding: 0.8rem 1rem; }
    .compare-table th:first-child,
    .compare-table td:first-child { padding-left: 1.25rem; }
    .compare-table th:not(:first-child),
    .compare-table td:not(:first-child) { width: 9.5rem; font-size: 1rem; }
}

.compare-table .group td {
    padding-top: 1.5rem;
    font-weight: 700;
    color: var(--pine);
    background: var(--paper);
    border-bottom-color: var(--pine-soft);
}

.compare-table tbody tr:last-child td { border-bottom: 0; }

.yes,
.no { display: inline-block; width: 1.4rem; height: 1.4rem; position: relative; }
.yes::before {
    content: '';
    position: absolute;
    left: 0.3rem;
    top: 0.3rem;
    width: 0.8rem;
    height: 0.45rem;
    border-left: 2.5px solid var(--pine-soft);
    border-bottom: 2.5px solid var(--pine-soft);
    transform: rotate(-45deg);
}
.no::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.65rem;
    width: 0.6rem;
    border-top: 2px solid var(--line);
}

/* Ruudunlukijalle näkymätön teksti (✓/− -merkkien selitys) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.page-cta { background: var(--pine); color: var(--on-dark); }
.page-cta h2 { color: var(--on-dark); }
.page-cta .lead { color: var(--on-dark-muted); margin-top: 1rem; }
.page-cta .hero-actions { margin-top: 2rem; }
.page-cta .cta-note { color: var(--on-dark-muted); }

.hero-actions .cta-note { margin-top: 0.85rem; }

/* ── Sovelluksen älylinkki (app/) ─────────────────────────── */

.app-link {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 3rem var(--gutter);
    text-align: center;
}
.app-link-card { max-width: 30rem; }
.app-link .brand { margin: 0 auto 2rem; justify-content: center; }
.app-link h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.app-link p { margin-top: 1rem; color: var(--muted); }
.app-link .stores { justify-content: center; margin-top: 2rem; }
.app-link-back { display: inline-block; margin-top: 2.5rem; font-weight: 600; }
