/* ═══════════════════════════════════════════════════════════════════
   Taply — stylesheet
   Implements DESIGN-SYSTEM.md. Apple product page.

   House rules:
     · one idea per screen, centred
     · whitespace is the layout
     · shadows only under 3D products (contact shadows)
     · one consistent white ground; grey is for surfaces, not sections
   ═══════════════════════════════════════════════════════════════════ */

/* ─── tokens ─────────────────────────────────────────────────────── */
:root {
  --white:   #FFFFFF;
  --grey:    #F5F5F7;
  --grey-2:  #FAFAFC;
  --text:    #1D1D1F;
  --text-2:  #6E6E73;
  --text-3:  #86868B;
  --blue:    #0071E3;
  --blue-hi: #0077ED;
  --line:    #D2D2D7;

  --r: 18px;
  --r-lg: 28px;

  --content: 980px;
  --wide: 1220px;
  /* one gutter for the whole page. It grows with the viewport so wide blocks
     never run to the edge on tablets and small laptops. */
  --pad: clamp(22px, 4vw, 44px);
  --sec-y: clamp(80px, 11vw, 140px);

  --ease: cubic-bezier(.28, .11, .32, 1);
}

/* ─── reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.48;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

/* the card artwork lives once in a sprite at the top of the document */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid rgba(0,113,227,.5); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(0,113,227,.22); }

.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;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 8px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ─── type ───────────────────────────────────────────────────────── */
.t-hero {
  font-size: clamp(40px, 6.2vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.t-title {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.t-sub {
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.008em;
  color: var(--text-2);
  max-width: 30ch;
  margin-inline: auto;
  text-wrap: balance;
}
.kicker { font-size: 19px; font-weight: 600; color: var(--text-2); letter-spacing: -0.005em; }
.fine { font-size: 12px; line-height: 1.42; color: var(--text-3); }
.fine.center { text-align: center; max-width: 60ch; margin-inline: auto; }

/* ─── buttons + links ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 12px 23px;
  background: var(--blue); color: #fff;
  border-radius: 999px;
  font-size: 17px; font-weight: 400; letter-spacing: -0.004em;
  white-space: nowrap;
  transition: background-color .28s var(--ease), color .28s var(--ease);
}
.btn:hover { background: var(--blue-hi); }
.btn--quiet { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn--quiet:hover { background: var(--blue); color: #fff; box-shadow: none; }
.btn--block { display: flex; width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 3px;
  min-height: 44px;
  color: var(--blue);
  font-size: 17px;
}
.link::after { content: '›'; font-size: 1.2em; line-height: 1; transition: transform .28s var(--ease); }
.link:hover { text-decoration: underline; }
.link:hover::after { transform: translateX(2px); }
.link--btn { min-height: 36px; font-size: 15px; }

/* ─── nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-in {
  /* the gutter lives inside the cap, so the logo lands on the same vertical
     line as every --content block below it */
  max-width: calc(var(--content) + var(--pad) * 2); margin-inline: auto;
  padding-inline: var(--pad);
  height: 48px;
  display: flex; align-items: center; gap: 22px;
}
.nav-logo { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
/* the mark is 1.43:1, so it is sized by height and coloured via currentColor */
.nav-logo svg { height: 15px; width: auto; color: var(--blue); }

.nav-links { display: flex; gap: 26px; margin-inline: auto; }
.nav-links a {
  font-size: 12px; color: var(--text); opacity: .85;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .55; }

.nav-end { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 2px; }
.lang button {
  font-size: 11px; font-weight: 500; letter-spacing: .03em;
  color: var(--text-3);
  padding: 4px 7px; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.lang button.is-on { background: var(--text); color: #fff; }
.nav-buy {
  font-size: 12px; color: #fff; background: var(--blue);
  padding: 5px 11px; border-radius: 999px;
  transition: background-color .25s var(--ease);
}
.nav-buy:hover { background: var(--blue-hi); }

.nav-toggle { display: none; width: 30px; height: 30px; position: relative; }
.nav-toggle span {
  position: absolute; left: 6px; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ─── section shell ──────────────────────────────────────────────── */
.sec {
  padding: var(--sec-y) var(--pad);
  text-align: center;
}
.sec-head { max-width: var(--content); margin: 0 auto clamp(44px, 5vw, 72px); }
.sec-head .t-sub { margin-top: 16px; }

/* ─── hero ───────────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 6vw, 76px) var(--pad) clamp(40px, 5vw, 60px);
  text-align: center;
}
.hero .kicker { margin-bottom: 8px; }
.hero .t-sub { margin-top: 18px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; margin-top: 22px; }

.hero-stage {
  position: relative;
  max-width: var(--wide);
  margin: clamp(16px, 2.4vw, 34px) auto 0;
  display: flex; align-items: center; justify-content: center;
  padding-block: clamp(24px, 4vw, 52px);
}
.hero-local {
  margin: 16px auto 0;
  max-width: 44ch;
  font-size: 14px; line-height: 1.45; color: var(--text-2);
}
.hint { margin-top: 18px; font-size: 12px; color: var(--text-3); transition: opacity .5s; }
.hint.is-off { opacity: 0; }

/* ─── the 3D card ────────────────────────────────────────────────── */
/* The model reproduces the card we actually ship: white PVC, portrait,
   the Google mark, five stars, the tap symbol on the front and the QR
   on the back. There is one design, so there is one finish. */
.card-mount {
  --cw: clamp(180px, 25vw, 286px);
  --ch: calc(var(--cw) * 1.586);
  position: relative;
  width: var(--cw); height: var(--ch);
  perspective: 1600px;
  perspective-origin: 50% 45%;
  z-index: 2;
  /* everything printed on the card is sized in cqw, so the artwork scales
     with the card instead of with the page's font size */
  container-type: inline-size;
}

.card3d {
  --rx: 7deg; --ry: -17deg;
  --c-bg: linear-gradient(152deg, #FFFFFF 0%, #FCFCFE 52%, #F3F3F7 100%);
  --c-fg: #202124;
  --c-dim: #5F6368;
  --c-edge: #E4E4EA;
  --c-hair: rgba(0,0,0,.085);
  --c-star: #FBBC04;
  --c-spec: rgba(255,255,255,.9);

  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  cursor: grab;
  touch-action: pan-y;
  will-change: transform;
}
.card3d:active { cursor: grabbing; }

/* five slabs give the card genuine thickness from any angle */
.slab {
  position: absolute; inset: 0;
  border-radius: 4.8cqw;
  background: var(--c-edge);
  transform: translateZ(var(--z));
}
.slab:nth-of-type(1) { --z:  2.6px; }
.slab:nth-of-type(2) { --z:  1.3px; }
.slab:nth-of-type(3) { --z:  0px;   }
.slab:nth-of-type(4) { --z: -1.3px; }
.slab:nth-of-type(5) { --z: -2.6px; }

.face {
  position: absolute; inset: 0;
  border-radius: 4.8cqw;
  background: var(--c-bg);
  color: var(--c-fg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  padding: 7cqw 8cqw;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--c-hair);
}
.front { transform: translateZ(3.1px); }
.back  { transform: rotateY(180deg) translateZ(3.1px); }

/* specular sweep — it depicts a real surface catching light */
.face::after {
  content: '';
  position: absolute; inset: -40%;
  background: linear-gradient(var(--spec-a, 108deg), transparent 36%, var(--c-spec) 48%, transparent 60%);
  opacity: var(--spec-o, .16);
  transform: translate(var(--spec-x, 0), var(--spec-y, 0));
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* the print */
.c-g { width: 33cqw; }
.c-g svg { width: 100%; height: auto; }

.c-say {
  margin-top: 5.5cqw;
  font-size: 11.6cqw;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-align: center;
}
.c-stars {
  display: flex; gap: .5cqw;
  margin-top: 3.4cqw;
  color: var(--c-star);
  font-size: 11cqw;
}
.c-stars b { display: block; line-height: 1; font-weight: 400; }

.c-tapmark { width: 50cqw; margin-top: 11cqw; color: var(--c-fg); }
.c-tapmark svg { width: 100%; height: auto; }
.c-tap {
  margin-top: 3.2cqw;
  font-size: 6.6cqw;
  letter-spacing: -0.01em;
}

.c-qr { width: 40cqw; aspect-ratio: 1; margin-top: 9cqw; }
.qr { display: block; width: 100%; height: 100%; }

/* contact shadow */
.contact-shadow {
  position: absolute; left: 9%; right: 9%; bottom: -10%;
  height: 26px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.26), transparent 72%);
  filter: blur(13px);
  transform: translateX(var(--sh-x, 0)) scale(var(--sh-s, 1));
}

.rings {
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  pointer-events: none;
}
.rings i { position: absolute; inset: 0; border: 1.5px solid var(--blue); border-radius: 50%; opacity: 0; }
.rings.is-on i { animation: ripple 1.5s var(--ease) forwards; }
.rings.is-on i:nth-child(2) { animation-delay: .17s; }
.rings.is-on i:nth-child(3) { animation-delay: .34s; }
@keyframes ripple {
  from { transform: scale(.4); opacity: .8; }
  to   { transform: scale(7);  opacity: 0; }
}

/* ─── phone ──────────────────────────────────────────────────────── */
/* the phone sits alongside the card as a pair, overlapping slightly —
   a product shot, not a floating decoration */
.phone {
  position: relative;
  flex-shrink: 0;
  width: clamp(104px, 11vw, 148px);
  aspect-ratio: 1 / 2.05;
  margin-left: clamp(-64px, -4.5vw, -28px);
  margin-top: clamp(30px, 5vw, 64px);
  z-index: 3;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.16));
}
.phone-shell { position: absolute; inset: 0; background: #1D1D1F; border-radius: 18px; padding: 3px; }
.phone-bar {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 4px; background: #000; border-radius: 99px; z-index: 3;
}
.phone-screen {
  position: absolute; inset: 3px; border-radius: 15px;
  background: var(--white);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 15px 7px 10px;
}
.ph-toast {
  position: absolute; top: 6px; left: 4px; right: 4px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-radius: 9px;
  padding: 5px 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,.13);
  transform: translateY(-160%); opacity: 0;
}
.ph-ico {
  width: 14px; height: 14px; flex-shrink: 0; border-radius: 4px;
  background: var(--text); color: #fff;
  display: grid; place-items: center;
}
.ph-ico svg { width: 9px; height: 9px; }
.ph-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ph-txt b { font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-txt small { font-size: 6px; color: var(--text-3); }

.ph-page {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; margin-block: auto;
  opacity: 0; transform: translateY(6px);
}
.ph-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--grey); }
.ph-name { font-size: 7.5px; font-weight: 600; }
.ph-stars { font-size: 11px; letter-spacing: 1px; }
.ph-field { width: 74%; height: 22px; border-radius: 5px; background: var(--grey); }
.ph-btn { font-size: 7px; color: #fff; background: var(--blue); padding: 4px 13px; border-radius: 99px; }

.phone.is-playing .ph-toast { animation: toastIn 3s var(--ease) forwards; }
.phone.is-playing .ph-page  { animation: pageIn 3s var(--ease) forwards; }
@keyframes toastIn {
  0%        { transform: translateY(-160%); opacity: 0; }
  14%, 46%  { transform: translateY(0);     opacity: 1; }
  62%, 100% { transform: translateY(-160%); opacity: 0; }
}
@keyframes pageIn {
  0%, 46%   { opacity: 0; transform: translateY(6px); }
  70%, 100% { opacity: 1; transform: none; }
}

/* ─── the maps illustration ──────────────────────────────────────── */
/* One picture for one idea: when the score and the review count are
   there, the place is labelled on the map at a normal zoom and sits at
   the top of the category list. Static — nothing here is a simulator. */
.mapshot { position: relative; max-width: 680px; margin-inline: auto; }

.mp-map {
  position: relative;
  aspect-ratio: 19 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #EEF0EB;
}
.mp-art { position: absolute; inset: 0; width: 100%; height: 100%; }

/* places, quiet and unnamed */
.mp-dot, .mp-pin, .mp-halo, .mp-flag {
  position: absolute;
  left: var(--x); top: var(--y);
}
.mp-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #AFB5B9;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.mp-pin {
  width: 18px; margin-left: -9px;
  transform: translateY(-100%);
  transform-origin: 50% 100%;
}
.mp-pin svg { width: 100%; height: auto; }
.mp-pin--quiet { width: 14px; margin-left: -7px; fill: #A7ADB2; }
.mp-pin--you { width: 23px; margin-left: -11.5px; fill: var(--blue); }

/* the ring that says: this one is labelled */
.mp-halo {
  width: 78px; height: 78px; margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,113,227,.26), rgba(0,113,227,.10) 58%, rgba(0,113,227,0) 72%);
}

.mp-flag {
  transform: translate(-50%, 6px);
  white-space: nowrap;
  background: var(--white);
  color: var(--blue);
  font-size: 12px; font-weight: 500; letter-spacing: -0.008em;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 9px rgba(0,0,0,.16);
}

/* the result list, floating over the map the way Maps does it */
.mp-panel {
  position: absolute; top: 16px; left: 16px;
  width: 222px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,.14);
  overflow: hidden;
  text-align: left;
}
.mp-search {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: 13px; color: var(--text-2);
}
.mp-search svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-3); }
.mp-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mp-list li { padding: 9px 13px; }
.mp-list li + li { border-top: 1px solid rgba(0,0,0,.06); }
.mp-list .is-you { background: rgba(0,113,227,.06); }
.mp-name {
  display: block;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-list .is-you .mp-name { color: var(--blue); }
.mp-meta { display: block; margin-top: 1px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.mapshot .fine { margin-top: 20px; }

/* the pin arrives when the section does — only where motion is welcome,
   because the reveal observer does not run under reduced motion at all */
@media (prefers-reduced-motion: no-preference) {
  .mapshot .mp-pin, .mapshot .mp-flag, .mapshot .mp-halo { opacity: 0; }
  .mapshot.in .mp-pin, .mapshot.in .mp-flag, .mapshot.in .mp-halo {
    animation: pinIn .6s var(--ease) forwards;
  }
  .mapshot.in .mp-pin--quiet { animation-delay: .12s; }
  .mapshot.in .mp-pin--you   { animation-delay: .26s; animation-name: pinDrop; }
  .mapshot.in .mp-halo       { animation-delay: .5s; }
  .mapshot.in .mp-flag       { animation-delay: .56s; animation-name: flagIn; }
}
@keyframes pinIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pinDrop {
  from { opacity: 0; transform: translateY(-100%) translateY(-14px) scale(.88); }
  to   { opacity: 1; transform: translateY(-100%) scale(1); }
}
@keyframes flagIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 6px); }
}

/* ─── steps ──────────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--content); margin-inline: auto;
}
.steps li { text-align: center; }
.step-n {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grey);
  font-size: 16px; font-weight: 600;
}
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.012em; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--text-2); line-height: 1.45; max-width: 32ch; margin-inline: auto; }

/* ─── configurator ───────────────────────────────────────────────── */
.cfg {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  max-width: var(--wide); margin-inline: auto;
  text-align: left;
}
.cfg-stage {
  background: var(--grey);
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 64px) 20px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.cfg-acts { display: flex; gap: 22px; }
.cfg-panel { display: flex; flex-direction: column; gap: 26px; }
.cfg-row { display: flex; flex-direction: column; gap: 10px; }
.cfg-row > label, .cfg-label { font-size: 14px; color: var(--text-2); }
.input {
  width: 100%;
  padding: 13px 16px;
  background: var(--grey);
  border: 0; border-radius: 12px;
  font-size: 17px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .2s var(--ease);
}
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.dest {
  font-size: 14px; line-height: 1.4; color: var(--text-2);
  overflow-wrap: anywhere;
}
.dest b { font-weight: 500; color: var(--text); }
.facts { display: flex; flex-direction: column; gap: 13px; font-size: 15px; line-height: 1.42; color: var(--text-2); }
.facts b { font-weight: 500; color: var(--text); }
.cfg-panel .fine { margin-top: -12px; }

/* ─── pricing ────────────────────────────────────────────────────── */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--content); margin-inline: auto;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--grey);
  border-radius: var(--r-lg);
  padding: 34px 28px 28px;
  text-align: center;
}
.plan--best { box-shadow: 0 0 0 2px var(--blue); }
.plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 500;
  padding: 3px 12px; border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.plan-price { margin-top: 10px; font-size: 44px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.plan-price span { font-size: 17px; font-weight: 400; color: var(--text-2); letter-spacing: -0.004em; }
.plan ul { margin: 24px 0 26px; display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: var(--text-2); }
.plans-foot { margin-top: 28px; font-size: 15px; color: var(--text-2); }
.plans-foot .link { font-size: 15px; min-height: 0; }

/* ─── quotes ─────────────────────────────────────────────────────── */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--content); margin-inline: auto;
}
.quotes blockquote { background: var(--grey); border-radius: var(--r-lg); padding: 28px 26px; text-align: left; }
.quotes p { font-size: 17px; line-height: 1.42; letter-spacing: -0.008em; }
.quotes p::before { content: '“'; }
.quotes p::after { content: '”'; }
.quotes cite { display: block; margin-top: 16px; font-size: 13.5px; font-style: normal; color: var(--text-3); }
.quotes + .fine { margin-top: 24px; }

/* ─── order form ─────────────────────────────────────────────────── */
.order { max-width: 560px; margin-inline: auto; text-align: left; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-2); }
.field input, .field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--grey);
  border: 0; border-radius: 12px;
  font-size: 17px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .2s var(--ease);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.field select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
}
.field small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.field.is-bad input { box-shadow: inset 0 0 0 2px #D7373F; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order .btn { margin-top: 8px; }
.form-status { margin-top: 12px; min-height: 1.3em; font-size: 14px; }
.form-status.ok { color: var(--blue); }
.form-status.bad { color: #D7373F; }
.order .fine { margin-top: 10px; }
/* honeypot — off-screen for people, in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── faq ────────────────────────────────────────────────────────── */
.faq { max-width: 720px; margin-inline: auto; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
  cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-left: auto;
  font-size: 22px; font-weight: 300; color: var(--blue);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; font-size: 16px; color: var(--text-2); line-height: 1.5; max-width: 62ch; }

/* ─── footer ─────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px var(--pad) 30px; }
.footer-in { max-width: var(--content); margin-inline: auto; }
.footer-cols { display: flex; gap: clamp(36px, 8vw, 96px); flex-wrap: wrap; padding-bottom: 30px; }
.footer-cols div { display: flex; flex-direction: column; gap: 9px; }
.fc-h { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.footer-cols a, .fc-note { font-size: 12px; color: var(--text-2); }
.fc-note { color: var(--text-3); }
.footer-cols a:hover { text-decoration: underline; color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom p { font-size: 12px; color: var(--text-3); line-height: 1.45; }

/* ─── reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ─── responsive ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg-panel { max-width: 460px; margin-inline: auto; width: 100%; }
}

@media (max-width: 760px) {
  .mp-map { aspect-ratio: 3 / 2; }
  .mp-panel {
    position: static; width: auto; margin-top: 14px;
    background: var(--grey); box-shadow: none;
  }
  .mp-search { border-bottom-color: rgba(0,0,0,.09); }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 15px var(--pad); font-size: 17px; border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav-toggle { display: block; }
  .nav-links { margin-inline: 0; }
  .nav-end { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .plans, .quotes { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--best { order: -1; }
}

@media (max-width: 560px) {
  .frow { grid-template-columns: 1fr; gap: 0; }
  .actions { flex-direction: column; gap: 4px; }
  .actions .btn { width: 100%; }
  .phone { width: 88px; margin-left: -34px; margin-top: 40px; }
  .cfg-stage { padding-inline: 12px; }
}

/* ─── motion + print ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .phone, .hint, .cfg-acts { display: none; }
  .sec, .footer { background: #fff !important; }
}
