/* =========================================================
   ERT — design system v2
   Restraint, whitespace, type-led. Vanilla CSS, no build step.
   The only stylesheet on every page (plus fonts.css).

   1 tokens · 2 base · 3 buttons · 4 nav · 5 hero · 6 sections and
   page templates · 7 footer · 8 drawn product objects · 9 reveal
   ========================================================= */

/* Metric-matched stand-in for Inter while it loads (only for browsers that
   reach Inter in the stack): Arial resized to Inter's metrics, so the swap
   doesn't reflow text. */
@font-face{
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

/* ---------- 1. TOKENS ---------- */
:root{
  /* colour */
  --c-bg:            #fbfbfd;
  --c-bg-alt:        #f5f5f7;
  --c-surface:       #ffffff;
  --c-dark:          #1d1d1f;   /* dark sections */
  --c-dark-2:        #2c2c2e;
  --c-text:          #1d1d1f;
  --c-text-2:        #6e6e73;   /* 4.9:1 on --c-bg */
  --c-text-on-dark:  #f5f5f7;
  --c-text-2-on-dark:#a1a1a6;   /* 7.0:1 on --c-dark */
  --c-line:          #d2d2d7;
  --c-line-soft:     #e8e8ed;
  --c-brand:         #2FE38F;   /* ERT mint: primary buttons only */
  --c-brand-hover:   #5AEAA7;
  --c-on-brand:      #1d1d1f;   /* 10:1 on mint */
  --c-link:          #007A47;   /* mint darkened for text: 5.4:1 on white */
  --c-link-on-dark:  #2FE38F;
  --c-error:         #C4432B;
  --c-star:          #F5B729;

  /* type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Inter Fallback", Helvetica, Arial, sans-serif;
  --font-logo: 'Archivo Black', var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.55rem + 5.2vw, 5.5rem);   /* 44 → 88 */
  --fs-h2:      clamp(2rem, 1.35rem + 2.9vw, 3.5rem);      /* 32 → 56 */
  --fs-h3:      clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); /* 22 → 28 */
  --fs-lead:    clamp(1.1875rem, 1.03rem + 0.65vw, 1.5rem);/* 19 → 24 */
  --fs-body:    1.0625rem;  /* 17 */
  --fs-body-lg: 1.1875rem;  /* 19 */
  --fs-small:   0.875rem;   /* 14 */
  --fs-micro:   0.75rem;    /* 12 */

  /* two weights for headlines, two for body */
  --fw-head:     700;
  --fw-head-alt: 600;
  --fw-body:     400;
  --fw-body-alt: 600;

  --lh-display: 1.05;
  --lh-head:    1.12;
  --lh-body:    1.5;

  --ls-display: -0.035em;
  --ls-h2:      -0.028em;
  --ls-h3:      -0.018em;
  --ls-body:    -0.006em;

  /* space (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --space-11: 120px;
  --section-y: clamp(72px, 4rem + 4vw, 120px);
  --gutter:    clamp(20px, 4vw, 40px);

  --container:      1120px;
  --container-wide: 1320px;
  --measure:        680px;

  /* radius */
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-pill: 980px;

  /* motion */
  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:   cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast:   0.2s;
  --dur-reveal: 0.6s;

  --nav-h: 56px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after{ box-sizing: border-box; }
*{ margin: 0; padding: 0; }
html{ overflow-y: scroll; -webkit-text-size-adjust: 100%; }
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; }
[hidden]{ display: none !important; }
body{
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3{ font-family: var(--font-sans); text-wrap: balance; }
:focus-visible{ outline: 2px solid var(--c-text); outline-offset: 3px; border-radius: 4px; }
#main, [id]{ scroll-margin-top: var(--nav-h); }

.skip-link{
  position: absolute; top: -60px; left: var(--space-4); z-index: 200;
  background: var(--c-text); color: var(--c-bg);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  font-weight: var(--fw-body-alt); font-size: var(--fs-small);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus{ top: var(--space-4); }


.lead{
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--c-text-2);
  max-width: var(--measure);
}

/* ---------- 3. BUTTONS ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-body-alt);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn-primary{ background: var(--c-brand); color: var(--c-on-brand); }
.btn-primary:hover{ background: var(--c-brand-hover); }
.btn-secondary{ background: var(--c-line-soft); color: var(--c-text); }
.btn-secondary:hover{ background: #dcdce1; }
.btn-sm{ min-height: 32px; padding: 6px 16px; font-size: var(--fs-small); }
.btn:disabled, .btn[aria-busy="true"]{ opacity: 0.6; cursor: default; }

/* ---------- 4. GLOBAL NAV ---------- */
.gnav{
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
/* translucent + blur only once the page has scrolled under it (site.js) */
.gnav.is-scrolled,
.gnav:has(#mobile-menu.open){
  background: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.gnav-bar{
  display: flex; align-items: center; gap: var(--space-6);
  height: var(--nav-h);
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter);
}
.brand{ display: inline-flex; align-items: center; gap: 9px; color: var(--c-text); flex-shrink: 0; }
.brand svg{ display: block; }
.brand-word{
  font-family: var(--font-logo);
  font-size: 1.3rem; line-height: 1;
  letter-spacing: -0.075em;
  display: inline-block; transform: skewX(-6deg); transform-origin: left;
}
.gnav-links{
  display: flex; gap: var(--space-6);
  list-style: none; margin: 0 auto;
  font-size: var(--fs-small);
}
.gnav-links a{
  color: var(--c-text-2);
  padding: var(--space-2) 0;
  transition: color var(--dur-fast) var(--ease);
}
.gnav-links a:hover, .gnav-links a[aria-current="page"]{ color: var(--c-text); }
.gnav-actions{ display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.gnav-links + .gnav-actions{ margin-left: 0; }
@media (max-width: 860px){ .gnav-links + .gnav-actions{ margin-left: auto; } }

/* the IT/EN switch */
.lang-switch{
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
}
.lang-switch-track{
  position: relative;
  width: 52px; height: 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.lang-switch:hover .lang-switch-track{ border-color: var(--c-brand); }
.lang-switch-flag{
  position: absolute;
  top: 8.5px;
  z-index: 1;
  width: 16px; height: 11px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.35;
  transition: opacity .2s ease;
}
.lang-switch-flag.it{ left: 6px; }
.lang-switch-flag.us{ left: 30px; }
.lang-switch-flag svg{ display: block; width: 100%; height: 100%; }
.lang-switch[aria-checked="false"] .lang-switch-flag.it{ opacity: 1; }
.lang-switch[aria-checked="true"] .lang-switch-flag.us{ opacity: 1; }
.lang-switch-knob{
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-brand);
  transition: transform .25s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 0;
}
.lang-switch[aria-checked="true"] .lang-switch-knob{ transform: translateX(24px); }
.lang-switch-mobile{
  margin-top: 10px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.gnav .lang-switch-track{ border-color: var(--c-line); }
.gnav .lang-switch:hover .lang-switch-track{ border-color: var(--c-text-2); }
.gnav .lang-switch-knob{ border-color: var(--c-line); background: var(--c-surface); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.gnav .menu-toggle{
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: none; color: var(--c-text); cursor: pointer; border-radius: 8px;
}
.gnav .menu-toggle .icon-close{ display: none; }
.gnav .menu-toggle[aria-expanded="true"] .icon-open{ display: none; }
.gnav .menu-toggle[aria-expanded="true"] .icon-close{ display: block; }

.gnav #mobile-menu{
  display: none;
  flex-direction: column;
  max-width: none; margin: 0;
  padding: var(--space-2) var(--gutter) var(--space-6);
  background: none; border: none; border-radius: 0; box-shadow: none;
}
.gnav #mobile-menu.open{ display: flex; }
.gnav #mobile-menu a{
  padding: var(--space-3) 0;
  border-top: 1px solid var(--c-line-soft);
  font-size: var(--fs-h3); font-weight: var(--fw-head-alt);
  letter-spacing: var(--ls-h3);
  color: var(--c-text);
}
.gnav #mobile-menu a:first-child{ border-top: none; }
.gnav #mobile-menu a[aria-current="page"]{ color: var(--c-text-2); }
.gnav #mobile-menu .lang-switch-mobile{ align-self: flex-start; margin-top: var(--space-5); }

@media (max-width: 860px){
  .gnav-links, .gnav .lang-switch.nav-mobile-hide{ display: none; }
  .gnav .menu-toggle{ display: inline-flex; }
  .gnav-actions{ gap: var(--space-2); }
}
@media (min-width: 861px){
  .gnav #mobile-menu, .gnav #mobile-menu.open{ display: none; }
}

/* ---------- 5. HERO ---------- */
.intro{
  padding: var(--space-8) var(--gutter) 0;
  text-align: center;
  overflow: hidden;   /* the objects' 3D overhang never causes sideways scroll */
}
.intro h1{
  font-size: var(--fs-display);
  font-weight: var(--fw-head);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  max-width: 14ch;
  margin: 0 auto;
}
.intro .lead{ margin: var(--space-5) auto 0; max-width: 34em; }
.intro-actions{ margin-top: var(--space-6); display: flex; justify-content: center; gap: var(--space-4); }
.intro-actions .btn{ font-size: var(--fs-body-lg); padding: 13px 28px; min-height: 50px; }

/* The visual: ERT's three objects -- laptop, phone, NFC plate -- held still
   and grouped, i.e. "in un posto solo" drawn literally. Each object keeps its
   own 240x240 frame and its own perspective, so the three are layered by
   z-index and can never intersect in 3D. The whole set is laid out on a fixed
   artboard and scaled with `zoom`, which re-lays-out (crisp at any size)
   instead of scaling a bitmap. */
.intro-visual{
  margin: var(--space-6) auto 0;
  display: flex; justify-content: center;
}
.trio{
  --art-w: 860px; --art-h: 430px;
  position: relative;
  width: var(--art-w); height: var(--art-h);
  flex-shrink: 0;
  zoom: 1.1;
}
.trio .obj{
  position: absolute;
  left: calc(var(--x) / var(--s) - 120px); top: calc(var(--y) / var(--s) - 120px);
}
.trio .obj.is-laptop{ --x: 430px; --y: 190px; --s: 2.05; --floor: 79%; --sw: 210px; z-index: 1; }
.trio .obj.is-phone { --x: 696px; --y: 252px; --s: 1.18; --floor: 79%; --sw: 92px;  z-index: 2; }
.trio .obj.is-plate { --x: 196px; --y: 300px; --s: 1.38; --floor: 77%; --sw: 140px; z-index: 3; }

/* each object faces slightly in toward the group */
.trio .laptop-rig{ transform: rotateX(-14deg) rotateY(166deg); }
.trio .phone-rig{ transform: rotateX(-8deg) rotateY(-16deg); }
.trio .tag-rig{ transform: rotateX(-10deg) rotateY(18deg); }

/* gentle arrival, once, staggered; nothing loops afterwards */
@media (prefers-reduced-motion: no-preference){
  .trio .obj{ animation: trio-in 0.9s var(--ease-out) both; }
  .trio .obj.is-laptop{ animation-delay: 0.05s; }
  .trio .obj.is-plate { animation-delay: 0.18s; }
  .trio .obj.is-phone { animation-delay: 0.28s; }
  .intro .label, .intro h1, .intro .lead, .intro-actions{ animation: rise-in 0.7s var(--ease-out) both; }
  .intro .lead{ animation-delay: 0.06s; }
  .intro-actions{ animation-delay: 0.12s; }
}
@keyframes trio-in{
  from{ opacity: 0; transform: translateY(14px); }
  to  { opacity: 1; transform: none; }
}
@keyframes rise-in{
  from{ opacity: 0; transform: translateY(12px); }
  to  { opacity: 1; transform: none; }
}

/* narrower artboard on phones: tighter overlap, laptop still central */
@media (max-width: 1279px){ .trio{ zoom: 1; } }
@media (max-width: 1023px){ .trio{ zoom: 0.84; } }
@media (max-width: 767px){
  .intro{ padding-top: var(--space-8); }
  .intro-visual{ margin-top: var(--space-6); }
  .trio{ --art-w: 520px; --art-h: 400px; zoom: 0.92; }
  .trio .obj.is-laptop{ --x: 260px; --y: 168px; --s: 1.62; --sw: 200px; }
  .trio .obj.is-phone { --x: 430px; --y: 252px; --s: 1.0; }
  .trio .obj.is-plate { --x: 104px; --y: 268px; --s: 1.12; }
}
@media (max-width: 479px){ .trio{ zoom: 0.68; } }
@media (max-width: 359px){ .trio{ zoom: 0.6; } }

/* ---------- 6. SECTIONS ---------- */
.section-v2{ padding: var(--section-y) var(--gutter); text-align: center; overflow: hidden; }
.section-v2.is-alt { background: var(--c-bg-alt); }
.section-v2.is-dark{ background: var(--c-dark); color: var(--c-text-on-dark); }

.label{
  display: block;
  font-size: var(--fs-body);
  font-weight: var(--fw-body-alt);
  color: var(--c-text-2);
  margin-bottom: var(--space-3);
}
.is-dark .label{ color: var(--c-text-2-on-dark); }

.section-v2 h2{
  font-size: var(--fs-h2);
  font-weight: var(--fw-head);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-h2);
  max-width: 18ch; margin: 0 auto;
}
.section-v2 .lead{ margin: var(--space-4) auto 0; }
.is-dark .lead{ color: var(--c-text-2-on-dark); }

/* text-link CTA: brand green on light, mint on dark */
.link-more{
  display: inline-flex; align-items: center; gap: 0.3em;
  margin-top: var(--space-5);
  padding: var(--space-1) 0;
  font-size: var(--fs-body-lg);
  color: var(--c-link);
}
.link-more:hover{ text-decoration: underline; text-underline-offset: 0.18em; }
.link-more .arrow{ transition: transform var(--dur-fast) var(--ease); }
.link-more:hover .arrow{ transform: translateX(3px); }
.is-dark .link-more{ color: var(--c-link-on-dark); }

/* stage: one object, centred, in a box of fixed height. The object frame is
   240x240 and zoomed by --s; --dy pulls it up to trim the frame's empty top
   (divided by --s because zoom scales the margin too). */
.stage{
  display: flex; justify-content: center; align-items: flex-start;
  height: var(--h, 360px);
  margin-top: var(--space-7);
}
.stage > .obj{ margin-top: calc(var(--dy, 0px) / var(--s)); flex-shrink: 0; }

/* websites: the laptop, straight on */
.stage.is-web{ --h: 430px; }
.stage.is-web .obj{ --s: 2.7; --dy: -95px; --floor: 79%; --sw: 200px; }
.stage.is-web .laptop-rig{ transform: rotateX(-12deg) rotateY(180deg); }
@media (max-width: 767px){
  .stage.is-web{ --h: 300px; }
  .stage.is-web .obj{ --s: 1.75; --dy: -60px; }
}
@media (max-width: 400px){
  .stage.is-web{ --h: 250px; }
  .stage.is-web .obj{ --s: 1.45; --dy: -50px; }
}

/* two-up tiles: devices + reviews */
.tiles{
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5);
  max-width: var(--container-wide); margin: 0 auto;
}
.tile{
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-9) var(--space-6) var(--space-5);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.tile h2{ font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); max-width: 16ch; }
.tile .lead{ font-size: var(--fs-body-lg); max-width: 26em; }
.tile .link-more{ font-size: var(--fs-body); }
.tile .stage{ --h: 300px; margin-top: var(--space-6); }
.tile .stage .obj{ --s: 1.55; --dy: -10px; --floor: 80%; --sw: 92px; }
.tile .phone-rig{ transform: rotateX(-6deg); }
@media (max-width: 900px){
  .tiles{ grid-template-columns: 1fr; }
  .tile{ padding-top: var(--space-8); }
}

/* NFC: dark section, the plate large, three quiet steps */
.stage.is-nfc{ --h: 400px; }
.stage.is-nfc .obj{ --s: 2.5; --dy: -110px; --floor: 75%; --sw: 160px; }
.stage.is-nfc .tag-rig{ transform: rotateX(-12deg) rotateY(-14deg); }
.is-dark .obj::after{ background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), rgba(0,0,0,0) 70%); }
@media (max-width: 767px){
  .stage.is-nfc{ --h: 300px; }
  .stage.is-nfc .obj{ --s: 1.85; --dy: -80px; }
}
.steps{
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
  max-width: var(--container); margin: var(--space-7) auto 0;
  text-align: left;
}
.steps li{ border-top: 1px solid rgba(245,245,247,0.16); padding-top: var(--space-5); }
.step-num{
  display: block; font-size: var(--fs-small); font-weight: var(--fw-body-alt);
  color: var(--c-link-on-dark); margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.steps h3{ font-size: var(--fs-body-lg); font-weight: var(--fw-head-alt); letter-spacing: var(--ls-body); line-height: 1.3; }
.steps p{ margin-top: var(--space-2); color: var(--c-text-2-on-dark); }
@media (max-width: 767px){
  .steps{ grid-template-columns: 1fr; gap: var(--space-5); }
}

/* contact: three equal options, then the form when asked for */
.options{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
  max-width: var(--container); margin: var(--space-7) auto 0;
  text-align: left;
}
.option{
  display: flex; flex-direction: column; gap: var(--space-1);
  width: 100%; min-height: 128px;
  padding: var(--space-5);
  background: var(--c-bg-alt);
  border: none; border-radius: var(--radius-md);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.option:hover, .option[aria-expanded="true"]{ background: var(--c-line-soft); }
.option-title{
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  font-size: var(--fs-body-lg); font-weight: var(--fw-body-alt); letter-spacing: -0.012em;
}
.option-title .arrow{ color: var(--c-link); transition: transform var(--dur-fast) var(--ease); }
.option:hover .option-title .arrow{ transform: translateX(3px); }
.option[aria-expanded="true"] .option-title .arrow{ transform: rotate(90deg); }
.option-text{ color: var(--c-text-2); }
@media (max-width: 860px){
  .options{ grid-template-columns: 1fr; }
  .option{ min-height: 0; }
}

.form-panel{
  max-width: var(--container); margin: var(--space-4) auto 0;
  padding: var(--space-7) var(--gutter);
  background: var(--c-bg-alt); border-radius: var(--radius-md);
  text-align: left;
}
.form-panel h3{
  max-width: 560px; margin: 0 auto var(--space-5);
  font-size: var(--fs-h3); font-weight: var(--fw-head-alt); letter-spacing: var(--ls-h3); line-height: 1.2;
}
.contact-form{ max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form .form-row{ display: flex; flex-direction: column; gap: var(--space-2); }
.contact-form .form-pair{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px){ .contact-form .form-pair{ grid-template-columns: 1fr; } }
.contact-form label{ font-size: var(--fs-small); font-weight: var(--fw-body-alt); color: var(--c-text); }
.contact-form input, .contact-form select, .contact-form textarea{
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font: inherit; font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder{ color: #86868b; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{ border-color: var(--c-link); outline: none; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible{
  outline: 2px solid var(--c-link); outline-offset: 1px;
}
.contact-form textarea{ resize: vertical; min-height: 110px; }
.contact-form .form-honeypot{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.contact-form .form-actions{ display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-2); }
.contact-form .form-status{ min-height: 1.5em; font-size: var(--fs-small); }
.contact-form .form-status.ok{ color: var(--c-link); }
.contact-form .form-status.err{ color: var(--c-error); }

/* ---------- 6b. SERVICE PAGE TEMPLATE ----------
   page hero -> what's included -> one explainer -> closing CTA.
   The hero reuses .intro (centred headline, one line, one CTA, visual). */
.intro.is-page h1{ font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); max-width: 16ch; }
.intro.is-page .label{ margin-bottom: var(--space-4); }
.intro.is-page .stage{ margin-top: var(--space-7); }
.intro.is-page.no-visual{ padding-bottom: var(--space-9); }

/* hero stages, one object each */
.stage.is-phone-hero{ --h: 340px; }
.stage.is-phone-hero .obj{ --s: 1.75; --dy: -14px; --floor: 80%; --sw: 100px; }
.stage.is-phone-hero .phone-rig{ transform: rotateX(-6deg) rotateY(-12deg); }
@media (max-width: 767px){
  .stage.is-phone-hero{ --h: 280px; }
  .stage.is-phone-hero .obj{ --s: 1.45; --dy: -12px; }
}

/* two objects: laptop + phone */
.trio.is-duo{ --art-w: 700px; --art-h: 380px; zoom: 1; }
.trio.is-duo .obj.is-laptop{ --x: 310px; --y: 175px; --s: 1.95; --floor: 79%; --sw: 210px; }
.trio.is-duo .obj.is-phone { --x: 560px; --y: 232px; --s: 1.2; --floor: 79%; --sw: 92px; }
@media (max-width: 767px){ .trio.is-duo{ zoom: 0.72; } }
@media (max-width: 479px){ .trio.is-duo{ zoom: 0.5; } }

/* what's included: short statements on hairlines, no icons */
.features{
  list-style: none;
  display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 0 var(--space-7);
  max-width: var(--container); margin: var(--space-7) auto 0;
  text-align: left;
}
.features.cols-3{ --cols: 3; }
.features li{
  border-top: 1px solid var(--c-line);
  padding: var(--space-5) 0 var(--space-6);
  font-size: var(--fs-body-lg);
  line-height: 1.4;
  letter-spacing: -0.012em;
}
@media (max-width: 767px){
  .features, .features.cols-3{ --cols: 1; }
  .features li{ padding: var(--space-4) 0 var(--space-5); }
}

/* explainer: heading + one calm paragraph, narrow and centred */
.prose{
  max-width: var(--measure); margin: var(--space-4) auto 0;
  font-size: var(--fs-body-lg); line-height: 1.55; color: var(--c-text-2);
}
.prose a{ color: var(--c-link); text-decoration: underline; text-underline-offset: 0.18em; }
.prose a:hover{ text-decoration-thickness: 2px; }

/* steps on light sections (the homepage NFC steps keep their dark look) */
.steps.cols-4{ grid-template-columns: repeat(4, 1fr); }
.section-v2:not(.is-dark) .steps li{ border-top-color: var(--c-line); }
.section-v2:not(.is-dark) .step-num{ color: var(--c-link); }
.section-v2:not(.is-dark) .steps p{ color: var(--c-text-2); }
.steps.cols-2{ grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 1023px){ .steps.cols-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px){ .steps.cols-4, .steps.cols-2{ grid-template-columns: 1fr; } }

/* option tiles reused as plain links (the Dispositivi hub) */
a.option .option-text{ max-width: 34ch; }

/* closing call to action */
.closing h2{ max-width: 20ch; }
.closing .btn{ margin-top: var(--space-6); font-size: var(--fs-body-lg); padding: 13px 28px; min-height: 50px; }

/* phone variant: a support chat ("qualcuno pronto a intervenire") */
.phone-screen.is-chat{
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 8px 8px; background: #F2F2F5;
}
.phone-screen.is-chat .bubble{ display: block; height: 15px; border-radius: 8px; max-width: 78%; }
.phone-screen.is-chat .bubble.in { align-self: flex-start; background: #FFFFFF; box-shadow: 0 0.5px 1px rgba(29,29,31,0.10); }
.phone-screen.is-chat .bubble.out{ align-self: flex-end; background: var(--c-brand); }
.phone-screen.is-chat .w1{ width: 64%; }
.phone-screen.is-chat .w2{ width: 46%; }
.phone-screen.is-chat .w3{ width: 72%; height: 24px; }
.phone-screen.is-chat .w4{ width: 38%; }
.phone-screen.is-chat .chat-input{
  margin-top: auto; height: 14px; border-radius: 7px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1px #E1E1E6;
}

/* ---------- 6c. NEIGHBOURHOOD PAGES ----------
   Text-led hero (the slot for a real neighbourhood photo later), then three
   link tiles, each with its own small object. */
.tiles.cols-3{ grid-template-columns: repeat(3, 1fr); max-width: var(--container); margin-top: var(--space-7); gap: var(--space-4); }
.tile-link{
  padding: var(--space-7) var(--space-5) var(--space-4);
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease);
}
.tile-link:hover{ background: var(--c-line-soft); }
.tile-link h3{
  font-size: var(--fs-h3); font-weight: var(--fw-head-alt);
  letter-spacing: var(--ls-h3); line-height: 1.2;
}
.tile-text{ margin-top: var(--space-2); color: var(--c-text-2); max-width: 30ch; }
.tile-link .link-more{ margin-top: var(--space-3); font-size: var(--fs-body); }
.tile-link:hover .link-more .arrow{ transform: translateX(3px); }
.tile-link .stage{ --h: 200px; margin-top: var(--space-5); }
.tile-link .stage .obj{ --dy: 0px; }
.stage.is-mini-laptop .obj{ --s: 1.3; --dy: -58px; --floor: 79%; --sw: 190px; }
.stage.is-mini-laptop .laptop-rig{ transform: rotateX(-12deg) rotateY(180deg); }
.stage.is-mini-phone .obj{ --s: 1.0; --dy: -10px; --floor: 82%; --sw: 90px; }
.stage.is-mini-phone .phone-rig{ transform: rotateX(-6deg); }
.stage.is-mini-plate .obj{ --s: 1.25; --dy: -60px; --floor: 78%; --sw: 140px; }
.stage.is-mini-plate .tag-rig{ transform: rotateX(-10deg) rotateY(-12deg); }
@media (max-width: 900px){ .tiles.cols-3{ grid-template-columns: 1fr; } }

.also{ max-width: var(--measure); margin: var(--space-6) auto 0; color: var(--c-text-2); font-size: var(--fs-body-lg); }
.also a{ color: var(--c-link); text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- 6d. NFC PRODUCT PAGE ---------- */
/* hero visual: the plate, with a phone held up to it */
.trio.is-tap{ --art-w: 660px; --art-h: 480px; zoom: 1.05; }
.trio.is-tap .obj.is-plate{ --x: 280px; --y: 250px; --s: 2.35; --floor: 77%; --sw: 140px; z-index: 1; }
.trio.is-tap .obj.is-phone{ --x: 478px; --y: 196px; --s: 1.5;  --floor: 79%; --sw: 92px;  z-index: 2; }
.trio.is-tap .tag-rig{ transform: rotateX(-10deg) rotateY(14deg); }
.trio.is-tap .phone-rig{ transform: rotateX(-4deg) rotateY(-22deg) rotateZ(-8deg); }
@media (max-width: 1023px){ .trio.is-tap{ zoom: 0.9; } }
@media (max-width: 767px){ .trio.is-tap{ zoom: 0.72; } }
@media (max-width: 599px){
  .trio.is-tap{ --art-w: 470px; --art-h: 420px; zoom: 0.78; }
  .trio.is-tap .obj.is-plate{ --x: 200px; --y: 236px; --s: 2.05; }
  .trio.is-tap .obj.is-phone{ --x: 362px; --y: 190px; --s: 1.32; }
}
@media (max-width: 359px){ .trio.is-tap{ zoom: 0.68; } }

/* spec sheet */
.specs-v2{ max-width: 760px; margin: var(--space-7) auto 0; text-align: left; }
.specs-v2 > div{
  display: grid; grid-template-columns: 220px 1fr; gap: var(--space-4);
  padding: var(--space-4) 0; border-top: 1px solid var(--c-line);
  font-size: var(--fs-body-lg);
}
.specs-v2 > div:last-child{ border-bottom: 1px solid var(--c-line); }
.specs-v2 dt{ font-weight: var(--fw-body-alt); }
.specs-v2 dd{ color: var(--c-text-2); }
@media (max-width: 600px){
  .specs-v2 > div{ grid-template-columns: 1fr; gap: 2px; }
}

/* plain text tiles (other uses) */
.tiles.cols-2{ max-width: 920px; margin-top: var(--space-7); }
.tile-static{ padding: var(--space-7) var(--space-6); text-align: left; align-items: flex-start; }
.tile-static h3{ font-size: var(--fs-h3); font-weight: var(--fw-head-alt); letter-spacing: var(--ls-h3); line-height: 1.2; }
.tile-static p{ margin-top: var(--space-2); color: var(--c-text-2); font-size: var(--fs-body-lg); }
@media (max-width: 900px){ .tiles.cols-2{ grid-template-columns: 1fr; } }

/* price + availability, as two quiet facts above the closing CTA */
.facts{
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
  max-width: 860px; margin: 0 auto var(--space-9);
}
.fact-label{ display: block; font-size: var(--fs-body); color: var(--c-text-2-on-dark); margin-bottom: var(--space-2); }
.fact-value{ display: block; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); font-weight: var(--fw-head); letter-spacing: var(--ls-h2); line-height: var(--lh-head); }
.fact-sub{ display: block; margin-top: var(--space-2); color: var(--c-text-2-on-dark); font-size: var(--fs-body-lg); }
@media (max-width: 767px){ .facts{ grid-template-columns: 1fr; gap: var(--space-7); margin-bottom: var(--space-8); } }
.is-dark.closing .btn{ margin-top: var(--space-6); }
.fineprint{
  max-width: 560px; margin: var(--space-8) auto 0;
  font-size: var(--fs-small); color: var(--c-text-2-on-dark);
}

/* ---------- 6e. FAQ ---------- */
.faq-v2{ max-width: 760px; margin: 0 auto; text-align: left; }
.faq-v2 .faq-group + .faq-group{ margin-top: var(--space-9); }
.faq-v2 h2{
  font-size: var(--fs-h3); font-weight: var(--fw-head-alt);
  letter-spacing: var(--ls-h3); line-height: 1.2;
  max-width: none; margin: 0 0 var(--space-4);
}
.faq-v2 details{ border-top: 1px solid var(--c-line); }
.faq-v2 details:last-child{ border-bottom: 1px solid var(--c-line); }
.faq-v2 summary{
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-5) 0;
  font-size: var(--fs-body-lg); font-weight: var(--fw-body-alt); letter-spacing: -0.012em; line-height: 1.35;
}
.faq-v2 summary::-webkit-details-marker{ display: none; }
/* a plus that turns into a minus */
.faq-v2 summary::after{
  content: ""; flex-shrink: 0; width: 14px; height: 14px; margin-top: 0.3em;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  color: var(--c-text-2);
  transition: transform var(--dur-fast) var(--ease);
}
.faq-v2 details[open] summary::after{
  background: linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat;
}
.faq-v2 summary:hover::after{ color: var(--c-text); }
.faq-v2 summary:focus-visible{ outline-offset: 4px; }
.faq-v2 .faq-answer{
  padding: 0 var(--space-7) var(--space-5) 0;
  color: var(--c-text-2); font-size: var(--fs-body-lg); line-height: 1.55;
}
@media (prefers-reduced-motion: no-preference){
  .faq-v2 details[open] .faq-answer{ animation: rise-in 0.3s var(--ease-out); }
}
@media (max-width: 600px){ .faq-v2 .faq-answer{ padding-right: 0; } }

/* ---------- 6f. LEGAL DOCUMENTS ----------
   Styles the documents' existing markup (docpage / doc-sidebar / toc /
   doc-content) so the legal text itself never has to be touched. */
.docpage{
  display: grid; grid-template-columns: 220px minmax(0, var(--measure)); gap: var(--space-9);
  justify-content: center;
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-9) var(--gutter) var(--section-y);
}
.doc-sidebar{ position: sticky; top: calc(var(--nav-h) + var(--space-6)); align-self: start; }
.doc-sidebar .side-label{
  font-size: var(--fs-small); font-weight: var(--fw-body-alt); color: var(--c-text);
  margin-bottom: var(--space-3);
}
.toc{ list-style: none; border-left: 1px solid var(--c-line); }
.toc a{
  display: block; padding: 6px 0 6px var(--space-4); margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: var(--fs-small); line-height: 1.35; color: var(--c-text-2);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.toc a:hover{ color: var(--c-text); }
.toc a.active{ color: var(--c-text); border-left-color: var(--c-text); }

.doc-content h1{
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: var(--fw-head);
  letter-spacing: var(--ls-h2); line-height: var(--lh-head);
}
.doc-content .updated{ display: block; margin-top: var(--space-3); color: var(--c-text-2); font-size: var(--fs-small); }
.doc-content h2{
  font-size: var(--fs-h3); font-weight: var(--fw-head-alt); letter-spacing: var(--ls-h3); line-height: 1.25;
  margin: var(--space-8) 0 var(--space-3);
}
.doc-content p, .doc-content li{ font-size: var(--fs-body); line-height: 1.6; color: #424245; margin-bottom: var(--space-3); }
.doc-content ul, .doc-content ol{ padding-left: 1.25em; margin-bottom: var(--space-4); }
.doc-content strong{ color: var(--c-text); font-weight: var(--fw-body-alt); }
.doc-content a{ color: var(--c-link); text-decoration: underline; text-underline-offset: 0.18em; }
.doc-content .note{
  margin: var(--space-6) 0; padding: var(--space-4) var(--space-5);
  background: var(--c-bg-alt); border-radius: var(--radius-sm);
  font-size: var(--fs-body); line-height: 1.55; color: var(--c-text);
}
.doc-content table{ width: 100%; border-collapse: collapse; margin: var(--space-4) 0 var(--space-6); font-size: var(--fs-small); }
.doc-content th{ text-align: left; font-weight: var(--fw-body-alt); color: var(--c-text); padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--c-text); }
.doc-content td{ padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--c-line); color: #424245; vertical-align: top; }
@media (max-width: 860px){
  .docpage{ grid-template-columns: minmax(0, 1fr); gap: var(--space-7); padding-top: var(--space-8); }
  .doc-sidebar{ position: static; padding-bottom: var(--space-5); border-bottom: 1px solid var(--c-line); }
}

/* ---------- 6g. 404 ---------- */
.error-hero{
  max-width: var(--measure); margin: 0 auto; text-align: center;
  padding: var(--space-11) var(--gutter) var(--section-y);
}
.error-code{
  font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: var(--fw-head);
  letter-spacing: -0.05em; line-height: 1; color: #86868b;  /* 3.5:1, large text */
}
.error-hero h1{
  margin-top: var(--space-4);
  font-size: var(--fs-h2); font-weight: var(--fw-head); letter-spacing: var(--ls-h2); line-height: var(--lh-head);
}
.error-hero p{ margin: var(--space-4) auto 0; max-width: 34em; font-size: var(--fs-lead); line-height: 1.4; color: var(--c-text-2); }
.error-hero .btn{ margin-top: var(--space-6); font-size: var(--fs-body-lg); padding: 13px 28px; min-height: 50px; }
.error-links{ display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); margin-top: var(--space-7); }
.error-links a{ padding: var(--space-2) 0; color: var(--c-link); }
.error-links a:hover{ text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- 7. FOOTER ---------- */
.gfoot{
  background: var(--c-bg-alt);
  color: var(--c-text-2);
  font-size: var(--fs-small);
  padding: var(--space-8) var(--gutter) var(--space-6);
  border-top: 1px solid var(--c-line-soft);
}
.gfoot-inner{ max-width: var(--container); margin: 0 auto; }
.gfoot-grid{
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-6);
  padding-bottom: var(--space-7);
}
.gfoot-tagline{ margin-top: var(--space-3); max-width: 240px; }
.gfoot h2{
  font-size: var(--fs-small); font-weight: var(--fw-body-alt); letter-spacing: 0;
  color: var(--c-text); margin-bottom: var(--space-2);
}
.gfoot ul{ list-style: none; }
.gfoot li a{ display: inline-block; padding: 5px 0; color: var(--c-text-2); transition: color var(--dur-fast) var(--ease); }
.gfoot li a:hover{ color: var(--c-text); }
.gfoot-bottom{ border-top: 1px solid var(--c-line); padding-top: var(--space-5); font-size: var(--fs-micro); }
@media (max-width: 860px){
  .gfoot-grid{ grid-template-columns: 1fr 1fr; }
  .gfoot-grid > :first-child{ grid-column: 1 / -1; }
}


/* ---------- 8. PRODUCT OBJECTS (pure CSS, shared by any page) ----------
   Ported from the v1 hero turntable. Coordinates unchanged; the
   turntable-only parts (ring, beat sync, will-change for the spin) are gone. */
/* .obj: the frame every object sits in. 240x240 in its own coordinates,
   its own perspective, sized with zoom (not transform: scale) so it is
   rasterised at its final size and stays sharp. */
.obj{
  position: relative; width: 240px; height: 240px;
  zoom: var(--s, 1);
  perspective: 1400px;
}
/* contact shadow on the floor under the object */
.obj::after{
  content: ""; position: absolute; left: 50%; top: var(--floor, 92%);
  width: var(--sw, 150px); height: 14px; margin-left: calc(var(--sw, 150px) / -2);
  background: radial-gradient(ellipse at center, rgba(29,29,31,0.20), rgba(29,29,31,0) 70%);
  filter: blur(3px);
  transform: translateZ(0);
  z-index: -1;
}

.laptop-rig{
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
}
.laptop{
  position: absolute; top: 50%; left: 50%;
  width: 168px; height: 1px; margin-top: 38px;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
}
.laptop-base, .laptop-underside{
  position: absolute; top: 0; left: -84px; width: 168px; height: 108px;
  transform-origin: top center;
  border-radius: 4px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.laptop-base{
  transform: rotateX(-90deg) rotateY(180deg);
  background: linear-gradient(200deg, #E2E4E7 0%, #BCBFC4 100%);
  border: 1px solid #A3A6AC;
  border-bottom: 6px solid #8E9197;
}
.laptop-base::before{
  content: ""; position: absolute; left: 50%; top: 12px; width: 132px; height: 40px;
  margin-left: -66px; border-radius: 2px;
  background-color: rgba(29,29,31,0.05);
  background-image:
    repeating-linear-gradient(90deg, rgba(29,29,31,0.16) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(0deg, rgba(29,29,31,0.16) 0 2px, transparent 2px 9px);
}
.laptop-base::after{
  content: ""; position: absolute; left: 50%; top: 62px; width: 50px; height: 26px;
  margin-left: -25px; border-radius: 2px;
  background: rgba(29,29,31,0.07);
  box-shadow: inset 0 1px 2px rgba(29,29,31,0.10);
}
.laptop-underside{
  transform: rotateX(-90deg);
  background: linear-gradient(160deg, #C7CACE 0%, #A7AAAF 100%);
  border: 1px solid #93969C;
}
.laptop-lid{
  position: absolute; top: -118px; left: -84px; width: 168px; height: 118px;
  transform-origin: bottom center;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transform: rotateX(4deg);
  will-change: auto;
  background: #B9BCC1;
  border-radius: 6px 6px 2px 2px;
}
.laptop-lid-back, .laptop-lid-front{
  position: absolute; inset: 0;
  border-radius: 6px 6px 2px 2px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.laptop-lid-back{
  background: linear-gradient(155deg, #F1F2F4 0%, #D2D4D8 100%);
  border: 1px solid #9A9DA3; border-top: 5px solid #9A9DA3;
}
.laptop-lid-front{ transform: rotateY(180deg); background: #161618; }
.laptop-screen{
  position: absolute; inset: 5px 5px 6px 5px;
  border-radius: 2px; overflow: hidden;
  background: #FFFFFF;
  padding: 5px 9px;
  display: flex; flex-direction: column; gap: 5px;
}
/* a faint glass sheen, nothing more */
.laptop-screen::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 40%);
}
/* mock site: nav, headline, button, picture, three cards */
.ms-nav{ display: flex; align-items: center; gap: 5px; height: 6px; }
.ms-logo{ width: 6px; height: 6px; border-radius: 1.5px; background: var(--c-text); }
.ms-links{ display: flex; gap: 4px; margin-left: auto; }
.ms-links i{ display: block; width: 10px; height: 2px; border-radius: 1px; background: #D2D2D7; }
.ms-cta{ width: 14px; height: 5px; border-radius: 3px; background: var(--c-brand); }
.ms-hero{ display: flex; flex-direction: column; align-items: center; gap: 2.5px; margin-top: 4px; }
.ms-h1{ display: block; width: 70px; height: 5px; border-radius: 1.5px; background: var(--c-text); }
.ms-h1.short{ width: 46px; }
.ms-p{ display: block; width: 58px; height: 2px; border-radius: 1px; background: #C7C7CC; margin-top: 1.5px; }
.ms-btn{ display: block; width: 18px; height: 5px; border-radius: 3px; background: var(--c-brand); margin-top: 1.5px; }
.ms-img{
  flex: 1; min-height: 0; border-radius: 3px;
  background:
    radial-gradient(circle at 72% 38%, #FFFFFF 0 7%, rgba(255,255,255,0) 8%),
    linear-gradient(160deg, #E9F7F0 0%, #C9E9DA 55%, #A9D7C2 100%);
}
.ms-cards{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 12px; }
.ms-cards i{ display: block; border-radius: 2px; background: #F2F2F5; }

/* phone variant: a freshly set-up home screen ("pronti all'uso") */
.phone-screen.is-home{
  display: grid; grid-template-columns: repeat(4, 1fr); align-content: start;
  gap: 7px 6px; padding: 16px 8px 8px;
  background: linear-gradient(170deg, #F4FBF8 0%, #DDF3E8 100%);
}
.phone-screen.is-home i{ display: block; aspect-ratio: 1; border-radius: 4px; background: #FFFFFF; box-shadow: 0 0.5px 1px rgba(29,29,31,0.12); }
.phone-screen.is-home i:nth-child(3n+2){ background: #E8E8ED; }
.phone-screen.is-home i:nth-child(6){ background: var(--c-brand); }
.phone-screen.is-home .dock{
  grid-column: 1 / -1; margin-top: 34px; height: 18px; border-radius: 6px;
  background: rgba(255,255,255,0.75);
}


.phone-rig{
  position: absolute; inset: 0;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
}
.phone-box{
  position:absolute; top:16px; left:50%; width:84px; height:170px; margin-left:-42px;
  transform-style:preserve-3d; -webkit-transform-style:preserve-3d;
}
.ph-layer, .ph-front{
  position:absolute; inset:0; border-radius:14px;
}
.ph-layer{ background: linear-gradient(120deg, #3a3d42, #202226); }
.ph-layer:first-child{ background: linear-gradient(200deg, #2b2d31, #161719); }
.ph-layer:nth-child(1){ transform: translateZ(-3.5px); }
.ph-layer:nth-child(2){ transform: translateZ(-2.5px); }
.ph-layer:nth-child(3){ transform: translateZ(-1.5px); }
.ph-layer:nth-child(4){ transform: translateZ(-0.5px); }
.ph-layer:nth-child(5){ transform: translateZ(0.5px); }
.ph-layer:nth-child(6){ transform: translateZ(1.5px); }
.ph-layer:nth-child(7){ transform: translateZ(2.5px); }
.ph-layer:nth-child(8){ transform: translateZ(3.5px); }
.ph-front{
  transform: translateZ(4.5px);
  background:#17181a; box-shadow: inset 0 0 0 1px #313338;
}
.phone-screen{
  position:absolute; inset:5px; border-radius:10px; overflow:hidden;
  background:#FAFAF8; padding:9px 8px; display:flex; flex-direction:column; gap:9px;
}
.rev-item{ display:flex; flex-direction:column; gap:5px; }
.rev-item.dim{ opacity:0.42; }
.rev-head{ display:flex; align-items:center; gap:5px; }
.rev-avatar{ width:13px; height:13px; border-radius:50%; background:#D8D4CE; flex:none; }
.rev-bar{ display:block; height:4px; border-radius:2px; background:#E4DFDA; }
.rev-bar.w-name{ width:26px; }
.rev-bar.w-short{ width:58%; }
.rev-stars{ display:flex; gap:1.5px; color:var(--c-star); }
.rev-stars svg{ width:9px; height:9px; }
.rev-chip{
  margin-top:auto; height:14px; border-radius:7px; background:var(--c-brand);
}

.gstand{
  position:absolute; top:56px; left:50%; width:130px; height:130px; margin-left:-65px;
  transform-style:preserve-3d; -webkit-transform-style:preserve-3d;
}
.gs-layer, .gs-front{ position:absolute; inset:0; border-radius:11px; }
.gs-layer{ background: linear-gradient(120deg, #EAF3EE, #C9DAD3); }
.gs-layer:first-child{ background: linear-gradient(200deg, #FDFEFD, #E4EBE7); }
.gs-layer:nth-child(1){ transform: translateZ(-3px); }
.gs-layer:nth-child(2){ transform: translateZ(-2px); }
.gs-layer:nth-child(3){ transform: translateZ(-1px); }
.gs-layer:nth-child(4){ transform: translateZ(0px); }
.gs-layer:nth-child(5){ transform: translateZ(1px); }
.gs-layer:nth-child(6){ transform: translateZ(2px); }
.gs-front{
  transform: translateZ(3.5px);
  background:#FFFFFF; overflow:hidden;
  box-shadow: inset 0 0 0 1px rgba(20,20,19,0.10);
}
.gs-bg{ position:absolute; inset:0; width:100%; height:100%; }
/* wordmark lockup, not the Google logo -- the mark itself is deliberately not
   reproduced. Two lines, so "Google" carries the weight on its own. */
.gs-head{
  position:absolute; top:22px; left:8px; right:8px;
  display:flex; flex-direction:column; align-items:center; gap:1px; color:#fff;
}
.gs-eyebrow{
  font-family: var(--font-sans); font-weight:500; font-size:7px; opacity:0.92;
}
.gs-wordmark{
  font-family: var(--font-sans); font-weight:700; font-size:20px;
  letter-spacing:-0.035em; line-height:1.05;
}
.gs-body{
  position:absolute; left:6px; right:6px; top:72px;
  display:flex; align-items:center; justify-content:center; gap:5px;
}
.gs-col{ display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; color:var(--c-text); }
.gs-tapicon{ width:34px; height:23px; }
/* a real QR -- it encodes https://everythingromatech.com. At hero size the
   modules are about a pixel across, so it takes a zoom to scan, which is
   rather the point of an easter egg. */
.gs-qr{ width:36px; height:36px; color: var(--c-text); }
.gs-cap{
  font-family: var(--font-sans); font-weight:700; font-size:4.6px; letter-spacing:0.04em;
  text-transform:uppercase; color:#2E6BD8; text-align:center; line-height:1.1;
}
.gs-or{
  font-family: var(--font-sans); font-weight:700; font-size:5px; color:var(--c-text-2);
  border-left:1px solid #D8DDE4; border-right:1px solid #D8DDE4; padding:0 4px;
  align-self:stretch; display:flex; align-items:center;
}


.tag-rig{
  position: absolute; inset: 0;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
}

/* ---------- 9. REVEAL ON SCROLL ---------- */
.reveal{
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.reveal.in{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .gnav{ transition: none; }
}

/* ---------- LEGACY ALIAS ----------
   The legal pages' text carries a few inline style="color:var(--ink)"
   attributes. The text is deliberately left untouched, so the old name
   stays mapped to the v2 ink colour. */
:root{ --ink: var(--c-text); }
