/* ParmaMaster site. Desktop sizes come straight from the 1728px Figma frame,
   expressed in --u so the whole layout scales down on smaller desktops. */

@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Variable-Italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --orange: #ff6a00;
  --orange-tint: #fff1e6;
  --ink: #000;
  --muted: #5c5c5c;
  --footer: #3e3e3e;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --u: clamp(.57px, calc(100vw / 1728), 1.3px);
  --g: max(.42px, calc(var(--u) * .68));
  --g2: max(.46px, calc(var(--u) * .86));
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(masthead) { animation-duration: .5s; animation-timing-function: var(--ease-out); }

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { flex: 1 0 auto; width: 100%; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
.accent { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px;
  background: #000; color: #fff; text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: calc(100% - 82 * var(--u));
  height: calc(200 * var(--u));
  margin: calc(28 * var(--u)) auto 0;
  border-radius: calc(40 * var(--u));
  background: var(--orange);
  color: #fff;
  view-transition-name: masthead;
}
/* A slow, soft light drifting across the orange keeps the header alive without changing its colour. */
.masthead::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent 70%) 20% 30% / 45% 60% no-repeat,
    radial-gradient(closest-side, rgba(255, 170, 90, .14), transparent 70%) 80% 70% / 50% 70% no-repeat;
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-6%, -4%, 0) rotate(0deg); }
  to { transform: translate3d(6%, 5%, 0) rotate(8deg); }
}
.masthead__title {
  margin: 0;
  font: 400 calc(62 * var(--g2)) / 1.2 var(--serif);
  text-align: center;
  letter-spacing: 0;
  padding: 0 calc(220 * var(--g));
}

.pill-back {
  position: absolute;
  left: calc(22 * var(--g2));
  top: calc(20 * var(--g2));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(250 * var(--g2));
  height: calc(34 * var(--g2));
  padding-right: calc(26 * var(--g2));
  border-radius: calc(24 * var(--g2));
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .6);
  font: 400 calc(17 * var(--g2)) / 1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
}
.pill-back__arrow {
  position: absolute;
  right: calc(16 * var(--g2));
  top: 50%;
  width: calc(11 * var(--g2));
  height: calc(11 * var(--g2));
  margin-top: calc(-5.5 * var(--g2));
  transition: transform .45s var(--ease-spring);
}
.pill-back:hover { background: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .95); }
.pill-back:hover .pill-back__arrow { transform: translate(3px, -3px); }
.pill-back:active { transform: scale(.97); }
.pill-back:focus-visible { outline-color: #fff; }

.masthead__icon {
  position: absolute;
  right: calc(34 * var(--g));
  top: calc(28 * var(--g));
  width: calc(144 * var(--g));
  height: calc(144 * var(--g));
  border: calc(5 * var(--g)) solid #fff;
  border-radius: calc(34 * var(--g));
  object-fit: cover;
  box-shadow: 0 calc(18 * var(--g)) calc(40 * var(--g)) rgba(120, 40, 0, .28);
  transition: transform .6s var(--ease-spring);
}
.masthead__icon:hover { transform: rotate(-4deg) scale(1.04); }

html.js .masthead { animation: masthead-in 1s var(--ease-out) both; }
html.js .masthead__title { animation: rise-in 1s .12s var(--ease-out) both; }
html.js .masthead__icon { animation: icon-in 1.1s .25s var(--ease-spring) both; }
html.js .pill-back { animation: fade-in .8s .35s var(--ease-out) both; }
@keyframes masthead-in {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes icon-in {
  from { opacity: 0; transform: scale(.7) rotate(-12deg); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Scroll reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: calc(688 * var(--u)) minmax(0, 1fr) auto;
  column-gap: calc(40 * var(--u));
  padding: calc(40 * var(--u)) max(calc(87 * var(--u)), 4vw) calc(50 * var(--u));
}
.coming-soon {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(260 * var(--g2));
  height: calc(52 * var(--g2));
  padding-right: calc(9 * var(--g2));
  border-radius: calc(34 * var(--g2));
  background: var(--orange);
  color: #fff;
  font: 600 calc(29 * var(--g2)) / 1 var(--sans);
  box-shadow: 0 calc(8 * var(--g2)) calc(20 * var(--g2)) rgba(255, 106, 0, .28);
}
.coming-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 5.5s 1.6s var(--ease-out) infinite;
}
@keyframes shine {
  0% { transform: translateX(-120%); }
  28%, 100% { transform: translateX(120%); }
}
.hero__headline {
  margin: calc(34 * var(--g)) 0 0 calc(13 * var(--g));
  font: 400 calc(48 * var(--g2)) / 1.39 var(--serif);
}
.hero__headline span { display: block; }
.hero__icon { align-self: center; justify-self: center; padding-top: calc(60 * var(--u)); }
.hero__icon img {
  width: min(100%, clamp(96px, 9vw, 190px));
  height: auto;
  border: calc(6 * var(--g2)) solid #fff;
  border-radius: 23%;
  box-shadow: 0 calc(18 * var(--g2)) calc(40 * var(--g2)) rgba(120, 40, 0, .28);
  transition: transform .6s var(--ease-spring);
}
.hero__icon img:hover { transform: rotate(-4deg) scale(1.04); }
.hero__lede {
  max-width: calc(681 * var(--u));
  margin: calc(34 * var(--u)) 0 0 calc(7 * var(--u));
  font: 500 calc(26 * var(--u)) / 1.219 var(--sans);
}
.hero__lede p + p { margin-top: 1.219em; }
.hero__lede p:nth-child(3) { margin-top: 0; }
.hero__lede strong { font-weight: 700; }

.hero__phones {
  display: flex;
  align-items: flex-start;
  gap: calc(30 * var(--g2));
  padding-top: calc(122 * var(--g2));
}
.phone img { width: 100%; filter: drop-shadow(0 calc(30 * var(--u)) calc(36 * var(--u)) rgba(0, 0, 0, .16)); }
.phone--profile, .phone--group { width: calc(380 * var(--g2)); }
.phone__float { transition: transform .9s var(--ease-out); }
html.js .phone--profile .phone__float { animation: float 7s ease-in-out infinite; }
html.js .phone--group .phone__float { animation: float 7s -3.5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 calc(-12 * var(--u)); }
}

/* ---------- Home: feature band ---------- */

.band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--orange);
  padding: calc(64 * var(--u)) 0 calc(56 * var(--u));
}
.features {
  display: grid;
  grid-template-columns: repeat(3, calc(440 * var(--u)));
  justify-content: space-between;
  column-gap: calc(80 * var(--u));
  width: 100%;
  margin: 0 auto;
  padding: 0 max(calc(67 * var(--u)), 4vw);
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.feature:focus-visible { outline-color: #fff; outline-offset: 8px; border-radius: calc(30 * var(--u)); }
.feature__phone { display: block; transition: transform .7s var(--ease-out); }
.feature__phone img { width: 100%; filter: drop-shadow(0 calc(26 * var(--u)) calc(30 * var(--u)) rgba(120, 40, 0, .3)); }
.feature__phone { width: calc(410 * var(--g2)); }
.feature__card {
  position: relative;
  display: block;
  width: calc(380 * var(--g2));
  min-height: calc(214 * var(--g));
  margin-top: calc(14 * var(--g));
  padding: calc(13 * var(--g)) calc(24 * var(--g)) calc(18 * var(--g)) calc(28 * var(--g));
  border-radius: calc(20 * var(--g));
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 rgba(120, 40, 0, 0);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.feature__title { display: block; font: 400 calc(27 * var(--g)) / 1.487 var(--serif); }
.feature__text { display: block; width: auto; margin-top: calc(8 * var(--u)); font: 400 calc(23 * var(--u)) / 1.487 var(--sans); }
.feature--logging .feature__card { padding-left: calc(27 * var(--g)); }
.feature--logging .feature__text { margin-left: calc(2 * var(--u)); }
.feature--profiles .feature__card { padding-left: calc(32 * var(--g)); }
.feature__more {
  position: absolute;
  right: calc(22 * var(--g));
  top: calc(24 * var(--g));
  width: calc(13 * var(--g));
  height: calc(13 * var(--g));
  color: var(--orange);
  opacity: .5;
  transition: transform .5s var(--ease-spring), opacity .3s;
}
@media (hover: hover) {
  .feature:hover .feature__phone { transform: translateY(calc(-14 * var(--u))) rotate(-1.2deg); }
  .feature:hover .feature__card { transform: translateY(calc(-6 * var(--u))); box-shadow: 0 calc(22 * var(--u)) calc(44 * var(--u)) rgba(120, 40, 0, .3); }
  .feature:hover .feature__more { opacity: 1; transform: translate(3px, -3px) scale(1.1); }
}
.feature:active .feature__card { transform: scale(.98); transition-duration: .15s; }
.carousel-dots { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  width: 100%;
  background: var(--footer);
  color: #fff;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 28px;
  min-height: calc(100 * var(--g));
  margin: 0 auto;
  padding: 10px max(calc(200 * var(--u)), 8vw);
  font: 400 calc(23 * var(--u)) / 1.487 var(--sans);
}
.site-footer__nav a { position: relative; text-decoration: none; padding: 4px 0; }
.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.site-footer__nav a:hover::after, .site-footer__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-footer__nav a:focus-visible { outline-color: #fff; }

/* ---------- Overlays ---------- */

.overlay {
  --o: min(var(--u), calc((100vh - 48px) / 991));
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: contain;
}
.overlay[open] { display: grid; place-items: center; }
.overlay::backdrop {
  background: rgba(30, 12, 0, .18);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
  animation: backdrop-in .45s var(--ease-out) both;
}
.overlay.is-closing::backdrop { animation: backdrop-out .3s var(--ease-in) both; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }

.overlay__panel {
  position: relative;
  display: grid;
  grid-template-columns: calc(469 * var(--o)) 1fr;
  width: calc(1608 * var(--o));
  height: calc(991 * var(--o));
  padding: calc(70 * var(--o)) 0 0 calc(92 * var(--o));
  border-radius: calc(50 * var(--o));
  background: rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(34px) saturate(1.5);
  backdrop-filter: blur(34px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 120px rgba(0, 0, 0, .25);
  transform-origin: var(--origin, 50% 50%);
  animation: panel-in .65s var(--ease-out) both;
}
.overlay.is-closing .overlay__panel { animation: panel-out .32s var(--ease-in) both; }
@keyframes panel-in {
  from { opacity: 0; transform: scale(.86) translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: scale(.94) translateY(16px); }
}
.overlay__title {
  margin: 0;
  font: 400 calc(60 * var(--o)) / 1.0642 var(--serif);
}
.overlay__text {
  margin-top: calc(49 * var(--o));
  font: 500 calc(26 * var(--o)) / 1.219 var(--sans);
}
.overlay__text p + p { margin-top: 1.219em; }
.overlay__text strong { font-weight: 600; }
.overlay__text .bolder { font-weight: 700; }
.overlay__text em { font-style: italic; }
.overlay__phones {
  display: flex;
  align-items: flex-start;
  gap: calc(24 * var(--o));
  padding: calc(44 * var(--o)) 0 0 calc(110 * var(--o));
}
.op { filter: drop-shadow(0 calc(24 * var(--o)) calc(30 * var(--o)) rgba(0, 0, 0, .3)); }
.overlay .op { width: calc(400 * var(--o)); }

.overlay__copy > *, .op { animation: item-in .8s var(--ease-out) both; }
.overlay__title { animation-delay: .08s; }
.overlay__text { animation-delay: .16s; }
.op--a { animation-delay: .2s; }
.op--b { animation-delay: .3s; }
@keyframes item-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.overlay__close {
  position: absolute;
  top: calc(40 * var(--o));
  right: calc(38 * var(--o));
  z-index: 2;
  display: grid;
  place-items: center;
  width: calc(61.8333 * var(--o));
  height: calc(61.8333 * var(--o));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform .5s var(--ease-spring);
}
.overlay__close svg { width: 100%; height: 100%; max-width: none; fill: #fff; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
.overlay__close:hover { transform: rotate(90deg) scale(1.06); }
.overlay__close:active { transform: scale(.92); }
.overlay__close:focus-visible { outline: none; }

html.overlay-open { overflow: hidden; }

/* ---------- Sub pages: shared content ---------- */

.content {
  padding: 0 max(calc(100 * var(--u)), 4vw) calc(90 * var(--u));
}
.section-title {
  margin: 0;
  font: 400 calc(46 * var(--g2)) / 1.0642 var(--serif);
}
.content > .section-title:first-child { margin-top: calc(40 * var(--g)); }

/* Support: contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(300 * var(--u));
  gap: calc(18 * var(--u));
  margin-top: calc(40 * var(--u));
}
.contact__card {
  min-height: calc(190 * var(--g));
  padding: calc(20 * var(--g)) calc(26 * var(--g)) calc(24 * var(--g));
  border-radius: calc(24 * var(--g));
  background: #fff;
  box-shadow: 0 0 calc(22.1 * var(--g)) calc(1 * var(--g)) rgba(0, 0, 0, .17);
}
.contact__pill {
  display: inline-flex;
  align-items: center;
  height: calc(46 * var(--g2));
  padding: 0 calc(22 * var(--g2)) 0 calc(20 * var(--g2));
  border-radius: calc(135 * var(--g2));
  background: var(--orange);
  color: #fff;
  font: 600 calc(24 * var(--g2)) / 1.459 var(--sans);
  text-decoration: none;
  transition: transform .45s var(--ease-spring), box-shadow .3s;
}
.contact__pill:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px rgba(255, 106, 0, .35); }
.contact__pill:active { transform: scale(.97); }
.contact__text {
  margin-top: calc(20 * var(--u));
  padding-left: calc(7 * var(--u));
  font: 400 calc(34 * var(--u)) / 1.72 var(--sans);
}
.contact__text p + p { font-weight: 500; }
.contact__text a { color: inherit; text-decoration-color: rgba(255, 106, 0, .5); text-underline-offset: .18em; text-decoration-thickness: 2px; transition: text-decoration-color .3s, color .3s; overflow-wrap: break-word; }
.contact__text a:hover { color: var(--orange); text-decoration-color: var(--orange); }
.contact__tile {
  display: grid;
  place-items: center;
  border-radius: calc(24 * var(--g));
  background: var(--orange);
  box-shadow: 0 0 calc(22.1 * var(--g)) calc(1 * var(--g)) rgba(0, 0, 0, .17);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.contact__tile svg { width: calc(96 * var(--g)); height: calc(78 * var(--g)); transition: transform .6s var(--ease-spring); }
.contact__tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(255, 106, 0, .4); }
.contact__tile:hover svg { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.contact__tile:focus-visible { outline-offset: 6px; }

/* Support: FAQ */
.faq-title { margin-top: calc(52 * var(--u)); scroll-margin-top: 24px; }
.faq {
  display: grid;
  gap: calc(22 * var(--g));
  margin-top: calc(38 * var(--g));
}
.faq-item {
  border-radius: calc(22 * var(--g));
  background: var(--orange);
  color: #fff;
  scroll-margin-top: 24px;
  transition: box-shadow .5s var(--ease-out);
}
.faq-item.is-open { box-shadow: 0 calc(20 * var(--g)) calc(50 * var(--g)) rgba(255, 106, 0, .28); }
.faq-item h3 { margin: 0; }
.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(84 * var(--g));
  padding: 0 calc(36 * var(--g)) 0 calc(34 * var(--g));
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
  text-align: left;
  font: 600 calc(28 * var(--g2)) / 1.459 var(--sans);
  -webkit-tap-highlight-color: transparent;
}
.faq-toggle:focus-visible { outline-color: #000; outline-offset: 4px; }
.faq-toggle__chevron {
  flex: none;
  width: calc(14 * var(--g));
  height: calc(26 * var(--g));
  transform: rotate(180deg);
  transition: transform .55s var(--ease-spring);
}
.faq-toggle:hover .faq-toggle__chevron { transform: rotate(180deg) translateX(-4px); }
.faq-item.is-open .faq-toggle__chevron { transform: rotate(270deg); }
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-out);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel__inner { overflow: hidden; min-height: 0; }
.faq-body {
  margin: 0 calc(16 * var(--g)) calc(16 * var(--g));
  padding: calc(28 * var(--g)) calc(32 * var(--g)) calc(32 * var(--g));
  border-radius: calc(16 * var(--g));
  background: #fff;
  color: #000;
  font: 400 calc(26 * var(--u)) / 1.55 var(--sans);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
}
.faq-item.is-open .faq-body { opacity: 1; transform: none; transition-delay: .12s; }
.faq-body h4 {
  margin: 0;
  font: 600 calc(26 * var(--u)) / 1.3 var(--sans);
}
.faq-body * + h4 { margin-top: calc(30 * var(--g)); }
.faq-body p, .faq-body ul { margin: calc(12 * var(--u)) 0 0; }
.faq-body ul { padding-left: 1.2em; }
.faq-body li + li { margin-top: calc(6 * var(--u)); }
.faq-body a, .prose a, .report a, .tos-note a { color: var(--orange); text-underline-offset: .18em; text-decoration-thickness: 2px; }
.faq-body strong { font-weight: 600; }

/* Support: reports */
.report-title { margin-top: calc(52 * var(--u)); }
.report {
  margin-top: calc(54 * var(--u));
  font: 400 calc(34 * var(--u)) / 1.72 var(--sans);
}
.report p + p { margin-top: 1.72em; }
.tos-note {
  margin-top: calc(70 * var(--g));
  font: 400 calc(46 * var(--g2)) / 1.4667 var(--serif);
}
.tos-note a { text-decoration-thickness: 3px; transition: color .3s; }
.tos-note a:hover { color: #000; }

/* ---------- Legal pages ---------- */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(300 * var(--u));
  justify-content: space-between;
  gap: calc(98 * var(--u));
  margin-top: calc(55 * var(--u));
}
.legal__meta {
  display: inline-flex;
  align-items: center;
  height: calc(40 * var(--g));
  margin-top: calc(24 * var(--g));
  padding: 0 calc(20 * var(--g));
  border-radius: 999px;
  background: var(--orange-tint);
  color: #9a3f00;
  font: 600 calc(19 * var(--g2)) / 1 var(--sans);
}
.prose {
  margin-top: calc(40 * var(--u));
  font: 400 calc(26 * var(--u)) / 1.6 var(--sans);
}
.prose > p, .prose > ul { margin: 0 0 calc(22 * var(--u)); }
.prose h2 {
  margin: calc(72 * var(--g)) 0 calc(20 * var(--g));
  font: 400 calc(36 * var(--g2)) / 1.2 var(--serif);
  scroll-margin-top: 24px;
}
.prose h3 {
  margin: calc(40 * var(--g)) 0 calc(12 * var(--g));
  font: 600 calc(30 * var(--u)) / 1.3 var(--sans);
}
.prose ul { padding-left: 1.3em; }
.prose ul ul { margin-top: calc(8 * var(--u)); }
.prose li { margin-bottom: calc(8 * var(--u)); }
.prose li::marker { color: var(--orange); }
.prose strong { font-weight: 600; }
.prose .callout {
  margin: calc(8 * var(--g)) 0 calc(28 * var(--g));
  padding: calc(26 * var(--g)) calc(32 * var(--g)) calc(20 * var(--g));
  border-radius: calc(22 * var(--g));
  background: var(--orange-tint);
}
.prose .callout p { margin: 0 0 calc(10 * var(--u)); }
.prose .callout ul { margin: 0; }

.toc {
  position: sticky;
  top: calc(40 * var(--g));
  align-self: start;
  margin-top: calc(84 * var(--g));
  padding: calc(24 * var(--g)) calc(24 * var(--g)) calc(18 * var(--g));
  border-radius: calc(22 * var(--g));
  background: #fff;
  box-shadow: 0 0 calc(22.1 * var(--g)) calc(1 * var(--g)) rgba(0, 0, 0, .12);
}
.toc__title { margin: 0 0 calc(14 * var(--g)); font: 400 calc(30 * var(--g)) / 1.2 var(--serif); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  position: relative;
  display: block;
  padding: calc(7 * var(--u)) 0 calc(7 * var(--u)) calc(18 * var(--u));
  color: var(--muted);
  font: 500 calc(19 * var(--u)) / 1.35 var(--sans);
  text-decoration: none;
  transition: color .3s;
}
.toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  margin-top: calc(-3 * var(--u));
  border-radius: 50%;
  background: var(--orange);
  transform: scale(0);
  transition: transform .4s var(--ease-spring);
}
.toc a:hover { color: #000; }
.toc a.is-active { color: #000; }
.toc a.is-active::before { transform: scale(1.4); }

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- 404 ---------- */
.notfound { padding: calc(80 * var(--u)) max(calc(100 * var(--u)), 4vw) calc(140 * var(--u)); }
.notfound p { margin-top: calc(24 * var(--u)); font: 400 calc(30 * var(--u)) / 1.6 var(--sans); }
.notfound a { color: var(--orange); }

/* =================================================================
   Desktop type and component sizes. Absolute px targets with clamp(), so
   nothing balloons on wide screens. Layout still fills the width.
   ================================================================= */

@media (min-width: 1000px) {
  :root {
    --fs-body: clamp(17px, calc(11.6px + .446vw), 25px);
    --fs-small: clamp(14px, calc(9.4px + .35vw), 20px);
    --fs-h1: clamp(34px, calc(12.9px + 1.61vw), 58px);
    --fs-display: clamp(30px, calc(11.4px + 1.43vw), 52px);
    --fs-h2: clamp(23px, calc(11.1px + .893vw), 36px);
    --fs-h3: clamp(19px, calc(12.6px + .446vw), 26px);
    --fs-pill: clamp(15px, calc(10.5px + .3vw), 19px);
    --pill-h: clamp(30px, calc(21px + .625vw), 38px);
  }
  /* body copy */
  .hero__lede, .contact__text, .report, .prose, .faq-body, .feature__text, .overlay__text, .notfound p { font-size: var(--fs-body); line-height: 1.55; }
  .hero__lede { font-size: calc(var(--fs-body) + 1px); }
  .hero__lede p + p { margin-top: .9em; }
  .contact__text p + p { margin-top: 2px; }
  .report p + p { margin-top: 1em; }
  .faq-body { font-size: var(--fs-body); }
  .faq-body h4, .prose h3 { font-size: var(--fs-h3); line-height: 1.3; }
  .site-footer__nav { font-size: var(--fs-body); min-height: clamp(56px, calc(40px + 1.1vw), 70px); }
  .toc a { font-size: var(--fs-small); }
  .toc__title { font-size: var(--fs-h3); }

  /* headings */
  .masthead { height: clamp(130px, 11vw, 210px); }
  .masthead__title { font-size: var(--fs-h1); line-height: 1.15; }
  .hero__headline { font-size: var(--fs-display); line-height: 1.35; }
  .section-title { font-size: var(--fs-h2); line-height: 1.2; }
  .tos-note { font-size: var(--fs-h2); line-height: 1.4; }
  .prose h2 { font-size: var(--fs-h2); }
  .feature__title { font-size: var(--fs-h3); line-height: 1.3; }
  .overlay__title { font-size: var(--fs-display); }

  /* pills */
  .coming-soon, .contact__pill { height: var(--pill-h); width: auto; padding: 0 1.1em; font-size: var(--fs-pill); line-height: 1; border-radius: 999px; }
  .coming-soon { display: inline-flex; box-shadow: 0 6px 14px rgba(255, 106, 0, .25); }
  .pill-back { height: calc(var(--pill-h) - 2px); width: auto; padding: 0 2.4em 0 1em; font-size: calc(var(--fs-pill) - 1px); }
  .pill-back__arrow { right: .95em; width: .75em; height: .75em; margin-top: -.375em; }
  .legal__meta { height: calc(var(--pill-h) - 2px); font-size: var(--fs-small); padding: 0 1em; }

  /* support: compact contact card, about one FAQ row tall */
  .contact { grid-template-columns: minmax(0, 1fr) clamp(84px, calc(60px + 1.67vw), 110px); gap: 14px; margin-top: 24px; }
  .contact__card { display: flex; align-items: center; gap: 20px; min-height: 0; padding: clamp(14px, calc(8px + .42vw), 22px) 22px; border-radius: 18px; }
  .contact__text { margin: 0; padding: 0; }
  .contact__pill { flex: none; }
  .contact__tile { border-radius: 18px; }
  .contact__tile svg { width: clamp(38px, calc(26px + .83vw), 52px); height: auto; aspect-ratio: 141.5 / 115; }
  .faq-title { margin-top: 36px; }
  .faq { gap: 12px; margin-top: 22px; }
  .faq-toggle { min-height: clamp(52px, calc(36px + 1.1vw), 68px); font-size: clamp(17px, calc(11px + .42vw), 23px); }
  .report-title { margin-top: 40px; }
  .report { margin-top: 14px; }
  .tos-note { margin-top: 44px; }
  .content > .section-title:first-child { margin-top: 28px; }

  /* home */
  .feature__card { min-height: 0; padding-bottom: 16px; flex: 1 0 auto; }
  .features { align-items: stretch; }
}

/* Wide desktops: the app icon lives in the hero gap instead of the masthead. */
@media (min-width: 1280px) {
  .hero__icon { display: block; }
  .masthead--home .masthead__icon { display: none; }
}

/* =================================================================
   Phones and small tablets
   ================================================================= */

@media (max-width: 999px) {
  .masthead {
    width: calc(100% - 24px);
    height: auto;
    min-height: 168px;
    margin-top: 12px;
    padding: 72px 20px 34px;
    border-radius: 28px;
  }
  .masthead__title { padding: 0; font-size: clamp(36px, 10.5vw, 64px); line-height: 1.1; }
  .pill-back {
    left: 14px;
    top: 14px;
    width: auto;
    height: 30px;
    padding: 0 34px 0 14px;
    border-radius: 999px;
    font-size: 13px;
  }
  .pill-back__arrow { right: 16px; width: 11px; height: 11px; margin-top: -5.5px; }
  .masthead--home { padding-top: 34px; gap: 14px; }
  .masthead__icon {
    position: static;
    width: 80px;
    height: 80px;
    border-width: 3px;
    border-radius: 20px;
    order: -1;
    box-shadow: 0 12px 26px rgba(120, 40, 0, .3);
  }

  .hero { display: block; padding: 28px 20px 40px; }
  .coming-soon { width: auto; height: 40px; padding: 0 22px; border-radius: 999px; font-size: 19px; box-shadow: 0 8px 20px rgba(255, 106, 0, .28); }
  .hero__headline { margin: 24px 0 0; font-size: clamp(32px, 8.6vw, 52px); line-height: 1.22; }
  .hero__headline .accent { display: inline; }
  .hero__lede { margin: 20px 0 0; font-size: 17px; line-height: 1.45; max-width: 640px; }
  .hero__phones { justify-content: center; gap: 4%; padding-top: 36px; }
  .phone--profile, .phone--group { width: 47%; max-width: 300px; }
  .phone img { filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .16)); }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

  .band { padding: 40px 0 26px; }
  .features {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(72%, 300px);
    gap: 16px;
    width: 100%;
    padding: 6px 20px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .features::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: center; }
  .feature__phone { width: 74%; }
  .feature__phone img { filter: drop-shadow(0 14px 18px rgba(120, 40, 0, .3)); }
  .feature__card, .feature--logging .feature__card, .feature--profiles .feature__card {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 12px;
    padding: 14px 40px 16px 18px;
    border-radius: 18px;
    flex: 1 0 auto;
  }
  .feature__title { font-size: 22px; }
  .feature__text, .feature--logging .feature__text { width: auto; margin: 6px 0 0; font-size: 16px; line-height: 1.45; }
  .feature__more { right: 20px; top: 24px; width: 13px; height: 13px; opacity: .8; }
  .carousel-dots { display: flex; justify-content: center; gap: 8px; padding-top: 4px; }
  .carousel-dots span { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .4s var(--ease-out), background-color .4s; }
  .carousel-dots span.is-active { width: 24px; background: #fff; }

  .site-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    gap: 8px 16px;
    font-size: 15px;
  }

  /* Overlays become a sheet that slides up and scrolls. */
  .overlay[open] { place-items: end stretch; }
  .overlay__panel {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px 22px calc(36px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    backdrop-filter: blur(30px) saturate(1.5);
    animation-name: sheet-in;
    animation-duration: .6s;
  }
  .overlay.is-closing .overlay__panel { animation-name: sheet-out; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheet-out { from { transform: none; } to { transform: translateY(100%); } }
  .overlay__title { padding-right: 56px; font-size: 40px; }
  .overlay__text { margin-top: 18px; font-size: 17px; line-height: 1.45; }
  .overlay__phones { justify-content: center; gap: 4%; padding: 28px 0 0; }
  .overlay .op { width: 48% !important; max-width: 300px; margin: 0 !important; flex: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .3)); }
  .overlay__close { position: sticky; top: 0; float: right; width: 44px; height: 44px; margin: -12px -6px 0 0; }
  

  .content { padding: 0 20px 64px; }
  .section-title { font-size: clamp(26px, 6.6vw, 38px); line-height: 1.12; }
  .content > .section-title:first-child { margin-top: 32px; }
  .contact { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .contact__card { min-height: 0; padding: 14px 16px 18px; border-radius: 18px; box-shadow: 0 0 18px rgba(0, 0, 0, .14); }
  .contact__pill { height: 36px; padding: 0 16px; font-size: 16px; }
  .contact__text { margin-top: 16px; padding-left: 4px; font-size: 17px; line-height: 1.6; }
  .contact__tile { height: 84px; border-radius: 18px; }
  .contact__tile svg { width: 50px; height: 41px; }
  .faq-title { margin-top: 48px; }
  .faq { gap: 10px; margin-top: 22px; }
  .faq-item { border-radius: 16px; }
  .faq-toggle { min-height: 56px; padding: 0 20px 0 18px; font-size: 17px; line-height: 1.3; }
  .faq-toggle__chevron { width: 9px; height: 16px; }
  .faq-body { margin: 0 8px 8px; padding: 16px 16px 20px; border-radius: 12px; font-size: 16px; }
  .faq-body h4 { font-size: 17px; }
  .faq-body * + h4 { margin-top: 22px; }
  .faq-body p, .faq-body ul { margin-top: 8px; }
  .report-title { margin-top: 48px; }
  .report { margin-top: 18px; font-size: 17px; line-height: 1.6; }
  .tos-note { margin-top: 48px; font-size: clamp(24px, 6.4vw, 36px); line-height: 1.3; }

  .legal { display: block; margin-top: 32px; }
  .toc { display: none; }
  .legal__meta { height: 30px; margin-top: 16px; padding: 0 14px; font-size: 13px; }
  .prose { margin-top: 24px; font-size: 16.5px; line-height: 1.6; }
  .prose > p, .prose > ul { margin-bottom: 14px; }
  .prose h2 { margin: 40px 0 12px; font-size: 26px; }
  .prose h3 { margin: 26px 0 8px; font-size: 18px; }
  .prose li { margin-bottom: 6px; }
  .prose .callout { padding: 20px 20px 14px; border-radius: 20px; }
  .notfound { padding: 40px 20px 80px; }
  .notfound p { font-size: 17px; }
}

@media (max-width: 380px) {
  .pill-back { font-size: 13px; }
  .site-footer__nav { font-size: 14px; padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .masthead::before, .coming-soon::after { display: none; }
}
