/* frontrowtheme.com v2: the theme product pages, laid out like an Apple product page in the
   FRONTROW system (off-black, red, white; Inter Tight; Caslon numerals; 1px off-black lines). */

/* The global header scrolls away; the product bar stays. */
body:has(.localnav) .header { position: relative; }
body:has(.localnav) .header__cta { display: none; }
.localnav { position: sticky; top: 0; z-index: 45; background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.localnav__inner { display: flex; align-items: center; gap: 2rem; min-height: 3.25rem; }
.localnav__name { display: inline-flex; align-items: baseline; gap: 0.35rem; text-decoration: none; }
.localnav__name .wordmark { width: 5.25rem; height: auto; }
.localnav__name .wordmark__edition { font-size: 1.05rem; }
.localnav__links { display: none; gap: 1.75rem; margin-left: auto; font-size: var(--small); }
.localnav__links a { text-decoration: none; }
.localnav__links a:hover { color: var(--red); }
.localnav__buy { margin-left: auto; min-height: 2.25rem; padding: 0 1rem; font-size: var(--small); }
@media (min-width: 48rem) { .localnav__links { display: flex; } .localnav__buy { margin-left: 0; } }

/* ---------- Hero ---------- */
.pdp-hero { padding: clamp(3.5rem, 2rem + 5vw, 7rem) 0 clamp(4rem, 3rem + 4vw, 7rem); text-align: center; overflow: hidden; }
.pdp-hero__copy { display: grid; justify-items: center; }
.pdp-hero__copy .label { margin-bottom: 1.75rem; }
.pdp-hero__title { display: inline-flex; align-items: baseline; gap: 0.75rem; margin: 0; }
.pdp-hero__title .wordmark { width: clamp(11rem, 7rem + 13vw, 22.5rem); height: auto; }
.pdp-hero__title .wordmark__edition { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 5.25rem); line-height: 1; }
.pdp-hero__claim { font: 600 var(--display-xl) / 0.98 var(--sans); letter-spacing: -0.045em; margin: clamp(1.75rem, 1rem + 2vw, 3rem) 0 0; max-width: 14ch; text-wrap: balance; }
.pdp-hero__line { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); line-height: 1.45; max-width: 36ch; margin: 1.5rem 0 0; text-wrap: balance; }
.pdp-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.5rem; margin-top: 2.25rem; padding: 0.6rem 0.6rem 0.6rem 1.5rem; border: 1px solid var(--ink); text-align: left; }
.pdp-buy p { margin: 0; font-size: var(--small); }
.pdp-buy .btn { min-height: 2.75rem; padding: 0 1.4rem; }
.pdp-hero__demo { margin-top: 1.25rem; font-size: var(--small); }
@media (max-width: 30rem) { .pdp-buy { padding: 1rem; text-align: center; } }

/* The demo store on desktop with the phone in front: paper with a 1px edge, lifted. */
.pdp-stage { position: relative; margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: clamp(2rem, 1rem + 4vw, 5rem); }
.pdp-stage__desk { max-width: 68rem; margin-inline: auto; border: 1px solid var(--ink); background: var(--ink); }
.pdp-stage__desk img { width: 100%; height: auto; }
.pdp-stage__phone { position: absolute; right: max(var(--gutter), calc(50% - 38rem)); bottom: 0; width: clamp(7rem, 4rem + 10vw, 14rem); border: 1px solid var(--ink); background: var(--ink); }
.pdp-stage__phone img { width: 100%; height: auto; }

/* ---------- Big numbers ---------- */
.stats { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.stats__row { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .stats__row { grid-template-columns: repeat(3, 1fr); } }
.stat { display: grid; justify-items: center; text-align: center; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 1.5rem; }
@media (min-width: 48rem) { .stat + .stat { border-left: 1px solid var(--line); } }
@media (max-width: 47.99rem) { .stat + .stat { border-top: 1px solid var(--line); } }
.stat__n { font: 400 clamp(3rem, 2rem + 3.5vw, 5.25rem) / 0.9 var(--serif); letter-spacing: -0.03em; }
.stat p { margin: 1rem 0 0; max-width: 22ch; text-wrap: balance; }

/* ---------- Centred section heads (Apple-style intros) ---------- */
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .display { max-width: 18ch; }
.section-head--center .lede { margin-inline: auto; text-align: center; max-width: 46ch; }

/* ---------- The styles: phones in a row that scrolls on small screens ---------- */
.lineup-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(10.5rem, 7rem + 10vw, 14.5rem); gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem max(var(--gutter), calc(50% - 45rem)) 1.5rem; scrollbar-width: none; }
.lineup-strip::-webkit-scrollbar { display: none; }
.lineup-strip { list-style: none; margin: 0; }
.lineup-strip > li { display: grid; scroll-snap-align: start; }
@media (min-width: 80rem) { .lineup-strip { justify-content: center; } }
.lineup-tile { display: grid; gap: 0.35rem; text-decoration: none; scroll-snap-align: start; }
.lineup-tile__phone { display: block; border: 1px solid var(--ink); background: var(--ink); margin-bottom: 0.9rem; transition: transform var(--slow) var(--ease); }
.lineup-tile__phone img { width: 100%; height: auto; }
.lineup-tile:hover .lineup-tile__phone { transform: translateY(-6px); }
.lineup-tile__style { font: 600 var(--title) / 1.1 var(--sans); letter-spacing: -0.02em; }
.lineup-tile__meta { font-size: var(--small); }
.lineup-tile__go { font-size: var(--small); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.lineup-tile:hover .lineup-tile__go { color: var(--red); }
.lineup-strip__note { text-align: center; font-size: var(--small); margin-top: 0.5rem; }
.lineup-strip__note code { font: 500 0.85rem var(--sans); color: var(--white); background: var(--ink); padding: 0.1rem 0.4rem; }

/* ---------- Compare ---------- */
.compare-table { max-width: 60rem; margin-inline: auto; }
.compare-cols, .compare-table tr { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); align-items: center; }
.compare-cols { align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.compare-col { display: grid; grid-template-rows: 2.2rem auto auto auto; justify-items: center; align-items: end; gap: 0.75rem; text-align: center; }
.compare-col__name { display: inline-flex; align-items: baseline; gap: 0.3rem; margin: 0; }
.compare-col__name .wordmark { width: 6.5rem; height: auto; }
.compare-col__name .wordmark__edition { font-size: 1.3rem; }
.compare-col__price { font: 600 2rem / 1 var(--sans); letter-spacing: -0.03em; margin: 0; }
.compare-col__price small { font-size: var(--small); font-weight: 400; letter-spacing: 0; }
.compare-col .btn { min-height: 2.6rem; padding: 0 1.1rem; font-size: var(--small); }
.compare-col .textlink { font-size: var(--small); }
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table tbody, .compare-table thead { display: block; }
.compare-table th, .compare-table td { padding: 1rem 0.75rem 1rem 0; border-bottom: 1px solid var(--line); }
.compare-table th { text-align: left; font-weight: 500; }
.compare-table td { text-align: center; padding-right: 0; height: 100%; display: grid; place-items: center; }
.tick { font-weight: 600; font-size: 1.1rem; }
.dash { font-size: 1.1rem; }
@media (max-width: 40rem) {
  .compare-cols, .compare-table tr { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); }
  .compare-col__name { flex-direction: column; align-items: center; gap: 0.15rem; }
  .compare-col__name .wordmark { width: 4.75rem; }
  .compare-col__name .wordmark__edition { font-size: 0.95rem; }
  .compare-col__price { font-size: 1.5rem; }
  .compare-col { grid-template-rows: 2.6rem auto auto auto; }
  .compare-col .btn { padding: 0 0.6rem; }
  .compare-table th { font-size: var(--small); }
}

.faq-wrap .faq { max-width: 48rem; margin-inline: auto; }

/* ---------- Get the highlights: big screenshots, captions that lead in bold ---------- */
.highlights__grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1rem, 0.5rem + 2vw, 2.5rem); }
@media (min-width: 56rem) { .highlights__grid { grid-template-columns: repeat(2, 1fr); } }
.highlight { margin: 0; display: grid; gap: 1.25rem; }
.highlight__media { border: 1px solid var(--ink); background: var(--ink); overflow: hidden; aspect-ratio: 16 / 10; }
.highlight__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--slow) var(--ease); }
.highlight:hover .highlight__media img { transform: scale(1.02); }
.highlight figcaption { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); line-height: 1.5; max-width: 44ch; }
.highlight figcaption strong { font-weight: 600; }

/* ---------- Homepage product tiles (apple.com pattern), in the frontrow system ---------- */
.tiles { padding: clamp(0.75rem, 0.5rem + 0.6vw, 1rem); }
.tiles__grid { display: grid; gap: clamp(0.75rem, 0.5rem + 0.6vw, 1rem); }
@media (min-width: 56rem) { .tiles__grid { grid-template-columns: repeat(2, 1fr); } }
.tile { display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-align: center; background: var(--white); border: 1px solid var(--ink); }
@media (min-width: 56rem) { .tile { min-height: clamp(34rem, 28rem + 14vw, 44rem); } }
.tile--ink { background: var(--ink); color: var(--white); }
.tile__copy { display: grid; justify-items: center; padding: clamp(2.5rem, 2rem + 2vw, 3.75rem) 1.5rem 0; }
.tile__name { display: inline-flex; align-items: baseline; gap: 0.5rem; margin: 0; }
.tile__name img { width: clamp(8rem, 6rem + 5vw, 11rem); height: auto; }
.tile__name .serif { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); line-height: 1; }
.tile__claim { font: 600 clamp(1.4rem, 1.1rem + 1vw, 2rem) / 1.1 var(--sans); letter-spacing: -0.03em; margin: 1rem 0 0; max-width: 18ch; min-height: 2.2em; text-wrap: balance; }
.tile__name { min-height: 3.2rem; }
.tile__price { margin: 0.6rem 0 0; font-size: var(--small); }
.tile__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.tile__actions .btn { min-height: 2.75rem; padding: 0 1.4rem; }
.tile--ink .btn--ghost { color: var(--white); border-color: var(--white); }
.tile--ink .btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.tile__media { align-self: end; margin: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(1.5rem, 1rem + 3vw, 3.5rem) 0; border: 1px solid var(--ink); border-bottom: 0; }
.tile--ink .tile__media { border-color: var(--white); }
.tile__media img { display: block; width: 100%; height: auto; transition: transform var(--slow) var(--ease); }
.tile:hover .tile__media img { transform: scale(1.015); }
