/* Home page. Builds on /css/site.css: tokens, header, buttons,
   boxes. One 880 px column, like the portal. */

.home main {
    --col: min(var(--box-width), calc(100% - 32px));
}

.home main > section,
.home .facts {
    width: var(--col);
    margin-left: var(--page-edge);
    margin-right: auto;
    box-sizing: border-box;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 48px 0 24px;
}

.kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-weight: 800;
    font-size: 15px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5.4vw, 50px);
    line-height: 1.08;
    color: var(--ink);
}

.lead {
    margin: 16px 0 0;
    font-size: 19px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 22px;
}

.hero-actions .button,
.final .button,
.plan .button {
    width: auto;
    margin: 0;
    padding: 13px 26px;
}

.price-line {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.price-line strong {
    color: var(--ink);
}

/* The phone: a plain mail list, so it reads as any phone's own mail app. */
.hero-art {
    position: relative;
    justify-self: center;
    width: min(300px, 100%);
    padding-bottom: 36px;
}

.phone {
    border: 10px solid var(--ink);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotate(3deg);
}

.phone-bar {
    padding: 22px 16px 10px;
    border-bottom: 1px solid var(--line);
}

.phone-bar span {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
}

.phone-bar small {
    color: var(--muted);
    font-size: 13px;
}

.phone-list {
    list-style: none;
    margin: 0;
    padding: 0 0 60px;
}

.phone-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 9px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.35;
}

.phone-list li::marker {
    content: none;
}

.phone-list b {
    font-size: 14px;
}

.phone-list span {
    grid-column: 1;
    color: var(--muted);
}

.phone-list time {
    grid-column: 2;
    grid-row: 1;
    color: var(--muted);
    font-size: 12px;
}

/* The newest message: a blue dot, as mail apps mark unread mail. */
.phone-list .new b::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 6px 1px -12px;
    border-radius: 50%;
    background: var(--brand);
}

.hero-tank {
    position: absolute;
    left: -72px;
    bottom: -8px;
    width: 236px;
    height: auto;
    transform: rotate(-4deg);
}

/* Facts */
.facts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 16px 20px;
    border: 1px solid var(--box-line);
    border-radius: 18px;
    background: var(--paper-alt);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.facts li {
    display: flex;
    gap: 8px;
}

.facts li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--logo-orange);
}

/* Sections */
.band {
    padding-top: 56px;
}

.section-title {
    margin: 0 0 20px;
    font-size: clamp(26px, 3.6vw, 34px);
}

.band div.centered-text-box {
    width: auto;
    margin: 0;
}

/* Features: three across, plain cards. */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature {
    padding: 20px;
    border: 1px solid var(--box-line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.feature p {
    margin: 0;
    font-size: 16px;
}

.feature .feature-more {
    margin-top: 8px;
    color: var(--muted);
}

/* Switch steps: the number sits beside the title, so number and title read
   as one unit and a phone shows all three steps in less height. The orange
   is the list marker, as in the rest of the site. */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-content: start;
}

.steps li::before {
    content: counter(step);
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--logo-orange);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

.steps h3 {
    margin: 6px 0 0;
    font-size: 19px;
}

.steps p {
    margin: 0;
}

/* Comparison */
div.centered-text-box.compare-box {
    padding: 8px 12px;
}

.compare {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 16px;
}

/* Equal answer columns, so PansarPost does not look like the small one. */
.compare thead th:first-child {
    width: 28%;
}

.compare th,
.compare td {
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

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

.compare thead th {
    font-size: 15px;
    color: var(--muted);
}

.compare tbody th {
    font-weight: 700;
}

/* No zebra rows: the blue column marks PansarPost. */
.compare tr:nth-child(even) {
    background: transparent;
}

.compare .us {
    background: var(--brand-soft);
    font-weight: 800;
    color: var(--ink);
}

.compare td.us::before {
    content: "✓ ";
    color: var(--good);
}

.compare thead .us {
    border-radius: 10px 10px 0 0;
}

/* Security: four benefits, two across. */
.protect {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.protect li {
    padding: 20px;
    border: 1px solid var(--box-line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.protect li::before {
    content: none;
}

.protect h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.protect p {
    margin: 0;
    font-size: 16px;
}

.more-link {
    margin: 16px 0 0;
}

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    align-items: start;
}

.plan-price {
    margin: 0;
    font-size: 18px;
}

.plan-price .amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 56px;
    line-height: 1;
}

.plan-note {
    margin: 6px 0 12px;
    color: var(--muted);
    font-size: 15px;
}

.plan .guarantee {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--good-soft);
    font-size: 16px;
}

.plan ul {
    margin: 0 0 18px;
    padding-left: 1.2em;
    font-size: 16px;
}

.family h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.family-sum {
    margin: 0 0 8px;
    font-size: 18px;
}

.family-sum strong {
    font-family: var(--font-heading);
    font-size: 24px;
}

.family p:last-child {
    margin: 0;
    font-size: 16px;
    color: var(--muted);
}

/* FAQ: native disclosure. */
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.faq details:first-child { padding-top: 4px; }
.faq details:last-child { border-bottom: 0; padding-bottom: 4px; }

.faq summary {
    cursor: pointer;
    font-weight: 800;
}

.faq details p {
    margin: 8px 0 0;
    font-size: 16px;
}

/* Final action */
.final {
    padding: 64px 0 24px;
    text-align: center;
}

.final h2 {
    margin: 12px 0 6px;
    font-size: clamp(28px, 4vw, 38px);
}

.final p {
    margin: 0 0 18px;
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}


@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 32px;
    }

    .hero-art {
        width: min(280px, 80%);
        margin-left: 40px;
    }

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

    .feature-grid,
    .steps,
    .protect,
    .pricing {
        grid-template-columns: 1fr;
    }

    .compare {
        font-size: 14px;
    }

    .compare th,
    .compare td {
        padding: 10px 6px;
    }
}

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

    .hero-tank {
        width: 170px;
        left: -44px;
    }
}

/* Phones: each feature on its own line above the three answers, so the
   columns keep their width. */
@media (max-width: 560px) {
    .compare thead tr,
    .compare tbody tr {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .compare thead th:first-child {
        display: none;
    }

    .compare tbody th {
        grid-column: 1 / -1;
        padding-bottom: 0;
        border-bottom: 0;
    }

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