/* /barbershops/features/: what the system does for a barber. Same ink ground, Switzer, blue and phones as /barbershops/.
   Everything here is visible with no script and with reduced motion; the only motion is a hover lift on the phones. */

.f-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: clamp(28px, 5vh, 64px) var(--gutter) clamp(56px, 9vh, 104px); }
.f-copy { grid-column: 1 / span 7; }
.f-hero h1 { margin: 0; font-size: clamp(52px, 6.8vw, 120px); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.f-hero h1 em { font-style: italic; font-weight: 650; color: var(--hi); padding-right: .04em; }
.f-sub { margin: 26px 0 0; max-width: 42ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; color: var(--soft); }
.f-note { margin: 18px 0 0; max-width: 52ch; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.f-hero .b-ctas { margin-top: 32px; }
.f-hero .f-shots { grid-column: 8 / span 5; margin: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.f-hero .f-shots figcaption { grid-column: 1 / -1; margin-top: 20px; max-width: 46ch; font-size: 14px; line-height: 1.5; color: var(--soft); }
.f-hero .f-shots .ph:first-of-type { width: 94%; }
.f-hero .f-shots .ph:nth-of-type(2) { width: 94%; justify-self: end; margin-top: 22%; }

/* the phone: the site's one iPhone, only sized here */
.ph { margin: 0; }
.ph img { display: block; width: 100%; height: auto; aspect-ratio: 780 / 1653; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .45)) drop-shadow(0 6px 10px rgb(0 0 0 / .3)); }
.ph figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--soft); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .ph img { transition: transform .5s var(--ease); }
  .ph:hover img { transform: translateY(-6px); }
}

/* jump links */
/* 12 Nov 2026: the bar stays pinned under the site header, one row (it scrolls sideways on a phone), with the free demo at its end */
.f-jump { position: sticky; top: var(--nav-h); z-index: 15; display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 10px var(--gutter); margin-bottom: clamp(30px, 5vh, 54px); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.f-jump::-webkit-scrollbar { display: none; }
.f-jump .pill { height: 46px; font-size: 15px; flex: none; white-space: nowrap; }
.f-jump .pill-ghost:hover, .f-jump .pill-ghost[aria-current] { background: var(--ink); color: var(--paper); }
.f-jump .pill-accent { margin-left: auto; }

/* groups */
.f-band { padding: clamp(80px, 11vh, 140px) var(--gutter) 0; scroll-margin-top: calc(var(--nav-h) + 50px); }
.f-band + .f-band { margin-top: 0; }
.f-band h2 { margin: 0; font-size: clamp(42px, 5.6vw, 96px); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
.f-band .b-lede { max-width: 52ch; }

/* one feature: the benefit as the headline, how it works under it, the real screens beside it */
.ft { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; margin-top: clamp(48px, 7vh, 88px); padding-top: clamp(40px, 6vh, 72px); border-top: 1.5px solid var(--line); scroll-margin-top: var(--nav-h); }
.ft.flip .ft-text { order: 2; }
.ft h3 { margin: 0; font-size: clamp(30px, 3.4vw, 52px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.ft-lead { margin: 18px 0 0; max-width: 40ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ft-text p:not(.ft-lead) { margin: 14px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--soft); }
.ft-text .ft-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 46ch; }
.ft-text .ft-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.ft-shots { display: flex; justify-content: center; gap: clamp(14px, 2vw, 28px); align-items: flex-start; min-width: 0; }
.ft-shots .ph { flex: 0 1 260px; min-width: 0; }
.ft-shots .ph:nth-child(2) { margin-top: 9%; }
.ft-shots .ph:nth-child(3) { margin-top: 3%; }
.ft-shots.wide { display: block; }
.ft-shots.wide .tv { padding: 8px; background: #050505; border-radius: 12px; box-shadow: var(--shadow), inset 0 0 0 1.5px #3a3a3e; }
.ft-shots.wide .tv img { display: block; width: 100%; height: auto; border-radius: 3px; }
.ft-shots.wide figcaption { margin-top: 14px; font-size: 14px; color: var(--soft); }
/* a feature with no screen yet reads as text: one column, no empty space */
.ft:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.ft:not(:has(img)) .ft-text { max-width: 760px; }
.ft-shots:not(:has(img)) { display: none; }
.ft-slot:empty { display: none; }

/* the small ones */
.f-small { list-style: none; margin: clamp(40px, 6vh, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--line); }
.f-small li { padding: 28px 28px 32px 0; border-bottom: 1.5px solid var(--line); }
.f-small li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1.5px solid var(--line); }
.f-small h3 { margin: 0; font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.f-small p { margin: 10px 0 0; max-width: 36ch; font-size: 16px; line-height: 1.5; color: var(--soft); }
.ft.tvrow { margin-top: clamp(40px, 6vh, 72px); }

/* the close */
.f-close { margin-top: clamp(96px, 13vh, 160px); }
.f-close .b-demo { display: block; }
.f-close h2 { margin: 0; }
.f-close .b-ctas .pill-accent { background: #fff; border-color: #fff; color: #1428d6; box-shadow: none; }
.f-close .b-ctas .pill-accent:hover { background: #0f0f10; border-color: #0f0f10; color: #fff; }
.f-close .b-ctas .link-arrow { color: #fff; }
.f-close .b-ctas .link-arrow:hover { color: #dfe3ff; }
.f-close .f-note { color: #e4e7ff; }

@media (max-width: 1080px) {
  .f-small { grid-template-columns: 1fr 1fr; }
  .f-small li { padding: 26px 24px 28px 0 !important; border-left: 0 !important; }
}
@media (max-width: 900px) {
  .f-hero { grid-template-columns: 1fr; row-gap: 48px; }
  .f-copy, .f-hero .f-shots { grid-column: 1 / -1; }
  .f-hero .f-shots { max-width: 520px; margin-inline: auto; }
  .ft, .ft:not(:has(img)) { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ft.flip .ft-text { order: 0; }
}
@media (max-width: 760px) {
  .f-hero h1 { font-size: clamp(46px, 13.4vw, 68px); }
  .f-hero .b-ctas .pill-lg { width: 100%; justify-content: center; padding: 0 24px; }
  .f-band { padding-top: 72px; }
  .f-band h2 { font-size: clamp(40px, 11vw, 56px); }
  /* the screens of a feature: a swipe row, the next phone peeking */
  .ft-shots { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .ft-shots::-webkit-scrollbar { display: none; }
  .ft-shots .ph { flex: 0 0 62%; scroll-snap-align: start; }
  .ft-shots .ph:nth-child(n) { margin-top: 0; }
  .ft-shots.wide { overflow: visible; margin: 0; padding: 0; }
  .f-small { grid-template-columns: 1fr; }
  .f-small li { padding-right: 0 !important; }
  .f-close .b-demo { margin: 0 var(--gutter); }
}
@media (max-width: 760px) { .f-jump .pill-accent { display: none; } }   /* phones already have Free demo in the bottom bar */

/* 13 Nov, the owner: second-menu buttons too big. Same sizes as ink.css on the other pages */
.f-jump { gap: 8px; padding: 8px var(--gutter); }
.f-jump .pill { height: 38px; font-size: 14px; padding: 0 16px; }
@media (max-width: 640px) {
  .f-jump { gap: 6px; padding: 6px var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .f-jump .pill { height: 32px; font-size: 13px; padding: 0 12px; }
  .f-jump::after { content: ""; flex: none; width: 28px; }
}

/* phones, 13 Nov: slimmer pills, and the topic bar takes the top while you scroll down (js/jump-nav.js) */
@media (max-width: 640px) {
  .f-jump .pill { height: 30px; font-size: 12.5px; padding: 0 12px; }
  .nav { transition: transform .3s ease; }
  .f-jump { transition: top .3s ease; }
  html.nav-up .nav { transform: translateY(-100%); }
  html.nav-up .f-jump { top: 0; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .nav, .f-jump { transition: none; } }
