/*
 * Home (three versions), features and pricing. Builds on site.css; nothing
 * here restyles a shared component, it only adds the page-specific pieces.
 */

/* ---- heroes */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 76px); }
.hero h1 { max-width: 15em; }
.hero .lede { margin-top: 22px; }
.hero-plain h1 { max-width: 17em; }
.section-flush { padding-top: 0; }

/* A: copy and live slip on the left, the working calculator on the right */
.hero-a-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero-a h1 { font-size: clamp(2.4rem, 4.9vw, 4.1rem); }
.hero-a-copy .btn-row { margin-top: 28px; }
.hero-slip { margin-top: clamp(32px, 4vw, 52px); max-width: 520px; transform: rotate(-0.6deg); }
.hero-slip .slip-lines li.is-new span:last-child { animation: reprice 0.5s ease-out; }
.hero-slip-note { margin-top: 14px; max-width: 34em; }
.hero-a-demo { display: grid; gap: 14px; }
.hero-a-demo .demo-calc { min-height: 520px; }
@keyframes reprice { from { background: var(--tape); } to { background: transparent; } }
@media (max-width: 960px) {
	.hero-a-in { grid-template-columns: 1fr; }
	.hero-a-demo { order: 2; }
	.hero-slip { transform: none; }
}

/* Chips: the trade switcher, example prompts, billing period */
.switch, .bill { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.92rem/1 var(--body); color: var(--ink); background: var(--white); border: 1.5px solid var(--rule); border-radius: 99px; padding: 10px 15px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* B: the prompt box is the hero */
.hero-b-in { display: grid; justify-items: start; }
.hero-b h1 { max-width: 13.5em; }
.ask { width: min(100%, 860px); margin-top: clamp(28px, 4vw, 44px); background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-l); box-shadow: 8px 8px 0 var(--tape); display: grid; }
.ask-label { font: 700 1.05rem var(--display); padding: 20px 24px 0; }
.ask textarea { font: 400 clamp(1.1rem, 1.7vw, 1.3rem)/1.5 var(--body); color: var(--ink); border: 0; background: transparent; padding: 10px 24px 14px; resize: vertical; min-height: 150px; width: 100%; }
.ask textarea:focus { outline: none; }
.ask:focus-within { box-shadow: 8px 8px 0 var(--tape), 0 0 0 3px var(--ledger); }
.ask textarea::placeholder { color: #8a9a95; }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 16px 24px; border-top: 1px dashed var(--rule); }
.ask-alt { font-weight: 600; font-size: 0.97rem; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); min-width: 0; }
.steps li::before { content: counter(step); font: 800 3.2rem/0.9 var(--display); letter-spacing: -0.04em; }
.steps p { color: var(--muted); }
.steps .code { margin-top: 8px; font-size: 0.8rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.readout-row { align-items: start; }
.readout { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 24px; display: grid; gap: 18px; min-width: 0; }
.readout-title { font: 700 1.1rem var(--display); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.readout table, .spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.readout caption, .spec caption { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.88rem; padding-bottom: 6px; }
.readout th, .readout td, .spec th, .spec td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px dashed var(--rule); font-weight: 400; }
.readout th { padding-right: 16px; width: 44%; font-weight: 600; }
.readout td { color: var(--ink-2); overflow-wrap: anywhere; }
.readout code, .spec code { font: 0.86em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* C: the catalogue is the hero */
.hero-c-head { display: grid; gap: 0; margin-bottom: clamp(28px, 4vw, 48px); }
.finder { display: grid; gap: 6px; margin-top: 28px; max-width: 460px; }
.finder-label { font-weight: 600; font-size: 0.93rem; }
.finder-none { margin-top: 24px; font-size: 1.1rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px) clamp(18px, 2.6vw, 36px); }
.tile { display: grid; gap: 8px; align-content: start; padding: 16px 0 6px; border-top: 2px solid var(--ink); text-decoration: none; }
.tile h2, .tile h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.1; }
.tile p { color: var(--muted); font-size: 0.97rem; }
.tile:hover h2, .tile:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tape); text-underline-offset: 5px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tpl-card { align-content: start; justify-items: start; }
.tpl-more, .plan-strip-more { margin-top: 28px; }
[data-filter][hidden] { display: none; }
.demo-row { align-items: center; }

/* ---- shared sections */
.code { margin: 0; background: #0a1f1c; color: #e3efe9; border-radius: var(--r-m); padding: 20px 22px; overflow-x: auto; font: 0.9rem/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; border: 1px solid #2c4a43; white-space: pre; }
.code-light { background: var(--ink); margin-top: 22px; }
.embed-row { align-items: center; }
.checks-ink li::before { border-color: var(--tape); }
.cta-ghost { color: var(--white); border-color: #45625b; }
.cta-ghost:hover { border-color: var(--white); }

.plan-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.plan-strip li { border-right: 1px dashed var(--rule); }
.plan-strip li:last-child { border-right: 0; }
.plan-strip a { display: grid; gap: 6px; padding: 18px 18px 18px 0; text-decoration: none; height: 100%; align-content: start; }
.plan-strip li + li a { padding-left: 18px; }
.plan-strip b { font: 700 1.1rem var(--display); }
.plan-strip-price { font: 800 2rem/1 var(--display); letter-spacing: -0.03em; }
.plan-strip-price small { font: 500 0.85rem var(--body); letter-spacing: 0; color: var(--muted); }
.plan-strip a:hover b { text-decoration: underline; }
@media (max-width: 900px) {
	.plan-strip { grid-template-columns: 1fr; }
	.plan-strip li { border-right: 0; border-bottom: 1px dashed var(--rule); }
	.plan-strip a, .plan-strip li + li a { grid-template-columns: 1fr auto; padding: 14px 0; align-items: baseline; }
	.plan-strip a .small { grid-column: 1 / -1; }
}

/* ---- features: one row per job */
.jobnav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 30px; font: 700 1.1rem var(--display); }
.jobnav a { text-decoration-thickness: 3px; text-decoration-color: var(--tape); text-underline-offset: 5px; }
.jobnav a:hover { text-decoration-color: var(--ink); }
.jobs { padding-top: clamp(20px, 4vw, 48px); }
.job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) 0; border-top: 2px solid var(--ink); align-items: start; scroll-margin-top: 80px; }
.job:first-child { border-top: 0; }
.job-what { display: grid; gap: 18px; align-content: start; min-width: 0; }
.job-what h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.job-how { min-width: 0; }
@media (min-width: 901px) { .job-what { position: sticky; top: 92px; } }
@media (max-width: 900px) { .job { grid-template-columns: 1fr; } }
.ways { margin: 0; display: grid; }
.ways > div { padding: 18px 0; border-bottom: 1px dashed var(--rule); display: grid; gap: 6px; }
.ways > div:first-child { padding-top: 0; }
.ways > div:last-child { border-bottom: 0; }
.ways dt { font: 700 1.2rem/1.25 var(--display); letter-spacing: -0.01em; }
.ways dd { margin: 0; color: var(--ink-2); }
.spec th { width: 32%; padding-right: 18px; font-weight: 600; }
.spec-code th { width: 56%; }
.spec td { color: var(--ink-2); }
.slip-sample { max-width: 460px; }
.slip-caption { margin-top: 14px; max-width: 460px; }
@media (max-width: 520px) { .spec th, .spec td, .spec-code th { display: block; width: 100%; } .spec th { border-bottom: 0; padding-bottom: 0; } }

/* ---- pricing */
.bill { margin-top: 30px; }
.plans-wrap { padding-bottom: clamp(24px, 4vw, 48px); }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.plan { display: grid; grid-template-rows: auto auto auto 1fr; gap: 18px; align-content: start; padding: 26px 20px 30px; border-right: 1px dashed var(--rule); scroll-margin-top: 90px; min-width: 0; }
.plan:first-child { padding-left: 0; }
.plan:last-child { border-right: 0; padding-right: 0; }
.plan header { display: grid; gap: 6px; min-height: 5.2em; align-content: start; }
.plan h2 { font-size: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-flag { background: var(--tape); color: var(--ink); font-family: var(--body); letter-spacing: 0; }
.plan-price { display: grid; gap: 4px; min-height: 5.6em; align-content: start; }
.plan-price strong { font: 800 3.1rem/0.95 var(--display); letter-spacing: -0.04em; }
.plan-price span { font-size: 0.88rem; color: var(--muted); }
.plan .btn { width: 100%; white-space: normal; text-align: center; }
.plan-list { font-size: 0.93rem; line-height: 1.45; align-content: start; }
.plan-list .is-soon { color: var(--muted); }
.plan-list .is-soon::before { border-color: var(--rule); }
.plan-list .tag { font-size: 0.75rem; padding: 2px 8px; }
.plan-pick { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-l); box-shadow: 6px 6px 0 var(--tape); margin: -14px 8px -10px; padding-top: 40px; padding-left: 20px; position: relative; z-index: 1; }
.plans-note { margin-top: 26px; max-width: 60em; }
@media (max-width: 1080px) {
	.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; gap: 0 28px; }
	.plan, .plan:first-child, .plan:last-child { border-right: 0; border-bottom: 1px solid var(--rule); padding: 26px 0 30px; }
	.plan-pick, .plan-pick:first-child { margin: 18px 0; padding: 26px 20px 30px; border: 1.5px solid var(--ink); }
	.plan header, .plan-price { min-height: 0; }
}
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .hero-slip .slip-lines li.is-new span:last-child { animation: none; } }
