/* Pet Detective site. One motif: the detective's lens (the app's Happy Score ring). */
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg: #0b1d2e;          /* detective navy, from the app icon */
  --surface: #14304a;     /* one step up from the navy */
  --ink: #ffffff;
  --soft: #c9d6e0;        /* secondary notes on navy only */
  --accent: #b8f36b;      /* the Happy Score ring's lime */
  --accent-2: #a6e052;    /* one tone step down from the lime */
  --accent-ink: #0b1d2e;
  --paper: #ffffff;
  --paper-2: #eaf0f4;     /* one tone step down from white */
  --paper-ink: #0b1d2e;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1rem + 1.25vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 1rem + 6.2vw, 7.5rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(120px, 12vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ring: clamp(12px, 1.6vw, 26px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--accent) var(--bg); }
body {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: var(--accent-ink); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.scan :focus-visible, .notify :focus-visible, .tile-head :focus-visible { outline-color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: var(--m); top: -100px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 20; }
.skip:focus { top: 8px; }

.display {
  font-size: var(--step-display);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.head { font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.body-l { font-size: var(--step-body); max-width: 40ch; }

/* Buttons: one shape, round like the lens */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 "Jost", sans-serif;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 44px; font-size: var(--step-small); padding: 0 1.25em; }

/* Bar */
.bar {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 12px var(--m);
  background: var(--bg);
}
.mark { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: var(--step-body); }
.mark img { width: 40px; height: 40px; border-radius: 50%; }
.bar nav { display: flex; gap: 28px; margin-left: auto; }
.bar nav a { text-decoration: none; font-size: var(--step-small); font-weight: 500; padding: 8px 0; transition: color .2s; }
.bar nav a:hover { color: var(--accent); }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr;
  min-height: calc(100svh - 64px);
  padding: 0 var(--m);
}
.hero-copy { align-self: center; padding: 72px 0 96px; position: relative; z-index: 1; }
.hero h1 { max-width: 7.2em; }
.hero .lead { margin-top: 40px; max-width: 36ch; font-size: var(--step-body); }
.hero-act { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-price { font-weight: 500; }
.hero-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step-small); }
.hero-links a { font-weight: 500; padding: 6px 0; }
.hero-links a:hover { color: var(--accent); }

.hero-lens { position: relative; z-index: 1; min-height: 320px; }
/* The park at blue hour behind everything (the Boss's own picture); navy veils keep the words easy to read */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,29,46,.86) 0%, rgba(11,29,46,.62) 30%, rgba(11,29,46,.18) 52%, rgba(11,29,46,0) 66%),
    linear-gradient(180deg, rgba(11,29,46,0) 72%, var(--bg) 100%);
}
.lens {
  position: absolute; top: 50%; left: 6%;
  width: min(96svh, 54vw); aspect-ratio: 1;
  transform: translateY(-50%);
}
.lens-glass {
  position: absolute; inset: 0;
  border-radius: 50%; overflow: hidden;
  border: var(--ring) solid var(--accent);
  background: var(--surface);
  z-index: 1;
}
.lens-handle {
  position: absolute; left: 80%; top: 80%;
  width: 18%; height: 48%;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: 50% 0;
  transform: rotate(-45deg);
}
.fade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.fade.is-on { opacity: 1; }

/* SHOWCASE: the ring, working */
.scan {
  position: relative; overflow: hidden;
  min-height: 92svh;
  padding: 96px var(--m);
  background: var(--accent); color: var(--accent-ink);
  transition: background-color .5s var(--ease);
}
.scan[data-state="floor"], .scan[data-state="blurry"] { background: var(--paper); }
.scan-copy { position: relative; z-index: 1; max-width: 40%; }
.scan .body-l { margin-top: 24px; }
.scan-say { margin-top: 48px; max-width: 34ch; }
.scan-mood { font-size: var(--step-lead); font-weight: 700; line-height: 1.1; }
.scan-detail { margin-top: 12px; }
.scan-note { margin-top: 16px; font-size: var(--step-small); font-weight: 500; }

.scan-ui {
  position: absolute; left: 52%; top: 72px;
  font-size: clamp(14px, 2.1vh, 21px);
  width: 34em;
}
.seg { display: flex; flex-wrap: wrap; gap: 0.4em; }
.seg button {
  min-height: 48px; padding: 0 1.1em;
  border: 0; border-radius: 999px;
  background: var(--accent-ink); color: var(--paper);
  font: 500 1em/1 "Jost", sans-serif; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, transform .15s var(--ease);
}
.scan[data-state="sunny"] .seg button { background: var(--accent-2); color: var(--accent-ink); }
.scan .seg button[aria-checked="true"] { background: var(--accent-ink); color: var(--paper); }
.scan[data-state="floor"] .seg button:not([aria-checked="true"]),
.scan[data-state="blurry"] .seg button:not([aria-checked="true"]) { background: var(--paper-2); color: var(--accent-ink); }
.seg button:hover { transform: translateY(-2px); }
.seg button:active { transform: scale(.97); }

.score { display: flex; align-items: baseline; gap: 0.5em; margin: 0.6em 0 0.4em; }
.score-num { font-size: 4.4em; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.score-level { font-size: 1.6em; font-weight: 700; text-transform: uppercase; }

.ring { position: relative; width: 34em; aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-track { stroke: var(--accent-2); transition: stroke .5s; }
.scan[data-state="floor"] .ring-track, .scan[data-state="blurry"] .ring-track { stroke: var(--paper-2); }
.ring-arc {
  stroke: var(--accent-ink); stroke-linecap: round;
  stroke-dasharray: 100 100;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.ring-photo { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; background: var(--paper-2); }
.pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, filter .5s, transform .8s var(--ease); }
.pic.is-on { opacity: 1; }
.scan[data-state="blurry"] .pic-sunny { filter: blur(14px); transform: scale(1.12) rotate(-4deg); }

/* HOW IT LOOKS: the six-looks animation on navy */
.looks {
  background: var(--bg); color: var(--ink);
  padding: var(--gap) var(--m);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: center;
}
.looks .body-l { margin-top: 24px; max-width: 30ch; }
.looks-film { margin: 0; }
.looks-film video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: var(--ring) solid var(--accent); border-radius: 28px;
  background: var(--surface);
}
.looks-film figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--soft); }

/* FEATURES */
.features { background: var(--paper); color: var(--paper-ink); padding: var(--gap) var(--m); }
.statement {
  font-size: var(--step-lead); font-weight: 500; line-height: 1.25;
  max-width: 30em;
}
.slot {
  display: inline-block; vertical-align: -0.16em;
  width: 1.9em; height: 1em;
  border-radius: 999px; object-fit: cover; object-position: 50% 30%;
  background: var(--paper-2);
}
.features-grid {
  margin-top: 96px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px;
  align-items: start;
}
.feat-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px; }
.feat-list dt { font-weight: 700; font-size: var(--step-lead); line-height: 1.1; }
.feat-list dd { margin: 12px 0 0; }
.feat-shots { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat-shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.feat-shots figcaption { grid-column: 1 / -1; font-size: var(--step-small); margin-top: 4px; }

/* CLINIC */
.clinic { background: var(--paper); color: var(--paper-ink); padding: 0 0 var(--gap); }
.panel {
  margin: 0 20px;
  background: var(--bg); color: var(--ink);
  overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(280px, 340px);
  gap: 48px;
  padding: 56px calc(56px - 20px + var(--m)) 0;
  min-height: 100svh;
}
.panel-left h2 { max-width: 9em; }
.clinic-lens {
  margin-top: 56px;
  width: min(38vw, 620px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: var(--ring) solid var(--accent);
  margin-bottom: max(-9vw, -150px);
}
.clinic-lens video { width: 100%; height: 100%; object-fit: cover; }
.panel-right { padding-top: 8px; display: flex; flex-direction: column; gap: 40px; align-items: flex-start; padding-bottom: 56px; }
.panel-right h3 { font-size: var(--step-lead); line-height: 1.1; }
.panel-right p { margin-top: 12px; }
.panel-note { color: var(--soft); font-size: var(--step-small); }

.team { padding: 120px var(--m) 0; }
.team-h { font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.team-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.team-list img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 8px solid var(--accent);
  margin-bottom: 20px;
  transition: transform .4s var(--ease);
}
.team-list li:hover img { transform: rotate(-3deg) scale(1.02); }
.team-list b { display: block; font-size: var(--step-lead); line-height: 1.1; }
.team-list span { display: block; margin-top: 6px; }

/* PRIVATE */
.private { padding: var(--gap) var(--m); background: var(--bg); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
  background: var(--surface);
  aspect-ratio: 3 / 2;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.tile h3 { font-size: var(--step-lead); line-height: 1.05; }
.tile-head { grid-column: span 2; aspect-ratio: auto; background: var(--accent); color: var(--accent-ink); }

/* PRICE */
.price {
  background: var(--paper); color: var(--paper-ink);
  padding: var(--gap) var(--m);
  display: grid; grid-template-columns: 4fr 1fr 7fr; gap: 0;
  min-height: 80svh; align-items: center;
}
.price-copy { grid-column: 1; align-self: start; }
.price-copy .body-l { margin-top: 20px; }
.price-fig { grid-column: 3; position: relative; }
.figure {
  font-size: calc(var(--step-display) * 1.9);
  font-weight: 700; line-height: 0.85; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.figure .cur { font-size: 0.5em; vertical-align: 0.72em; margin-right: 0.04em; }
.price-badge {
  position: absolute; top: -0.5em; left: min(64%, 30rem);
  width: clamp(96px, 11vw, 170px); height: auto; aspect-ratio: 1;
  border-radius: 50%; border: 8px solid var(--accent);
}
.incl { list-style: none; margin: 40px 0 32px; padding: 0; }
.incl li { padding: 4px 0; }

/* FAQ */
.faq {
  background: var(--paper); color: var(--paper-ink);
  padding: 0 var(--m) var(--gap);
  display: grid; grid-template-columns: 4fr 8fr; gap: 32px;
  align-items: start;
}
.faq-h { position: sticky; top: 96px; }
.faq-list { display: grid; gap: 8px; }
details { background: var(--paper-2); transition: background-color .3s var(--ease); }
details[open] { background: var(--accent); }
summary {
  list-style: none; cursor: pointer;
  min-height: 72px; padding: 22px 64px 22px 24px;
  font-weight: 500; font-size: var(--step-body);
  position: relative; display: flex; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 16px; height: 3px; margin-top: -1.5px;
  background: currentColor; transition: transform .3s var(--ease);
}
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
summary:hover { text-decoration: underline; text-decoration-thickness: 2px; }
details p { padding: 0 24px 24px; max-width: 52ch; }

/* NOTIFY */
.notify { background: var(--accent); color: var(--accent-ink); padding: var(--gap) var(--m); }
.notify-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.12em 0.25em; max-width: 12em; }
.blank {
  width: 6.4em; height: 1em; padding: 0 0.15em;
  border: 0; border-radius: 0;
  background: var(--accent-2); color: var(--accent-ink);
  font: inherit; text-transform: uppercase; letter-spacing: inherit;
  vertical-align: baseline;
}
.blank::placeholder { color: var(--accent-ink); opacity: .45; }
.blank:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.go {
  height: 1em; padding: 0 0.3em;
  border: 0; border-radius: 999px;
  background: var(--accent-ink); color: var(--accent);
  font: inherit; text-transform: uppercase; line-height: 1; cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s;
}
.go:hover { background: var(--surface); }
.go:active { transform: scale(.96); }
.notify-after { margin-top: 32px; max-width: 52ch; }

/* FOOTER */
.foot { background: var(--bg); padding: 96px var(--m) 32px; }
.foot-mark {
  font-size: clamp(3rem, 11.4vw, 13rem); font-weight: 700; line-height: 0.85;
  letter-spacing: -0.04em; text-transform: uppercase; color: var(--accent);
  white-space: nowrap;
}
.foot-cols { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.foot-cols a { text-decoration: none; font-weight: 500; }
.foot-cols a:hover { color: var(--accent); }
.foot-small { font-size: var(--step-small); color: var(--soft); max-width: 48ch; }
.foot-small a { text-decoration: underline; }
.foot-last { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }

/* Entrances: content is visible without script; with script it rises in once */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .lens { animation: lens-in 1.4s var(--ease) both; }
@keyframes lens-in { from { transform: translateY(-50%) scale(.86) rotate(-8deg); opacity: 0; } to { transform: translateY(-50%); opacity: 1; } }

/* Tablet */
@media (max-width: 1080px) {
  .bar nav { display: none; }
  .bar .btn-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-lens { order: -1; height: min(88vw, 62svh); margin: 0 calc(var(--m) * -1); }
  /* stacked: the lens sits on the park at the top, the words on a darker lawn below */
  .hero { --lens-h: min(88vw, 62svh); }
  .hero-bg { object-position: 50% 0; } /* the tall park: trees, lamp and moon up top, a calm dark lawn under the words */
  .hero::after { background: linear-gradient(180deg, rgba(11,29,46,0) 0, rgba(11,29,46,.12) calc(var(--lens-h) - 40px), rgba(11,29,46,.62) calc(var(--lens-h) + 70px), var(--bg) 100%); }
  .lens { width: min(78vw, 56svh); left: auto; right: -8vw; }
  .hero-copy { padding: 32px 0 80px; }
  .scan-copy { max-width: 100%; }
  .scan-ui { position: relative; left: auto; top: auto; margin-top: 48px; font-size: clamp(12px, 2.2vw, 18px); }
  .features-grid { grid-template-columns: 1fr; }
  .looks { grid-template-columns: 1fr; gap: 40px; }
  .panel { grid-template-columns: 1fr; padding: 40px var(--m) 0; min-height: 0; }
  .panel-left { display: contents; }
  .panel-left h2 { order: 0; }
  .panel-right { order: 1; padding-bottom: 0; }
  .clinic-lens { order: 2; width: 80vw; margin: 0 auto -20vw; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-head { grid-column: 1 / -1; }
  .price { grid-template-columns: 1fr; gap: 48px; }
  .price-fig { grid-column: 1; }
  .faq { grid-template-columns: 1fr; }
  .faq-h { position: static; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-small { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 600px) {
  .mark span { font-size: var(--step-body); }
  .hero-lens { height: 92vw; }
  .hero { --lens-h: 92vw; }
  .lens { width: 86vw; right: -10vw; }
  .hero .lead { margin-top: 24px; }
  .scan { min-height: 86svh; padding: 64px var(--m) 0; }
  .scan-ui { font-size: 3.4vw; width: auto; margin-right: calc(var(--m) * -1); }
  .seg button { min-height: 44px; font-size: 1.1em; }
  .ring { width: 30em; margin-bottom: -6em; }
  .feat-list { grid-template-columns: 1fr; gap: 32px; }
  .panel { margin: 0 10px; }
  .team { padding-top: 96px; }
  .team-list { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .tile { aspect-ratio: auto; min-height: 150px; padding: 18px; }
  .figure { font-size: 34vw; }
  .price-badge { width: 30vw; left: auto; right: 0; top: -12vw; }
  .price-fig .btn { width: 100%; }
  .notify-line { font-size: 10vw; max-width: none; }
  .blank { width: 100%; order: 1; }
  .notify-line span { order: 0; }
  .go { order: 2; min-height: 44px; min-width: 2.2em; }
  .foot-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero .lens { animation: none; }
  .fade, .pic, .ring-arc, .scan { transition: none; }
}
