/* The two barbershop sub-pages: /barbershops/demo/ and /barbershops/booksy/.
   Loaded after barbers.css on those pages only. No opacity animation; transforms only via the shared .rise. */

/* header: the current page */
.nav-links a[aria-current="page"] { color: var(--ink); }
.menu nav a[aria-current="page"] b { color: var(--hi); }
.menu nav a:hover b { color: var(--hi); }

/* heroes */
.p-hero .b-copy { grid-column: 1 / span 5; }
.p-hero h1, .p-text-hero h1 { font-size: clamp(48px, 5.8vw, 100px); }
.p-hero .kicker, .p-text-hero .kicker { font-size: 15px; color: var(--hi); }
.p-hero .b-sub { max-width: 36ch; }
.p-frame { grid-column: 6 / span 7; margin: 0; border: 1.5px solid #34343a; border-radius: 16px; overflow: hidden; background: #0d0b09; box-shadow: var(--shadow); }
.p-bar { display: flex; gap: 7px; padding: 12px 14px; background: #1c1c20; border-bottom: 1.5px solid #34343a; }
.p-bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a4a52; }
.p-frame img { display: block; width: 100%; height: auto; }
.p-text-hero { min-height: auto; align-items: end; padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(24px, 4vh, 48px); }
.p-text-hero .b-copy { grid-column: 1 / -1; max-width: 760px; }
.p-text-hero .b-sub { max-width: 52ch; }

/* the six screens */
.p-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 7vh, 80px); }
.p-card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--paper-2); border: 1.5px solid var(--line); overflow: hidden; }
.p-media { aspect-ratio: 4 / 3; display: flex; justify-content: center; overflow: hidden; background: #0d0b09; border-bottom: 1.5px solid var(--line); }
.p-media.phone { align-items: center; padding: 5% 0; }
.p-media.phone img { width: auto; height: 100%; max-width: 60%; object-fit: contain; filter: drop-shadow(0 18px 24px rgb(0 0 0 / .45)); }   /* the commercials' iPhone, whole: the frame is in the image */
.p-media.wide { align-items: center; padding: 8%; }
.p-media.wide img { width: 100%; height: auto; border-radius: 10px; border: 1.5px solid #34343a; }
.p-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 26px 28px 30px; }
.p-no { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--hi); }
.p-body h3 { margin: 0 0 10px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.p-body p:not(.p-no) { margin: 0 0 22px; color: var(--soft); line-height: 1.5; }
.p-body .link-arrow { margin-top: auto; }
.p-note { margin: 28px 0 0; max-width: 70ch; font-size: 15px; line-height: 1.5; color: var(--soft); }
.p-note a { color: var(--ink); }
.p-note a:hover { color: var(--hi); }

/* your look */
.p-look-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.p-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--soft); }
.p-list li b { display: block; margin-bottom: 2px; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.02em; color: var(--ink); }
.p-list .tick { margin-top: 3px; }

/* the cta band: the demo band without the form */
.p-cta { align-items: center; }
.p-cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.p-cta .small-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.p-cta .small-link:hover { text-decoration-thickness: 2px; }
.p-cta .pill-accent:focus-visible, .p-cta .small-link:focus-visible { outline-color: #fff; }

/* side-by-side table */
.p-table { margin-top: clamp(40px, 6vh, 64px); }
.p-table .tr { align-items: start; }
.p-table .tr > span:first-child { font-weight: 650; }
.p-table .tr.th > span:first-child { font-weight: 700; }

/* honest part */
.p-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 6vh, 64px); }
.p-card2 { padding: clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--paper-2); border: 1.5px solid var(--line); }
.p-card2.own { background: linear-gradient(160deg, #1d2160, #141634 60%, #121226); border-color: #3a43b8; }
.p-card2 h3 { margin: 0 0 22px; font-size: clamp(22px, 2vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.p-bullets { margin: 0; padding-left: 1.2em; display: grid; gap: 14px; font-size: 17px; line-height: 1.4; color: var(--soft); }
.p-bullets li::marker { color: var(--soft); }
.p-card2.own .p-list li { color: var(--ink); }
.p-verdict { margin-top: clamp(32px, 5vh, 56px); max-width: 62ch; color: var(--ink); }

/* focus on links in cards and notes */
.p-body .link-arrow:focus-visible, .p-note a:focus-visible { outline-offset: 4px; }

/* tablet: 2 columns */
@media (max-width: 1080px) {
  .p-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .p-hero .b-copy, .p-frame { grid-column: 1 / -1; }
  .p-frame { max-width: 720px; justify-self: center; width: 100%; }
  .p-look-grid { grid-template-columns: 1fr; }
}
/* phone: 1 column */
@media (max-width: 760px) {
  .p-cards, .p-two { grid-template-columns: 1fr; }
  .p-body { padding: 22px 22px 26px; }
  .p-text-hero { padding-top: 48px; }
  .p-cta-act { gap: 4px; }
  .p-cta .pill-lg { width: 100%; justify-content: center; padding: 0 24px; }
  /* the table: label on its own line, the two cells side by side under it */
  .p-table .tr { grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 14px 16px; font-size: 15px; }
  .p-table .tr > span:first-child { grid-column: 1 / -1; font-size: 15px; }
  .p-table .tr.th > span:first-child { display: none; }
  .p-table .tr.th { font-size: 11px; }
}
@media (max-width: 380px) {
  .p-table .tr { grid-template-columns: 1fr 1fr; font-size: 14px; }
}
