/* ==========================================================================
   Cash4Planes — POLISH LAYER (2026-09-30): type, spacing, photo treatment.
   Same classes and markup; every section, the offer modal and the funnel are
   untouched. build.sh links this after styles.css on every public page
   (never crm/ — the CRM shares styles.css). Change it, bump POLISH_V there.
   ========================================================================== */

/* Phone overflow fix: the hero grid's implicit column sized to its widest
   nowrap child (396px in a 390px phone) and clipped the headline, buttons and
   card on the right. A zero-minimum track lets the column shrink. */
.hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero__inner > * { min-width: 0; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* Type: a touch less compressed, balanced line breaks, no orphans */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { letter-spacing: -0.022em; line-height: 1.06; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.125rem); letter-spacing: -0.018em; line-height: 1.1; }
.eyebrow { letter-spacing: 0.14em; }
.lede { line-height: 1.6; }

/* Rhythm: a little more air between sections on desktop */
@media (min-width: 900px) {
  .section { padding-block: 5.5rem; }
  .section--lg { padding-block: 7rem; }
}

/* Buttons: same pill and gold, quieter glow */
.btn--primary { box-shadow: 0 1px 2px rgba(11, 37, 64, 0.14); }
.btn--primary:hover { box-shadow: 0 4px 14px -6px rgba(168, 132, 54, 0.6); }
.btn--ghost { border-width: 1.5px; border-color: rgba(255, 255, 255, 0.35); }
.btn--secondary { border-width: 1.5px; }

/* Hero */
.hero h1 { margin-bottom: var(--sp-5); }
.hero__lede { line-height: 1.6; }
.hero__trust { gap: var(--sp-2) var(--sp-5); font-size: 0.9rem; color: rgba(248, 244, 236, 0.66); }
.hero__card { border: 0; box-shadow: 0 30px 60px -20px rgba(3, 12, 24, 0.55); overflow: hidden; }
/* the card photo runs edge to edge (its inline width left a strip on desktop) */
.hero__card > img:first-child {
  width: calc(100% + 2 * var(--sp-6)) !important;
  max-width: none !important;
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5) !important;
  height: 220px !important;
  border-radius: 0 !important;
  object-position: 50% 60%;
}

@media (max-width: 599px) {
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: var(--sp-5); }
  .hero__card > img:first-child { height: 190px !important; }
}

/* Trust strip: lighter */
.trust-strip__item { font-weight: 500; color: var(--ink-muted); }

/* Cards: softer edges, calmer hover */
.scenario, .step, .testimonial { border-color: #ECE4D3; border-radius: 14px; }
.scenario:hover { transform: none; box-shadow: var(--shadow); border-color: #E0D3B6; }
.scenario__icon { border-radius: 10px; }
.testimonial { box-shadow: none; }

/* Ally's photo: warm frame, gentler shadow, fixed crop so it sits level with the copy */
.proof-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 55% 45%;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(11, 37, 64, 0.06), 0 24px 48px -24px rgba(11, 37, 64, 0.35) !important;
  outline: 6px solid var(--cream);
  outline-offset: 0;
}

/* Stats band: same facts, less shouting */
.stat__num { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.stat__label { font-size: 0.8125rem; letter-spacing: 0.08em; }

/* FAQ: a little more air per question */
.faq__item summary { padding-block: 1.15rem; }

/* Lead form step 2: "Send now" first, optional details folded away.
   Lives here (public pages only) because styles.css is shared with the CRM. */
.step2-ready { font-weight: 600; color: var(--navy); margin: 0 0 var(--sp-2); }
/* The call/text consent sits above Continue (2026-10-02): Continue now saves step 1. */
.modal__step[data-step="1"] .sms-consent { margin: var(--sp-2) 0 var(--sp-3) !important; }
.btn--send-now { white-space: normal; flex-wrap: wrap; row-gap: 0; column-gap: .35em; line-height: 1.2; padding-inline: 16px; }
.btn--send-now span { font-weight: 600; opacity: .8; font-size: .85em; }
.form-more { margin: var(--sp-4) 0 var(--sp-3); }
.form-more > summary {
  cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 700; color: var(--navy);
  padding: 12px 0; border-top: 1px dashed var(--line);
}
.form-more > summary::-webkit-details-marker { display: none; }
.form-more > summary::before { content: "+ "; color: var(--gold-dark); }
.form-more[open] > summary::before { content: "\2013  "; }
.form-more > summary span { color: var(--ink-muted); font-weight: 400; }
.form-more[open] > summary { margin-bottom: var(--sp-3); }
.form-more__send { margin-top: var(--sp-2); }
.form-back { min-height: 40px; padding: 8px 18px; font-size: var(--fs-sm); }

/* Sticky actions (Clarity review 2026-10-07). On a 390x844 phone step 1's
   Continue sat at 825-891 px, below the fold, and "Add details" opens a
   1,200 px section whose Send is at its foot. `overflow: clip` keeps the panel's
   rounded corners WITHOUT making it a scroll container, which would pin a sticky
   child to the panel instead of to the scrolling .modal. The paper ring and
   fade mask the fields scrolling underneath. */
.modal__panel { overflow: clip; }
.modal__step[data-step="1"] #form-next,
.form-more[open] .form-more__send {
  position: sticky; bottom: 12px; z-index: 2;
  box-shadow: 0 0 0 8px var(--paper), 0 -12px 18px 4px var(--paper);
}
@media (max-width: 599px) {
  /* A shorter header and step 1 so Continue is in view before anything sticks. */
  .modal { padding: var(--sp-2); }
  .modal__panel { margin-top: var(--sp-2); }
  .modal__header { padding: var(--sp-4) var(--sp-5) var(--sp-2); }
  .modal__header h2 { font-size: var(--fs-xl) !important; }
  .modal__body { padding: 0 var(--sp-5) var(--sp-5); }
  .modal__step[data-step="1"] .form-field { margin-bottom: var(--sp-3); }
}

/* "Aircraft we buy": the make headings are links to the guide pages */
.aircraft__title a { color: inherit; text-decoration: underline; text-decoration-color: rgba(168, 132, 54, .45); text-underline-offset: 3px; }
.aircraft__title a:hover { color: var(--gold-dark); }

/* Phone homepage (Clarity read 2026-10-09): the lead form sits in the hero card
   below the headline instead of behind a button. main.js moves the modal's form
   body in here at phone width; the hero's own "Get My Cash Offer" button is then
   redundant and steps aside (the call button stays). */
.hero-form {
  background: var(--paper); color: var(--ink); border-radius: 14px;
  margin: 0 0 var(--sp-5); box-shadow: 0 24px 48px -20px rgba(3, 12, 24, 0.6);
}
.hero-form[hidden] { display: none; }
/* The form body ships IN the slot (no first-paint shift, 2026-10-31); wide screens never show the slot, before or
   after main.js moves the body out to the modal. */
@media (min-width: 600px) { .hero-form { display: none; } }
.hero-form__title { margin: 0; padding: var(--sp-4) var(--sp-4) var(--sp-2); font-weight: 700; color: var(--navy); font-size: var(--fs-lg); line-height: 1.25; }
.hero-form__title span { display: block; font-weight: 500; font-size: var(--fs-sm); color: var(--ink-muted); }
.hero-form .modal__body { padding: 0 var(--sp-4) var(--sp-4); }
.hero-form .modal__step[data-step="1"] .form-field { margin-bottom: var(--sp-3); }
/* `clip`, not the hero's `hidden`: a hidden overflow is a scroll container and
   pins the sticky Continue to the hero instead of the screen. */
.hero-form .form-row { grid-template-columns: 1fr 1fr; }
/* has-inline-form is in the HTML now, so its effects are phone-only (main.js drops it on wide screens). */
@media (max-width: 599px) {
.hero.has-inline-form { overflow: clip; }
.has-inline-form .hero__ctas .btn--primary { display: none; }
.has-inline-form .hero__ctas { margin-top: var(--sp-4); }
}

/* Tap-to-call in the sticky header on phones (Boss 2026-10-26). styles.css hides .nav__phone under
   768 px and the CRM shares that file, so phones get it here: the secondary-button outline, 44 px tall.
   Under 360 px the number does not fit beside the logo, so the pill reads "Call". */
@media (max-width: 767px) {
  .nav__phone {
    display: inline-flex; min-height: 44px; padding: 0 14px; gap: 6px;
    border: 2px solid var(--navy); border-radius: 999px; background: var(--paper);
    font-size: 15px; line-height: 1; white-space: nowrap;
  }
  .nav__phone:active { background: var(--navy); color: var(--paper); }
}
@media (max-width: 359px) {
  .nav__phone { font-size: 0; gap: 0; padding: 0 12px; }
  .nav__phone::after { content: "Call"; font-size: 15px; margin-left: 6px; }
}
/* Tablet portrait (768-1023 px): logo, four menu links, the number and the offer button do not fit on one row,
   so the links and the number wrapped onto two-three lines. The menu links step aside (they are in the footer). */
.nav__phone { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__links { display: none; }
}

/* Guide pages (2026-11-01, /how-to-sell-an-airplane/ + the model-page "selling it" sections): an above-the-fold
   offer box, a step list, an on-page contents box, comparison tables that scroll sideways on a phone instead of
   widening the page, and a grid of model-guide links. */
.guide-cta { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; }
.guide-cta p { margin: 0 0 var(--sp-3); font-size: var(--fs-base); }
.guide-cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.guide-steps li { margin-bottom: var(--sp-2); }
.guide-toc { background: var(--paper); border: 1px solid var(--line-cool); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5); margin: var(--sp-6) 0; }
.guide-toc__title { font-weight: 700; color: var(--navy); margin: 0 0 var(--sp-2); font-size: var(--fs-base); }
.guide-toc ol { margin: 0; columns: 2 16rem; column-gap: var(--sp-6); }
.guide-toc li { margin-bottom: var(--sp-1); font-size: var(--fs-sm); break-inside: avoid; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--sp-5) 0; }
.guide-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.45; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-cool); }
.guide-table thead th { background: var(--navy); color: var(--paper); font-weight: 600; }
.guide-table tbody th { color: var(--navy); font-weight: 600; white-space: nowrap; }
.guide-table tbody tr:nth-child(even) { background: var(--cream); }
.guide-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--sp-3); margin: var(--sp-4) 0; }
.guide-models a { display: block; padding: 12px 14px; border: 1px solid var(--line-cool); border-radius: var(--radius-sm); background: var(--paper); color: var(--navy); font-weight: 600; text-decoration: none; }
.guide-models a:hover { border-color: var(--gold); }
.model-guide { max-width: 780px; }
.model-guide h3 { font-size: var(--fs-xl); margin-top: var(--sp-5); }
.model-guide ul { padding-left: var(--sp-5); }
.model-guide li { margin-bottom: var(--sp-2); line-height: 1.6; }

/* In-text links read as links (2026-11-01 field test: "how to sell an airplane: the complete guide" on the model pages
   was navy on near-navy text with no underline — a seller could not tell it was a link). Class-less anchors inside a
   paragraph only, so buttons, nav and card links keep their own look. */
p a:not([class]) { text-decoration: underline; text-decoration-color: rgba(168, 132, 54, .6); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:not([class]):hover { text-decoration-color: currentColor; }
