/* Apollo website. Follows the Apollo design system (tokens, type, colour, shape).
   Web-only rules the system does not cover are marked "web rule" and listed in DESIGN-RULES.md. */
@font-face { font-family: "Aileron"; font-weight: 300; font-display: swap; src: url("../fonts/Aileron-Light.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-weight: 400; font-display: swap; src: url("../fonts/Aileron-Regular.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-weight: 600; font-display: swap; src: url("../fonts/Aileron-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-weight: 700; font-display: swap; src: url("../fonts/Aileron-Bold.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-weight: 800; font-display: swap; src: url("../fonts/Aileron-Heavy.woff2") format("woff2"); }

/* Design system tokens (project/tokens.css) */
:root {
  --espresso: #27161B;
  --sky: #98C1D9;
  --linen: #E9E2DA;
  --ink: #171717;
  --paper: #FBFBFB;
  --heather: #7F6A93;
  --rich: #13322B;
  --flame: #FF4000;
  --marine: #004E87;
  --surface-sunken: #F0F0F0;
  --text-secondary: #5B5B5B;
  --status-danger: #DA0004;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-md: 12px; --radius-lg: 16px; --radius-2xl: 32px; --radius-panel: 40px; --radius-pill: 999px;
  --size-button: 56px; --size-button-sm: 48px;
  --font-brand: "Aileron", "Helvetica Neue", Arial, sans-serif;

  /* web rule: panel gutter (the system's 8–16px) and one easing for every movement */
  --gutter-panel: 12px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --rule-dark: rgba(39, 22, 27, .16);
  --rule-light: rgba(233, 226, 218, .16);

  /* Ground-dependent roles. Light grounds (paper, linen, sky) by default. */
  --fg: var(--espresso);
  --label: var(--marine);
  --focus: var(--flame);
  --btn-primary-bg: var(--espresso); --btn-primary-fg: var(--paper); --btn-primary-hover: #3d2a30;
  --btn-secondary-bg: var(--linen); --btn-secondary-fg: var(--espresso); --btn-secondary-border: transparent;
}

/* Dark grounds: espresso, ink and black photo grounds. Text and mark in linen/paper; labels in flame. */
.site-header, .site-footer, .hero, .section--dark, .section--black, .card--large, .tile--photo {
  --fg: var(--linen);
  --label: var(--flame);            /* 4.9:1 on espresso, 6:1 on black */
  --focus: var(--flame);
  --btn-primary-bg: var(--linen); --btn-primary-fg: var(--espresso); --btn-primary-hover: var(--paper);
  /* web rule: secondary on dark is a linen outline, so it never reads as a second primary */
  --btn-secondary-bg: transparent; --btn-secondary-fg: var(--linen); --btn-secondary-border: var(--linen);
}
/* Flame focus ring is under 3:1 on linen and sky, so those grounds use espresso. */
.section--linen, .section--sky, .tile--sky, .tagline { --focus: var(--espresso); }
.section--sky { --label: var(--espresso); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--espresso);
  font: 400 1.0625rem/1.55 var(--font-brand); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--marine); }
/* :where keeps this at zero specificity so button colours always win. */
:where(.site-header, .site-footer, .section--dark, .section--black, .tile--photo) a:where(:not(.btn)) { color: var(--linen); }
p { margin: 0 0 1em; text-wrap: pretty; }

/* Type: brand scale. Display 800, headline/title/lede 400, never Thin below 32px. */
h1, h2, h3 { margin: 0 0 .5em; color: var(--fg); text-wrap: balance; }
h1 { font-size: clamp(3.5rem, 9.5vw, 7.5rem); line-height: .92; font-weight: 800; letter-spacing: -0.035em; }  /* brand-display */
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.02; font-weight: 400; letter-spacing: -0.025em; } /* brand-headline */
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; }                                              /* web rule: small heading */
.lead { font-size: 1.25rem; line-height: 1.45; font-weight: 400; max-width: 62ch; }                           /* brand-lede */
.eyebrow { font-size: 1rem; line-height: 1.3; font-weight: 400; color: var(--label); margin-bottom: var(--space-4); } /* brand-label */

/* Focus: 2px flame, 2px offset (espresso on linen and sky). */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.container { width: min(1200px, 100% - 2 * var(--space-5)); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 140px) 0; color: var(--fg); }
.section--dark { background: var(--espresso); }
.section--black { background: #000; }   /* web rule: black only where a black-ground photo must bleed */
.section--linen { background: var(--linen); }
.section--sky { background: var(--sky); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head h2 { margin: 0; }
.section__aside .lead { margin: 0; }
/* Split head: label and title on the left, the lede across from them, bottoms aligned. */
.section__head--split > .lead, .section__head--split > .section__aside { margin: var(--space-5) 0 0; }
@media (min-width: 900px) {
  .section__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 64px; align-items: end; }
  .section__head--split > .eyebrow, .section__head--split > h2 { grid-column: 1; }
  .section__head--split > .lead, .section__head--split > .section__aside { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* web rule: coloured sections are rounded panels inset from the viewport, paper sections stay full-bleed. */
.panel { margin-inline: var(--gutter-panel); border-radius: var(--radius-panel); overflow: hidden; }
.panel + .panel { margin-top: var(--gutter-panel); }

/* Buttons: pills, espresso primary, linen secondary. Never flame. Pressed scales to 98%. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--size-button); padding: 0 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font: 600 1rem/1.25 var(--font-brand); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .2s var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn--primary, .btn--primary:visited { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn--primary:hover { background: var(--btn-primary-hover); }
.btn--secondary, .btn--secondary:visited { background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); border-color: var(--btn-secondary-border); }
.btn--secondary:hover { background: color-mix(in srgb, var(--btn-secondary-fg) 12%, var(--btn-secondary-bg)); }
.btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: .9375rem; }

/* Arrows on primary actions and text links: drawn in currentColor, nudge forward on hover. */
.btn--arrow::after, .link-more::after {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease-out);
}
.btn--arrow:hover::after, .link-more:hover::after { transform: translateX(4px); }
.link-more { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; align-self: flex-start; font-weight: 600; text-decoration: none; color: var(--fg); }
.link-more:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Header: a floating ink glass pill over the hero (web rule). The bar is the pill; the full-width
   header around it lets clicks through, so content beside the pill stays usable while it is stuck. */
.site-header { position: sticky; top: 12px; z-index: 50; height: 64px; margin: 24px 0 -76px; color: var(--linen); pointer-events: none; }
.site-header .site-header__bar {
  width: min(1176px, 100% - 2 * var(--space-5)); min-height: 64px; pointer-events: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6);
  border-radius: var(--radius-2xl); border: 1px solid rgba(233, 226, 218, .1); background: rgba(23, 23, 23, .66);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
}
/* The open menu covers page text, so it turns nearly solid to stay readable. */
.site-header[data-open] .site-header__bar { background: rgba(23, 23, 23, .94); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header .site-header__bar { background: rgba(23, 23, 23, .94); } }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { width: 108px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); order: 3; width: 100%; }
.nav a { text-decoration: none; font-weight: 600; font-size: .9375rem; padding: var(--space-3) 0; opacity: .78; transition: opacity .3s ease; }
.nav a:hover { opacity: 1; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgba(233, 226, 218, .08); font-size: .8125rem; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: var(--space-2) 10px; border-radius: var(--radius-pill); text-decoration: none; color: var(--linen); transition: background-color .3s ease; }
.lang-switch a:hover { background: rgba(233, 226, 218, .12); }
.lang-switch [aria-current] { background: var(--linen); color: var(--espresso); view-transition-name: lang-pill; }
.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  background: transparent; color: var(--linen); border: 2px solid var(--linen); font: 600 .9375rem var(--font-brand); cursor: pointer;
}
.js .nav { display: none; }
.js .site-header[data-open] .nav { display: flex; flex-direction: column; }
.site-header .btn--primary { display: none; min-height: 46px; padding: 0 20px; font-size: .9375rem; }
/* On a phone the logo, four language pills and Menu don't fit one row: the pills move into the open menu. */
@media (max-width: 599px) {
  .js .site-header:not([data-open]) .lang-switch { display: none; }
  .js .site-header[data-open] .lang-switch { order: 4; margin-bottom: var(--space-3); }
}
@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin: 0 auto 0 var(--space-3); flex-wrap: nowrap; column-gap: 26px; }
  .js .nav { display: flex; }
  .js .nav-toggle { display: none; }
  .brand { margin-right: 0; }
}
/* Four language pills plus the CTA only fit on one row from here; below, the hero CTA is right there. */
@media (min-width: 1100px) { .site-header .btn--primary { display: inline-flex; } }

/* Hero: the golf ball emerging from black, one short line on top. The header floats over its top. */
.hero { position: relative; background: #000; color: var(--linen); text-align: center; padding: clamp(140px, 15vw, 200px) 0 clamp(300px, 42vw, 540px); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/hero-ball.webp") center bottom / min(1000px, 120%) auto no-repeat; }
.hero .container { position: relative; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { font-style: normal; }
.hero .lead { max-width: 36ch; margin-inline: auto; margin-bottom: 40px; color: rgba(233, 226, 218, .82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* Tagline: the one place flame and marine pair. Set at 24px+ so flame passes large-text contrast on paper (3.4:1). */
.tagline { background: var(--paper); text-align: center; margin: 0; padding: clamp(56px, 7vw, 96px) var(--space-5) 0; font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.25; font-weight: 400; }
.tagline span { display: inline-block; }
.tagline strong { font-weight: 800; }
.tagline .ours { color: var(--flame); }
.tagline .yours { color: var(--marine); }
#servizi { padding-top: clamp(64px, 8vw, 112px); }

/* Services: a grid of rounded panels, 16px gutter. */
.cards { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.card { position: relative; display: block; border-radius: var(--radius-panel); overflow: hidden; aspect-ratio: 4 / 5; color: var(--paper); text-decoration: none; background: #000; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72)); }
.card__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: var(--space-8); }
.card__body h3 { margin: 0 0 .25em; color: var(--paper); font-size: 2rem; font-weight: 400; letter-spacing: -0.015em; }
.card__body p { margin: 0; font-size: 1rem; color: rgba(251, 251, 251, .84); }
/* Photo cards end in a linen arrow button that slides on hover. */
.card:not(.card--large) .card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: end; }
.card:not(.card--large) .card__body > * { grid-column: 1; }
.card:not(.card--large) .card__body::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%;
  background: var(--linen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327161B' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .5s var(--ease-out);
}
.card:hover .card__body::after { transform: translateX(4px); }
.card--large { grid-column: 1 / -1; display: grid; aspect-ratio: auto; background: var(--espresso); color: var(--linen); }
.card--large::after { display: none; }
.card--large .card__media { position: relative; min-height: 340px; overflow: hidden; }
.card--large .card__media img { position: absolute; }
.card--large .card__body { position: static; padding: clamp(32px, 5vw, 64px); }
.card--large h3 { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 400; letter-spacing: -0.02em; color: var(--linen); }
.card--large .card__body p { font-size: 1.0625rem; color: var(--linen); }
.ticks { list-style: none; padding: 0; margin: var(--space-6) 0 36px; }
.ticks li { padding: var(--space-4) 0 var(--space-4) 26px; position: relative; border-top: 1px solid var(--rule-light); }
.ticks li:last-child { border-bottom: 1px solid var(--rule-light); }
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(var(--space-4) + .5em); width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.ticks strong { display: block; font-weight: 700; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } .card--large { grid-template-columns: 5fr 7fr; } }

/* Sectors: a bento of four tiles on a linen panel. Paper and sky tiles for text, black tiles only
   behind the two photos shot on black (vending, pet wash). */
.chips { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--paper); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.bento { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; display: flex; min-height: 460px; border-radius: var(--radius-2xl); overflow: hidden; }
.tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(28px, 3.5vw, 40px); }
.tile h3 { margin: 0; font-size: clamp(1.625rem, 7vw, 2rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.015em; hyphens: auto; overflow-wrap: break-word; }   /* long German compounds */
.tile p { margin: 0; max-width: 46ch; }
.tile__media img, .tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile__media img, .tile:hover .tile__bg { transform: scale(1.05); }
.tile--paper { flex-wrap: wrap; background: var(--paper); }
.tile--paper .tile__body { flex: 1 1 280px; }
.tile--paper p { color: var(--text-secondary); }
.tile--paper .link-more { margin-top: auto; }
.tile__media { position: relative; flex: 1 1 240px; min-height: 260px; margin: var(--space-2); border-radius: 26px; overflow: hidden; }
.tile__media img { object-position: 40% 40%; }
.tile--photo { flex-direction: column; background: #000; color: var(--paper); }
.tile--photo h3 { color: var(--paper); }
.tile--photo p { color: rgba(251, 251, 251, .84); }
.tile--photo .tile__body { gap: var(--space-3); }
.tile--bottom { justify-content: flex-end; }
.tile--bottom .tile__body { padding-top: 96px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78) 50%); }
.tile--top .tile__body { padding-bottom: 96px; background: linear-gradient(0deg, transparent, rgba(0,0,0,.72) 50%); }
#settore-vending .tile__bg { object-position: 50% 26%; }
#settore-toelettature .tile__bg { object-position: 50% 62%; }
.tile--sky { flex-direction: column; background: var(--sky); color: var(--espresso); }
/* The app's swipe-to-unlock control, as an illustration (aria-hidden in the markup). */
.swipe { display: flex; align-items: center; height: 72px; max-width: 440px; margin: auto clamp(28px, 3.5vw, 40px) clamp(28px, 3.5vw, 40px); padding: var(--space-2); border-radius: var(--radius-pill); background: var(--espresso); color: var(--linen); font-weight: 600; }
.swipe__knob { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--linen); color: var(--espresso); }
.swipe__knob svg { width: 26px; height: 26px; }
.swipe__label { flex: 1; padding-right: 56px; text-align: center; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento > :nth-child(4n + 1), .bento > :nth-child(4n) { grid-column: span 7; }
  .bento > :nth-child(4n + 2), .bento > :nth-child(4n + 3) { grid-column: span 5; }
}

/* Steps: an airy row on paper, numbered, brand icon in a linen disc. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0 var(--space-8); }
.step { counter-increment: step; position: relative; display: grid; align-content: start; gap: var(--space-3); padding: 28px 0 var(--space-6); border-top: 1px solid var(--rule-dark); }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; top: 46px; right: 0; font-size: .875rem; font-weight: 700; color: var(--marine); }
.step__icon { width: 56px; height: 56px; padding: 14px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--linen); }
.step h3 { font-size: 1.25rem; line-height: 1.25; margin: 0; }
.step p { margin: 0; font-size: 1rem; color: var(--text-secondary); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); } }

/* App */
.split { display: grid; gap: 48px; align-items: center; }
.split__media img { width: 100%; max-width: 560px; margin-inline: auto; }
.section--black .lead { color: rgba(233, 226, 218, .82); }
.cols { display: grid; gap: var(--space-8); margin-top: 40px; }
.cols h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule-light); }
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cols li { padding-left: var(--space-6); position: relative; }
.cols li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sky); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .cols { grid-template-columns: 1fr 1fr; } }

/* Demo form: paper panel on sky. */
.demo__alt { margin: var(--space-8) 0 0; font-size: 1rem; }
.demo__alt a { color: var(--espresso); font-weight: 600; }
.form { background: var(--paper); border-radius: var(--radius-2xl); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea {
  width: 100%; font: 400 1rem var(--font-brand); color: var(--espresso); padding: 14px var(--space-4); caret-color: var(--flame);
  border: 2px solid var(--text-secondary); border-radius: var(--radius-md); background: #fff; /* web rule: 6.5:1 field edge */
  transition: border-color .25s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--espresso); }
/* Without JS the form cannot work (no server), so only the noscript mailto note shows. */
html:not(.js) .form > :not(noscript) { display: none; }
.form__error { color: var(--status-danger); font-weight: 600; min-height: 1.4em; margin: 0; }
.form__note { font-size: .875rem; color: var(--text-secondary); margin: 0; }
@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form > * { grid-column: 1 / -1; }
  .form > .field:nth-child(-n + 2) { grid-column: auto; }   /* name and email side by side */
}
@media (min-width: 900px) { .split--demo { grid-template-columns: 5fr 6fr; align-items: start; } }

/* FAQ: title on the left, questions on the right. */
.faq-wrap { display: grid; gap: 40px 72px; }
.faq-wrap .section__head { margin: 0; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.faq details { border-top: 1px solid var(--rule-dark); }
.faq details:last-child { border-bottom: 1px solid var(--rule-dark); }
.faq summary { cursor: pointer; padding: 22px 0; font-size: 1.25rem; line-height: 1.3; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); }
.faq summary::-webkit-details-marker { display: none; }
/* The one flame detail: the expand mark, which turns into a close mark. */
.faq summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(39, 22, 27, .2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF4000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .45s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 var(--space-6); max-width: 62ch; color: var(--text-secondary); }

/* Footer */
.site-footer { background: var(--espresso); color: var(--linen); padding: 72px 0 var(--space-8); font-size: .95rem; }
.site-footer.panel { margin-bottom: var(--gutter-panel); }
.footer__grid { display: grid; gap: 40px; margin-bottom: 56px; }
.site-footer h2 { font-size: 1rem; line-height: 1.3; font-weight: 400; letter-spacing: 0; color: var(--label); margin-bottom: var(--space-4); }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer__brand img.logo { width: 150px; margin-bottom: var(--space-4); }
.footer__brand p { font-size: 1.25rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.footer__legal { border-top: 1px solid var(--rule-light); padding-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; font-size: .875rem; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* Motion (web rule): one easing, short distances, nothing that loops except the swipe hint.
   The hero rises in on load; sections rise in as they scroll into view, driven by CSS scroll
   timelines (no JS). Browsers without scroll timelines show everything in place. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero__cta { animation: rise 1s var(--ease-out) both; }
  .hero .lead { animation-delay: .12s; }
  .hero__cta { animation-delay: .24s; }
  .hero::before { animation: ball 1.8s var(--ease-out) both; }
  .swipe__knob { animation: nudge 3.6s cubic-bezier(.45, 0, .2, 1) 1.2s infinite; }
  .faq details[open] p { animation: fade .5s var(--ease-out) both; }
  @supports (animation-timeline: view()) {
    .section__head, .card, .tile, .step, .split > *, .faq { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes ball { from { opacity: 0; transform: translateY(60px) scale(.96); } }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }
@keyframes nudge { 0%, 50%, 100% { transform: translateX(0); } 18% { transform: translateX(22px); } 32% { transform: translateX(0); } }

/* Language switch animation: cross-document view transition. The header stays put while its
   text crossfades, the current-language pill slides to the new language, and the page underneath
   fades up into the new language. Browsers without support just navigate. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
::view-transition-group(lang-pill) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation-duration: .3s; }
::view-transition-old(root) { animation: lang-out .25s ease-in both; }
::view-transition-new(root) { animation: lang-in .45s var(--ease-out) .1s both; }
@keyframes lang-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes lang-in { from { opacity: 0; transform: translateY(16px); } }

/* Simple text pages (privacy) */
.prose { max-width: 760px; padding: 64px 0 96px; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 400; line-height: 1.05; color: var(--espresso); }
.prose h2 { font-size: 1.5rem; font-weight: 600; margin-top: var(--space-8); color: var(--espresso); }
.notice { background: var(--linen); border-left: 6px solid var(--flame); padding: 14px 18px; border-radius: var(--radius-lg); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
