/* Nisa, site publico. Tokens copiados da app (lib/core/design/tokens.dart): mesmas cores, filetes, raios e curvas. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-extralight.woff") format("woff"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0a0a0a;            /* NisaColors.background */
  --surface: #111111;       /* surface */
  --surface-raised: #181818;/* surfaceRaised */
  --raised-top: #1d1d1d;    /* NisaDepth.raised */
  --ink: #ededed;           /* textPrimary */
  --ink-soft: #b5b5b5;      /* textSecondary */
  --ink-faint: #8a8a8a;     /* textTertiary */
  --line: rgba(255, 255, 255, 0.09);      /* hairline */
  --line-strong: rgba(255, 255, 255, 0.16);
  --edge: rgba(255, 255, 255, 0.14);      /* edgeLight, filete de luz */
  --accent: #fff1de;        /* accent, creme quente */
  --accent-ink: #1a1408;    /* onAccent */
  --press: rgba(255, 255, 255, 0.06);

  --font: "Archivo", system-ui, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-xl: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --t-2xl: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem);
  --t-3xl: clamp(3rem, 1.8rem + 6vw, 7.5rem);

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: clamp(5rem, 3rem + 8vw, 10rem);

  --r-lg: 20px;  /* NisaRadius.card */
  --r-md: 14px;  /* NisaRadius.md */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);

  --ease: cubic-bezier(0.23, 1, 0.32, 1); /* NisaMotion.easeOut */
  --dur: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--s-2); top: var(--s-2); z-index: 30; background: var(--ink); color: var(--bg); padding: var(--s-1) var(--s-2); border-radius: var(--r-md); }

/* Cabecalho */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: transform 600ms var(--ease), background-color 500ms var(--ease), box-shadow 500ms var(--ease), backdrop-filter 500ms var(--ease); }
.top.is-scrolled { background: rgba(14, 14, 14, 0.62); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 -1px 0 var(--line), inset 0 1px 0 var(--edge); }
.top.is-hidden { transform: translateY(-110%); }
.top.is-scrolled .top__bar { padding-block: var(--s-2); }
.top__bar { transition: padding 500ms var(--ease); }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-3); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand img { width: 26px; height: 26px; transition: transform 700ms var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav { display: flex; gap: clamp(1rem, 0.4rem + 1.6vw, 2.25rem); font-size: var(--t-sm); color: var(--ink-soft); }
.nav a { position: relative; padding-block: 0.4rem; transition: color 300ms var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 500ms var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Botoes */
.btn { position: relative; overflow: hidden; isolation: isolate; will-change: transform; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0 1.6rem; border-radius: var(--r-md); font: inherit; font-weight: 400; font-size: var(--t-sm); letter-spacing: 0.01em; transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 200ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--primary { box-shadow: 0 0 0 0 rgba(255, 241, 222, 0); transition: box-shadow 500ms var(--ease), background-color 300ms var(--ease), transform 200ms var(--ease); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%); transform: translateX(-120%); transition: transform 900ms var(--ease); }
.btn--primary:hover::before, .btn--primary:focus-visible::before { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 10px 40px -10px rgba(255, 241, 222, 0.55); }
.js .btn--primary::before { animation: sheen 5s var(--ease) 2.2s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn--primary svg { box-sizing: content-box; padding: 6px; margin-right: -0.7rem; border-radius: 999px; background: rgba(26, 20, 8, 0.08); }
.btn--quiet { color: var(--ink); background: linear-gradient(180deg, var(--raised-top), var(--surface-raised)); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.btn--quiet:hover { background: var(--surface-raised); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line-strong); }
.btn svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Abertura com fotografia */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.35) 35%, rgba(10, 10, 10, 0.82) 68%, var(--bg) 100%); }
.hero__body { padding-block: var(--s-6) var(--s-5); display: grid; gap: var(--s-3); justify-items: center; text-align: center; }
.hero__body h1 { font-size: var(--t-3xl); max-width: 14ch; }
.hero__body .lede { max-width: 38rem; }
.caption { font-size: var(--t-xs); color: var(--ink-faint); letter-spacing: 0.02em; }

.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--ink-soft); font-weight: 300; }

/* Abertura tipografica (paginas sem fotografia certa) */
.intro { padding-block: calc(var(--s-6) + 3rem) var(--s-5); }
.intro__grid { display: grid; gap: var(--s-4); align-items: end; }
.intro h1 { font-size: var(--t-2xl); max-width: 16ch; }
.intro .lede { max-width: 34rem; }
.intro__orb { width: min(300px, 56vw); justify-self: center; filter: drop-shadow(0 0 60px rgba(201, 209, 220, 0.25)); }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1.4fr 1fr; }
  .intro__orb { justify-self: end; }
}

/* Seccoes */
.section { padding-block: var(--s-6); }
.section--tight { padding-block: var(--s-5); }
.center { text-align: center; display: grid; justify-items: center; gap: var(--s-3); }
.center h2 { font-size: var(--t-2xl); max-width: 18ch; }
.center p { max-width: 40rem; }
.title-xl { font-size: var(--t-2xl); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Tres ideias lado a lado, separadas por espaco e um filete */
.trio { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.trio > div { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-3); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--raised-top), var(--surface-raised)); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.trio h3 { font-size: var(--t-lg); }
.trio p { color: var(--ink-soft); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } .trio > div { padding: var(--s-4) var(--s-3); } }

/* Lista das areas */
.areas { list-style: none; margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid var(--line); }
.areas li { position: relative; }
.areas li::after, .brands li::after, .feature::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line-strong); transform: scaleX(var(--rule, 1)); transform-origin: left; }
.areas li::after, .brands li::after { bottom: 0; }
.feature::before { top: 0; }
.areas a { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); align-items: center; padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem); transition: padding-left 500ms var(--ease); }
.areas strong { font-weight: 300; font-size: var(--t-xl); letter-spacing: -0.02em; line-height: 1.1; }
.areas span { grid-column: 1; color: var(--ink-soft); font-size: var(--t-md); }
.areas svg { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--ink-faint); transition: color 300ms var(--ease), transform 500ms var(--ease); }
.areas a:hover svg, .areas a:focus-visible svg { color: var(--accent); transform: translateX(6px); }
@media (min-width: 900px) {
  .areas a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; }
  .areas span { grid-column: 2; }
  .areas svg { grid-column: 3; grid-row: 1; }
  .areas a:hover { padding-left: var(--s-2); }
}

/* Faixa com fotografia */
.band { box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); min-height: min(78svh, 720px); display: flex; align-items: flex-end; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.82) 100%); /* NisaDepth.stripScrim */ }
.band__body { padding: clamp(1.5rem, 1rem + 3vw, 4rem); display: grid; gap: var(--s-3); max-width: 44rem; }
.band__body h2 { font-size: var(--t-2xl); }
.band__body p { color: var(--ink-soft); }

/* Blocos de funcionalidade: texto e espaco, alternando o lado */
.feature { position: relative; display: grid; gap: var(--s-3); padding-block: var(--s-5); }
.feature h2 { font-size: var(--t-xl); max-width: 18ch; }
.feature p { color: var(--ink-soft); max-width: 36rem; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
  .feature--flip h2 { order: 2; }
  .feature--flip p { order: 1; }
}

/* Produto real ao lado do texto */
.split { perspective: 1400px; display: grid; gap: var(--s-5); align-items: center; }
.split__shot { justify-self: center; width: min(340px, 78vw); border-radius: 36px; overflow: hidden; box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.split__text { display: grid; gap: var(--s-3); }
.split__text h2 { font-size: var(--t-2xl); }
.split__text p { color: var(--ink-soft); max-width: 34rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; } }

.figure { display: grid; gap: var(--s-2); }
.figure img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; }
.duo { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .duo { grid-template-columns: 1.3fr 1fr; align-items: end; } .duo .figure:last-child img { aspect-ratio: 4 / 5; } }

.works { color: var(--ink-faint); font-size: var(--t-sm); }
.works strong { color: var(--ink); font-weight: 600; }

/* Marcas do grupo */
.brands { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.brands li { position: relative; display: grid; gap: var(--s-1); padding-block: var(--s-3); }
.brands a { font-size: var(--t-lg); font-weight: 600; transition: color 300ms var(--ease); }
.brands a:hover { color: var(--accent); }
.brands p { color: var(--ink-soft); }
@media (min-width: 900px) { .brands li { grid-template-columns: 1fr 1.4fr; align-items: baseline; } }

.prose { display: grid; gap: var(--s-3); max-width: 40rem; margin-inline: auto; }
.prose p { color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.55; }
.prose p strong { color: var(--ink); font-weight: 600; }

/* Rodape */
.foot { margin-top: var(--s-6); padding-block: var(--s-5) var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-soft); }
.foot__grid { display: grid; gap: var(--s-4); }
.foot__nav { display: grid; gap: var(--s-1); }
.foot__nav a:hover, .foot address a:hover { color: var(--ink); }
.foot address { font-style: normal; display: grid; gap: var(--s-1); }

@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* Telemovel: navegacao numa linha que desliza */
@media (max-width: 899px) {
  .top__bar { flex-wrap: wrap; row-gap: var(--s-1); }
  .nav { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.2rem; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .hero__body { justify-items: start; text-align: left; }
  .actions .btn { flex: 1 1 100%; }
}

/* Aparecimento: so com JavaScript ativo e sem movimento reduzido */

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

.intro__text { display: grid; gap: var(--s-3); }
.figure--plain { margin: 0; }
.caption--center { text-align: center; }

/* Mascaras dos titulos partidos em linhas (SplitText) */
.line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word { display: inline-block; will-change: transform; }

/* Estados iniciais so com movimento ligado (o GSAP leva-os ao estado final) */
.js .top__bar { opacity: 0; transform: translateY(-20px); }
.js .hero h1, .js .intro h1, .js .apphero h1 { visibility: hidden; }
.js .hero__body > :not(h1), .js .intro__text > :not(h1), .js .apphero__text > :not(h1) { opacity: 0; transform: translateY(24px); }
.js .intro__orb { opacity: 0; }

/* Transicao entre paginas do proprio site (Chrome e Safari recentes) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 380ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 620ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .js .top__bar, .js .hero__body > *, .js .intro__text > *, .js .intro__orb { opacity: 1; transform: none; visibility: visible; }
  .btn--primary::before { display: none; }
  @view-transition { navigation: none; }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Abertura: o simbolo da Nisa desenha-se e a pagina sobe por baixo (uma vez por sessao) */
.splash { display: none; }
.splash-on .splash { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--bg); color: var(--accent); animation: splash-failsafe 0.6s var(--ease) 4.5s forwards; }
.splash__mark { display: grid; justify-items: center; gap: var(--s-2); }
.splash__mark svg { width: clamp(72px, 14vw, 120px); height: auto; overflow: visible; filter: drop-shadow(0 0 24px rgba(255, 241, 222, 0.35)); }
.splash__word { font-weight: 300; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: 0.32em; padding-left: 0.32em; color: var(--ink); opacity: 0; }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; } }

/* Rodape: todos os clicaveis com o traco que se desenha */
.foot a { transition: color 300ms var(--ease); }
.foot a:not(.brand):not(.foot__social):not(.foot__map) { position: relative; display: inline-block; width: fit-content; }
.foot a:not(.brand):not(.foot__social):not(.foot__map)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 500ms var(--ease); }
.foot a:hover, .foot a:focus-visible { color: var(--ink); }
.foot a:not(.brand):not(.foot__social):not(.foot__map):hover::after, .foot a:not(.brand):not(.foot__social):not(.foot__map):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.foot__brand { display: grid; gap: var(--s-3); align-content: start; }
.foot__social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); color: var(--ink-soft); background: linear-gradient(180deg, var(--raised-top), var(--surface-raised)); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); transition: color 300ms var(--ease), transform 400ms var(--ease), box-shadow 300ms var(--ease); }
.foot__social svg { width: 22px; height: 22px; }
.foot__social:hover, .foot__social:focus-visible { color: var(--accent); transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line-strong), 0 12px 30px -12px rgba(255, 241, 222, 0.35); }
.foot address a { line-height: 1.6; }
.foot__bottom { display: grid; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-faint); text-align: center; justify-items: center; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-3); }
.foot__credit a { color: var(--ink-soft); letter-spacing: 0.04em; }
@media (min-width: 900px) {
  .foot__bottom { grid-template-columns: 1fr auto 1fr; align-items: center; text-align: left; justify-items: stretch; }
  .foot__credit { text-align: center; }
  .foot__legal { justify-content: flex-end; }
}

/* Paginas legais */
.intro--legal { padding-bottom: var(--s-3); }
.legal { max-width: 44rem; display: grid; gap: var(--s-2); color: var(--ink-soft); }
.legal h2 { font-size: var(--t-lg); font-weight: 600; color: var(--ink); margin-top: var(--s-3); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); transition: text-decoration-color 300ms var(--ease); }
.legal a:hover { text-decoration-color: var(--accent); }

/* Vitrine: a app em vidro por cima de uma fotografia real (referencia felvrabr) */
.showcase { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); min-height: min(92svh, 820px); display: grid; align-items: center; box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.showcase__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.showcase::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.15) 100%); }
.showcase__title { font-size: var(--t-2xl); max-width: 11ch; padding: clamp(1.5rem, 1rem + 3vw, 4rem); }
.showcase__glass { position: absolute; right: clamp(1rem, 6vw, 7rem); top: 50%; width: min(300px, 42vw); transform: translateY(-50%); padding: 10px; border-radius: 44px; background: linear-gradient(180deg, rgba(40, 40, 40, 0.72), rgba(14, 14, 14, 0.82)); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line-strong), 0 50px 90px -30px rgba(0, 0, 0, 0.9); }
.showcase__glass img { border-radius: 34px; }
@media (max-width: 899px) {
  .showcase { align-items: start; min-height: 0; padding-bottom: var(--s-4); }
  .showcase::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%); }
  .showcase__glass { position: relative; right: auto; top: auto; transform: none; margin-inline: auto; width: min(260px, 70vw); }
}

/* Numero em painel de partidas: algarismos tabulares que rodam ate assentar */
.stat { display: grid; justify-items: center; gap: var(--s-2); text-align: center; padding-block: var(--s-4); }
.flap { margin: 0; font-size: clamp(3.5rem, 2rem + 8vw, 8rem); font-weight: 300; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; perspective: 600px; }
.flap > span { display: inline-flex; gap: 0.06em; }
.flap__d { display: inline-block; min-width: 0.68em; padding: 0.06em 0.04em; border-radius: 10px; background: linear-gradient(180deg, var(--raised-top), var(--surface-raised)); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line), inset 0 -0.5em 0 -0.495em rgba(0, 0, 0, 0.6); transform-origin: 50% 50%; backface-visibility: hidden; }
.flap__gap { width: 0.24em; }
.stat__cap { color: var(--ink-soft); max-width: 30rem; }

/* Malha de luz atras das aberturas: creme quente e aco frio da app, a mover-se devagar */
.intro { position: relative; isolation: isolate; }
body { overflow-x: clip; }
.intro::before { content: ""; position: absolute; z-index: -1; inset: -30% -20% auto auto; width: 90vmax; height: 90vmax; background: radial-gradient(closest-side at 35% 40%, rgba(255, 241, 222, 0.10), transparent 70%), radial-gradient(closest-side at 65% 60%, rgba(143, 168, 200, 0.10), transparent 70%); animation: mesh 22s ease-in-out infinite alternate; pointer-events: none; }
@keyframes mesh { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-12vmax, 8vmax, 0) rotate(40deg); } }
@media (prefers-reduced-motion: reduce) { .intro::before { animation: none; } }
.flap__plus { align-self: center; margin-left: 0.08em; font-size: 0.6em; color: var(--accent); }

/* Morada: o traco desenha-se por baixo de cada linha, o nome do showroom fica de fora */
.foot__place { color: var(--ink); }
.foot__map span { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 600ms var(--ease); }
.foot__map:hover span, .foot__map:focus-visible span { background-size: 100% 1px; }
.foot__map span + br + span { transition-delay: 120ms; }

/* Telemovel: moldura em CSS para as capturas e o video reais da app */
.phone { position: relative; width: min(330px, 74vw); aspect-ratio: 1206 / 2622; border-radius: 54px; padding: 10px; background: linear-gradient(150deg, #2c2c2c, #0b0b0b 55%, #1c1c1c); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 0 0 1px #000, 0 70px 120px -40px rgba(0, 0, 0, 0.95), 0 0 120px -30px rgba(255, 241, 222, 0.16); }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 45px; background: #000; }
.phone__screen > img, .phone__screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone__screen > img { opacity: 0; transition: opacity 600ms var(--ease), transform 900ms var(--ease); transform: scale(1.03); }
.phone__screen > img.is-on, .phone__screen > img:only-child { opacity: 1; transform: none; }
.phone::after { content: ""; position: absolute; top: 21px; left: 50%; width: 31%; height: 27px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.phone--sm { width: min(260px, 66vw); border-radius: 44px; }
.phone--sm .phone__screen { border-radius: 36px; }
.phone--sm::after { top: 17px; height: 22px; }

/* Topo de site de app: texto de um lado, telemovel com a app a mexer do outro */
.apphero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--s-6) + 2rem) var(--s-5); overflow: hidden; }
.apphero__bg { position: absolute; inset: 0; z-index: -2; }
.apphero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.apphero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 70% 50%, rgba(10, 10, 10, 0.2), var(--bg) 85%), linear-gradient(180deg, rgba(10, 10, 10, 0.4), var(--bg)); }
.apphero__grid { display: grid; gap: var(--s-5); align-items: center; }
.apphero__text { display: grid; gap: var(--s-3); }
.apphero__text h1 { font-size: var(--t-3xl); max-width: 12ch; }
.apphero__text .lede { max-width: 36rem; }
.apphero__device { justify-self: center; }
@media (min-width: 900px) { .apphero__grid { grid-template-columns: 1.15fr 1fr; } .apphero__device .phone { width: min(360px, 30vw); } }

/* Funcoes com o telemovel fixo: o ecra muda conforme se le cada funcao */
.story__grid { display: grid; gap: var(--s-5); }
.story__stage { display: none; }
.step { display: grid; gap: var(--s-3); padding-block: var(--s-4); }
.step h3 { font-size: var(--t-xl); font-weight: 300; letter-spacing: -0.02em; }
.step p { color: var(--ink-soft); max-width: 34rem; }
.step .phone { justify-self: center; margin-top: var(--s-2); }
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .story__stage { display: block; position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
  .story__stage .phone { width: min(340px, 26vw); }
  .step { min-height: 78vh; align-content: center; opacity: 0.35; transition: opacity 600ms var(--ease); }
  .step.is-on { opacity: 1; }
  .step .phone { display: none; }
}

/* Destaques: grelha de cartoes de vidro com uma captura cada, a ocupar a largura toda */
.hl { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.hl__card { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-4) var(--s-3) 0; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, var(--raised-top), var(--surface-raised)); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.hl__card h3 { font-size: var(--t-lg); }
.hl__card p { color: var(--ink-soft); }
.hl__card .phone { justify-self: center; width: 78%; margin-bottom: -38%; }
@media (min-width: 900px) { .hl { grid-template-columns: repeat(3, 1fr); } }

/* Mosaico de fotografias reais do showroom */
.mosaic { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); aspect-ratio: 9 / 14; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); } .mosaic img:nth-child(even) { transform: translateY(12%); } }

/* Duas colunas editoriais (Sobre): titulo grande de um lado, texto do outro */
.split2 { display: grid; gap: var(--s-4); }
.split2 h2 { font-size: var(--t-2xl); }
.split2__text { display: grid; gap: var(--s-3); }
.split2__text p { color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.55; }
.split2__text p strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .split2 { grid-template-columns: 1fr 1.1fr; gap: var(--s-6); align-items: start; } .split2 h2 { position: sticky; top: 18vh; } }

/* Faixa com video real */
.band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* Fotografia real e texto lado a lado, a ocupar a largura */
.photosplit { display: grid; gap: var(--s-4); align-items: center; }
.photosplit img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.photosplit__text { display: grid; gap: var(--s-3); }
.photosplit__text h2 { font-size: var(--t-2xl); }
.photosplit__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
@media (min-width: 900px) { .photosplit { grid-template-columns: 1fr 1fr; gap: var(--s-6); } .photosplit--flip img { order: 2; } }
.split2 .brands { margin-top: 0; }
.band--video { min-height: min(86svh, 820px); }

/* ===== Ronda 26/11: regras do Simao ===== */
/* Titulos contidos: nunca 6 linhas para 6 palavras */
:root {
  --t-3xl: clamp(2.4rem, 1.5rem + 3.4vw, 4.6rem);
  --t-2xl: clamp(2rem, 1.35rem + 2.2vw, 3.4rem);
  --t-xl: clamp(1.45rem, 1.15rem + 1vw, 2.1rem);
}
.apphero__text h1 { max-width: 15ch; }
.intro h1, .center h2, .split2 h2, .photosplit__text h2, .band__body h2 { max-width: 20ch; }

/* Barra de cima com CTA */
.top__end { display: flex; align-items: center; gap: var(--s-3); }
.top__cta { min-height: 40px; padding: 0 1rem; font-size: var(--t-xs); }
.top__cta svg { display: none; }
@media (max-width: 899px) { .top__cta { display: none; } }

/* Topo: tudo dentro do primeiro ecra, telemovel inteiro */
.apphero { min-height: 100svh; padding-block: calc(var(--s-5) + 2.5rem) var(--s-3); }
.apphero__grid { min-height: calc(100svh - var(--s-5) - 3.5rem); }
.apphero__device .phone { height: min(76svh, 680px); width: auto; }
.apphero__text { gap: var(--s-2); }
.apphero__text .lede { font-size: var(--t-md); }
.stores { display: flex; flex-wrap: wrap; gap: var(--s-1); align-items: center; margin-top: var(--s-1); }
.store { display: inline-flex; align-items: center; gap: 0.55rem; height: 44px; padding: 0 0.9rem; border-radius: var(--r-md); color: var(--ink); background: linear-gradient(180deg, var(--raised-top), var(--surface-raised)); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store span { display: grid; line-height: 1.05; font-size: 0.95rem; font-weight: 600; }
.store small { font-size: 0.62rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0.02em; }
@media (max-width: 899px) {
  .apphero { min-height: 0; padding-top: calc(var(--s-5) + 3rem); }
  .apphero__grid { min-height: 0; }
  .apphero__device .phone { height: min(64svh, 560px); }
}

/* Fila de ecras da app: desliza na horizontal com o scroll */
.rail { padding-block: var(--s-5); overflow: hidden; }
.rail__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.rail__head h2 { font-size: var(--t-2xl); max-width: 18ch; }
.rail__head p { color: var(--ink-soft); max-width: 36rem; }
.rail__track { display: flex; gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: max-content; will-change: transform; }
.rail__card { flex: 0 0 auto; width: clamp(240px, 21vw, 320px); display: grid; gap: var(--s-2); align-content: start; }
.rail__card .phone { width: 100%; height: auto; max-height: 64svh; aspect-ratio: 1206 / 2622; justify-self: center; }
.rail__card h3 { font-size: var(--t-lg); font-weight: 600; }
.rail__card p { color: var(--ink-soft); font-size: var(--t-sm); }
.rail__bar { height: 2px; margin: var(--s-4) auto 0; max-width: var(--wrap); background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
@media (max-width: 899px) {
  .rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rail__viewport::-webkit-scrollbar { display: none; }
  .rail__card { scroll-snap-align: center; width: min(72vw, 300px); }
  .rail__card .phone { max-height: 60svh; }
}
/* Quando o rail esta preso no ecra, o cartao nunca passa da altura da janela */
.rail.is-pinned { height: 100svh; display: grid; align-content: center; padding-block: 0; }

/* Cenario interativo: a divisao acende e apaga */
.scene { display: grid; gap: var(--s-4); align-items: center; }
.scene__stage { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 9 / 11; max-height: 78svh; justify-self: center; width: 100%; max-width: 560px; box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.scene__stage img { width: 100%; height: 100%; object-fit: cover; }
.scene__dark { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.86); transition: opacity 1200ms var(--ease); pointer-events: none; }
.scene.is-on .scene__dark { opacity: 0; }
.scene__text { display: grid; gap: var(--s-3); }
.scene__text h2 { font-size: var(--t-2xl); }
.scene__text p { color: var(--ink-soft); max-width: 32rem; }
.scene__toggle { justify-self: start; }
@media (min-width: 900px) { .scene { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }

/* FAQ: fechadas por predefinicao */
.faq { display: grid; gap: var(--s-4); }
.faq h2 { font-size: var(--t-2xl); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-block: var(--s-3); font-size: var(--t-lg); font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform 400ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--ink-soft); max-width: 48rem; padding-bottom: var(--s-3); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.6fr; gap: var(--s-6); align-items: start; } .faq > div:first-child { position: sticky; top: 18vh; } }

/* Contacto: formulario por cima do video do showroom */
.contact { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); min-height: min(92svh, 860px); display: grid; align-items: center; box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.contact video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.35) 100%); }
.contact__grid { display: grid; gap: var(--s-4); padding: clamp(1.5rem, 1rem + 3vw, 4rem); }
.contact__text { display: grid; gap: var(--s-3); align-content: start; }
.contact__text h2 { font-size: var(--t-2xl); }
.contact__text p { color: var(--ink-soft); max-width: 30rem; }
.form { display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-3); border-radius: var(--r-lg); background: rgba(14, 14, 14, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 0.8rem 1rem; border-radius: var(--r-md); border: 0; font: inherit; font-size: var(--t-sm); color: var(--ink); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease); }
.form textarea { min-height: 110px; resize: vertical; }
.form select { appearance: none; color: var(--ink-soft); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--accent); }
.form ::placeholder { color: var(--ink-faint); }
.form__row { display: grid; gap: var(--s-2); }
.form__consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-xs); color: var(--ink-soft); }
.form__consent input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form__consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.form .btn { width: 100%; margin-top: var(--s-1); }
.form__status { font-size: var(--t-sm); color: var(--ink-soft); min-height: 1.4em; }
.form__status.is-ok { color: var(--ok, #7bc8a0); }
.form__status.is-error { color: #e5766f; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; } .form__row { grid-template-columns: 1fr 1fr; } }

/* Marcas com logotipos, mesmo tamanho otico */
.brands li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; }
.brands a img { display: block; width: auto; opacity: 0.9; transition: opacity 300ms var(--ease); }
.brands a:hover img { opacity: 1; }
.logo--home { height: 40px; }
.logo--lightmind { height: 18px; }
.logo--cave, .logo--theatre { height: 34px; }
.logo--terrae { height: 28px; }
.split2__lead { display: grid; gap: var(--s-2); align-content: start; }
@media (min-width: 900px) { .split2 h2 { position: static; } .split2__lead { position: sticky; top: 18vh; } }

/* Fotografia real da Nisa a ser usada */
.inuse { display: grid; gap: var(--s-4); align-items: center; }
.inuse img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 9 / 11; object-fit: cover; max-height: 80svh; box-shadow: inset 0 1px 0 var(--edge), 0 0 0 1px var(--line); }
.inuse__text { display: grid; gap: var(--s-3); }
.inuse__text h2 { font-size: var(--t-2xl); }
.inuse__text p { color: var(--ink-soft); max-width: 32rem; }
@media (min-width: 900px) { .inuse { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__text .link { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
/* Fila presa: cabecalho numa linha e cartoes a altura da janela */
.rail__head h2 { max-width: none; }
@media (min-width: 900px) {
  .rail__head { grid-template-columns: auto 1fr; align-items: end; column-gap: var(--s-5); margin-bottom: var(--s-3); }
  .rail__head p { justify-self: end; text-align: right; }
  .rail.is-pinned { align-content: center; gap: 0; }
  .rail.is-pinned .rail__card .phone { max-height: calc(100svh - 21rem); width: auto; }
  .rail.is-pinned .rail__card { width: auto; max-width: 300px; }
  .rail.is-pinned .rail__card h3, .rail.is-pinned .rail__card p { max-width: 17rem; }
  .rail.is-pinned .rail__bar { margin-top: var(--s-3); }
}
@media (min-width: 900px) {
  .rail.is-pinned { grid-template-columns: minmax(0, 1fr); }
  .rail.is-pinned .rail__card .phone { height: calc(100svh - 22rem); max-height: 600px; width: auto; }
}
.form__consent input { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; cursor: pointer; transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease); }
.form__consent input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) scale(0); transition: transform 250ms var(--ease); margin-top: -2px; }
.form__consent input:checked { background: var(--accent); box-shadow: none; }
.form__consent input:checked::after { transform: rotate(-45deg) scale(1); }
.logo--home { height: 44px; }
.logo--cave, .logo--theatre { height: 42px; }
.logo--lightmind { height: 19px; }
.logo--terrae { height: 30px; }
/* apple-design: a fila desliza sempre a mao quando nao esta presa (movimento reduzido incluido) */
.rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__card { scroll-snap-align: start; }
.rail.is-pinned .rail__viewport { overflow: visible; scroll-snap-type: none; }
@media (prefers-reduced-transparency: reduce) {
  .top.is-scrolled, .form { background: #121212; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Telemovel: o topo inteiro (texto, botoes e app) cabe no primeiro ecra */
@media (max-width: 899px) {
  .apphero { height: 100svh; min-height: 560px; padding-top: calc(var(--s-5) + 1.5rem); padding-bottom: var(--s-2); }
  .apphero__grid { height: 100%; min-height: 0; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); align-items: stretch; }
  .apphero__text h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem); }
  .apphero__text .lede { font-size: var(--t-sm); }
  .apphero__text .btn--quiet { display: none; }
  .apphero__text .actions .btn { flex: 1 1 auto; }
  .stores { margin-top: 0; }
  .store { height: 38px; }
  .apphero__device { min-height: 0; height: 100%; display: flex; justify-content: center; }
  .apphero__device .phone { height: 100%; max-height: none; width: auto; border-radius: 34px; padding: 6px; }
  .apphero__device .phone__screen { border-radius: 29px; }
  .apphero__device .phone::after { top: 12px; height: 16px; }
}
@media (max-width: 899px) { .apphero { padding-top: 7.25rem; } }
