/* ==========================================================================
   Lantana Digital — Paid Media page (/paid-media-austin/)
   Loads after site.css and local-seo.css (the shared inner-page layer:
   breadcrumb, paper plates, splits, flat report, ledger, disqualifier grid).
   This file adds the page's own plates: the hundred-lead hero, the ticket
   test, the channel rail, fee scale, lead-worth calculator, PPC report and
   the bid-adjustment map.
   ========================================================================== */

/* --- Hero: headline beside Plate 1 ------------------------------------------ */
.pm-hero { padding-bottom: 0; }
.pm-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) { .pm-hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); column-gap: clamp(2.5rem, 5vw, 4.5rem); } }
.pm-hero h1 { font-size: clamp(2.2rem, 1.25rem + 3.6vw, 4.1rem); letter-spacing: -0.04em; line-height: 1; max-width: 16ch; }
.pm-hero .trust { margin-top: clamp(2.5rem, 5vw, 3.75rem); }

/* --- Paper plates on forest lie on the table -------------------------------- */
.plate--lift { box-shadow: 0 28px 56px -28px rgb(0 0 0 / 0.65); border-color: transparent; }
.band--dark .ls-pull { color: var(--t-ink); }
.ls-pull--lead { margin-bottom: 1.3em; }
.prose .ls-pull--lead { margin-top: 0; }

/* --- The channel rail -------------------------------------------------------- */
.rail { position: relative; margin: 0 auto; padding: 0; list-style: none; max-width: 72rem; }
.rail::before { content: ""; position: absolute; left: calc(1.3rem - 1px); top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--t-ink); }
.rail__stop { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: clamp(1rem, 2.5vw, 1.75rem); row-gap: 1.35rem; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.rail__stop:last-child { padding-bottom: 0; }
.rail__copy, .rail__fig { grid-column: 2; }
.rail__copy h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.42rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--t-ink); }
.rail__copy p { margin-top: 0.75rem; max-width: 62ch; font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.13rem); line-height: 1.68; color: var(--t-body); }
.rail__copy a { color: var(--t-ink); text-decoration: underline; text-decoration-color: var(--bloom); text-underline-offset: 0.2em; }
.rail__fig { margin: 0; align-self: center; }
.rail__fig figcaption { margin-bottom: 0.7rem; color: var(--t-note); }
.dated { color: var(--bloom-ink); }
@media (min-width: 62rem) {
  .rail__stop { grid-template-columns: 2.6rem minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: clamp(1.75rem, 3.5vw, 3.5rem); }
  .rail__copy { grid-column: 2; }
  .rail__fig { grid-column: 3; grid-row: 1; }
}

/* The switch: a stamped toggle, on once the channel before it pays. */
.rail__switch { grid-column: 1; grid-row: 1 / span 2; align-self: start; position: relative; z-index: 1; width: 2.6rem; height: 1.45rem; margin-top: 0.15rem; border-radius: 2px; background: var(--bloom-deep); box-shadow: 0 0 0 5px var(--t-ground); transition: background-color 300ms var(--ease); }
.rail__switch i { position: absolute; top: 3px; left: calc(100% - 3px - 1.2rem + 0px); width: calc(1.45rem - 6px); height: calc(1.45rem - 6px); border-radius: 1px; background: var(--paper); transition: left 420ms var(--ease); }
.rail__switch i { left: calc(2.6rem - 3px - (1.45rem - 6px)); }
.rail__stop.is-off .rail__switch { background: var(--t-ground); box-shadow: 0 0 0 5px var(--t-ground), inset 0 0 0 1.5px var(--t-ink); }
.rail__stop.is-off .rail__switch i { left: 3px; background: var(--t-ink); }

.channels-table { margin-top: clamp(3rem, 6vw, 4.5rem); }
.channels th[scope="row"] { font-weight: 700; color: var(--t-ink); white-space: nowrap; }
.channels td { color: var(--t-body); line-height: 1.5; }
.channels { min-width: 44rem; }

/* --- Fees ------------------------------------------------------------------- */
.fees { max-width: 68rem; margin-inline: auto; }
.fees .scale__row--rule { padding-top: 1.1rem; border-top: 1px solid var(--t-hair); }
.scale__band--warn { background: linear-gradient(to right, rgb(196 41 15 / 0), var(--bloom-deep)); }
.coda-pair { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* --- Plate 3: what a lead is worth ----------------------------------------- */
.worth { padding: clamp(1.4rem, 3vw, 2rem); }
.worth__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1rem; }
.worth__field { display: grid; gap: 0.35rem; align-content: end; }
.worth__field--wide { grid-column: 1 / -1; }
.worth__field label { font-size: 0.92rem; font-weight: 600; line-height: 1.3; color: var(--body); }
.worth select, .worth__input { width: 100%; min-height: 2.9rem; border: 1px solid var(--note); border-radius: 2px; background-color: var(--field-input, #F7F6F2); color: var(--ink); font: 600 1.05rem Overpass, system-ui, sans-serif; }
.worth select { padding: 0.55rem 2.4rem 0.55rem 0.85rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231E1E1D' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 0.75rem; cursor: pointer; }
.worth__input { display: flex; align-items: center; padding: 0 0.85rem; gap: 0.3rem; }
.worth__input input { flex: 1; min-width: 0; padding: 0.55rem 0; border: 0; background: none; font: inherit; color: inherit; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.worth__input input::-webkit-inner-spin-button, .worth__input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.worth__input input:focus { outline: none; }
.worth__input:focus-within, .worth select:focus-visible { outline: 2px solid var(--bloom-deep); outline-offset: 1px; border-color: var(--ink); }
.worth__unit { font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.9rem; font-weight: 500; color: var(--note); }

/* --- What we do: four even cells, then the report --------------------------- */
@media (min-width: 74rem) { .services.tiles.pm-work { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* --- When it is wrong ------------------------------------------------------- */
.coda--strong { font-weight: 700; color: var(--t-ink); }
#wrong-move .coda { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
#wrong-move .coda + .coda { margin-top: 1rem; }

/* --- What you own ----------------------------------------------------------- */
#ownership .ls-split { align-items: center; }

/* --- Plate 5: bid adjustments by suburb ------------------------------------ */
.bidmap .bm-grat { fill: none; stroke: var(--hair); stroke-width: 0.6; opacity: 0.5; }
.bidmap .bm-routes path { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: 0.2; stroke-linecap: round; }
.bidmap .bm-ring { fill: none; stroke: var(--ink); stroke-width: 0.9; stroke-dasharray: 3 4; opacity: 0.45; }
.bidmap .bm-ring-label { font: 500 10px "Overpass Mono", ui-monospace, monospace; text-anchor: middle; fill: var(--note); }
.bidmap .bm-town--up .bm-circle { fill: var(--bloom); fill-opacity: 0.2; stroke: var(--bloom-deep); stroke-width: 1.5; }
.bidmap .bm-town--zero .bm-circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.bidmap .bm-town--down .bm-circle { fill: var(--note); fill-opacity: 0.16; stroke: var(--note); stroke-width: 1.2; }
.bidmap .bm-town--off .bm-circle { fill: var(--paper); stroke: var(--note); stroke-width: 1.2; stroke-dasharray: 2.5 2.5; }
.bidmap .bm-x { stroke: var(--note); stroke-width: 1.3; stroke-linecap: round; }
.bidmap .bm-core { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.bidmap .bm-label { font: 600 11px "Overpass Mono", ui-monospace, monospace; letter-spacing: 0.02em; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.bidmap .bm-adj--up { fill: var(--bloom-ink); }
.bidmap .bm-adj--down, .bidmap .bm-adj--off { fill: var(--note); }
.bidmap .bm-adj--zero { fill: var(--ink); }
.bidmap .bm-town { transform-box: fill-box; }
.bid-key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--t-body); }
.bid-key li { display: inline-flex; align-items: center; gap: 0.45rem; }
.bk { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; }
.bk--up { background: rgb(229 49 26 / 0.2); box-shadow: inset 0 0 0 1.5px var(--bloom-deep); }
.bk--zero { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.bk--down { background: rgb(98 99 91 / 0.16); box-shadow: inset 0 0 0 1.2px var(--note); }
.bk--off { background: var(--paper); border: 1.2px dashed var(--note); }
@media (max-width: 40rem) {
  .bidmap .bm-label { font-size: 13px; }
  .bidmap .bm-ring-label { font-size: 12px; }
}
.fees__note { margin-top: 1.4rem; color: var(--t-note); }
@media (min-width: 48rem) { .fees__note { margin-left: calc(min(16rem, 100%) + 1.5rem); } }

/* Channel table: stacked rows on phones instead of a sideways scroll. */
@media (max-width: 40rem) {
  .channels { min-width: 0; }
  .channels thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .channels tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 1rem 0; border-top: 1px solid var(--t-hair); }
  .channels tr:last-child { border-bottom: 1px solid var(--t-hair); }
  .channels th, .channels td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.2rem 0; border: 0; white-space: normal; }
  .channels th[scope="row"] { display: block; padding-bottom: 0.4rem; font-size: 1.1rem; }
  .channels td::before { content: attr(data-label); font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--t-note); padding-top: 0.2rem; }
}

.bk--base { background: radial-gradient(circle, var(--ink) 0 28%, var(--paper) 29% 42%, rgb(229 49 26 / 0.2) 43%); box-shadow: inset 0 0 0 1.5px var(--bloom-deep); }

/* ==========================================================================
   Revision: fewer figures, more picture.
   ========================================================================== */

/* --- Hero ------------------------------------------------------------------- */

/* --- Plate 1: from ad to booked job ----------------------------------------- */
.plate--flow { display: block; }
.plate--flow .plate__title { position: static; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flow__body { position: relative; padding: clamp(0.75rem, 2vw, 1.25rem); }
.flow { display: block; width: 100%; height: auto; overflow: visible; }
.flow .fl-route { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: 0.4; }
.flow .fl-card { fill: var(--paper); stroke: var(--hair); stroke-width: 1; }
.flow .fl-tag { font: 500 14px "Overpass Mono", ui-monospace, monospace; letter-spacing: 0.04em; fill: var(--note); }
.flow .fl-title { fill: var(--ink); opacity: 0.82; }
.flow .fl-line { fill: var(--hair); }
.flow .fl-cta rect { fill: var(--bloom-deep); }
.flow .fl-cta text { font: 700 11px Overpass, system-ui, sans-serif; text-anchor: middle; fill: var(--paper); }
.flow .fl-label { font: 800 22px Overpass, system-ui, sans-serif; letter-spacing: -0.02em; fill: var(--ink); }
.flow .fl-flag, .flow .fl-flag text { font: 500 16px "Overpass Mono", ui-monospace, monospace; letter-spacing: 0.02em; fill: var(--note); }
.flow .fl-flag--count text { fill: var(--bloom-ink); font-weight: 600; }
.flow .fl-flag--count path { stroke: var(--bloom-deep); stroke-width: 2; }
.flow .fl-ring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.flow .fl-wave { fill: none; stroke: var(--bloom); stroke-width: 1.5; opacity: 0; }
.flow .fl-phone { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.flow .fl-day { font: 500 12px "Overpass Mono", ui-monospace, monospace; letter-spacing: 0.04em; text-anchor: middle; fill: var(--note); }
.flow .fl-slot rect { fill: var(--shade); stroke: var(--hair); stroke-width: 1; transition: fill 300ms var(--ease), stroke 300ms var(--ease); }
.flow .fl-check { fill: none; stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.flow .fl-slot.is-booked rect { fill: var(--bloom-deep); stroke: var(--bloom-deep); }
.flow .fl-slot.is-booked .fl-check { opacity: 1; }
.flow .fl-dot { fill: var(--ink); }
.flow .fl-dot.is-lost { fill: var(--hair); }
.flow__replay { display: inline-flex; align-items: center; gap: 0.4rem; margin: -0.3rem -0.4rem -0.3rem 0; padding: 0.3rem 0.4rem; border: 0; border-radius: 2px; background: none; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--bloom); text-underline-offset: 0.2em; }
.flow__replay svg { width: 0.9rem; height: 0.9rem; transition: transform 420ms var(--ease); }
.flow__replay:hover svg, .flow__replay:focus-visible svg { transform: rotate(-200deg); }
.flow__replay[hidden] { display: none; }

/* --- Channels: where each kind of ad appears --------------------------------- */
.rail__fig .ws-plate { padding: clamp(0.75rem, 2vw, 1.1rem); max-width: 24rem; }
.rail__fig figcaption { margin: 0.75rem 0 0; max-width: 24rem; color: var(--t-note); }
.ws { display: block; width: 100%; height: auto; }
.ws .ws-search { fill: var(--field-input, #F7F6F2); stroke: var(--hair); }
.ws .ws-glass { fill: none; stroke: var(--note); stroke-width: 1.4; }
.ws .ws-line { fill: var(--hair); }
.ws .ws-line--head { fill: var(--ink); opacity: 0.78; }
.ws .ws-faint { opacity: 0.45; }
.ws .ws-hi { fill: none; stroke: var(--bloom-deep); stroke-width: 1.6; }
.ws .ws-badge { fill: var(--ink); }
.ws .ws-badge-check { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ws .ws-tag { font: 600 10px "Overpass Mono", ui-monospace, monospace; letter-spacing: 0.04em; fill: var(--note); }
.ws .ws-tag--on { fill: var(--bloom-ink); }
.ws .ws-phone { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.ws .ws-img { fill: var(--shade); }
.ws .ws-cta { fill: var(--bloom-deep); }

/* --- Plate 2: is there room for ads? ----------------------------------------- */
.worth__out { margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid var(--hair); }
.meter__track { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3px; height: 14px; }
.meter__zone { display: block; }
.meter__zone--tight { background: var(--hair); opacity: 0.55; }
.meter__zone--work { background: var(--note); opacity: 0.55; }
.meter__zone--plenty { background: var(--ink); opacity: 0.85; }
.meter__mark { position: absolute; top: -7px; bottom: -7px; left: calc(var(--at) * 1%); width: 4px; margin-left: -2px; border-radius: 1px; background: var(--bloom-deep); box-shadow: 0 0 0 2px var(--paper); transition: left 520ms var(--ease); }
.meter__labels { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3px; margin-top: 0.55rem; font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.78rem; line-height: 1.3; color: var(--note); }
.meter__labels span:last-child { text-align: right; }
.worth__verdict { margin-top: 1.1rem; font-weight: 800; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.42rem); letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); }
.worth__verdict.is-short { color: var(--bloom-ink); }
.worth__line { margin-top: 0.4rem; font-size: 1rem; line-height: 1.55; color: var(--body); }
.worth__min { display: grid; gap: 0.15rem; margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid var(--hair); }
.worth__min b { font-weight: 800; font-size: clamp(1.15rem, 1rem + 0.55vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.worth__min span { font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.78rem; line-height: 1.5; color: var(--note); }

/* --- What we do: the tracking cost note ------------------------------------- */
.setup-note { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem clamp(2rem, 5vw, 4rem); max-width: 68rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding-block: clamp(1.25rem, 2.6vw, 1.75rem); border-block: 1px solid var(--t-hair); }
@media (min-width: 52rem) { .setup-note { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.setup-note h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.42rem); letter-spacing: -0.03em; line-height: 1.2; color: var(--t-ink); }
.setup-note p { font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.13rem); line-height: 1.68; color: var(--t-body); }
.kpis--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-report { max-width: 46rem; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.bysource--ppc { font-size: 0.95rem; }

/* --- Plate 4: one cost, two jobs ------------------------------------------------ */
.ticket { display: grid; gap: clamp(1.6rem, 3.5vw, 2.25rem); padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.25rem, 1vw, 0.6rem); color: var(--ink); }
.tt-group { display: grid; gap: 0.7rem; }
.tt-title { font-weight: 800; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); letter-spacing: -0.02em; line-height: 1.2; }
.tt-track { position: relative; height: 22px; }
.tt-track::before { content: ""; position: absolute; inset: 0 28% 0 0; background: var(--shade); box-shadow: inset 0 0 0 1px var(--hair); }
.tt-track::after { content: ""; position: absolute; left: 72%; top: -6px; bottom: -6px; width: 1.5px; margin-left: -0.75px; background: var(--ink); }
.tt-bar, .tt-over { position: absolute; top: 0; bottom: 0; transform-origin: 0 50%; }
.tt-bar { left: 0; width: calc(var(--w) * 1%); min-width: 4px; background: var(--bloom-deep); }
.tt-over { left: 72%; width: calc(var(--w) * 1%); background: repeating-linear-gradient(135deg, var(--bloom-deep) 0 3px, var(--paper) 3px 6px); }
.tt-note { font-size: 0.98rem; line-height: 1.45; color: var(--body); }
.tt-note--over { color: var(--bloom-ink); font-weight: 700; }

/* --- Bid map: names only ---------------------------------------------------------- */
.bidmap .bm-label { font-size: 12px; }
@media (max-width: 40rem) { .bidmap .bm-label { font-size: 15px; } }

/* Plate 1 on phones: bigger labels in the drawing, and its two notes set as text below it. */
.flow__legend { display: none; }
@media (max-width: 40rem) {
  .flow .fl-flag { display: none; }
  .flow .fl-label { font-size: 30px; }
  .flow .fl-tag { font-size: 18px; }
  .flow .fl-day { font-size: 16px; }
  .flow__legend { display: grid; gap: 0.2rem; margin: 0; padding: 0 clamp(0.75rem, 2vw, 1.25rem) 1rem; list-style: none; font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.8rem; line-height: 1.45; color: var(--note); }
  .flow__legend b { font-weight: 600; color: var(--bloom-ink); }
}
@media (max-width: 40rem) { .flow__body { padding-bottom: 1.5rem; } }
