/**
 * Component: Landing inner pages (page head, services, about, drivers, careers, contact, legal)
 * Documentation: documentation/frontend/landing.md
 * Loads after home.css and home-sections.css (tokens, tiles, topbar, footer, quote form, team tiles).
 */

.topbar nav a[aria-current] { color: var(--ink); font-weight: 700; }
main { display: block; }
.page .board-section { margin-top: var(--gap); }
.page .board-section.gap-big { margin-top: clamp(32px, 4vw, 56px); }
.page .foot, .page .quote { margin-top: clamp(64px, 8vw, 120px); }

/* Page head: compact — title and lead land on one screen with the content */
.ph {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 64px;
  align-items: end; padding: clamp(28px, 3.5vw, 52px) var(--margin) 0;
}
.ph-title h1 { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
.ph-title--long h1 { font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); letter-spacing: -0.03em; line-height: 1; max-width: 16em; }
.ph-note { display: flex; flex-direction: column; gap: 16px; justify-content: end; padding-bottom: 6px; }
.ph-note p { font-size: var(--step-body); line-height: 1.45; font-weight: 500; color: var(--ink-soft); max-width: 44ch; }
.ph-note .row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.ph--short { padding-top: clamp(20px, 2.5vw, 36px); }

/* Compact card rows: everything of one kind in a single sweep */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); align-items: stretch; }
.cards .text-tile { min-height: 0; gap: 12px; }
.cards .photo { min-height: 0; aspect-ratio: 16 / 10; }
.cards h2 { font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.cards .text-tile p { line-height: 1.4; }

/* One shared gutter: every block lines up with the page head */
.page main .row12, .page main .cards, .page main .steps, .page main .jobs,
.page main .shots, .page main .about { padding-left: var(--margin); padding-right: var(--margin); }
a.svc-card { text-decoration: none; }

/* Full-width ticket CTA (apply, join) */
.cta-ticket { --stub: 96px; max-width: 860px; margin-left: var(--margin); text-decoration: none; }
.cta-ticket .t-body { padding: 28px 36px 24px; }
.cta-ticket h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.cta-ticket .t-body p { margin-top: 12px; max-width: 52ch; }
.cta-ticket .t-stub { padding-left: 36px; }
.cta-ticket .t-stub b { font-size: 1.15rem; }
.cta-ticket .go { width: 48px; height: 48px; }
.cta-ticket .go svg { width: 20px; height: 20px; }

/* Service cards */
.cards .svc-card .photo { aspect-ratio: 2 / 1; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0; border-radius: 24px 24px 0 0; }
.cards .svc-card h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); }
.cards .svc-card .more { margin-top: auto; display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.cards .svc-card .more::after { content: '\2192'; transition: transform 0.25s var(--ease); }
.cards .svc-card:hover .more::after { transform: translateX(4px); }

/* Generic board rows */
.row12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: var(--gap); }
.row12:first-child { margin-top: 0; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; }
.s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: 1 / -1; }
.text-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 0; }
.text-tile h2, .text-tile h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.text-tile h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.text-tile p { font-size: var(--step-body); line-height: 1.4; max-width: 46ch; }
.text-tile .more { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.text-tile a:not(.btn) { text-underline-offset: 4px; font-weight: 500; }
.lead-tile p { font-size: var(--step-lead); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; max-width: 34ch; }
.lead-tile p + p { margin-top: 16px; }
.row12 .photo { min-height: 240px; }
.row12 .photo.strip { min-height: 110px; }
.band .photo { min-height: 200px; }
.row12 .photo img { object-position: 50% 60%; }

/* About */
.edge h2, .edge .section-head { font-size: var(--step-head); }
.page .about-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; margin-bottom: var(--gap); min-height: 0; }
.page .person { min-height: 0; padding: 22px; }
.page .person:nth-child(3), .page .person:nth-child(5) { margin-top: 0; }

/* Drivers: stores, screenshots */
.stores { display: flex; flex-wrap: wrap; gap: var(--gap); }
.store { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 28px 0 22px; border-radius: 999px; background: var(--ink-dark); color: var(--ink); text-decoration: none; transition: transform 0.2s var(--ease); }
.store:hover { transform: translateY(-2px); }
.store:active { transform: scale(0.98); }
.store svg { width: 28px; height: 28px; fill: currentColor; }
.store small { display: block; font-size: var(--step-small); font-weight: 400; line-height: 1; }
.store b { display: block; font-size: var(--step-lead); font-weight: 700; line-height: 1.1; }
.app-icon { display: grid; place-items: center; }
.app-icon img { width: min(100%, 220px); height: auto; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); max-width: 1240px; margin-left: auto; margin-right: auto; }
.shot-card { padding: 0; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.shot-card img { width: 100%; height: auto; }
.shot-card figcaption { padding: 18px 20px 24px; font-size: var(--step-body); line-height: 1.35; }
.shot-card figcaption b { color: var(--accent); display: block; font-weight: 700; }

/* Careers: jobs list, hiring steps */
.jobs-head { margin-top: clamp(64px, 8vw, 128px); }
.jobs { display: grid; gap: var(--gap); margin-top: var(--gap); }
/* Open positions: accordion, one open at a time; panel height animates via grid rows */
.job { background: var(--tile-2); border-radius: 20px; overflow: hidden; transition: background-color 0.2s; }
.job.is-open { background: var(--tile-3); }
.job-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: var(--pad); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.job:not(.is-open) .job-head:hover { background: var(--tile-3); }
.job h3 { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.job .job-meta { display: block; margin-top: 6px; font-size: var(--step-body); color: var(--ink-soft); }
.job .job-open { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--accent); flex: none; }
.job .job-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.job.is-open .job-open svg { transform: rotate(180deg); }
.job-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.job.is-open .job-panel { grid-template-rows: 1fr; }
.job-panel-inner { overflow: hidden; min-height: 0; padding: 0 var(--pad); max-width: 78ch; }
.job.is-open .job-panel-inner { padding-bottom: var(--pad); }
.job-panel section { margin-bottom: 20px; }
.job-panel h4 { font-size: var(--step-body); font-weight: 700; margin-bottom: 8px; color: var(--accent); }
.job-panel p { font-size: var(--step-body); line-height: 1.5; margin-bottom: 12px; color: var(--ink-soft); }
.job-apply { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--ink-dark); font-weight: 500; text-decoration: none; transition: transform 0.2s var(--ease); }
.job-apply:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .job-panel, .job .job-open svg { transition: none; } }
.jobs-empty { background: var(--tile-2); padding: var(--pad); border-radius: 24px; display: grid; gap: 20px; justify-items: start; }
.jobs-empty p { font-size: var(--step-lead); line-height: 1.2; font-weight: 500; max-width: 34ch; }
.jobs-empty .btn { background: var(--accent); color: var(--ink-dark); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: var(--gap); align-items: start; }
.steps .text-tile { min-height: 0; padding: 20px 22px; }

/* Contact: one focused card beside the form, flat Google block */
.contact-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; padding: 0 var(--margin); }
.contact-cols .quote-form { margin-top: 0; }
.contact-card { --stub: 88px; }
.contact-card .t-body { padding: 26px 30px 24px; }
.contact-card h2 { font-size: 1.45rem; }
.contact-lines { margin-top: 18px; display: grid; gap: 14px; font-size: 1rem; line-height: 1.5; color: var(--ink-dark); }
.contact-lines p { margin: 0; max-width: 40ch; }
.contact-lines a { color: var(--ink-dark); font-weight: 500; text-underline-offset: 3px; }
.contact-card .t-stub { padding-left: 30px; }
a.t-stub { text-decoration: none; }
a.t-stub b { font-size: 1.1rem; }
a.t-stub:hover .go { transform: translateX(6px); }
.google-body { display: grid; gap: 18px; max-width: 820px; }
.google-body h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }
.google-lede { color: var(--ink-soft); line-height: 1.55; max-width: 56ch; }
.google-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.google-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 48px); align-items: center; padding: 0 var(--margin); }
.google-map iframe {
  width: 100%; height: 440px; display: block; border: 0; border-radius: 28px;
  filter: grayscale(0.55) contrast(1.02); transition: filter 0.3s var(--ease);
}
.google-map:hover iframe { filter: none; }

/* Legal text */
.legal { padding: clamp(24px, 5vw, 64px); }
.legal > * { max-width: 70ch; }
.legal h2 { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: var(--step-body); line-height: 1.55; color: var(--ink-soft); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { margin-left: 1.25rem; display: grid; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal-aside { align-self: start; min-height: 0; }
.ph--short { min-height: 40svh; }
.legal-aside .big-q { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }
.legal-aside a { color: var(--ink-dark); }

@media (max-width: 900px) {
  .job-head { padding: 20px; }
  .job-panel-inner { padding-left: 20px; padding-right: 20px; }
  .ph { grid-template-columns: 1fr; gap: 12px; }
  .row12 { grid-template-columns: 1fr; }
  .s3, .s4, .s5, .s6, .s7, .s8, .s12 { grid-column: 1; }
  .text-tile { min-height: 0; padding: 20px; }
  .row12 .photo { min-height: 0; aspect-ratio: 4 / 3; }
  .row12 .photo.tall { aspect-ratio: 3 / 4; }
  .contact-cols { grid-template-columns: 1fr; }
  .google-split { grid-template-columns: 1fr; gap: 20px; }
  .google-map iframe { height: 300px; border-radius: 20px; }
  .shots { grid-template-columns: 1fr; }
  .shot-card { max-width: 340px; }
  .steps { grid-template-columns: 1fr; }
  .steps .text-tile:nth-child(n) { margin-top: 0; }
  .legal { padding: 20px; }
  .legal-aside { order: -1; }
}
