/* Skippio for Agencies page only (agency.html).
   Loaded after styles.css. Reuses the site's tokens and components; everything new is here
   so no other page is affected. */

/* ---------- [CONFIRM] highlights ----------
   To remove every highlight and note later, delete this one rule block (the .confirm rules). */
.confirm { background: #FFE45C; color: var(--ink); border-radius: 4px; box-shadow: 0 0 0 3px #FFE45C; }
.confirm::after { content: "CONFIRM: " attr(data-confirm); display: block; margin-top: 6px; font: 700 .72rem/1.35 var(--body); letter-spacing: .02em; color: #6B5300; }
span.confirm::after, strong.confirm::after { display: inline; margin: 0 0 0 .5em; }
/* ---------- end [CONFIRM] ---------- */

/* Grey placeholder boxes for images still to come */
.ph { display: grid; place-items: center; text-align: center; padding: 24px; border-radius: var(--radius-lg); background: #E4DED5; border: 2px dashed #B9AE9F; color: #5E554B; font: 700 .95rem/1.4 var(--body); }
.ph::before { content: "Image placeholder"; display: block; margin-bottom: 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8A7F71; }
.ph > span { max-width: 32ch; }

/* ---------- 1. Hero: text left, visual right ---------- */
.ap-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 56px); align-items: center; }
.ap-hero h1.two-line span { white-space: normal; }
.ap-hero h1 { font-size: clamp(2.4rem, 3.9vw, 3.5rem); }
.ap-hero .ph { aspect-ratio: 4 / 3; background: #3A332C; border-color: #6B6258; color: #E9E2D8; }
.ap-hero .ph::before { color: #B3A99B; }
.ap-proof { margin-top: 1.4rem; font-size: .92rem; color: rgba(255,255,255,.7); max-width: 52ch; }

/* ---------- 2. Problems: problem (muted) beside the Skippio answer (tick) ---------- */
.ap-problems { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ap-problems li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 40px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 26px; }
.ap-problems small { display: block; margin-bottom: 6px; font: 800 .72rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ap-problem p { color: var(--muted); }
.ap-answer { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; }
.ap-answer .tick { margin-top: 1px; grid-row: 1 / span 2; }
.ap-answer small { color: var(--orange-deep); }
.ap-answer p { color: var(--ink); }

/* ---------- 2b. Problems as a comparison table (Without Skippio vs Skippio) ---------- */
.vs-wrap { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.vs-intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; }
.vs-accent { color: var(--orange); }
.vs-rule { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--orange); margin: 28px 0 22px; }
.vs-intro .lede { max-width: 40ch; }
.vs-table { background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(60,40,10,.4); }
.vs-row { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.vs-row + .vs-row { border-top: 1px solid var(--line); }
.vs-cell { display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-size: .95rem; line-height: 1.45; }
.vs-old { color: var(--ink); }
.vs-new { background: #FEF6EA; font-weight: 600; }
.vs-row:not(.vs-headrow) .vs-new { border-left: 1px solid #F6E3C6; }
.vs-text { flex: 1; min-width: 0; }
.vs-headrow .vs-cell { justify-content: center; font: 800 1rem/1.2 var(--display); padding: 24px 22px; }
.vs-headrow .vs-new { background: var(--orange); }
.vs-headrow .vs-new img { height: 40px; width: auto; }
.vs-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--muted); }
.vs-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vs-x { flex: none; position: relative; width: 14px; height: 14px; }
.vs-x::before, .vs-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 1.6px; background: #A99E91; border-radius: 1px; }
.vs-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.vs-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.vs-check { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); }
.vs-check::after { content: ""; position: absolute; left: 50%; top: 46%; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 1020px) { .vs-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  /* Phones: compact rows, the problem as a short grey line with its ✕, the Skippio answer underneath */
  .vs-wrap { gap: 28px; }
  .vs-rule { margin: 18px 0 14px; }
  .vs-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .vs-headrow { display: none; }
  .vs-cell { padding: 0; gap: 10px; align-items: flex-start; }
  .vs-old { font-size: .84rem; line-height: 1.35; color: var(--muted); }
  .vs-old .vs-ico { display: none; }
  .vs-old .vs-x { order: -1; width: 22px; height: 18px; }
  .vs-old .vs-x::before, .vs-old .vs-x::after { width: 11px; }
  .vs-new, .vs-row:not(.vs-headrow) .vs-new { background: none; border-left: 0; font-size: .92rem; line-height: 1.4; }
  .vs-check { width: 22px; height: 22px; }
  .vs-check::after { width: 9px; height: 5px; border-width: 2px; }
  .vs-table::before { content: ""; display: block; height: 8px; background: var(--orange); }
}

/* ---------- 3. Event types: pick an event, its modules are ticked ----------
   Every panel is in the HTML; main.js hides all but the selected one (all stay visible in the admin editor). */
.ev-tabs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.ev-list { display: grid; gap: 8px; }
.ev-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font: 700 1rem/1.3 var(--display); color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ev-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.ev-list button:hover { border-color: #E8C99A; }
.ev-list button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.ev-list button[aria-selected="true"] svg { stroke: #fff; }
.ev-list button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.ev-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.ev-panel + .ev-panel { margin-top: 16px; }
.ev-tabs.is-ready .ev-panel { grid-column: 2; grid-row: 1; margin-top: 0; }
.ev-panel[hidden] { display: none; }
.ev-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.ev-panel > p { margin-top: .5rem; color: var(--muted); font-size: 1.05rem; }
.ev-label { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font: 800 .72rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-mods { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.ev-mods li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #B5AA9C; }
.ev-mods li i { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #DDD5CA; }
.ev-mods li.on { color: var(--ink); }
.ev-mods li.on i { background: var(--orange); border-color: var(--orange); }
.ev-mods li.on i::after { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 900px) {
  .ev-tabs { grid-template-columns: 1fr; }
  .ev-tabs.is-ready .ev-panel { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .ev-mods { gap: 12px 14px; }
  .ev-mods li { gap: 8px; font-size: .9rem; line-height: 1.25; }
  .ev-mods li i { width: 20px; height: 20px; }
}

/* ---------- 4. How it works: four steps as tabs ----------
   All panels share one grid cell, so the section keeps the height of the tallest step and doesn't jump. */
.how-tabs { display: grid; }
.how-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.how-nav button { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.how-nav button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: transparent; transition: background .2s; }
.how-nav .phase-num { flex: none; width: 30px; height: 30px; margin: 0; font-size: .9rem; background: var(--sand); color: var(--muted); transition: background .2s, color .2s; }
.how-nav b { display: block; font: 800 1.05rem/1.2 var(--display); }
.how-nav small { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.how-nav button:hover { border-color: #E8C99A; }
.how-nav button[aria-selected="true"] { border-color: var(--orange); box-shadow: 0 14px 30px -22px rgba(200,110,0,.6); }
.how-nav button[aria-selected="true"]::before { background: var(--orange); }
.how-nav button[aria-selected="true"] .phase-num { background: var(--orange); color: #fff; }
.how-nav button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.how-tabs .phase { padding: clamp(28px, 4vw, 48px) 0 0; border-top: 0; }
.how-tabs .phase .phase-copy { order: 0; }
.how-tabs.is-ready .phase { grid-row: 2; grid-column: 1; }
.how-tabs.is-ready .phase[hidden] { display: grid; visibility: hidden; }
@media (max-width: 900px) {
  .how-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .how-nav { gap: 8px; }
  .how-nav button { padding: 14px 12px 12px; gap: 10px; }
  .how-nav small { display: none; }
  .how-tabs .hide-mobile { display: none; }
  /* Phones: each step takes its own height, so short steps don't leave a gap */
  .how-tabs.is-ready .phase[hidden] { display: none; }
}

/* ---------- 4. How it works ---------- */
.phase-copy p.ap-outcome { color: var(--ink); font-weight: 700; }
.ap-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
.phase .ph { aspect-ratio: 16 / 10; }

/* ---------- 5. Guest experience: fanned phones, copy beside, six moments in a row ---------- */
.gx-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.gx-phones { position: relative; container-type: inline-size; aspect-ratio: 100 / 60; }
.gx-phones img { position: absolute; top: 50%; width: 23cqw; height: auto; aspect-ratio: 415 / 900; object-fit: cover; border: .9cqw solid #0F1830; border-radius: 3.6cqw; background: #0F1830; box-shadow: 0 3cqw 6cqw -3cqw rgba(30,20,10,.5); }
.gx-phones img:nth-child(1) { left: 0;      z-index: 1; transform: translateY(-50%) scale(.9); }
.gx-phones img:nth-child(2) { left: 19.2%;  z-index: 2; transform: translateY(-50%) scale(.96); }
.gx-phones img:nth-child(3) { left: 38.5%;  z-index: 3; transform: translateY(-50%) scale(1.04); }
.gx-phones img:nth-child(4) { left: 57.8%;  z-index: 2; transform: translateY(-50%) scale(.96); }
.gx-phones img:nth-child(5) { left: 77%;    z-index: 1; transform: translateY(-50%) scale(.9); }
.gx-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; }
.gx-copy .lede { margin-top: 1.25rem; color: var(--ink); }
.gx-copy .ap-bold { margin-top: 1rem; font-weight: 700; }
.gx-steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; counter-reset: gx; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; }
.gx-steps li { counter-increment: gx; }
.gx-steps strong { display: flex; align-items: center; gap: 10px; font: 800 .84rem/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.gx-steps strong::before { content: counter(gx); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: .85rem; letter-spacing: 0; }
.gx-steps span { display: block; margin-top: 10px; font-size: .93rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 1100px) { .gx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .gx-top { grid-template-columns: 1fr; }
  .gx-phones { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .gx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  /* Phones: three bigger screens instead of five small ones */
  .gx-phones { aspect-ratio: 100 / 82; }
  .gx-phones img { width: 34cqw; border-width: 1.2cqw; border-radius: 5cqw; }
  .gx-phones img:nth-child(1), .gx-phones img:nth-child(5) { display: none; }
  .gx-phones img:nth-child(2) { left: 2%; }
  .gx-phones img:nth-child(3) { left: 33%; }
  .gx-phones img:nth-child(4) { left: 64%; }
}

/* ---------- 6. Report ---------- */
.ap-report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.ap-rcard .mock-title small { background: var(--sand); padding: .35rem .7rem; border-radius: 999px; font-weight: 700; color: var(--ink); }
.ap-rrows { list-style: none; margin: 0; padding: 0; }
.ap-rrows li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ap-rrows li:last-child { border-bottom: 0; }
.ap-rrows span { display: block; font-size: .85rem; color: var(--muted); }
.ap-rrows b { display: block; margin-top: 3px; font: 800 1.15rem/1.3 var(--display); }
.ap-rrows i { display: block; height: 8px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--orange) var(--w), var(--sand) var(--w)); }
.ap-uses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 36px; }
.ap-uses h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.ap-uses ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ap-uses li { position: relative; padding-left: 20px; color: var(--muted); font-size: .97rem; }
.ap-uses li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.ap-uses li b { color: var(--ink); }
.ap-sample { margin-top: 28px; }
/* Small copy of the report card used in How it works, step 4 */
.ap-rcard.small .ap-rrows li { padding: 10px 0; }
.ap-rcard.small .ap-rrows b { font-size: 1rem; }

/* ---------- 7. Trust: placeholder in place of the photo ---------- */
.trust .ph { aspect-ratio: 4 / 3; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .ap-report { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ap-hero .wrap { grid-template-columns: 1fr; }
  .ap-hero .wrap { padding-top: 130px; }
  .ap-problems li { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ap-uses { grid-template-columns: 1fr; }
  .ap-problems li { padding: 18px; }
}
