/*
  The home page: the pricing engine. Its hero is site.css's, with a smaller headline and the 3D frame as a link to the
  3D page; then how pricing works with a worked example, why not a regular framing app, who it's for, the checklist
  and the 3D page's teaser. The platforms band, the closing band and the footer links are sections.css's.
*/

/* ---------- the hero ---------- */
.hero-engine h1 { font-size: clamp(36px, 5.2vw, 60px); text-wrap: balance; }
.hero-engine .lede { max-width: 560px; }
a.hero-media { color: inherit; text-decoration: none; }
.badge svg path { fill: none; }

/* ---------- the sections' shared head ---------- */
.engine, .versus, .who, .needs, .teaser { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2, .teaser h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; text-wrap: balance; }
.section-lede { color: var(--soft); font-size: 18px; }
@media (max-width: 899px) {
    .engine, .versus, .who, .needs, .teaser { padding: 64px 0; }
    .section-head { margin-bottom: 32px; }
    .section-lede { font-size: 17px; }
}

/* ---------- how pricing works: the rules beside a worked example ---------- */
.engine { background: var(--bg-2); }
/* the head and the rules in one column, the example beside them from the top on a wide screen */
.engine-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .engine-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 64px; } }
.rules { display: grid; margin: 0; padding: 0; list-style: none; }
.rules li { padding: 22px 0; border-top: 1px solid var(--line); }
.rules li:first-child { padding-top: 0; border-top: 0; }
.rules h3 { font-size: 21px; margin-bottom: 8px; }
.rules p { color: var(--soft); font-size: 16px; }
.engine-more { margin-top: 26px; }
.engine-more a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.engine-more a:hover { color: var(--ink); }

/* the example: a quote, line by line */
.quote { margin: 0; padding: 28px; border-radius: 22px; background: var(--bg); border: 2px solid var(--btn); box-shadow: 0 30px 60px -34px var(--shadow); }
html.dark .quote { border-color: var(--accent); }
.quote-tag { display: inline-block; margin-bottom: 14px; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.quote h3 { font-size: 26px; margin-bottom: 6px; }
html.serif .quote h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; }
.quote-spec { color: var(--soft); font-size: 15px; }
.quote-group { margin: 20px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.quote dl { margin: 0; }
.quote dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; }
.quote dt { font-size: 16px; font-weight: 500; }
.quote dt span { display: block; color: var(--soft); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.quote dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote .quote-sum { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--line); }
.quote .quote-sum div { padding: 4px 0; }
.quote .quote-sum dt { color: var(--soft); font-weight: 400; }
.quote .quote-total { margin-top: 6px; padding-top: 10px !important; border-top: 1px solid var(--line); }
.quote .quote-total dt { color: var(--ink); font-weight: 600; font-size: 17px; }
.quote .quote-total dd { color: var(--accent); font: 600 26px/1 var(--serif); letter-spacing: -0.01em; }
html:not(.serif) .quote .quote-total dd { font-family: var(--sans); }
.quote figcaption { margin-top: 18px; color: var(--soft); font-size: 14px; }
.quote figcaption a { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.quote figcaption a:hover { color: var(--ink); }
@media (max-width: 520px) {
    .quote { padding: 22px 18px; border-radius: 18px; }
    .quote h3 { font-size: 23px; }
    .quote .quote-total dd { font-size: 23px; }
}

/* ---------- why not a regular framing app: two lists side by side ---------- */
.vs-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .vs-grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.vs { padding: 28px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.vs-typical { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--ink) 25%, var(--bg)); }
.vs-engine { border: 2px solid var(--btn); box-shadow: 0 24px 50px -32px var(--shadow); }
html.dark .vs-engine { border-color: var(--accent); }
.vs .platform-tag { margin-bottom: 18px; }
.vs-engine .checks li { color: var(--ink); }
.crosses { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.crosses li { position: relative; padding-left: 30px; color: var(--soft); }
.crosses li::before, .crosses li::after { content: ''; position: absolute; left: 3px; top: 12px; width: 14px; height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--soft) 70%, transparent); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }

/* ---------- who it's for ---------- */
.who { background: var(--bg-2); }
.who-grid { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .who-grid { grid-template-columns: repeat(4, 1fr); } }
.who-grid li { padding: 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.who-grid h3 { font-size: 19px; margin-bottom: 8px; }
.who-grid p { color: var(--soft); font-size: 16px; }

/* ---------- the checklist: what a shop needs, and how Framing.Ink handles it ---------- */
.needs-head { display: none; }
.needs-list { margin: 0; border-top: 1px solid var(--line); }
.needs-list > div { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.needs-list dt { display: flex; gap: 14px; align-items: baseline; font-size: 18px; font-weight: 600; line-height: 1.35; }
.needs-list dd { margin: 0; padding-left: 42px; color: var(--soft); font-size: 16px; }
.needs-list dd a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.needs-list dd a:hover { color: var(--ink); }
.needs-list .n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--on-btn); font-size: 13px; font-weight: 600; transform: translateY(-1px); }
@media (min-width: 860px) {
    .needs-head { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; padding-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
    .needs-head span:last-child { padding-left: 0; }
    .needs-list > div { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; padding: 24px 0; }
    .needs-list dd { padding-left: 0; }
}

/* ---------- the 3D page's teaser ---------- */
.teaser-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .teaser-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; } }
.teaser .section-lede { max-width: 520px; margin-bottom: 28px; }
.teaser-pic { display: block; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.teaser-pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
