/* Showcase components: Apple-style product and plan presentation, built on the sales.css tokens.
   Sticky local nav, ribbon, auto-scrolling tile wall, reveal-on-scroll, plan cards with an in-place
   breakdown, lineup gallery with paddles, "+" cards that open a blurred sheet, animated FAQ.
   Every motion here is switched off under prefers-reduced-motion. */

:root { interpolate-size: allow-keywords; --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ── Local nav (sticky, frosted) ────────────────────────────────────────── */
.localnav {
  position: sticky; top: 0; z-index: 35; color: #fff;
  background: rgba(0, 12, 77, 0.82); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.localnav .inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 52px; display: flex; align-items: center; gap: 24px; }
.localnav .title { font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.localnav nav { display: flex; gap: 20px; font-size: 13px; }
.localnav nav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.localnav nav a:hover, .localnav nav a[aria-current="true"] { color: #fff; }
.localnav .btn { padding: 5px 13px; font-size: 12px; background: #fff; color: var(--navy); }
.localnav .btn:hover { background: var(--peach-100); }
@media (max-width: 760px) { .localnav nav { display: none; } }

/* ── Ribbon ─────────────────────────────────────────────────────────────── */
.ribbon { max-width: none; margin: 0; text-align: center; padding: 13px var(--gutter); background: var(--sage-50); font-size: 13px; color: var(--ink-2); }
.ribbon a { color: var(--navy); font-weight: 700; text-decoration: none; }
.ribbon a:hover { text-decoration: underline; }

/* ── Centered hero ──────────────────────────────────────────────────────── */
.show-hero { text-align: center; padding: clamp(72px, 11vw, 150px) var(--gutter) clamp(40px, 6vw, 72px); }
.show-hero h1 { font-size: clamp(36px, 6vw, 80px); line-height: 1.02; max-width: 1000px; margin: 0 auto; }
.show-hero .lead { margin: 26px auto 0; max-width: 720px; color: var(--ink-2); }
.show-hero .actions { justify-content: center; margin-top: 30px; }
.show-hero .fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
/* Split variant: copy on the left, illustration on the right; stacks and re-centres on narrow screens. */
.show-hero.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: 1240px; margin: 0 auto; text-align: left; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.show-hero.split h1 { font-size: clamp(36px, 5vw, 68px); margin: 0; }
.show-hero.split :is(.lead, .fine) { margin-left: 0; margin-right: 0; }
.show-hero.split .lead { text-wrap: pretty; max-width: 520px; }
.show-hero.split .actions { justify-content: flex-start; }
.show-hero.split .pic { width: 100%; max-width: 560px; justify-self: end; }
@media (max-width: 900px) {
  .show-hero.split { grid-template-columns: 1fr; text-align: center; }
  .show-hero.split :is(.lead, .fine) { margin-left: auto; margin-right: auto; }
  .show-hero.split .actions { justify-content: center; }
  .show-hero.split .pic { max-width: 440px; justify-self: center; }
}

/* ── Reveal on scroll ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-fade { opacity: 0.08; transition: opacity 1.1s var(--ease-out); }
.reveal-fade.is-visible { opacity: 1; }
.no-js .reveal, .no-js .reveal-fade { opacity: 1; transform: none; }

/* ── Tile wall (auto-scrolling rows) ────────────────────────────────────── */
.tilewall { position: relative; overflow: hidden; padding: 8px 0 12px; }
.tilewall .row { display: flex; gap: 12px; width: max-content; margin-bottom: 12px; animation: wall-left var(--wall-speed, 80s) linear infinite; }
.tilewall .row.reverse { animation-name: wall-right; }
.tilewall .row.slow { --wall-speed: 110s; }
.tilewall .row { animation-play-state: var(--wall-state, running); }
.tilewall.paused .row { animation-play-state: paused; }
main [id] { scroll-margin-top: 72px; }
@keyframes wall-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wall-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.qtile {
  flex: none; width: 290px; height: 136px; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ink); background: var(--peri-100);
}
.qtile.w2 { width: 360px; }
.qtile q { quotes: "“" "”"; font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.qtile .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-2); }
.qtile .eng { background: rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.qtile.t-peach { background: var(--peach-200); }
.qtile.t-mint { background: var(--mint-200); }
.qtile.t-peri { background: var(--peri-200); }
.qtile.t-sage { background: var(--sage-200); }
.qtile.t-navy { background: var(--navy); color: #fff; }
.qtile.t-navy .meta { color: rgba(255, 255, 255, 0.8); }
.qtile.t-navy .eng { background: rgba(255, 255, 255, 0.16); }
.wall-ctrl { display: flex; justify-content: flex-end; max-width: var(--max); margin: 6px auto 0; padding: 0 var(--gutter); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn svg { width: 14px; height: 14px; }

/* ── Service grid ───────────────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; max-width: 980px; margin: 0 auto; }
.svc .picon { margin-bottom: 14px; }
.svc h3 { font-size: 19px; margin-bottom: 8px; }
.svc p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.link-blue { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 14px; }
.link-blue::after { content: " ›"; }
.link-blue:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Plan cards with in-place breakdown ─────────────────────────────────── */
.plans-band { background: var(--sage-50); padding: clamp(72px, 10vw, 130px) 0; }
.plans-band .section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1060px; margin: 0 auto; align-items: stretch; }
.pcard {
  position: relative; background: #fff; border-radius: 22px; padding: 30px 28px 26px; display: flex; flex-direction: column;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.pcard.open { background: var(--sage-100); }
.pcard .pname { font-size: 18px; font-weight: 700; }
.pcard .pprice { font: 800 clamp(30px, 3vw, 40px)/1.05 var(--display); letter-spacing: -0.03em; margin: 6px 0 10px; }
.pcard .pprice.textual { font-size: clamp(22px, 2vw, 26px); }
.pcard .pprice.compact { font-size: clamp(24px, 2.2vw, 28px); white-space: nowrap; }
.pcard .pprice small { font-size: 0.42em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pcard.c-orange .pprice { color: var(--orange); }
.pcard.c-green .pprice { color: var(--green); }
.pcard.c-navy .pprice { color: var(--navy); }
.pcard .psave { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; min-height: 3.2em; }
.pcard .psave b { color: var(--ink); }
.pcard .share { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 18px; }
.pcard .share svg { width: 16px; height: 16px; }
.pcard hr { border: 0; border-top: 1.5px solid var(--ink); margin: 0 0 16px; opacity: 0.85; }
.pcard ul.incl { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 13px; font-weight: 600; }
.pcard ul.incl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.pcard ul.incl .tag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: var(--peri-200); color: var(--navy); white-space: nowrap; }
.pcard ul.incl .when { display: none; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; text-align: right; }
.pcard.open ul.incl .when { display: inline; animation: when-in 0.45s var(--ease-out) both; }
.pcard.open ul.incl li:nth-child(2) .when { animation-delay: 40ms; }
.pcard.open ul.incl li:nth-child(3) .when { animation-delay: 80ms; }
.pcard.open ul.incl li:nth-child(4) .when { animation-delay: 120ms; }
.pcard.open ul.incl li:nth-child(5) .when { animation-delay: 160ms; }
.pcard.open ul.incl li:nth-child(6) .when { animation-delay: 200ms; }
.pcard.open ul.incl li:nth-child(7) .when { animation-delay: 240ms; }
@keyframes when-in { from { opacity: 0; transform: translateX(10px); } }
.pcard.open ul.incl .tag { display: none; }
.pcard .breakdown { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
.pcard .breakdown > div { overflow: hidden; }
.pcard.open .breakdown { grid-template-rows: 1fr; }
.pcard .breakdown p { margin: 0 0 16px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--sage-300); padding-top: 14px; }
/* Buttons stack in every card at every width, so no card looks different from its neighbours. */
.pcard .pfoot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pcard .toggle {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 7px 13px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.pcard .toggle:hover { background: var(--ink); color: #fff; }
.pcard .toggle i { width: 16px; height: 16px; border-radius: 999px; border: 1.5px solid currentColor; position: relative; display: inline-block; transition: transform 0.4s var(--ease-out); }
.pcard .toggle i::before, .pcard .toggle i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.pcard .toggle i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease-out); }
.pcard.open .toggle i::after { transform: translate(-50%, -50%) rotate(0deg); }
.pcard .close-x {
  position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(0, 12, 77, 0.08); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.pcard.open .close-x { opacity: 1; pointer-events: auto; }
.pcard .secure { font-size: 12px; color: var(--muted); }
.plans-note { text-align: center; color: var(--muted); font-size: 13px; margin: 26px auto 0; }
/* Three across: every card shares one set of rows, so names, prices, rules, lists
   and buttons line up even when a name wraps or one card has an extra line. */
@media (min-width: 901px) {
  @supports (grid-template-rows: subgrid) {
    .pcards { grid-template-rows: repeat(9, auto); row-gap: 0; }
    .pcard { display: grid; grid-template-rows: subgrid; grid-row: span 9; align-content: start; }
    .pcard .pfoot { margin-top: 0; align-self: end; }
  }
}

/* ── Lineup gallery (paddles) ───────────────────────────────────────────── */
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: var(--max); margin: 0 auto 28px; padding: 0 var(--gutter); flex-wrap: wrap; }
.gallery {
  --gal-pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gal-pad) 10px; scroll-padding-inline: var(--gal-pad); scrollbar-width: none; scroll-behavior: smooth;
}
.gallery::-webkit-scrollbar { display: none; }
.gcard { scroll-snap-align: start; text-align: center; display: flex; flex-direction: column; }
.gcard .gart { border-radius: 22px; aspect-ratio: 5 / 5.6; display: grid; place-items: center; padding: 22px; overflow: hidden; }
.gcard .gart > * { transition: transform 0.6s var(--ease-out); }
.gcard:hover .gart > * { transform: scale(1.035); }
.gcard .dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0 14px; }
.gcard .dots i { width: 10px; height: 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 12, 77, 0.18); }
.gcard .new { color: var(--orange-ink); font-size: 12px; font-weight: 700; min-height: 18px; }
.gcard h3 { font-size: 22px; margin: 2px 0 6px; }
.gcard .tagline { font-weight: 600; font-size: 14px; color: var(--ink); margin: 0 auto 10px; max-width: 250px; min-height: 2.8em; }
.gcard .gprice { font-size: 13px; color: var(--ink-2); min-height: 2.6em; margin: 0 0 16px; }
.gcard .gact { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: auto; }
.paddles { display: flex; justify-content: flex-end; gap: 10px; max-width: var(--max); margin: 20px auto 0; padding: 0 var(--gutter); }
.paddles button {
  width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--sage-100); color: var(--ink); font-size: 18px; cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s, opacity 0.2s;
}
.paddles button:hover:not([disabled]) { background: var(--sage-200); }
.paddles button[disabled] { opacity: 0.35; cursor: default; }

/* ── "+" cards and sheet ────────────────────────────────────────────────── */
.pluscards { --gal-pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gal-pad) 10px; scroll-padding-inline: var(--gal-pad); scrollbar-width: none; scroll-behavior: smooth; }
.pluscards::-webkit-scrollbar { display: none; }
.pluscard {
  scroll-snap-align: start; position: relative; background: #fff; border-radius: 22px; padding: 26px 24px 64px; min-height: 420px; display: flex; flex-direction: column; text-align: left;
  border: 0; cursor: pointer; color: var(--ink); font: inherit; box-shadow: 0 2px 10px rgba(0, 12, 77, 0.05); transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.pluscard:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 34px rgba(0, 12, 77, 0.1); }
.pluscard .eyebrow { margin-bottom: 8px; color: var(--ink-2); }
.pluscard strong { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; display: block; margin-bottom: 10px; }
.pluscard span.copy { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.pluscard .art { margin-top: auto; padding-top: 20px; display: grid; place-items: center; }
.pluscard .plus {
  position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center;
  transition: transform 0.4s var(--ease-out);
}
.pluscard:hover .plus { transform: rotate(90deg); }
.pluscard .plus svg { width: 14px; height: 14px; }
.why-band { background: var(--sage-50); padding: clamp(64px, 9vw, 110px) 0; }

dialog.sheet {
  border: 0; padding: 0; border-radius: 26px; width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); color: var(--ink); background: #fff;
  box-shadow: 0 30px 80px rgba(0, 12, 77, 0.25); overflow: auto;
}
dialog.sheet[open] { animation: sheet-in 0.45s var(--ease-out); }
dialog.sheet::backdrop { background: rgba(0, 12, 77, 0.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fade-in 0.35s ease-out; }
dialog.sheet .sheet-body { padding: clamp(32px, 6vw, 64px); }
dialog.sheet .eyebrow { margin-bottom: 10px; }
dialog.sheet h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
dialog.sheet p { color: var(--ink-2); line-height: 1.65; margin: 0 0 16px; }
dialog.sheet .close {
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--sage-100); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; z-index: 1;
}
dialog.sheet .close:hover { background: var(--sage-200); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }

/* ── Dark FAQ ───────────────────────────────────────────────────────────── */
.faq-dark { background: #000c4d; color: #fff; padding: clamp(72px, 10vw, 130px) 0; }
.faq-dark h2 { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.faq-dark .faq { max-width: 760px; }
.faq-dark details { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.faq-dark summary { color: #fff; font-size: clamp(16px, 1.6vw, 19px); padding: 22px 48px 22px 0; }
.faq-dark summary::after {
  content: ""; width: 22px; height: 22px; border: 1.5px solid #fff; border-radius: 999px; right: 4px;
  background:
    linear-gradient(#fff, #fff) center / 10px 1.5px no-repeat,
    linear-gradient(#fff, #fff) center / 1.5px 10px no-repeat;
  transition: transform 0.4s var(--ease-out);
}
.faq-dark details[open] summary::after { content: ""; transform: translateY(-50%) rotate(45deg); }
.faq-dark details p { color: rgba(255, 255, 255, 0.8); }
.faq-dark details p a { color: var(--peach-200); }
.faq-dark details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
.faq-dark details[open]::details-content { block-size: auto; }
.faq-dark .after { text-align: center; margin-top: 44px; color: rgba(255, 255, 255, 0.8); }
.faq-dark .after .btn { margin-top: 14px; }

/* ── Footnotes ──────────────────────────────────────────────────────────── */
.footnotes { background: var(--sage-50); padding: 28px 0 36px; font-size: 12px; color: var(--muted); }
.footnotes ol { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 0 calc(var(--gutter) + 16px); display: grid; gap: 8px; }

/* ── Compare (light restyle) ────────────────────────────────────────────── */
/* position: relative keeps the table's screen-reader labels inside this scroller,
   so they can't widen the page on phones. */
.compare-wrap { position: relative; max-width: 1060px; margin: 0 auto; padding: 0 var(--gutter); overflow-x: auto; }
.compare-wrap .compare thead th { position: static; font-size: 16px; padding-top: 18px; }

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcards { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .qtile { width: 240px; height: 128px; }
  .qtile.w2 { width: 280px; }
}
@media print {
  .reveal, .reveal-fade { opacity: 1 !important; transform: none !important; }
  .localnav, .tilewall, .wall-ctrl, .paddles { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1 !important; transform: none !important; }
  .tilewall .row { animation: none; }
  .tilewall { overflow-x: auto; }
}
.paddles[hidden] { display: none; }

/* Rows clip vertically (overflow-y: hidden in sales.css, so the wheel scrolls the page, not the row).
   Give the "+" cards room inside the row for their hover lift and shadow, without changing the layout. */
.pluscards { padding-top: 12px; padding-bottom: 40px; margin-bottom: -30px; }
