/* ==========================================================================
   home-v2.css — homepage-only styles
   --------------------------------------------------------------------------
   Loaded only by resources/views/client/home/index.blade.php, after
   layout-v2.css (tokens) and components-v2.css (shared components), so
   nothing in this file can reach another page.

   Conventions (same as components-v2.css):
   - Tokens only: var(--brand-primary), var(--ink-900), ... no raw colours.
   - Mobile-first. Breakpoints 768 / 1024 / 1280 match the design system.
   - Grids declare an explicit column count per breakpoint, never auto-fit,
     so a four-item list can never land as three plus one orphan.
   ========================================================================== */

/* ---------- Hero ---------- */
/* Four stats: two by two on phones, one row of four from tablet up.
   (The shared .hero-v2__stats--multi defaults to three columns.) */
.hero-v2--order .hero-v2__stats--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .hero-v2--order .hero-v2__stats--multi {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- Shared card grids ---------- */
/* Services and writers use the shared 4-up grid, but their cards carry full
   paragraphs. Keep them 2-up until 1280, where four columns are readable;
   the shared component switches to four at 1024. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .feature-grid-v2--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Essay types ---------- */
.chip-grid-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip-grid-v2 a.chip-v2 {
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.chip-grid-v2 a.chip-v2:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 19, 32, 0.08);
}

.essay-types-more {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--ink-700);
}

.essay-types-more a {
    color: var(--brand-primary);
}

.essay-types-more a:hover {
    text-decoration: underline;
}

.essay-types-note {
    margin-top: 8px;
    text-align: center;
}

/* ---------- Process steps (four items) ---------- */
.process-steps-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.process-step-v2 {
    position: relative;
    padding: 24px;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    background: var(--surface);
}

.process-step-v2__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--brand-primary);
    color: var(--surface);
    font-weight: 700;
}

.process-step-v2__title {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--ink-900);
}

.process-step-v2__body {
    margin: 0;
    color: var(--ink-700);
    line-height: 1.55;
}

@media (min-width: 768px) {
    .process-steps-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .process-steps-v2 {
        gap: 24px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- What your order includes (two cards) ---------- */
.includes-grid-v2 {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.includes-card-v2 {
    padding: 28px;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    background: var(--surface);
}

.includes-card-v2__title {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--ink-900);
}

.includes-list-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.includes-list-v2 li {
    position: relative;
    padding-left: 28px;
    line-height: 1.55;
    color: var(--ink-700);
}

.includes-list-v2 li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--brand-primary);
    background-image: linear-gradient(
        45deg,
        transparent 40%, var(--surface) 40%, var(--surface) 46%,
        transparent 46%, transparent 54%, var(--surface) 54%,
        var(--surface) 60%, transparent 60%
    );
}

.includes-list-v2--details li strong {
    color: var(--ink-900);
}

@media (min-width: 768px) {
    .includes-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Pricing table ---------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table-v2,
.compare-table-v2 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
}

.pricing-table-v2 th,
.pricing-table-v2 td,
.compare-table-v2 th,
.compare-table-v2 td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--ink-200);
    vertical-align: top;
    line-height: 1.5;
}

.pricing-table-v2 thead th,
.compare-table-v2 thead th {
    background: var(--surface-alt);
    font-weight: 700;
    color: var(--ink-900);
}

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

.pricing-table-v2 tbody th {
    font-weight: 600;
    color: var(--ink-900);
}

.pricing-table-v2 tbody td strong {
    font-size: 20px;
    color: var(--brand-primary);
}

.pricing-note-v2 {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-500);
}

/* ---------- Citation styles ---------- */
.citation-list-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.citation-list-v2 li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    background: var(--surface-alt);
    font-weight: 600;
    color: var(--ink-900);
}

.citation-note {
    margin-top: 20px;
    text-align: center;
}

/* ---------- Writers ---------- */
.writer-role-v2 {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

/* ---------- Privacy (four items) ---------- */
.privacy-list-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.privacy-list-v2 li {
    padding: 20px 24px;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    background: var(--surface);
    line-height: 1.55;
    color: var(--ink-700);
}

.privacy-list-v2 li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-900);
}

@media (min-width: 768px) {
    .privacy-list-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .privacy-list-v2 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- Knowledge base ---------- */
.section-footnote-v2 {
    margin-top: 24px;
    text-align: center;
}

.knowledge-v2 {
    display: grid;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.knowledge-block-v2 h3 {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--ink-900);
}

.knowledge-block-v2 p {
    line-height: 1.65;
    color: var(--ink-700);
}

.knowledge-list-v2 {
    display: grid;
    gap: 8px;
    margin: 0 0 16px 20px;
    line-height: 1.6;
    color: var(--ink-700);
}

/* ---------- CTA bands and card links ---------- */
.cta-band-v2__inner {
    text-align: center;
}

.cta-band-v2__inner .heading-v2 {
    margin-bottom: 12px;
    color: var(--surface);
}

.cta-band-v2__inner .lede-v2 {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-band-v2__inner .btn-v2 {
    margin-top: 16px;
}

.card-v2__link {
    margin-top: 16px;
}

.card-v2__link a {
    font-weight: 600;
    color: var(--brand-primary);
}

.card-v2__link a:hover {
    text-decoration: underline;
}

/* ---------- Small phones ---------- */
@media (max-width: 640px) {
    .pricing-table-v2 th,
    .pricing-table-v2 td,
    .compare-table-v2 th,
    .compare-table-v2 td {
        padding: 14px;
    }

    .cta-band-v2__inner .heading-v2 {
        font-size: 24px;
    }
}
