/* =====================================================================
   FRIGELA — CSS do site
   Blocos 1 a 6: cópia literal da implementação canônica de design-system.html (v1.1).
   Bloco 8: estilos específicos do site (seções, história em scroll e efeitos).
   ===================================================================== */

/* ---------- 1. FONTES (self-hosted, SIL OFL 1.1) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

/* ---------- 2. TOKENS ---------- */
:root {
  /* Marca — amostradas do logo oficial (navy e ciano); tons derivados para uso funcional */
  --color-navy-950: #110E2E;
  --color-navy-900: #1F1A4E;
  --color-navy-800: #2B2566;
  --color-navy-700: #3D3782;
  --color-navy-300: #B4B0DD;
  --color-ice-700: #0A78A0;
  --color-ice-500: #16B6E9;
  --color-ice-300: #7FD9F6;
  --color-ice-100: #D8F3FC;
  --color-frost-50: #F2F9FC;
  --color-white: #FFFFFF;
  --color-ink-600: #55527A;
  --color-line-200: #D6DDEA;
  --color-field-border: #8A91B2;

  /* Estados */
  --color-success-600: #13804F;
  --color-success-300: #5FD9A3;
  --color-error-600: #C42B3B;
  --color-error-300: #FF8F9A;

  /* Paleta do produto — aproximação amostrada de fotos e renders (pendente de referência oficial da fábrica) */
  --product-verde: #1F7D5A;        --product-verde-on: #FFFFFF;
  --product-vermelho: #C0303F;     --product-vermelho-on: #FFFFFF;
  --product-amarelo: #F2C21F;      --product-amarelo-on: #1F1A4E;
  --product-azul: #1597D6;         --product-azul-on: #1F1A4E;
  --product-preto: #15171C;        --product-preto-on: #FFFFFF;
  --product-branco: #EEF1F2;       --product-branco-on: #1F1A4E;
  --product-laranja: #EB860F;      --product-laranja-on: #1F1A4E;
  --product-azul-marinho: #1E2FA8; --product-azul-marinho-on: #FFFFFF;
  --product-roxo: #8E1FC2;         --product-roxo-on: #FFFFFF;
  --product-verde-ciano: #10BDB6;  --product-verde-ciano-on: #1F1A4E;
  /* Tom claro de fundo por cor (padrão Configurador): OKLCH com a claridade afastada da do produto (amarelo mais
     claro, branco num cinza mais fechado); navy-900, ink-600 e navy-700 ficam AA sobre os 10 tons */
  --product-verde-tone: #A9F0CE;
  --product-vermelho-tone: #FED1D0;
  --product-amarelo-tone: #FFEDBF;
  --product-azul-tone: #BDE4FF;
  --product-preto-tone: #DBDEE5;
  --product-branco-tone: #C8CBCC;
  --product-laranja-tone: #FED9BC;
  --product-azul-marinho-tone: #D1DEFE;
  --product-roxo-tone: #ECD2FE;
  --product-verde-ciano-tone: #9CF4EE;

  /* Tipografia */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-mega: clamp(4.5rem, 0.5rem + 17vw, 17rem);
  --text-display: clamp(3rem, 1.6rem + 5.6vw, 7rem);
  --text-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4.5rem);
  --text-h2: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --text-h4: 1.25rem;
  --text-lead: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --text-body-lg: 1.0625rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;
  --text-eyebrow: 0.8125rem;
  --text-button: 0.875rem;
  --text-number: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --leading-mega: 0.8;
  --leading-tight: 0.92;
  --leading-heading: 1.08;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --tracking-display: -0.02em;
  --tracking-eyebrow: 0.14em;
  --tracking-button: 0.04em;
  --stretch-display: 125%;
  --stretch-heading: 112%;
  --stretch-label: 110%;

  /* Espaçamento — ritmo de 8px, auxiliar de 4px */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;
  --section-pad: clamp(64px, 8vw, 120px);

  /* Layout */
  --container: 1280px;
  --container-narrow: 760px;
  --container-wide: 1440px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --header-offset: 16px;
  --header-space: calc(var(--header-h) + var(--header-offset) * 2);

  /* Raios */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-40: 40px;
  --radius-pill: 999px;

  /* Sombras e efeitos */
  --shadow-sm: 0 1px 2px rgb(17 14 46 / 0.08), 0 4px 12px -4px rgb(17 14 46 / 0.1);
  --shadow-md: 0 12px 32px -12px rgb(17 14 46 / 0.25);
  --shadow-lg: 0 32px 72px -24px rgb(17 14 46 / 0.45);
  --shadow-product: drop-shadow(0 32px 28px rgb(0 0 0 / 0.35));
  --glow-ice: 0 0 0 1px rgb(22 182 233 / 0.55), 0 0 32px -4px rgb(22 182 233 / 0.45);
  --fx-ice-light: radial-gradient(ellipse 70% 55% at 50% -8%, rgb(22 182 233 / 0.34), transparent 70%);

  /* Bordas e z-index */
  --border-1: 1px;
  --border-2: 2px;
  --z-base: 0;
  --z-raised: 10;
  --z-header: 100;
  --z-overlay: 200;
  --z-skip: 300;

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-scene: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 140ms;
  --duration-base: 240ms;
  --duration-slow: 480ms;
  --motion-reveal: 800ms;
  --motion-scene: 600ms;
}

/* ---------- 3. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-space) + var(--space-8)); }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-navy-900); background: var(--color-frost-50); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.fr-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fr-skip { position: fixed; z-index: var(--z-skip); top: var(--space-8); left: var(--space-8); padding: var(--space-12) var(--space-16); border-radius: var(--radius-8); background: var(--color-ice-500); color: var(--color-navy-950); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.fr-skip:focus-visible { transform: none; outline: 3px solid var(--color-navy-950); outline-offset: 2px; }

/* Superfícies: cada uma redefine os tokens semânticos usados pelos componentes */
.fr-surface-light, .fr-surface-white {
  --surface-bg: var(--color-frost-50); --surface-fg: var(--color-navy-900); --surface-muted: var(--color-ink-600);
  --surface-line: var(--color-line-200); --surface-raised: var(--color-white); --surface-accent: var(--color-ice-700);
  --btn-bg: var(--color-navy-900); --btn-fg: var(--color-white); --btn-bg-hover: var(--color-navy-800); --btn-glow: var(--shadow-md);
  --field-bg: var(--color-white); --field-border: var(--color-field-border);
  --focus-ring: var(--color-navy-900); --success: var(--color-success-600); --error: var(--color-error-600);
  background: var(--surface-bg); color: var(--surface-fg);
}
.fr-surface-white { --surface-bg: var(--color-white); --surface-raised: var(--color-frost-50); }
.fr-surface-dark, .fr-surface-brand {
  --surface-bg: var(--color-navy-950); --surface-fg: var(--color-white); --surface-muted: var(--color-navy-300);
  --surface-line: rgb(255 255 255 / 0.14); --surface-raised: var(--color-navy-900); --surface-accent: var(--color-ice-500);
  --btn-bg: var(--color-ice-500); --btn-fg: var(--color-navy-950); --btn-bg-hover: var(--color-ice-300); --btn-glow: var(--glow-ice);
  --field-bg: var(--color-navy-900); --field-border: rgb(255 255 255 / 0.4);
  --focus-ring: var(--color-ice-500); --success: var(--color-success-300); --error: var(--color-error-300);
  background: var(--surface-bg); color: var(--surface-fg);
}
.fr-surface-brand { --surface-bg: var(--color-navy-900); --surface-raised: var(--color-navy-800); }
.fr-surface-product {
  --surface-bg: var(--chapter-bg); --surface-fg: var(--chapter-fg); --surface-muted: var(--chapter-fg);
  --surface-line: color-mix(in srgb, var(--chapter-fg) 28%, transparent);
  --surface-raised: color-mix(in srgb, var(--chapter-fg) 10%, var(--chapter-bg)); --surface-accent: var(--chapter-fg);
  --btn-bg: var(--chapter-fg); --btn-fg: var(--chapter-bg); --btn-bg-hover: var(--chapter-fg); --btn-glow: var(--shadow-md);
  --focus-ring: var(--chapter-fg);
  background: var(--surface-bg); color: var(--surface-fg);
  transition: background-color var(--motion-scene) var(--ease-scene), color var(--motion-scene) var(--ease-scene);
}
[data-product="verde"] { --chapter-bg: var(--product-verde); --chapter-fg: var(--product-verde-on); }
[data-product="vermelho"] { --chapter-bg: var(--product-vermelho); --chapter-fg: var(--product-vermelho-on); }
[data-product="amarelo"] { --chapter-bg: var(--product-amarelo); --chapter-fg: var(--product-amarelo-on); }
[data-product="azul"] { --chapter-bg: var(--product-azul); --chapter-fg: var(--product-azul-on); }
[data-product="preto"] { --chapter-bg: var(--product-preto); --chapter-fg: var(--product-preto-on); }
[data-product="branco"] { --chapter-bg: var(--product-branco); --chapter-fg: var(--product-branco-on); }
[data-product="laranja"] { --chapter-bg: var(--product-laranja); --chapter-fg: var(--product-laranja-on); }
[data-product="azul-marinho"] { --chapter-bg: var(--product-azul-marinho); --chapter-fg: var(--product-azul-marinho-on); }
[data-product="roxo"] { --chapter-bg: var(--product-roxo); --chapter-fg: var(--product-roxo-on); }
[data-product="verde-ciano"] { --chapter-bg: var(--product-verde-ciano); --chapter-fg: var(--product-verde-ciano-on); }

/* Layout */
.fr-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.fr-container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.fr-container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.fr-section { padding-block: var(--section-pad); }
.fr-stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-16)); }
.fr-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-16)); }

/* ---------- COMPONENT: TYPOGRAPHY — CANONICAL IMPLEMENTATION ---------- */
.fr-mega { font-family: var(--font-display); font-size: var(--text-mega); font-weight: 900; font-style: italic; font-stretch: var(--stretch-display); line-height: var(--leading-mega); letter-spacing: var(--tracking-display); text-transform: uppercase; }
.fr-display { font-family: var(--font-display); font-size: var(--text-display); font-weight: 900; font-style: italic; font-stretch: var(--stretch-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); text-transform: uppercase; }
.fr-h1 { font-family: var(--font-display); font-size: var(--text-h1); font-weight: 850; font-style: italic; font-stretch: var(--stretch-heading); line-height: var(--leading-tight); letter-spacing: -0.01em; text-transform: uppercase; }
.fr-h2 { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 800; font-style: italic; font-stretch: 108%; line-height: var(--leading-heading); letter-spacing: -0.01em; }
.fr-h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 750; font-stretch: 104%; line-height: 1.15; }
.fr-h4 { font-family: var(--font-display); font-size: var(--text-h4); font-weight: 700; font-stretch: 100%; line-height: var(--leading-snug); }
.fr-lead { font-size: var(--text-lead); font-weight: 500; line-height: 1.5; }
.fr-body-lg { font-size: var(--text-body-lg); line-height: var(--leading-body); }
.fr-small { font-size: var(--text-small); line-height: 1.5; }
.fr-caption { font-size: var(--text-caption); font-weight: 600; line-height: 1.4; letter-spacing: 0.02em; }
.fr-muted { color: var(--surface-muted); }
.fr-number { font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-variant-numeric: tabular-nums; }
.fr-eyebrow { display: inline-flex; align-items: center; gap: var(--space-12); font-family: var(--font-display); font-size: var(--text-eyebrow); font-weight: 700; font-stretch: var(--stretch-heading); letter-spacing: var(--tracking-eyebrow); line-height: 1.2; text-transform: uppercase; color: var(--surface-accent); }
.fr-eyebrow::before { content: ""; flex: none; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transform: skewX(-30deg); }
.fr-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--surface-accent); transition: text-decoration-thickness var(--duration-fast) var(--ease); }
.fr-link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) { .fr-link:hover { text-decoration-thickness: 2px; } }

/* ---------- COMPONENT: ICON — CANONICAL IMPLEMENTATION (Lucide + Font Awesome Brands, sprite local) ---------- */
.fr-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.fr-icon--sm { width: 18px; height: 18px; }
.fr-icon--lg { width: 32px; height: 32px; }
.fr-icon--brand { fill: currentColor; stroke: none; }

/* ---------- COMPONENT: BUTTON — CANONICAL IMPLEMENTATION ---------- */
.fr-btn {
  --btn-h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-12);
  max-width: 100%; min-height: var(--btn-h); padding: var(--space-12) var(--space-24);
  border: var(--border-2) solid transparent; border-radius: var(--radius-8);
  font-family: var(--font-display); font-size: var(--text-button); font-weight: 800; font-stretch: var(--stretch-label);
  letter-spacing: var(--tracking-button); line-height: 1.1; text-align: center; text-transform: uppercase; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-base) var(--ease), color var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease), transform var(--duration-fast) var(--ease);
}
.fr-btn .fr-icon { width: 20px; height: 20px; transition: transform var(--duration-base) var(--ease); }
.fr-btn--primary { background: var(--btn-bg); color: var(--btn-fg); --spinner: var(--btn-fg); }
.fr-btn--secondary { background: transparent; color: var(--surface-fg); border-color: currentColor; --spinner: var(--surface-fg); }
.fr-btn--sm { --btn-h: 44px; padding-inline: var(--space-16); font-size: 0.75rem; }
.fr-btn--lg { --btn-h: 60px; padding-inline: var(--space-32); font-size: 0.9375rem; }
.fr-btn--icon { width: var(--btn-h); padding: 0; }
.fr-btn--block { width: 100%; }
.fr-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.fr-btn:active { transform: scale(0.98); }
.fr-btn:disabled, .fr-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.fr-btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.fr-btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; width: 20px; height: 20px; margin: auto; border: 2px solid var(--spinner); border-right-color: transparent; border-radius: 50%; animation: fr-spin 0.8s linear infinite; }
@keyframes fr-spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .fr-btn--primary:not(:disabled):not([aria-disabled="true"]):hover { background: var(--btn-bg-hover); box-shadow: var(--btn-glow); }
  .fr-btn--secondary:not(:disabled):not([aria-disabled="true"]):hover { background: color-mix(in srgb, var(--surface-fg) 10%, transparent); }
  .fr-btn:hover .fr-icon--move { transform: translateX(4px); }
}

/* ---------- COMPONENT: CHIP — CANONICAL IMPLEMENTATION ---------- */
.fr-chip { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 32px; padding: 0 var(--space-12); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-pill); font-size: var(--text-small); font-weight: 600; line-height: 1.2; color: var(--surface-fg); white-space: nowrap; }
.fr-chip .fr-icon { width: 16px; height: 16px; color: var(--surface-accent); }

/* ---------- COMPONENT: PATENT SEAL — CANONICAL IMPLEMENTATION ---------- */
.fr-seal { display: inline-flex; align-items: center; gap: var(--space-12); }
.fr-seal__img { width: 56px; height: 56px; object-fit: contain; }
.fr-seal__text { display: flex; flex-direction: column; font-size: var(--text-small); line-height: 1.3; }
.fr-seal__text strong { font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-label); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- COMPONENT: HEADER — CANONICAL IMPLEMENTATION (flutuante) ---------- */
.fr-header { position: fixed; top: var(--header-offset); right: 0; left: 0; z-index: var(--z-header); background: none; color: var(--surface-fg); pointer-events: none; }
.fr-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); min-height: var(--header-h); padding: 0 var(--space-8) 0 var(--space-16); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-16); background: color-mix(in srgb, var(--color-navy-950) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.6); pointer-events: auto; transition: background-color var(--duration-slow) var(--ease), border-color var(--duration-slow) var(--ease), box-shadow var(--duration-slow) var(--ease); }
.fr-header--overlay:not(.is-scrolled) .fr-header__bar { background: color-mix(in srgb, var(--color-navy-950) 45%, transparent); border-color: rgb(255 255 255 / 0.08); box-shadow: none; }
.fr-header__logo { display: inline-flex; flex: none; border-radius: var(--radius-8); }
.fr-header__logo img { width: auto; height: 40px; }
.fr-header__logo:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.fr-nav { display: none; }
.fr-nav__list { display: flex; align-items: center; gap: var(--space-4); padding: 0; list-style: none; }
.fr-nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-12); border-radius: var(--radius-8); font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700; font-stretch: 108%; letter-spacing: 0.05em; text-transform: uppercase; color: inherit; text-decoration: none; white-space: nowrap; }
.fr-nav__link::after { content: ""; position: absolute; right: var(--space-12); bottom: 8px; left: var(--space-12); height: 2px; background: var(--surface-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease); }
.fr-nav__link[aria-current="true"], .fr-nav__link[aria-current="page"] { color: var(--surface-accent); }
.fr-nav__link[aria-current="true"]::after, .fr-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.fr-nav__link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.fr-header__actions { display: flex; align-items: center; gap: var(--space-8); }
.fr-header__cta { display: none; }
@media (hover: hover) and (pointer: fine) { .fr-nav__link:hover::after { transform: scaleX(1); } }
@media (min-width: 560px) { .fr-header__cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .fr-nav { display: flex; }
  .fr-menu-toggle { display: none; }
}
/* Menu mobile */
.fr-menu { position: fixed; inset: 0; z-index: var(--z-overlay); display: flex; flex-direction: column; gap: var(--space-32); padding: calc(var(--header-space) + var(--space-16)) var(--gutter) var(--space-40); pointer-events: auto; overflow-y: auto; overscroll-behavior: contain; background: var(--color-navy-950); color: var(--color-white); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--duration-base) var(--ease), transform var(--duration-base) var(--ease), visibility 0s linear var(--duration-base); }
.fr-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.fr-menu__top { position: absolute; top: var(--header-offset); right: var(--gutter); left: var(--gutter); display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 0 var(--space-8) 0 var(--space-16); }
.fr-menu__top img { width: auto; height: 40px; }
.fr-menu__list { display: flex; flex-direction: column; padding: 0; list-style: none; }
.fr-menu__link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 64px; border-bottom: var(--border-1) solid var(--surface-line); font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.25rem); font-weight: 850; font-style: italic; font-stretch: var(--stretch-heading); text-transform: uppercase; color: inherit; text-decoration: none; }
.fr-menu__link .fr-icon { color: var(--surface-accent); }
.fr-menu__link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.fr-menu__contact { display: flex; flex-direction: column; gap: var(--space-12); color: var(--surface-muted); }
.fr-lock { overflow: hidden; }
.no-js .fr-header__bar { flex-wrap: wrap; }
.no-js .fr-nav { display: flex; overflow-x: auto; }
.no-js .fr-menu-toggle, .no-js .fr-menu { display: none; }

/* ---------- COMPONENT: COLOR SWATCHES — CANONICAL IMPLEMENTATION ---------- */
.fr-swatches { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; margin: 0; padding: 0; border: 0; }
.fr-swatches__legend { padding: 0; margin-bottom: var(--space-16); /* exceção: legend não participa do gap do fieldset */ font-family: var(--font-display); font-size: var(--text-eyebrow); font-weight: 700; font-stretch: var(--stretch-heading); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--surface-accent); }
.fr-swatches__list { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.fr-swatch { position: relative; display: inline-flex; align-items: center; gap: var(--space-8); min-height: 48px; padding: var(--space-4) var(--space-16) var(--space-4) var(--space-4); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-pill); background: var(--surface-raised); font-size: var(--text-small); font-weight: 600; cursor: pointer; transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease); }
.fr-swatch__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fr-swatch__dot { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--swatch); color: var(--swatch-on); box-shadow: inset 0 0 0 1px rgb(17 14 46 / 0.16); }
.fr-swatch__dot .fr-icon { width: 18px; height: 18px; stroke-width: 2.5; opacity: 0; transform: scale(0.6); transition: opacity var(--duration-fast) var(--ease), transform var(--duration-base) var(--ease); }
.fr-swatch__input:checked ~ .fr-swatch__dot .fr-icon { opacity: 1; transform: none; }
.fr-swatch:has(.fr-swatch__input:checked) { border-color: var(--surface-fg); box-shadow: inset 0 0 0 1px var(--surface-fg); font-weight: 800; }
.fr-swatch:has(.fr-swatch__input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.fr-swatches--compact .fr-swatch { padding: var(--space-4); }
.fr-swatches--compact .fr-swatch__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fr-swatches__info { display: flex; flex-direction: column; gap: var(--space-4); min-height: 3.2em; max-width: 46ch; }
.fr-swatches__info strong { font-family: var(--font-display); font-size: var(--text-h4); font-weight: 800; font-style: italic; font-stretch: var(--stretch-heading); text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .fr-swatch:hover { border-color: var(--surface-fg); } }

/* ---------- COMPONENT: SEGMENTED TABS — CANONICAL IMPLEMENTATION ---------- */
.fr-seg { --seg-count: 3; --seg-index: 0; position: relative; display: flex; width: min(100%, 560px); padding: var(--space-4); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-pill); background: var(--surface-raised); }
.fr-seg__thumb { position: absolute; top: var(--space-4); bottom: var(--space-4); left: var(--space-4); width: calc((100% - var(--space-8)) / var(--seg-count)); border-radius: var(--radius-pill); background: var(--btn-bg); transform: translateX(calc(100% * var(--seg-index))); transition: transform var(--duration-slow) var(--ease); }
.fr-seg__tab { position: relative; z-index: 1; display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: var(--space-8); min-width: 0; min-height: 48px; padding: 0 var(--space-12); border: 0; border-radius: var(--radius-pill); background: none; color: var(--surface-muted); font-family: var(--font-display); font-size: var(--text-small); font-weight: 750; font-stretch: var(--stretch-label); letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer; transition: color var(--duration-base) var(--ease); }
.fr-seg__tab .fr-icon { width: 18px; height: 18px; }
.fr-seg__tab[aria-selected="true"] { color: var(--btn-fg); }
.fr-seg__tab:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.fr-seg-panel[hidden] { display: none; }
.no-js .fr-seg { display: none; }
@media (max-width: 419px) { .fr-seg__tab .fr-icon { display: none; } }
@media (hover: hover) and (pointer: fine) { .fr-seg__tab[aria-selected="false"]:hover { color: var(--surface-fg); } }

/* ---------- COMPONENT: HOTSPOT — CANONICAL IMPLEMENTATION ---------- */
.fr-anatomy { display: flex; flex-direction: column; align-items: center; gap: var(--space-32); }
.fr-anatomy__stage { position: relative; width: min(100%, 420px); }
.fr-anatomy__img { width: 100%; filter: var(--shadow-product); }
.fr-hotspots { display: flex; flex-direction: column; gap: var(--space-12); width: 100%; padding: 0; list-style: none; }
.fr-hotspot { display: flex; align-items: flex-start; gap: var(--space-12); }
.fr-hotspot__dot { position: relative; flex: none; width: 14px; height: 14px; margin-top: 4px; /* exceção: alinha o ponto à primeira linha do título */ border-radius: 50%; background: var(--surface-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--surface-accent) 28%, transparent); }
.fr-hotspot__dot::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--surface-accent); border-radius: 50%; animation: fr-ping 2.4s var(--ease) infinite; }
@keyframes fr-ping { 0% { opacity: 0.8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(2.4); } }
.fr-hotspot__line { display: none; }
.fr-hotspot__card { display: flex; flex-direction: column; gap: var(--space-4); max-width: 260px; }
.fr-hotspot__title { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 800; font-stretch: var(--stretch-label); letter-spacing: 0.03em; line-height: 1.2; text-transform: uppercase; }
.fr-hotspot__text { font-size: var(--text-small); line-height: 1.45; color: var(--surface-muted); }
@media (min-width: 1024px) {
  .fr-anatomy__stage { width: min(100%, 440px); }
  .fr-hotspots { position: absolute; inset: 0; display: block; }
  .fr-hotspot { --len: 88px; position: absolute; top: var(--y); left: var(--x); align-items: center; gap: 0; width: max-content; transform: translate(-7px, -50%); }
  .fr-hotspot[data-side="left"] { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -50%); }
  .fr-hotspot__dot { margin-top: 0; }
  .fr-hotspot__line { display: block; flex: none; width: var(--len); height: 1px; background: color-mix(in srgb, var(--surface-fg) 55%, transparent); transform-origin: left; }
  .fr-hotspot[data-side="left"] .fr-hotspot__line { transform-origin: right; }
  .fr-hotspot__card { padding: var(--space-12) var(--space-16); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-16); background: var(--surface-raised); box-shadow: var(--shadow-md); }
}

/* ---------- COMPONENT: DIMENSION LINE (COTA) — CANONICAL IMPLEMENTATION ---------- */
.fr-measure { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-64); }
.fr-measure__stage { position: relative; flex: none; width: clamp(140px, 40vw, 220px); margin: var(--space-48) var(--space-96); /* exceção: reserva a área das cotas e rótulos posicionados fora da imagem */ }
.fr-measure__img { width: 100%; filter: var(--shadow-product); }
.fr-dim { position: absolute; color: var(--surface-accent); pointer-events: none; }
.fr-dim::before, .fr-dim::after { content: ""; position: absolute; background: currentColor; }
.fr-dim__line { position: absolute; inset: 0; background: currentColor; transition: transform var(--motion-reveal) var(--ease-reveal); }
.fr-dim--v { top: var(--y); left: var(--x); width: 1px; height: var(--len); }
.fr-dim--v::before, .fr-dim--v::after { left: -6px; width: 13px; height: 1px; }
.fr-dim--v::before { top: 0; }
.fr-dim--v::after { bottom: 0; }
.fr-dim--v .fr-dim__line { transform-origin: bottom; }
.fr-dim--h { top: var(--y); left: var(--x); width: var(--len); height: 1px; }
.fr-dim--h::before, .fr-dim--h::after { top: -6px; width: 1px; height: 13px; }
.fr-dim--h::before { left: 0; }
.fr-dim--h::after { right: 0; }
.fr-dim--h .fr-dim__line { transform-origin: left; }
.fr-dim__value { position: absolute; display: inline-flex; align-items: baseline; gap: var(--space-4); font-family: var(--font-display); font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem); font-weight: 800; font-stretch: 100%; font-variant-numeric: tabular-nums; line-height: 1; color: var(--surface-fg); white-space: nowrap; }
.fr-dim__value small { font-size: 0.75em; font-weight: 700; color: var(--surface-muted); }
.fr-dim--v .fr-dim__value { top: 50%; right: var(--space-16); transform: translateY(-50%); }
.fr-dim--v.fr-dim--label-right .fr-dim__value { right: auto; left: var(--space-16); }
.fr-dim--h .fr-dim__value { top: var(--space-16); left: 50%; transform: translateX(-50%); }
.fr-dim--h.fr-dim--label-top .fr-dim__value { top: auto; bottom: var(--space-16); }
.js .fr-measure:not(.is-drawn) .fr-dim--v .fr-dim__line { transform: scaleY(0); }
.js .fr-measure:not(.is-drawn) .fr-dim--h .fr-dim__line { transform: scaleX(0); }
@media (max-width: 767px) { .fr-dim--secondary { display: none; } .fr-measure__stage { margin-inline: var(--space-80); /* exceção: mesma reserva das cotas, menor no celular */ } }
/* Ficha técnica em tabela: equivalente acessível das cotas */
.fr-spec { width: min(100%, 520px); border-collapse: collapse; font-size: var(--text-small); }
.fr-spec caption { padding-bottom: var(--space-16); font-family: var(--font-display); font-size: var(--text-eyebrow); font-weight: 700; font-stretch: var(--stretch-heading); letter-spacing: var(--tracking-eyebrow); text-align: left; text-transform: uppercase; color: var(--surface-accent); }
.fr-spec th, .fr-spec td { padding: var(--space-12) 0; border-bottom: var(--border-1) solid var(--surface-line); text-align: left; vertical-align: top; }
.fr-spec th { padding-right: var(--space-16); font-weight: 600; color: var(--surface-muted); }
.fr-spec td { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.fr-spec tbody tr:first-child td { color: var(--surface-accent); }

/* ---------- COMPONENT: CARD — CANONICAL IMPLEMENTATION ---------- */
.fr-card { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; padding: var(--space-32); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-24); background: var(--surface-raised); color: var(--surface-fg); }
.fr-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: var(--radius-16); background: color-mix(in srgb, var(--color-ice-500) 16%, transparent); color: var(--surface-accent); }
.fr-card__media { display: flex; align-items: flex-end; justify-content: center; height: 180px; margin: calc(var(--space-32) * -1) calc(var(--space-32) * -1) 0; /* exceção: mídia encosta nas bordas do card */ overflow: hidden; border-bottom: var(--border-1) solid var(--surface-line); background: var(--fx-ice-light), var(--color-navy-900); }
.fr-card__media img { height: 88%; width: auto; object-fit: contain; filter: var(--shadow-product); }
.fr-card__title { font-family: var(--font-display); font-size: var(--text-h4); font-weight: 800; font-stretch: var(--stretch-label); line-height: 1.2; text-transform: uppercase; }
.fr-card__text { color: var(--surface-muted); }

/* ---------- COMPONENT: BENTO — CANONICAL IMPLEMENTATION (Grid justificado: destaque ocupa duas linhas) ---------- */
.fr-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-16); padding: 0; list-style: none; }
.fr-bento > li { display: flex; min-width: 0; }
.fr-bento > li > .fr-card { flex: 1 1 auto; }
.fr-card--highlight { justify-content: space-between; gap: var(--space-32); border-color: transparent; background: var(--color-ice-500); color: var(--color-navy-950); --surface-muted: var(--color-navy-900); --surface-accent: var(--color-navy-950); }
.fr-bignumber { display: flex; align-items: flex-start; gap: var(--space-8); font-family: var(--font-display); font-size: clamp(5rem, 3.5rem + 6vw, 9rem); font-weight: 900; font-style: italic; font-stretch: var(--stretch-display); line-height: 0.82; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fr-bignumber__unit { font-size: 0.34em; line-height: 1.1; letter-spacing: 0; }
@media (min-width: 640px) {
  .fr-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr-bento__highlight { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .fr-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fr-bento__highlight { grid-column: 3; grid-row: 1 / span 2; }
  .fr-bento__highlight .fr-card { padding: var(--space-48) var(--space-40); }
}

/* ---------- COMPONENT: COLOR CARD — CANONICAL IMPLEMENTATION ---------- */
.fr-color-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-16); min-width: 0; padding: var(--space-24); overflow: hidden; border-radius: var(--radius-24); background: var(--chapter-bg); color: var(--chapter-fg); }
.fr-color-card__media { display: flex; justify-content: center; height: 260px; }
.fr-color-card__media img { width: auto; height: 100%; object-fit: contain; filter: var(--shadow-product); transition: transform var(--duration-slow) var(--ease); }
.fr-color-card__name { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 850; font-style: italic; font-stretch: var(--stretch-heading); line-height: 1; text-transform: uppercase; }
.fr-color-card__text { font-size: var(--text-small); }
@media (hover: hover) and (pointer: fine) { .fr-color-card:hover .fr-color-card__media img { transform: translateY(-8px) rotate(-4deg); } }

/* ---------- COMPONENT: TESTIMONIAL — CANONICAL IMPLEMENTATION ---------- */
.fr-quotes { display: flex; flex-wrap: wrap; gap: var(--space-16); padding: 0; list-style: none; }
.fr-quotes > li { display: flex; flex: 1 1 100%; min-width: 0; }
.fr-quote { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: space-between; gap: var(--space-24); padding: var(--space-32); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-24); background: var(--surface-raised); }
.fr-quote__text { position: relative; display: flex; flex-direction: column; gap: var(--space-16); font-size: var(--text-body-lg); line-height: var(--leading-body); }
.fr-quote__text::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--surface-accent); transform: skewX(-30deg); }
.fr-quote__author { font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-label); letter-spacing: 0.03em; text-transform: uppercase; }
@media (min-width: 768px) { .fr-quotes > li { flex-basis: calc((100% - var(--space-16)) / 2); } }
@media (max-width: 639px) {
  .fr-quotes.fr-snap { flex-direction: row; flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); /* exceção: faixa encosta nas bordas da tela */ padding: var(--space-8) var(--gutter) var(--space-16); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .fr-quotes.fr-snap::-webkit-scrollbar { display: none; }
  .fr-quotes.fr-snap > li { flex: 0 0 84%; scroll-snap-align: start; }
}

/* ---------- COMPONENT: FAQ ACCORDION — CANONICAL IMPLEMENTATION ---------- */
.fr-faq { display: flex; flex-direction: column; border-top: var(--border-1) solid var(--surface-line); }
.fr-faq__item { border-bottom: var(--border-1) solid var(--surface-line); }
.fr-faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 72px; padding: var(--space-16) 0; font-family: var(--font-display); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 750; font-stretch: 104%; line-height: 1.3; list-style: none; cursor: pointer; }
.fr-faq__q::-webkit-details-marker { display: none; }
.fr-faq__q:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-4); }
.fr-faq__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: var(--border-1) solid var(--surface-line); border-radius: 50%; color: var(--surface-accent); transition: transform var(--duration-base) var(--ease), background-color var(--duration-base) var(--ease); }
.fr-faq__item[open] .fr-faq__icon { transform: rotate(45deg); background: color-mix(in srgb, var(--surface-accent) 14%, transparent); }
.fr-faq__a { display: flex; flex-direction: column; gap: var(--space-12); max-width: 68ch; padding-bottom: var(--space-24); color: var(--surface-muted); }
@media (hover: hover) and (pointer: fine) { .fr-faq__q:hover { color: var(--surface-accent); } }
@supports (interpolate-size: allow-keywords) {
  .fr-faq { interpolate-size: allow-keywords; }
  .fr-faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--duration-slow) var(--ease), content-visibility var(--duration-slow) allow-discrete; }
  .fr-faq__item[open]::details-content { block-size: auto; }
}

/* ---------- COMPONENT: FORM FIELD — CANONICAL IMPLEMENTATION ---------- */
.fr-form { display: flex; flex-direction: column; gap: var(--space-24); }
.fr-form__row { display: flex; flex-wrap: wrap; gap: var(--space-24); }
.fr-form__row > .fr-field { flex: 1 1 240px; }
.fr-field { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.fr-label { font-size: var(--text-small); font-weight: 700; }
.fr-label__req { color: var(--error); }
.fr-input, .fr-select, .fr-textarea { width: 100%; min-height: 52px; padding: var(--space-12) var(--space-16); border: var(--border-1) solid var(--field-border); border-radius: var(--radius-8); background: var(--field-bg); color: var(--surface-fg); font-size: var(--text-body); line-height: 1.4; transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease); }
.fr-input::placeholder, .fr-textarea::placeholder { color: var(--surface-muted); opacity: 1; }
.fr-textarea { min-height: 140px; resize: vertical; }
.fr-select-wrap { position: relative; display: flex; }
.fr-select { appearance: none; padding-right: var(--space-48); cursor: pointer; }
.fr-select-wrap .fr-icon { position: absolute; top: 50%; right: var(--space-16); width: 20px; height: 20px; transform: translateY(-50%); pointer-events: none; color: var(--surface-muted); }
.fr-input:focus-visible, .fr-select:focus-visible, .fr-textarea:focus-visible { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 30%, transparent); }
.fr-field__hint { font-size: var(--text-small); color: var(--surface-muted); }
.fr-field__msg { display: none; align-items: center; gap: var(--space-8); font-size: var(--text-small); font-weight: 600; }
.fr-field__msg .fr-icon { width: 18px; height: 18px; }
.fr-field.is-error .fr-input, .fr-field.is-error .fr-select, .fr-field.is-error .fr-textarea { border-color: var(--error); border-width: var(--border-2); }
.fr-field.is-error .fr-field__msg--error { display: flex; color: var(--error); }
.fr-field.is-success .fr-input, .fr-field.is-success .fr-select, .fr-field.is-success .fr-textarea { border-color: var(--success); }
.fr-field.is-success .fr-field__msg--success { display: flex; color: var(--success); }
.fr-input:disabled, .fr-select:disabled, .fr-textarea:disabled { opacity: 0.55; cursor: not-allowed; background: color-mix(in srgb, var(--surface-fg) 6%, var(--field-bg)); }
.fr-form__status { display: flex; align-items: flex-start; gap: var(--space-12); padding: var(--space-16); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-8); background: var(--surface-raised); font-size: var(--text-small); }
.fr-form__status[hidden] { display: none; }
.fr-form__status .fr-icon { color: var(--surface-accent); }

/* ---------- COMPONENT: CONTACT LIST — CANONICAL IMPLEMENTATION ---------- */
.fr-contact-list { display: flex; flex-direction: column; gap: var(--space-16); padding: 0; list-style: none; }
.fr-contact-list li { display: flex; align-items: flex-start; gap: var(--space-16); }
.fr-contact-list .fr-icon { color: var(--surface-accent); }
.fr-contact-list span { display: flex; flex-direction: column; }
.fr-contact-list small { font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--surface-muted); }

/* ---------- COMPONENT: STATS (AGUARDANDO DADOS) — CANONICAL IMPLEMENTATION ---------- */
.fr-stats { display: flex; flex-wrap: wrap; gap: var(--space-32); padding: 0; list-style: none; }
.fr-stat { display: flex; flex-direction: column; gap: var(--space-4); }
.fr-stat__value { font-family: var(--font-display); font-size: var(--text-number); font-weight: 900; font-style: italic; font-stretch: var(--stretch-heading); line-height: 1; font-variant-numeric: tabular-nums; }
.fr-stat__label { font-size: var(--text-small); color: var(--surface-muted); }

/* ---------- COMPONENT: MARQUEE — CANONICAL IMPLEMENTATION (efeito LogoLoop) ---------- */
.fr-marquee { overflow: hidden; border-block: var(--border-1) solid var(--surface-line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.fr-marquee__track { display: flex; width: max-content; animation: fr-loop 38s linear infinite; }
.fr-marquee__group { display: flex; }
.fr-marquee__item { display: inline-flex; align-items: center; gap: var(--space-24); padding: var(--space-24); font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 850; font-style: italic; font-stretch: var(--stretch-heading); text-transform: uppercase; white-space: nowrap; }
.fr-marquee__item .fr-icon { color: var(--surface-accent); }
.fr-marquee--ice { border-block-color: transparent; background: var(--color-ice-500); color: var(--color-navy-950); --surface-accent: var(--color-navy-900); }
@keyframes fr-loop { to { transform: translateX(-50%); } }

/* ---------- COMPONENT: MARQUEE — VARIANT QUOTES (depoimentos em loop) ----------
   Sem JS ou com movimento reduzido: faixa parada com rolagem e scroll-snap. Com JS (.is-looping), initQuoteLoop clona o
   grupo só o bastante para cobrir a largura e define --loop-shift (largura de um grupo) e --loop-duration (~34 px/s). */
.fr-marquee--quotes { border-block: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
.fr-marquee--quotes::-webkit-scrollbar { display: none; }
.fr-marquee--quotes .fr-marquee__track { padding-inline-start: var(--gutter); animation: none; }
/* padding no fim do grupo = gap entre cartões: emenda sem salto entre um grupo e o seguinte */
.fr-marquee--quotes .fr-quotes { flex-wrap: nowrap; gap: var(--space-24); margin: 0; padding: var(--space-8) var(--space-24) var(--space-16) 0; }
.fr-marquee--quotes .fr-quotes > li { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; }
.fr-marquee--quotes.is-looping { overflow: hidden; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fr-marquee--quotes.is-looping .fr-marquee__track { padding-inline-start: 0; animation: fr-loop-shift var(--loop-duration, 50s) linear infinite; }
/* pausa para ler: mouse em cima ou foco do teclado */
.fr-marquee--quotes.is-looping:hover .fr-marquee__track, .fr-marquee--quotes.is-looping:focus-within .fr-marquee__track { animation-play-state: paused; }
@keyframes fr-loop-shift { to { transform: translateX(calc(var(--loop-shift, 50%) * -1)); } }

/* ---------- COMPONENT: LOGO PICKER — CANONICAL IMPLEMENTATION (sem logo, logo Frigela ou imagem enviada + texto) ---------- */
.fr-logo-picker { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; margin: 0; padding: 0; border: 0; }
.fr-logo-picker__list { display: flex; gap: var(--space-8); }
.fr-logo-option { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: var(--space-8); min-width: 0; padding: var(--space-12) var(--space-8); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-16); background: var(--surface-raised); color: var(--surface-fg); font-size: var(--text-caption); font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease), transform var(--duration-base) var(--ease); }
.fr-logo-option__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fr-logo-option__thumb { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: var(--surface-muted); }
.fr-logo-option__thumb img { width: 100%; height: 100%; object-fit: contain; }
.fr-logo-option__thumb .fr-icon { width: 28px; height: 28px; }
.fr-logo-option:has(.fr-logo-option__input:checked) { border-color: var(--color-ice-500); box-shadow: var(--glow-ice); }
.fr-logo-option:has(.fr-logo-option__input:checked) .fr-logo-option__thumb { color: var(--color-ice-500); }
.fr-logo-option:has(.fr-logo-option__input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.fr-logo-upload { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); border: var(--border-1) dashed rgb(22 182 233 / 0.55); border-radius: var(--radius-16); color: var(--surface-fg); cursor: pointer; transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease), background-color var(--duration-base) var(--ease); }
.fr-logo-upload .fr-icon { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgb(22 182 233 / 0.14); color: var(--color-ice-500); }
.fr-logo-upload__text { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; font-size: var(--text-small); line-height: 1.3; }
.fr-logo-upload__text span { color: var(--surface-muted); font-size: var(--text-caption); }
.fr-logo-upload.is-over, .fr-logo-upload.is-attention { border-style: solid; border-color: var(--color-ice-500); background: rgb(22 182 233 / 0.08); box-shadow: var(--glow-ice); }
.fr-logo-file:focus-visible + .fr-logo-upload { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.fr-logo-picker__note { color: var(--surface-muted); }
@media (hover: hover) and (pointer: fine) {
  .fr-logo-option:hover { border-color: var(--color-ice-500); transform: translateY(-2px); }
  .fr-logo-upload:hover { border-color: var(--color-ice-500); background: rgb(22 182 233 / 0.06); }
}

/* ---------- COMPONENT: PRODUCT PREVIEW — CANONICAL IMPLEMENTATION (logo e texto sobre o render) ----------
   Quadrado do decalque sobre o render, posicionado pela âncora "decal" do renders.json (padrão: render "liso");
   Frigela.renderDecal desenha logo e texto com o mesmo layout do decalque 3D. */
.fr-product-preview { --decal-x: 43.61%; --decal-y: 46.28%; --decal-size: 50.5%; position: relative; display: flex; }
.fr-product-preview__decal { position: absolute; top: var(--decal-y); left: var(--decal-x); width: var(--decal-size); height: auto; aspect-ratio: 1; overflow: visible; transform: translate(-50%, -50%); pointer-events: none; }
.fr-product-preview__text { font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: var(--stretch-display); }

/* ---------- COMPONENT: FOOTER — CANONICAL IMPLEMENTATION ---------- */
.fr-footer { display: flex; flex-direction: column; gap: var(--space-64); padding-block: var(--space-80) var(--space-32); }
.fr-footer__claim { font-family: var(--font-display); font-size: var(--text-display); font-weight: 900; font-style: italic; font-stretch: var(--stretch-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); text-transform: uppercase; }
.fr-footer__claim span { color: var(--surface-accent); }
.fr-footer__top { display: flex; flex-wrap: wrap; gap: var(--space-48); }
.fr-footer__col { display: flex; flex: 1 1 200px; flex-direction: column; gap: var(--space-16); min-width: 0; }
.fr-footer__logo { width: 120px; height: auto; }
.fr-footer__title { font-family: var(--font-display); font-size: var(--text-eyebrow); font-weight: 700; font-stretch: var(--stretch-heading); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--surface-accent); }
.fr-footer__links { display: flex; flex-direction: column; gap: var(--space-4); padding: 0; list-style: none; }
.fr-footer__links a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; text-decoration: none; }
.fr-footer__links a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.fr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-16); padding-top: var(--space-24); border-top: var(--border-1) solid var(--surface-line); font-size: var(--text-small); color: var(--surface-muted); }
@media (hover: hover) and (pointer: fine) { .fr-footer__links a:hover { color: var(--surface-accent); } }

/* ---------- 5. PADRÕES ---------- */
/* PATTERN: PRODUCT STAGE — wordmark gigante atrás, produto à frente, texto dividido abaixo */
.fr-stage { position: relative; isolation: isolate; overflow: hidden; background: var(--fx-ice-light), var(--surface-bg); }
.fr-stage__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-32); padding-block: calc(var(--header-space) + var(--space-16)) var(--space-64); }
.fr-stage__word { position: relative; z-index: 0; width: 100%; color: var(--color-ice-100); text-align: center; white-space: nowrap; user-select: none; }
.fr-stage__product { position: relative; z-index: 2; display: flex; justify-content: center; width: min(44vw, 280px); margin-top: calc(var(--text-mega) * -0.62); /* exceção: o produto sobrepõe o wordmark */ }
.fr-stage__product img { width: 100%; filter: var(--shadow-product); transform: rotate(var(--stage-tilt, 0deg)); }
.fr-stage__content { position: relative; z-index: 3; display: flex; flex-direction: column; gap: var(--space-32); width: 100%; }
.fr-stage__col { display: flex; flex: 1 1 0; flex-direction: column; gap: var(--space-24); min-width: 0; }
@media (min-width: 1024px) {
  .fr-stage__content { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--space-64); margin-top: calc(var(--space-120) * -2.4); /* exceção: as colunas laterais sobem ao lado do produto */ }
  .fr-stage__col { max-width: 420px; }
  .fr-stage__col--end { align-items: flex-end; text-align: right; }
}
/* PATTERN: COLOR CHAPTER — seção inteira na cor do produto */
.fr-chapter { position: relative; overflow: hidden; }
.fr-chapter__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-40); }
.fr-chapter__word { position: absolute; inset: 50% 0 auto 0; z-index: 0; color: color-mix(in srgb, var(--chapter-fg) 14%, transparent); text-align: center; white-space: nowrap; transform: translateY(-50%); user-select: none; }
.fr-chapter__media { position: relative; z-index: 1; display: flex; justify-content: center; height: clamp(280px, 50vw, 440px); }
.fr-chapter__media img { width: auto; height: 100%; object-fit: contain; filter: var(--shadow-product); }
.fr-chapter__info { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-16); text-align: center; }
/* PATTERN: CONFIGURATOR — "Monte o seu": cores (esquerda), produto (centro), logo e CTA (direita); celular em uma coluna.
   Usar com .fr-surface-light; data-color na seção troca o fundo para o tom claro da cor escolhida. */
@property --tone { syntax: "<color>"; inherits: true; initial-value: #BDE4FF; }
.fr-config-section { --tone: var(--product-azul-tone); --surface-raised: rgb(255 255 255 / 0.55); --surface-line: rgb(31 26 78 / 0.12); --surface-accent: var(--color-navy-700); background: radial-gradient(ellipse 30% 60% at 50% 56%, rgb(255 255 255 / 0.7), transparent), var(--tone); transition: --tone 0.9s var(--ease); }
.fr-config-section[data-color="verde"] { --tone: var(--product-verde-tone); }
.fr-config-section[data-color="vermelho"] { --tone: var(--product-vermelho-tone); }
.fr-config-section[data-color="amarelo"] { --tone: var(--product-amarelo-tone); }
.fr-config-section[data-color="preto"] { --tone: var(--product-preto-tone); }
.fr-config-section[data-color="branco"] { --tone: var(--product-branco-tone); }
.fr-config-section[data-color="laranja"] { --tone: var(--product-laranja-tone); }
.fr-config-section[data-color="azul-marinho"] { --tone: var(--product-azul-marinho-tone); }
.fr-config-section[data-color="roxo"] { --tone: var(--product-roxo-tone); }
.fr-config-section[data-color="verde-ciano"] { --tone: var(--product-verde-ciano-tone); }
.fr-config { display: flex; flex-direction: column; align-items: center; gap: var(--space-32); }
.fr-config__side { display: flex; flex-direction: column; gap: var(--space-32); width: 100%; max-width: 480px; }
.fr-config p:not([class]) { color: var(--surface-muted); }
.fr-config__current { font-size: var(--text-small); color: var(--surface-muted); }
.fr-config__current strong { color: var(--surface-fg); }
@media (max-width: 1023px) {
  .fr-config__side--start { display: contents; } /* reordena cabeçalho, produto e cores em uma coluna */
  .fr-config__head { order: 1; width: 100%; max-width: 480px; }
  .fr-config__figure { order: 2; }
  .fr-config__colors { order: 3; width: 100%; max-width: 480px; }
  .fr-config__side--end { order: 4; }
}
@media (min-width: 1024px) {
  .fr-config { flex-direction: row; justify-content: space-between; width: 100%; }
  .fr-config__side { flex: 0 1 320px; max-width: 320px; }
  .fr-config__figure { flex: 1 1 auto; }
}
/* PATTERN: CTA BAND */
.fr-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); padding: clamp(24px, 6vw, 80px); border-radius: clamp(24px, 4vw, 40px); background: radial-gradient(ellipse 60% 80% at 100% 0%, rgb(22 182 233 / 0.4), transparent 70%), var(--surface-bg); }
.fr-cta__text { max-width: 52ch; color: var(--surface-muted); }

/* ---------- 6. MOVIMENTO REDUZIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .fr-hotspot__dot::after { display: none; }
  .fr-marquee__track { animation: none; }
}

/* =====================================================================
   8. SITE — seções, história em scroll e efeitos
   ===================================================================== */
html { scroll-behavior: smooth; background: var(--color-navy-950); }
.fr-section-head { display: flex; flex-direction: column; gap: var(--space-16); max-width: var(--container-narrow); }
.fr-section-head--center { align-items: center; margin-inline: auto; text-align: center; }
.fr-section__inner { display: flex; flex-direction: column; gap: var(--space-64); }
.fr-section-head .fr-lead { color: var(--surface-muted); }

/* ---------- HISTÓRIA EM SCROLL ----------
   Modo estático (sem JS, celular, movimento reduzido, sem WebGL): cada capítulo mostra o seu render.
   Modo história (.is-story, desktop): o palco sticky com o canvas 3D flutua sobre os capítulos. */
.story { position: relative; }
.story__stage { display: none; }
.story__chapters { position: relative; z-index: 1; background: var(--color-navy-950); /* fundo que aparece nas bordas esmaecidas da faixa */ }
.story__chapter { position: relative; display: flex; align-items: center; overflow: hidden; overflow: clip; /* clip: não cria contêiner de rolagem, preserva o sticky da figura */ padding-block: var(--section-pad); }
.story__chapter > .fr-container { position: relative; z-index: 1; }
.story__layout { display: flex; flex-direction: column; align-items: center; gap: var(--space-40); }
.story__text { display: flex; flex-direction: column; gap: var(--space-24); width: 100%; max-width: 480px; }
.story__text .fr-muted, .story__text p:not([class]) { color: var(--surface-muted); }
.story__figure { display: flex; flex: none; justify-content: center; margin: 0; }
.story__figure img { width: auto; height: clamp(320px, 58vh, 620px); object-fit: contain; filter: var(--shadow-product); }
.story__cta { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.story__chips { display: flex; flex-wrap: wrap; gap: var(--space-8); padding: 0; list-style: none; }

/* Hero (padrão Palco do produto) */
.story__chapter--hero { min-height: 100svh; padding-block: 0; }
.story__chapter--hero .fr-stage__inner { width: 100%; }
.story__chapter--hero .fr-stage__product { width: auto; }
.story__chapter--hero .fr-stage__product img { width: auto; height: clamp(360px, 62svh, 640px); }
.story__chapter--hero .fr-stage__word { color: var(--color-ice-100); }
.story__chapter--hero .fr-h1 { max-width: 14ch; font-size: clamp(2.25rem, 1.3rem + 2.6vw, 3.75rem); }
@media (min-width: 1024px) {
  /* título cabe em 3 linhas também em telas baixas ou estreitas (1024×768, 1280×720), com os botões visíveis */
  .story__chapter--hero .fr-h1 { font-size: clamp(2.25rem, min(1.3rem + 2.6vw, 3.6vw, 6.2svh), 3.75rem); }
}
@media (min-width: 1024px) { .story__chapter--hero .fr-stage__col { max-width: 520px; } .story__chapter--hero .fr-stage__product img { height: clamp(360px, 56svh, 600px); } }
/* EFEITO: Holofote no topo — vídeo de apresentação visível nas bordas, brilho, feixes e partículas */
.hero-spot__media { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.hero-spot__img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: 0.62; }
@media (max-width: 767px) { .hero-spot__img { object-position: 8% 55%; } } /* tela estreita: enquadra o coqueiro da esquerda */
.hero-spot__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 62% at 50% 42%, rgb(17 14 46) 0%, rgb(17 14 46 / 0.94) 38%, rgb(17 14 46 / 0.66) 62%, rgb(17 14 46 / 0.28) 88%, rgb(17 14 46 / 0.12) 100%), linear-gradient(180deg, rgb(17 14 46) 0%, rgb(17 14 46 / 0.82) 25%, rgb(17 14 46 / 0.22) 70%, rgb(17 14 46 / 0.6) 100%); }
.hero-spot__glow { position: absolute; inset: 0 0 auto; z-index: -2; height: 820px; background: radial-gradient(38% 50% at 50% -6%, rgb(127 217 246 / 0.6), rgb(22 182 233 / 0.3) 45%, transparent 75%), radial-gradient(70% 60% at 50% 0%, rgb(10 120 160 / 0.35), transparent 70%); pointer-events: none; }
.hero-spot__rays { position: absolute; inset: -10% 15% auto; z-index: -1; height: 80%; background: conic-gradient(from 160deg at 50% -8%, transparent 0deg, rgb(127 217 246 / 0.14) 12deg, transparent 22deg, rgb(127 217 246 / 0.1) 30deg, transparent 40deg, rgb(22 182 233 / 0.12) 48deg, transparent 60deg, transparent 360deg); filter: blur(14px); animation: fr-spot-rays 12s ease-in-out infinite alternate; pointer-events: none; }
.hero-spot__dust { position: absolute; inset: 0 0 auto; z-index: -1; height: 520px; background-image: radial-gradient(circle, rgb(216 243 252 / 0.7) 0 1px, transparent 1.6px), radial-gradient(circle, rgb(216 243 252 / 0.45) 0 1px, transparent 1.6px); background-size: 140px 110px, 90px 130px; background-position: 0 0, 40px 60px; -webkit-mask-image: radial-gradient(45% 70% at 50% 0%, #000 0, transparent 80%); mask-image: radial-gradient(45% 70% at 50% 0%, #000 0, transparent 80%); animation: fr-spot-dust 18s linear infinite; pointer-events: none; }
@keyframes fr-spot-rays { from { opacity: 0.7; transform: rotate(-2deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes fr-spot-dust { to { background-position: 0 -110px, 40px -70px; } }
.is-offscreen .hero-spot__rays, .is-offscreen .hero-spot__dust { animation-play-state: paused; }
@media (max-width: 767px) {
  .hero-spot__glow { background: radial-gradient(95% 42% at 50% -4%, rgb(127 217 246 / 0.6), rgb(22 182 233 / 0.3) 45%, transparent 75%), radial-gradient(140% 55% at 50% 0%, rgb(10 120 160 / 0.35), transparent 70%); }
  .hero-spot__rays { inset: -10% -30% auto; }
  .hero-spot__dust { -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 0, transparent 80%); mask-image: radial-gradient(90% 70% at 50% 0%, #000 0, transparent 80%); }
}

/* EFEITO: lente líquida no wordmark do hero (filtro SVG: ruído de distorção só dentro de um gradiente que segue o cursor) */
.fr-filters { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero-word { position: relative; z-index: 0; width: 100%; }
.hero-word.is-liquid .fr-stage__word { filter: url(#fr-liquid); }
/* Entrada do wordmark: surge desfocado e espaçado, antes do título e da garrafa.
   fill "backwards" (não "both"): ao terminar, o filtro da lente líquida volta a valer. */
.js .hero-word .fr-stage__word { animation: fr-word-in 1.8s var(--ease-reveal) 0.05s backwards; }
@keyframes fr-word-in { from { opacity: 0; letter-spacing: 0.14em; filter: blur(20px); transform: translateY(0.1em) scale(0.97); } } /* sem "to": termina no estilo da palavra (tracking negativo do fr-mega) */

/* Entrada do produto no hero: surge suave no centro */
.js .story__chapter--hero .fr-stage__product img { animation: fr-product-in 1.4s var(--ease-reveal) 0.25s both; }
@keyframes fr-product-in { from { opacity: 0; transform: translateY(32px) scale(0.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.story-pending .story__chapter--hero .fr-stage__product img { opacity: 0; animation: none; }

/* Fundos dos capítulos escuros: camada do tamanho da tela, sticky dentro do capítulo e alinhada ao produto */
.story__backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.story__backdrop-inner { --deco-x: 50%; --deco-y: 66%; position: absolute; inset: 0; overflow: hidden; }
.deco-glow { position: absolute; inset: 0; background: radial-gradient(circle 40vmax at var(--deco-x) var(--deco-y), rgb(22 182 233 / 0.16), transparent 62%); }
.deco-rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at var(--deco-x) var(--deco-y), transparent 0 71px, rgb(127 217 246 / 0.1) 72px 73px); -webkit-mask-image: radial-gradient(circle 36vmax at var(--deco-x) var(--deco-y), #000 18%, transparent 72%); mask-image: radial-gradient(circle 36vmax at var(--deco-x) var(--deco-y), #000 18%, transparent 72%); transform-origin: var(--deco-x) var(--deco-y); animation: fr-breathe 7s ease-in-out infinite alternate; }
@keyframes fr-breathe { from { transform: scale(1); opacity: 0.75; } to { transform: scale(1.06); opacity: 1; } }
.deco-mist { position: absolute; inset: auto 0 0; height: 70%; background: radial-gradient(55% 85% at var(--deco-x) 100%, rgb(127 217 246 / 0.32), transparent 70%), linear-gradient(0deg, rgb(22 182 233 / 0.16), transparent 75%); }
.deco-snow { position: absolute; inset: 0; background-image: radial-gradient(circle, rgb(216 243 252 / 0.8) 0 1.2px, transparent 2px), radial-gradient(circle, rgb(216 243 252 / 0.45) 0 1px, transparent 1.6px); background-size: 160px 140px, 110px 170px; background-position: 0 0, 60px 80px; -webkit-mask-image: radial-gradient(circle 38vmax at var(--deco-x) 60%, #000 8%, transparent 74%); mask-image: radial-gradient(circle 38vmax at var(--deco-x) 60%, #000 8%, transparent 74%); animation: fr-snow 22s linear infinite; }
@keyframes fr-snow { to { background-position: 0 -140px, 60px -90px; } }
.deco-word { position: absolute; bottom: 5vh; left: var(--gutter); font-family: var(--font-display); font-size: clamp(5rem, 1rem + 11vw, 13rem); font-weight: 900; font-style: italic; font-stretch: var(--stretch-display); line-height: var(--leading-mega); letter-spacing: var(--tracking-display); text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgb(127 217 246 / 0.26); }
.deco-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(127 217 246 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(127 217 246 / 0.08) 1px, transparent 1px); background-size: 40px 40px; background-position: center; -webkit-mask-image: radial-gradient(circle 40vmax at var(--deco-x) var(--deco-y), #000 22%, transparent 74%); mask-image: radial-gradient(circle 40vmax at var(--deco-x) var(--deco-y), #000 22%, transparent 74%); }
.deco-ruler { position: absolute; top: 18%; bottom: 22%; left: var(--gutter); width: 18px; background: repeating-linear-gradient(180deg, rgb(127 217 246 / 0.55) 0 1px, transparent 1px 80px) left / 18px 100% no-repeat, repeating-linear-gradient(180deg, rgb(127 217 246 / 0.3) 0 1px, transparent 1px 8px) left / 8px 100% no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.is-offscreen .deco-rings, .is-offscreen .deco-snow { animation-play-state: paused; }
/* Transições suaves entre os tons de navy */
.story__chapter--anatomia { background: linear-gradient(180deg, var(--color-navy-950) 0%, var(--color-navy-950) 80%, var(--color-navy-900) 100%); }
.story__chapter--camara { background: var(--color-navy-900); }
.story__chapter--medidas { background: linear-gradient(180deg, var(--color-navy-900) 0%, var(--color-navy-950) 18%); }
@media (min-width: 1024px) {
  .story__backdrop-inner { --deco-y: 54%; position: sticky; top: 0; height: 100vh; height: 100svh; }
  .story__chapter--anatomia .story__backdrop-inner { --deco-x: 66%; }
  .story__chapter--camara .story__backdrop-inner, .story__chapter--medidas .story__backdrop-inner { --deco-x: 30%; }
}
.story__note { font-size: var(--text-caption); color: var(--surface-muted); }

@media (min-width: 1024px) {
  .story__layout { flex-direction: row; justify-content: space-between; gap: var(--space-64); }
  .story__layout--reverse { flex-direction: row-reverse; }
  .story__figure { position: sticky; top: calc(var(--header-h) + 5vh); }
  .story__chapter--anatomia, .story__chapter--medidas { min-height: 140svh; }
  .story__chapter--camara { min-height: 120svh; }
  .story__chapter--anatomia .fr-anatomy { flex: 1 1 auto; }
}

/* Modo história */
.story.is-story .story__stage { position: sticky; top: 0; z-index: 2; display: block; height: 100vh; height: 100svh; pointer-events: none; }
.story.is-story .story__chapters { margin-top: -100vh; margin-top: -100svh; /* exceção: os capítulos rolam sob o palco sticky */ }
.story__canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-reveal); }
.story.is-ready .story__canvas { opacity: 1; }
.story__overlay { position: absolute; inset: 0; z-index: 4; }
@property --halo { syntax: "<color>"; inherits: false; initial-value: rgb(22 182 233 / 0.24); }
.story__halo { position: absolute; top: 0; left: 0; z-index: 1; width: 92vmin; height: 92vmin; border-radius: 50%; background: radial-gradient(circle, var(--halo) 0%, transparent 64%); mix-blend-mode: screen; opacity: 0; transform: translate(-50%, -50%); transition: --halo 0.8s var(--ease-scene), opacity 1.2s var(--ease-reveal); will-change: left, top; }
.story.is-ready .story__halo { opacity: 1; }
.story.is-story .story__figure { position: static; }
.story.is-ready .story__figure img, .story.is-ready .fr-stage__product img, .story.is-ready .fr-anatomy__img, .story.is-ready .fr-measure__stage { opacity: 0; transition: opacity var(--duration-slow) var(--ease); }
.story.is-ready .story__hotspots-source { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.story__hotspots { position: absolute; inset: 0; }
.story__dims { position: absolute; inset: 0; display: block; }
/* Hotspots e cotas do palco: posicionados por JS a partir do modelo 3D */
.story__overlay .fr-hotspot { --len: 56px; position: absolute; top: 0; left: 0; display: flex; align-items: center; width: max-content; opacity: 0; transform: translate(-7px, -50%); }
.story__overlay .fr-hotspot[data-side="left"] { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -50%); }
.story__overlay .fr-hotspot__dot { margin-top: 0; }
.story__overlay .fr-hotspot__line { display: block; flex: none; width: var(--len, 72px); height: 1px; background: rgb(255 255 255 / 0.55); }
.story__overlay .fr-hotspot__card { padding: var(--space-12) var(--space-16); border: var(--border-1) solid rgb(255 255 255 / 0.14); border-radius: var(--radius-16); background: var(--color-navy-900); box-shadow: var(--shadow-md); }
.story__overlay .fr-hotspot__title { color: var(--color-white); }
.story__overlay .fr-hotspot__text { color: var(--color-navy-300); }
.story__overlay .fr-dim { color: var(--color-ice-500); }
.story__overlay .fr-dim__value { color: var(--color-white); }
.story__overlay .fr-dim__value small { color: var(--color-navy-300); }
.story__overlay [data-overlay] { opacity: 0; }
.story__meter { position: absolute; bottom: var(--space-32); left: var(--gutter); z-index: 4; display: flex; align-items: center; gap: var(--space-12); padding: var(--space-8) var(--space-16) var(--space-8) var(--space-8); border: var(--border-1) solid rgb(255 255 255 / 0.16); border-radius: var(--radius-pill); background: rgb(17 14 46 / 0.72); color: var(--color-white); font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; transition: opacity var(--duration-slow) var(--ease); }
.story.is-ready .story__meter { opacity: var(--meter-o, 0); }
.story__meter .fr-icon { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--color-ice-500); color: var(--color-navy-950); }
.story__meter strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- COMO FUNCIONA ---------- */
.howto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-48) var(--space-64); }
.howto__modes { display: flex; flex: 1 1 420px; flex-direction: column; gap: var(--space-32); min-width: 0; max-width: 600px; }
.howto__modes .fr-section-head { gap: var(--space-12); }
.howto__panel { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-32); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-24); background: var(--surface-raised); }
.howto__panel-head { display: flex; align-items: center; gap: var(--space-16); }
/* Cena por modo de uso: foto num quadro arredondado e a pessoa recortada saindo pelo topo */
.howto__media { display: flex; flex: 1 1 420px; flex-direction: column; gap: var(--space-16); min-width: 0; max-width: 560px; margin: 0; }
.popout { --ft: 21%; --fs: 12%; --fb: 3%; position: relative; width: 100%; aspect-ratio: 1 / 1; }
.popout__deco { position: absolute; inset: var(--ft) var(--fs) var(--fb); border-radius: var(--radius-24); background: var(--color-ice-500); transform: translate(12px, 12px); }
.popout__bg, .popout__cut { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.popout__bg { clip-path: inset(var(--ft) var(--fs) var(--fb) var(--fs) round var(--radius-24)); transition: opacity 0.7s var(--ease); }
.popout__cut { clip-path: inset(0 0 var(--fb) 0); filter: drop-shadow(0 18px 22px rgb(17 14 46 / 0.3)); transform: translateY(14px) scale(0.985); transform-origin: 50% 100%; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease-reveal); pointer-events: none; }
.popout__bg.is-active { opacity: 1; }
.popout__cut.is-active { opacity: 1; transform: none; }
.howto__caption { font-size: var(--text-small); color: var(--surface-muted); }
.howto__caption small { font-size: var(--text-caption); }
.steps { display: flex; flex-wrap: wrap; gap: var(--space-16); padding: 0; list-style: none; counter-reset: step; }
.steps > li { display: flex; flex: 1 1 220px; flex-direction: column; gap: var(--space-12); min-width: 0; padding: var(--space-24); border-top: var(--border-2) solid var(--color-ice-500); }
.steps__n { font-family: var(--font-display); font-size: var(--text-number); font-weight: 900; font-style: italic; font-stretch: var(--stretch-display); line-height: 1; color: var(--surface-accent); font-variant-numeric: tabular-nums; }
.steps__title { font-family: var(--font-display); font-size: var(--text-h4); font-weight: 800; font-stretch: var(--stretch-label); text-transform: uppercase; }
.steps p { color: var(--surface-muted); }

/* ---------- DEPOIMENTOS (componente Marquee, variante Quotes do design system) ---------- */
.quotes-loop { display: flex; flex-direction: column; gap: var(--space-48); }

/* ---------- CONTATO ---------- */
.contact { display: flex; flex-wrap: wrap; gap: var(--space-64); align-items: flex-start; }
.contact__info { display: flex; flex: 1 1 320px; flex-direction: column; gap: var(--space-32); min-width: 0; }
.contact__form { flex: 1 1 480px; min-width: 0; padding: clamp(24px, 4vw, 48px); border: var(--border-1) solid var(--surface-line); border-radius: var(--radius-24); background: var(--surface-raised); }

/* ---------- ENTRADAS (fade-up com blur, BlurText, entrada em sequência) ---------- */
.js .reveal { opacity: 0; filter: blur(10px); transform: translateY(1.5rem); transition: opacity var(--motion-reveal) var(--ease-reveal), filter var(--motion-reveal) var(--ease-reveal), transform var(--motion-reveal) var(--ease-reveal); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; filter: none; transform: none; }
.word { display: inline-block; animation: fr-blur-in 0.9s var(--ease) both; }
.js .reveal-words .word { animation-play-state: paused; }
.js .reveal-words.is-visible .word { animation-play-state: running; }
@keyframes fr-blur-in { from { opacity: 0; filter: blur(10px); transform: translateY(-0.25em); } to { opacity: 1; filter: none; transform: none; } }
.hero-seq { animation: fr-panel-in 0.7s var(--ease) both; animation-delay: calc(0.9s + var(--i, 0) * 0.25s); }
@keyframes fr-panel-in { from { opacity: 0; filter: blur(6px); transform: translateX(14px); } to { opacity: 1; filter: none; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; filter: none; transform: none; }
  .hero-spot__rays, .hero-spot__dust, .deco-rings, .deco-snow { animation: none; }
  .js .story__chapter--hero .fr-stage__product img, .js .hero-word .fr-stage__word { animation: none; }
}
@media (max-width: 1023px) {
  .story__chapter--anatomia .fr-anatomy__stage { width: min(70vw, 300px); }
  .story__figure img { height: clamp(300px, 70vw, 480px); }
  .story__chapter--camara .story__figure img { height: auto; width: min(80vw, 380px); }
}
@media (min-width: 1024px) {
  .story__text { max-width: min(480px, 36vw); }
  .story__chapter--hero .fr-stage__col { max-width: min(520px, 34vw); }
}
@media (min-width: 1024px) and (max-width: 1199px) { .fr-header__cta { display: none; } }
@media (max-width: 1599px) { /* notebooks: etiquetas compactas (só o título) para caber ao lado do produto sem cobri-lo */
  .story__overlay .fr-hotspot__text { display: none; }
  .story__overlay .fr-hotspot { --len: 24px; }
  .story__overlay .fr-hotspot__card { max-width: 170px; padding: var(--space-8) var(--space-12); }
  .story__overlay .fr-hotspot__title { font-size: var(--text-small); }
}

/* ---------- MONTE O SEU (padrão Configurador do design system) no último capítulo da história ---------- */
.story__chapter--config .deco-glow { display: none; }
.story__chapter--config .deco-rings { background: repeating-radial-gradient(circle at var(--deco-x) var(--deco-y), transparent 0 71px, rgb(31 26 78 / 0.07) 72px 73px); }
.story.is-ready .fr-product-preview__decal { opacity: 0; } /* com 3D, o decalque é desenhado na garrafa */
@media (min-width: 1024px) {
  /* Último capítulo: 1 tela, com o conteúdo centrado na mesma faixa da garrafa (abaixo do header) */
  .story__chapter--config { min-height: 100svh; padding-block: calc(var(--header-space) + var(--space-8)) var(--space-24); }
}

