/* PeopleDots industry pages (first: restaurants.html).
   Look: the client asked for an "Apple feel": one idea per screen, big type, lots of room,
   dark and light sections taking turns, our red only on actions. Same family as the rest
   of the site (Archivo), normal width here, two weights. Every colour is a token below. */

:root {
  color-scheme: light;
  /* light Apple Store palette: the old dark tokens now hold white sections with dark text */
  --dark: #fff;
  --dark-lift: #f5f5f7;
  --on-dark: #1d1d1f;
  --on-dark-soft: #6e6e73;
  --light: #f5f5f7;
  --light-well: #fff;
  --on-light: #1d1d1f;
  --on-light-soft: #6e6e73;
  /* small text (fine print, captions, host lines) needs more contrast than the Apple grey:
     #6e6e73 is ~5:1 on white but under 4.7 on the grey well; #515154 is ~7.3:1 */
  --on-light-soft-strong: #515154;
  --on-dark-soft-strong: #515154;
  --rule-dark: rgba(29,29,31,.1);
  --rule-light: rgba(29,29,31,.12);
  --red: #0071e3;
  --red-press: #0077ed;
  --red-text-light: #0066cc;
  --red-text-dark: #0066cc;
  --bezel: #000;
  --bezel-edge: #3a3a3c;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(6rem, 14vw, 10rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--dark); color: var(--on-dark);
  font-family: var(--font); font-size: 1.1875rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 52rem); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--on-light); color: #fff; padding: 0.5rem 1rem; }

.dark { background: var(--dark); color: var(--on-dark); }
.light { background: var(--light); color: var(--on-light); color-scheme: light; }

/* header */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; }
.wordmark {
  font-stretch: 112%; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem;
}
.wordmark::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--red); }
.nav { display: flex; gap: 0.25rem; }
.nav a { font-size: 0.875rem; text-decoration: none; color: var(--on-dark-soft); padding: 0.75rem 0.6rem; }
@media (hover: hover) { .nav a:hover { color: var(--on-dark); } }

/* sticky sub-nav, like a product page */
.subnav {
  position: sticky; top: 0; z-index: 20;
  background: var(--dark); border-bottom: 1px solid var(--rule-dark);
}
.subnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; }
.subnav-name { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.015em; }
.subnav-links { display: flex; align-items: center; gap: 0.25rem; }
.subnav-links a:not(.pill) { font-size: 0.8125rem; color: var(--on-dark-soft); text-decoration: none; padding: 0.75rem 0.6rem; }
@media (hover: hover) { .subnav-links a:not(.pill):hover { color: var(--on-dark); } }
.subnav /* actions: Apple blue (token name kept) */
.pill { font-size: 0.8125rem; min-height: 2rem; padding: 0.3rem 0.95rem; margin-left: 0.5rem; }

/* actions: red pill, one per view */
.pill {
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.55rem 1.4rem; border-radius: 999px;
  background: var(--red); color: #fff;
  transition: background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.pill:active { transform: scale(0.96); }
@media (hover: hover) { .pill:hover { background: var(--red-press); } }
.pill--big { font-size: 1.0625rem; min-height: 3.25rem; padding-inline: 1.75rem; }
.pill--quiet { background: transparent; color: var(--red-text-light); box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) { .pill--quiet:hover { background: transparent; color: var(--red-press); } }
.text-link { color: var(--red-text-dark); text-decoration: none; font-size: 1.0625rem; padding: 0.75rem 0.25rem; }
@media (hover: hover) { .text-link:hover { text-decoration: underline; text-underline-offset: 0.25em; } }

/* phone: a plain bezel so a 9:16 ad reads as "on your customer's phone" */
.phone { margin-inline: auto; }
.phone-screen {
  aspect-ratio: 9 / 19.5; border-radius: 2.6rem; overflow: hidden;
  background: var(--bezel);
  border: 0.6rem solid var(--bezel); outline: 1px solid var(--bezel-edge); outline-offset: 0;
}
.phone-screen video { width: 100%; height: 100%; object-fit: cover; border-radius: 2rem; }
.phone figcaption { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--on-dark-soft); }

/* 1. hero */
.hero { padding-block: clamp(4rem, 9vw, 6.5rem) 0; overflow: hidden; }
.hero-inner { text-align: center; }
.hero-title {
  font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
}
.hero-sub {
  margin-top: 0.75rem; font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--on-dark-soft);
}
.hero-ctas { margin-top: 2rem; display: flex; gap: 1.25rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.phone--hero { width: min(20rem, 72vw); margin-top: clamp(3rem, 7vw, 4.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }

/* the one authored moment: the phone rises in on load */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(6rem) scale(0.95); }
  .js [data-rise].is-in {
    opacity: 1; transform: none;
    transition: opacity 900ms var(--ease-out), transform 1200ms var(--ease-out);
  }
}

/* 2. statement */
.statement { padding-block: var(--section); }
.big-line {
  font-size: clamp(2.25rem, 5.6vw, 4.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--on-light-soft);
}
.big-line + .big-line { margin-top: 0.4em; }
.big-line--hit { color: var(--on-light); }

/* 3. pinned phone + steps */
.pinned { padding-block: var(--section); }
.pinned-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.pinned-stage { position: relative; }
.phone--stage { position: sticky; top: calc(50svh - 17rem + 1.6rem); width: min(16.5rem, 100%); }
.pinned-steps { display: flex; flex-direction: column; }
.step { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; }
.step-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.step p { margin-top: 1rem; color: var(--on-dark-soft); }
.step .step-note { font-size: 0.875rem; margin-top: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .step { opacity: 0.3; transition: opacity 400ms var(--ease-out); }
  .js .step.is-on { opacity: 1; }
  .phone--stage video { transition: opacity 250ms var(--ease-out); }
  .phone--stage video.is-swapping { opacity: 0; }
}

/* 4. plan */
.plan { padding-block: var(--section); }
.section-title { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-align: center; }
.section-sub { margin: 1rem auto 0; max-width: 36rem; text-align: center; color: var(--on-light-soft); }
.compare {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-light);
}
.compare-col { padding: 2.5rem clamp(1rem, 4vw, 3.5rem) 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.compare-col + .compare-col { border-left: 1px solid var(--rule-light); }
.compare-name { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.compare-price { margin-top: 1.25rem; }
.num { font-size: clamp(2.75rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.compare-per { margin-top: 0.4rem; font-size: 1rem; color: var(--on-light-soft); font-variant-numeric: tabular-nums; }
.compare-line { margin-top: 1.5rem; max-width: 22rem; }
.compare-list { margin: 1.75rem 0 2.25rem; width: 100%; max-width: 20rem; }
.compare-list li { padding-block: 0.8rem; border-top: 1px solid var(--rule-light); font-size: 1rem; }
.compare-col .pill { margin-top: auto; }
.fine { margin-top: 3rem; text-align: center; font-size: 0.875rem; color: var(--on-light-soft); }

/* 5. questions */
.faq { padding-block: 0 var(--section); }
.faq .section-title { margin-bottom: 2.5rem; }
details { border-top: 1px solid var(--rule-light); }
details:last-of-type { border-bottom: 1px solid var(--rule-light); }
summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.7rem; height: 0.7rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out);
}
details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
details p { padding: 0 2.5rem 1.6rem 0; color: var(--on-light-soft); max-width: 40rem; }

/* 6. closing */
.closing { padding-block: var(--section); }
.closing-inner { text-align: center; }
.closing-title { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }
.closing-sub { margin: 1.25rem 0 2.25rem; color: var(--on-dark-soft); font-size: clamp(1.1875rem, 2.2vw, 1.5rem); }

/* footer */
.site-foot { border-top: 1px solid var(--rule-dark); }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 5rem; gap: 1rem; }
.site-foot nav { display: flex; gap: 0.25rem; }
.site-foot nav a { font-size: 0.875rem; color: var(--on-dark-soft); text-decoration: none; padding: 0.75rem 0.6rem; }
.wordmark--small { font-size: 1rem; }

/* phone layout */
@media (max-width: 47.99rem) {
  .subnav-links a:not(.pill) { display: none; }
  .pinned-grid { grid-template-columns: minmax(0, 1fr); }
  .pinned-stage { position: sticky; top: 3.5rem; z-index: 1; background: var(--dark); padding-block: 1rem; }
  .phone--stage { position: static; width: min(9rem, 40vw); }
  .phone--stage .phone-screen { border-radius: 1.5rem; border-width: 0.4rem; }
  .phone--stage video { border-radius: 1.15rem; }
  /* the text lives in the space under the pinned phone */
  .step { min-height: 56svh; justify-content: center; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--rule-light); margin-top: 3rem; }
  .site-head .nav a { padding-inline: 0.45rem; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
