/* Additions for inner pages, cookies, legal text and customer stories.
   The homepage look comes from styles.css. Keep new rules scoped. */

/* The hero line is the largest thing on a phone screen. Keep it visible
   immediately so it is not held back by the fade-in. It still slides up. */
.hero .reveal { opacity: 1; }

.section.is-first { padding-top: clamp(120px, 14vw, 168px); }

.page-chart { margin-top: clamp(48px, 6vw, 72px); }

.cta-note--link { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.cta-note--link:hover { color: var(--mint-2); }

.footer__cols { grid-template-columns: repeat(4, minmax(108px, auto)); gap: 28px 36px; }
.footer__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin: 0 0 14px;
}
.footer__legal button {
  font: inherit;
  font-size: 13px;
  color: var(--dim);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.footer__legal button:hover { color: #fff; }

.crumbs { margin: 0 0 28px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--dim);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { color: var(--text); }

.legal-page { padding: clamp(120px, 14vw, 160px) 0 clamp(72px, 8vw, 120px); }
.legal h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0 0 12px;
  max-width: 16ch;
}
.legal h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 2.1em 0 .6em;
}
.legal h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 1.5em 0 .45em;
}
.legal h5 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 500;
  margin: 0 0 28px;
}
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.legal p { margin: 0 0 14px; max-width: 68ch; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.25em; max-width: 68ch; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal-callout {
  margin: 8px 0 20px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(126, 240, 184, .06);
  box-shadow: inset 0 0 0 1px rgba(126, 240, 184, .28);
  max-width: 72ch;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  min-width: 8rem;
}
.legal th { color: var(--text); font-weight: 600; font-size: 13px; }
.legal td { color: var(--muted); }

.stories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.stories .phone {
  width: 100%;
  max-width: 340px;
  justify-self: center;
}
.story-card__quote {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}
.story-card__quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
.story-card__quote p::before { content: "“"; }
.story-card__quote p::after { content: "”"; }
.phone__who { color: var(--muted); font-size: 13.5px; }
.stories__feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 320px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.stories__quote .h2 { max-width: 12ch; }
.story-pull { margin: 8px 0 0; padding: 0; border: 0; }
.story-pull p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
.story-pull p::before { content: "“"; }
.story-pull p::after { content: "”"; }
.story-pull footer { font-size: 14.5px; color: var(--muted); }
.story-pull footer b { color: var(--text); font-weight: 600; margin-right: 8px; }
.stories--feature .phone { max-width: 320px; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  justify-content: center;
}
.cookie[hidden] { display: none; }
.cookie__inner {
  width: min(760px, 100%);
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 16px 16px 20px;
  border-radius: 22px;
  background: rgba(8, 16, 12, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .5);
}
.cookie__text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.cookie__text a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 8px; flex: none; }
.cookie__btn {
  min-width: 112px;
  height: 44px;
  padding: 0 18px;
  border-radius: 99px;
  background: #fff;
  color: var(--mint-ink);
  font-weight: 550;
  font-size: 14.5px;
}
.cookie__btn:hover { transform: translateY(-1px); }
body.has-cookie-banner .toast { bottom: 132px; }

.not-found .hero__ctas { margin-top: 8px; }

@media (max-width: 900px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .stories__grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-bottom: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .stories .phone {
    flex: 0 0 min(78vw, 300px);
    width: min(78vw, 300px);
    max-width: none;
    scroll-snap-align: center;
  }
  .stories__feature { grid-template-columns: 1fr; }
  .stories--feature .phone { justify-self: center; }
}
/* Play control sits in the corner so it does not cover the face.
   The button itself still covers the film, so the whole card plays. */
.phone__play {
  display: block;
  padding: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(5, 9, 7, .28));
}
.phone__icon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 76px;
  height: 76px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.phone__icon svg { width: 30px; height: 30px; }
.phone__icon .i-play { margin-left: 3px; }
.phone__play:hover .phone__icon,
.phone__play:focus-visible .phone__icon { background: rgba(0, 0, 0, .62); }
.phone.is-playing .phone__icon { width: 76px; height: 76px; }
.phone__bar { right: 108px; }

@media (max-width: 680px) {
  .phone__icon,
  .phone.is-playing .phone__icon {
    right: 16px;
    bottom: 16px;
    width: 68px;
    height: 68px;
  }
  .phone__icon svg { width: 26px; height: 26px; }
  .phone__bar { right: 96px; }
  .cookie__inner { flex-direction: column; align-items: stretch; padding: 16px; }
  .cookie__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie__btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
