/* Websites: page-local styles (page builder A). Shared tokens only. */

/* ---------- On a phone: the phone frame (screen = INSERT VIDEO) ---------- */
.ph { padding-bottom: var(--section); }
.ph .head-row { margin-bottom: clamp(32px, 4vw, 56px); }
.ph-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.ph-index { grid-column: 1 / 7; display: grid; gap: 0.2em; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 0.6rem + 3.6vw, 4.5rem); line-height: 0.95; color: var(--on-night-soft); }
.ph-index li { display: flex; align-items: center; gap: 0.3em; transition: color var(--dur-ui) ease; }
.ph-index li::before { content: ""; flex: none; width: 0.4em; height: 0.12em; background: currentColor; opacity: 0.35; transition: background-color var(--dur-ui) ease, opacity var(--dur-ui) ease; }
.ph-index li.is-on { color: var(--on-night); }
.ph-index li.is-on::before { background: var(--accent); opacity: 1; }
.ph-device { grid-column: 7 / -1; justify-self: start; --ph-h: min(calc(100svh - var(--header-h) - var(--callbar-h) - 96px), 760px); height: var(--ph-h); aspect-ratio: 9 / 19.5; padding: 10px; background: var(--night-2); border-radius: 44px; }
.ph-screen.insert { display: block; position: relative; width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border-radius: 34px; background: var(--paper); border-color: #6E6A62; }
.ph-scroll { position: absolute; left: 0; right: 0; top: 0; }
.sp { aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; gap: 4.2%; padding: 14% 9% 0; }
.sp > i { display: block; flex: none; }
.sp-label { font-weight: 700; font-size: 12px; color: var(--ink-soft); }
.sp-nav { height: 5%; background: var(--ink); }
.sp-h { height: 3.6%; background: var(--ink); }
.sp-h2 { width: 70%; }
.sp-pic { height: 24%; background: #CFCABE; }
.sp-pic2 { height: 30%; }
.sp-t { height: 1.4%; background: #BDB8AC; }
.sp-short { width: 60%; }
.sp-btn { height: 5.5%; width: 60%; background: var(--accent); }
.sp-wide { width: 100%; }
.sp-field { height: 5.5%; background: var(--paper-2); }
.sp-tall { height: 14%; }
.ph-tag.ph-label, .ph-tag { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: none; padding: 12px 16px 20px; background: var(--paper-2); color: var(--ink); font-size: 12px; line-height: 1.35; font-weight: 700; text-align: left; }
.ph-tag b { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.375rem; line-height: 1; margin-bottom: 4px; }
/* pinned: the stage fills one screen */
.ph.ph-pin .ph-pinbox { height: calc(100svh - var(--header-h) - var(--callbar-h)); display: grid; align-items: center; }
@media (max-width: 700px) {
  .ph-index { grid-column: 1 / 7; font-size: clamp(1.0625rem, 5.2vw, 1.5rem); }
  .ph-device { grid-column: 7 / -1; justify-self: end; height: auto; width: min(100%, calc((100svh - var(--header-h) - var(--callbar-h) - 48px) * 9 / 19.5)); padding: 6px; border-radius: 28px; }
  .ph-screen.insert { border-radius: 22px; aspect-ratio: 9 / 19.5; height: auto; }
  .ph-index li { gap: 0.4em; }
  .ph-tag { padding: 8px 10px 14px; font-size: 10.5px; }
  .ph-tag b { font-size: 1.0625rem; }
  .sp-label { font-size: 10px; }
  .ph-tag .ph-long { display: none; }
}
@media (max-width: 360px) { .ph-index { font-size: 1.0625rem; } }

/* ---------- Website SEO rows ---------- */
.seo-rows { display: grid; row-gap: clamp(40px, 5vw, 72px); }
.seo-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 16px; align-items: first baseline; }
.seo-name { grid-column: 1 / 8; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.25rem, 1rem + 3.4vw, 5rem); line-height: 0.92; letter-spacing: -0.005em; }
.seo-row > .fill-block, .seo-row > .copy { grid-column: 8 / -1; }
.seo-try { margin-top: clamp(72px, 8vw, 128px); }
.seo-try-h { font-family: var(--font-text); font-weight: 700; font-size: var(--step-lead); line-height: 1.2; margin-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 800px) { .seo-name, .seo-row > .fill-block, .seo-row > .copy { grid-column: 1 / -1; } }

/* ---------- Who owns it ---------- */
.own-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-items: start; }
.own-grid > h2 { grid-column: 1 / 6; }
.own-side { grid-column: 7 / -1; display: grid; gap: 32px; justify-items: start; }
.own-list { display: grid; gap: 24px; width: 100%; }
.own-list li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); column-gap: var(--gutter); row-gap: 6px; align-items: baseline; font-size: var(--step-lead); line-height: 1.3; }
.own-k { font-weight: 700; }
@media (max-width: 800px) {
  .own-grid > h2, .own-side { grid-column: 1 / -1; }
  .own-list li { grid-template-columns: 1fr; font-size: var(--step-body); }
}

@media (prefers-reduced-motion: reduce) { .ph-index li, .ph-index li::before { transition: none; } }
