/*
 * DiviTorque — Compare pages (C8 index + C9 single).
 * Built from semantic tokens + global components. Source: 03-DESIGN-GUIDE.md C8/C9.
 * Reuses .grid, .card, and shared table cell classes (.dt-mx__*) from global.css.
 */

/* .dt-breadcrumb is shared — see global.css */

/* ─── Index: comparison cards (clean monochrome) ──────────────────── */
/* Top pad is moderate (the page hero above already carries spacing); bottom
   stays generous before the closing CTA. */
.dt-cmp-index { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 8vw, 96px); }
.dt-cmp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.dt-cmp-card { display: flex; flex-direction: column; gap: 12px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(26px, 3vw, 34px); color: var(--color-text); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.dt-cmp-card:hover { border-color: var(--gray-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* "Divi Torque  vs  X" — monochrome: brand in ink, competitor muted, small VS pill */
.dt-cmp-card__vs { font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.015em; line-height: 1.2; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
.dt-cmp-card__us { color: var(--color-text); }
.dt-cmp-card__them { color: var(--color-text-muted); }
.dt-cmp-card__sep { font-size: 11px; font-weight: var(--fw-semi); letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-faint); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 2px 9px; }
.dt-cmp-card__take { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--lh-body); }
.dt-cmp-card__more { margin-top: auto; padding-top: 8px; font-size: var(--text-sm); font-weight: var(--fw-semi); color: var(--color-text); }
.dt-cmp-card:hover .dt-cmp-card__more { text-decoration: underline; text-underline-offset: 3px; }
.dt-cmp-honesty { margin: var(--space-7) auto 0; font-size: var(--text-sm); color: var(--color-text-faint); max-width: 64ch; text-align: center; }
@media (max-width: 760px) { .dt-cmp-grid { grid-template-columns: 1fr; max-width: 440px; } }

/* ─── Single comparison — one consistent vertical rhythm everywhere ── */
.dt-cmp-single > section { padding-block: clamp(40px, 6vw, 64px); }
/* Proper section banding: strictly alternate the background every section, so
   no two adjacent sections ever share a colour — and it stays correct even when
   the optional editor-content section is present (parity shifts, alternation holds). */
.dt-cmp-single > section:nth-of-type(even) { background: var(--color-surface); }
/* Content fills the site container (--container: 1120px via .dt-wrap): structural
   grids and the table use the FULL width; only running prose caps its own measure
   for readability. No artificial left-cap (that stranded the right half). */

/* ─── Editorial body: left-aligned, minimal section headings ──────── */
/* One shared, quiet heading treatment — no oversized centered titles. */
.dt-cmp-h { font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.015em; text-align: left; margin: 0; }
.dt-cmp-kicker { display: block; font-size: 11px; font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 10px; }

/* About sections: competitor (fair) + Divi Torque Pro (banding via nth-of-type) */
/* Two-column editorial split: section header left, prose right — fills the
   container so the section never looks half-empty. Stacks on small screens. */
.dt-cmp-about__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 88px); align-items: start; text-align: left; }
.dt-cmp-about__kicker { display: block; font-size: 11px; font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 10px; }
.dt-cmp-about__title { font-size: var(--text-2xl); font-weight: var(--fw-semi); letter-spacing: -.02em; line-height: 1.12; }
.dt-cmp-about__body { margin: 0; font-size: var(--text-lg); line-height: var(--lh-body); color: var(--color-text-muted); }
@media (max-width: 760px) {
	.dt-cmp-about__inner { grid-template-columns: 1fr; gap: 14px; }
	.dt-cmp-about__head { position: static; }
	.dt-cmp-about__title { font-size: var(--text-xl); }
	.dt-cmp-about__body { font-size: var(--text-base); }
}

/* Why buy — numbered reasons */
.dt-cmp-why2__title { text-align: left; font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.015em; margin-bottom: clamp(18px, 2.5vw, 24px); }
.dt-cmp-why2__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dt-cmp-why2__item { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-bg); overflow: hidden; box-shadow: 0 1px 2px rgba(16,16,24,.03);
	transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.dt-cmp-why2__item:hover { border-color: var(--gray-300); transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16,16,24,.04), 0 18px 36px -16px rgba(16,16,24,.24); }
/* mesh image panel — the mockup sits on a soft gradient, like the homepage zigzag */
.dt-cmp-why2__media { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 2.2vw, 24px); overflow: hidden; border-radius: 0; }
.dt-cmp-why2__shot { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 12px 26px rgba(20, 20, 30, .16)); }
.dt-cmp-why2__text { padding: clamp(18px, 2.2vw, 24px); }
.dt-cmp-why2__h { font-size: var(--text-lg); font-weight: var(--fw-semi); letter-spacing: -.01em; }
/* description capped to 3 lines */
.dt-cmp-why2__p { margin-top: 7px; font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--lh-body); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Compare table section heading (banding via nth-of-type; table styled below) */
.dt-cmp-table-title { font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.015em; text-align: left; margin-bottom: clamp(18px, 2.5vw, 24px); }

/* Highlight: what you get with Divi Torque Pro */
.dt-cmp-feats__title { text-align: left; font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.015em; }
.dt-cmp-feats__sub { text-align: left; color: var(--color-text-muted); font-size: var(--text-base); margin: 8px 0 clamp(20px, 3vw, 28px); max-width: 60ch; }
.dt-cmp-feats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .dt-cmp-feats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dt-cmp-feats__grid { grid-template-columns: 1fr; } }
.dt-cmp-feat { padding: clamp(18px, 2.2vw, 22px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.dt-cmp-feat__icon { display: inline-flex; margin-bottom: 12px; }
.dt-cmp-feat__h { font-size: var(--text-base); font-weight: var(--fw-semi); letter-spacing: -.01em; }
.dt-cmp-feat__p { margin-top: 6px; font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--lh-body); }

/* ─── Single: feature comparison — minimal table, stable zebra rows ── */
.dt-cmp-table__scroll { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg); margin: 0; }
.dt-cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.dt-cmp-table th, .dt-cmp-table td { padding: 13px 18px; text-align: center; border: 0; }
.dt-cmp-table th[scope="row"] { text-align: left; font-weight: var(--fw-med); color: var(--color-text); }
/* row label with a quiet mono icon */
.dt-cmp-row__label { display: inline-flex; align-items: center; gap: 11px; }
.dt-cmp-row__ic { width: 17px; height: 17px; flex: 0 0 auto; color: var(--color-text-faint); }
/* Quiet, stable zebra — alternate rows tinted, no per-row borders */
.dt-cmp-table tbody tr:nth-child(even) { background: var(--color-surface-2); }
/* Header — minimal: a single hairline, no sticky/shadow jitter */
.dt-cmp-table thead th { font-weight: var(--fw-semi); color: var(--color-text); border-bottom: 1px solid var(--color-border); padding-bottom: 15px; }
.dt-cmp-table thead th[scope="col"]:first-child { text-align: left; }
/* Divi Torque column: a constant faint tint layered over the stripes */
.dt-cmp-table .dt-mx__reco { background: color-mix(in srgb, var(--color-action) 5%, var(--color-bg)); }
.dt-cmp-table tbody tr:nth-child(even) .dt-mx__reco { background: color-mix(in srgb, var(--color-action) 7%, var(--color-surface-2)); }
.dt-cmp-table thead .dt-mx__reco { background: color-mix(in srgb, var(--color-action) 6%, var(--color-bg)); box-shadow: inset 0 -2px 0 var(--color-action); }
.dt-cmp-table__plan { display: block; font-weight: var(--fw-semi); }
.dt-cmp-table__badge { display: inline-block; margin-top: 5px; font-size: 10px; font-weight: var(--fw-semi); letter-spacing: .05em; text-transform: uppercase; color: var(--color-on-action); background: var(--color-action); border-radius: var(--radius-pill); padding: 2px 8px; }
/* premium check / ✗ — soft rounded badges, not bare glyphs */
.dt-cmp-table .dt-mx__yes, .dt-cmp-table .dt-mx__no { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; vertical-align: middle; }
.dt-cmp-table .dt-mx__yes { background: color-mix(in srgb, #16A34A 14%, transparent); color: #16A34A; }
.dt-cmp-table .dt-mx__no { background: var(--color-surface); color: var(--color-text-faint); border: 1px solid var(--color-border); }
.dt-cmp-table .dt-mx__yes svg { width: 13px; height: 13px; }
.dt-cmp-table .dt-mx__no svg { width: 10px; height: 10px; }
.dt-cmp-table .dt-mx__val { font-weight: var(--fw-med); }
.dt-cmp-table__note { margin: 14px 0 0; font-size: 13px; color: var(--color-text-faint); text-align: left; }

/* ─── Single: "which is right for you?" (two clear sides) ──────────── */
.dt-cmp-choose .dt-wrap { max-width: 820px; }
.dt-cmp-choose__title { text-align: center; font-size: var(--text-2xl); font-weight: var(--fw-semi); letter-spacing: -.02em; margin-bottom: clamp(20px, 3vw, 28px); }
.dt-cmp-choose__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dt-cmp-choose__col { padding: clamp(20px, 2.6vw, 28px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.dt-cmp-choose__col--us { border-color: var(--color-text); background: var(--color-surface); }
.dt-cmp-choose__who { display: block; font-size: var(--text-sm); font-weight: var(--fw-semi); letter-spacing: .01em; margin-bottom: 8px; color: var(--color-text); }
.dt-cmp-choose__col p { color: var(--color-text-muted); line-height: var(--lh-body); font-size: var(--text-base); }

/* ─── Single: schema-first FAQ (native <details>, zero JS) — banding via nth-of-type ── */
.dt-cmp-faq__title { font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.015em; text-align: left; margin-bottom: clamp(16px, 2.5vw, 22px); }
.dt-cmp-faq__list { margin: 0; border-top: 1px solid var(--color-border); }
.dt-cmp-faq__item { border-bottom: 1px solid var(--color-border); }
.dt-cmp-faq__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; font-size: var(--text-base); font-weight: var(--fw-semi); color: var(--color-text); }
.dt-cmp-faq__q::-webkit-details-marker { display: none; }
.dt-cmp-faq__q:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.dt-cmp-faq__icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.dt-cmp-faq__icon::before, .dt-cmp-faq__icon::after { content: ""; position: absolute; background: var(--color-text-faint); }
.dt-cmp-faq__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.dt-cmp-faq__icon::after { top: 0; left: 6px; width: 2px; height: 14px; transition: transform var(--dur-base) var(--ease); }
.dt-cmp-faq__item[open] .dt-cmp-faq__icon::after { transform: scaleY(0); }
.dt-cmp-faq__a { padding: 0 2px 22px; }
.dt-cmp-faq__a p { margin: 0; max-width: 70ch; font-size: var(--text-base); color: var(--color-text-muted); line-height: var(--lh-body); }

/* ─── Single: hand-written editor content (the_content, mid-page) ─── */
.dt-cmp-content__body { max-width: 72ch; font-size: var(--text-base); line-height: var(--lh-body); color: var(--color-text-muted); }
.dt-cmp-content__body > :first-child { margin-top: 0; }
.dt-cmp-content__body h2 { font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.015em; color: var(--color-text); margin: 1.4em 0 .4em; }
.dt-cmp-content__body h3 { font-size: var(--text-lg); font-weight: var(--fw-semi); color: var(--color-text); margin: 1.3em 0 .35em; }
.dt-cmp-content__body p, .dt-cmp-content__body ul, .dt-cmp-content__body ol { margin: 0 0 1em; }
.dt-cmp-content__body ul, .dt-cmp-content__body ol { padding-left: 1.3em; }
.dt-cmp-content__body li { margin: .3em 0; }
.dt-cmp-content__body a { color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.dt-cmp-content__body a:hover { border-bottom-color: var(--color-text); }
.dt-cmp-content__body img { max-width: 100%; height: auto; border-radius: var(--radius-lg); }

/* ─── Single: customer reviews ────────────────────────────────────── */
.dt-cmp-reviews__title { text-align: left; font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.015em; }
.dt-cmp-reviews__sub { text-align: left; color: var(--color-text-muted); font-size: var(--text-base); margin: 8px 0 clamp(20px, 3vw, 28px); }
.dt-cmp-reviews__sub b { color: var(--color-text); font-weight: var(--fw-med); font-variant-numeric: tabular-nums; }
/* review cards themselves use the shared .dt-review component (global.css) */

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
	.dt-cmp-verdicts__grid { grid-template-columns: 1fr; }
	.dt-cmp-choose__grid { grid-template-columns: 1fr; }
	.dt-cmp-why2__grid { grid-template-columns: 1fr; }
}
