/* Zen Workout — site styles. Colours, type and spacing follow the Figma design “Zen Workout · Design”. */

/* Inter, served by the site itself (no request to Google). One file holds every weight from 400 to 800. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  /* Palette (Figma variable names in comments) */
  --primary: #faf8f7;      /* Global/Primary, Palette/Hint of Red */
  --text: #403a36;         /* Global/Text, Global/Secondary */
  --accent: #9b8b98;       /* Global/Accent, Palette/Venus */
  --scorpion: #685a65;
  --thatch: #c19e9f;
  --sand: #c9ada7;
  --ebony: #22223b;        /* Palette/Ebony Clay */
  --mulled: #4a4e69;       /* Palette/Mulled Wine */
  --swirl: #d6cfca;
  --swirl-light: #edeae7;
  --dawn: #f2e9e3;         /* Palette/Dawn Pink */
  --header-bg: #f2e9e4;
  --latte: #bfa799;
  --link: #736861;
  --link-hover: #24201e;
  --footer-link: rgba(250, 248, 247, .56);
  --white: #fff;
  --ok: #2f6b4f;
  --error: #9b2c2c;
  --destructive: #ca0202;  /* Destructive */
  --destructive-bg: #f7e4e4; /* Destructive Background */
  --green-text: #327d0f;   /* Green Text */
  --green-bg: rgba(76, 187, 23, .2); /* Green Background */
  --link-blue: #00a1d8;    /* Palette/Link Blue */
  --card-border-subtle: rgba(0, 0, 0, .13); /* Custom/Card Border Subtle */
  --hairline: .6px;        /* The thin edge on boxes, fields, choices and dividers */
  --control-border: rgba(0, 0, 0, .15); /* The edge of a choice box (Figma “Choice Option”) */
  --shadow-control: 0 0 2px rgba(0, 0, 0, .1);  /* The soft shadow on choice boxes and pills */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .05); /* Form Container, Style=Elevated */
  --card-stroke: rgba(0, 0, 0, .1);             /* The edge of a text box (Figma “Form Field”, Surface=Light) */
  --shadow-button: 0 0 2px rgba(0, 0, 0, .2);   /* Filled buttons (Figma “Form Button”) */
  --shadow-button-light: 0 0 2px rgba(0, 0, 0, .1); /* The light button on a coloured band (Surface=Dark) */

  /* Older names still used by the member area */
  --ink: var(--ebony);
  --slate: var(--mulled);
  --mauve: var(--accent);
  --plum: var(--scorpion);
  --rose: var(--thatch);
  --cream: var(--header-bg);
  --bg: var(--primary);
  --muted: #6b625d;
  --line: var(--swirl);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-field: 6px;     /* Radius/Field */
  --pad: 50px;             /* Space/Container Padding */
  --gap: 20px;             /* Space/Widget Gap */
  --max: 1340px;
  --header-h: 65px;
}
@media (max-width: 1024px) { :root { --pad: 32px; } }
@media (max-width: 640px) { :root { --pad: 20px; } }

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
  background: var(--primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mulled); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; color: inherit; }
h1 { font-size: clamp(2.6rem, 6.7vw, 6rem); font-weight: 800; line-height: 1; }
h2 { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 700; line-height: 1; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1; }
p { margin: 0 0 14.4px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ebony); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Type styles from the design */
.title { font-size: clamp(2.6rem, 6.7vw, 6rem); font-weight: 800; line-height: 1; margin: 0 0 14.4px; }      /* Global/Title 96 */
.subtitle { font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 700; line-height: 1; margin: 0 0 14.4px; } /* Global/Subtitle 72 */
.display { font-size: clamp(1.75rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.1; margin: 0 0 14.4px; }
.eyebrow { font-size: 11px; line-height: 1.2; text-transform: uppercase; margin: 0 0 14.4px; padding-left: 4px; }
.kicker { font-size: 1rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; margin: 0 0 14.4px; }  /* Custom/Category */
.lead { font-size: 1rem; line-height: 1.2; }
.highlight { font-weight: 700; }
.rounded { border-radius: 20px; }
.measure { max-width: 600px; }
.measure--body { max-width: 34em; line-height: 1.35; } /* about 65 letters a line and a little more space between lines, for longer reading on the home page */
.center { text-align: center; }
.center .measure, .measure--center { margin-inline: auto; }
.stack-lg > * + * { margin-top: clamp(48px, 7vw, 96px); }

/* Icons: Font Awesome 6 icons from the design, coloured with the text colour */
.ico { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico--bag { --i: url(/assets/img/icon-bag.svg); }
.ico--user { --i: url(/assets/img/icon-user.svg); }
.ico--instagram { --i: url(/assets/img/icon-instagram.svg); }
.ico--youtube { --i: url(/assets/img/icon-youtube.svg); }
.ico--chevron { --i: url(/assets/img/icon-chevron-down.svg); }
.ico--check { --i: url(/assets/img/icon-check.svg); }
.ico--question { --i: url(/assets/img/icon-circle-question.svg); }
.ico--envelope { --i: url(/assets/img/icon-envelope.svg); }
.ico--location { --i: url(/assets/img/icon-location.svg); }
.ico--back { --i: url(/assets/img/icon-back.svg); }
.ico--search { --i: url(/assets/img/icon-search.svg); }
.ico--mail { --i: url(/assets/img/icon-mail.svg); }
.ico--map-pin { --i: url(/assets/img/icon-map-pin.svg); }
.ico--video { --i: url(/assets/img/icon-video.svg); }
.ico--heart { --i: url(/assets/img/icon-heart.svg); }
.ico--user-lock { --i: url(/assets/img/icon-user-lock.svg); }
.ico--info { --i: url(/assets/img/icon-info.svg); }

/* Buttons: 1px border, 7px corners, Inter 16 on a 40px line (Figma “Button”) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; border: 1px solid currentColor; border-radius: 7px; background: transparent;
  font: 400 1rem/2.5 var(--font); color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--light { color: var(--primary); border-color: var(--primary); }
.btn--light:hover { background: var(--primary); color: var(--text); }
.btn--dark, .btn--outline { color: var(--text); border-color: var(--text); }
.btn--dark:hover, .btn--outline:hover { background: var(--text); color: var(--primary); }
.btn--solid, .btn--primary { background: var(--text); border-color: var(--text); color: var(--primary); }
.btn--solid:hover, .btn--primary:hover { background: var(--link-hover); border-color: var(--link-hover); }
.btn--soon, .btn.is-disabled, .btn:disabled { background: rgba(250,248,247,.17); border-color: rgba(250,248,247,.5); color: rgba(250,248,247,.49); border-radius: 10px; cursor: not-allowed; }
.section--light .btn.is-disabled, .plan .btn:disabled { background: var(--swirl-light); border-color: var(--swirl); color: var(--link); }
.btn--block { width: 100%; }
.btn--small { line-height: 2; font-size: .875rem; }
.link-arrow { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow::after { content: ' →'; }
.link-back { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; }

/* Header (Figma “Header”) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); box-shadow: 0 0 20px rgba(0,0,0,.28); } /* Figma “Header Shadow”: blur 20, 28% black */
.site-header__inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); padding-inline: 45px; }
.site-header__brand { flex: none; display: block; }
.site-header__brand img { width: 59px; height: 59px; }
.site-nav { flex: 1; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.site-nav a, .site-nav__soon { display: block; padding: 5px 0; font-size: 1rem; line-height: 16px; text-decoration: none; color: var(--accent); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--scorpion); }
.site-nav__soon { cursor: default; }
.site-header__icon { display: inline-flex; color: var(--accent); text-decoration: none; }
.site-header__icon .ico--bag { font-size: 20px; }
.site-header__icon .ico--user { font-size: 21px; }
a.site-header__icon:hover { color: var(--scorpion); }
.site-header__icon.is-soon { cursor: default; }
.site-nav__mobile-only { display: none !important; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--scorpion); cursor: pointer; border-radius: 8px; }
/* The ☰: three lines that turn into a × while the menu is open. */
.menu-toggle__bars { position: relative; display: block; width: 20px; height: 20px; }
.menu-toggle__bars i { position: absolute; left: 0; top: 9px; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .35s cubic-bezier(.65, 0, .35, 1), opacity .2s; }
.menu-toggle__bars i:nth-child(1) { transform: translateY(-5px); }
.menu-toggle__bars i:nth-child(3) { transform: translateY(5px); }
.site-header.is-open .menu-toggle__bars i:nth-child(1) { transform: rotate(45deg); }
.site-header.is-open .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle__bars i:nth-child(3) { transform: rotate(-45deg); }

/* The header folds its links into the ☰ menu only when they no longer fit: when the space after the last link would
   be smaller than the space between the basket and account icons. public/assets/header.js measures this and sets
   .is-compact. */
.site-header.is-compact .site-header__inner { gap: 20px; padding-inline: 20px; }
.site-header.is-compact .site-header__brand { margin-right: auto; }
.site-header.is-compact .menu-toggle { display: inline-flex; }
.site-header.is-compact .site-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--header-bg);
    padding: 24px 20px 40px; overflow-y: auto; display: none; flex-direction: column; gap: 24px; }
/* “Cortina”: the menu drops from under the header like a blind, and its rows follow it down slightly behind, one after
   another. Closing pulls it back up, quicker. No movement when the visitor's device asks for less (see the top). */
.site-header.is-compact .site-nav { display: flex; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .32s cubic-bezier(.7, 0, .84, 0), visibility 0s .32s; }
.site-header.is-compact.is-open .site-nav { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .55s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
.site-header.is-compact .site-nav li, .site-header.is-compact .site-nav .lang-switch { opacity: 0; transform: translateY(-14px); transition: opacity .15s, transform .2s; }
.site-header.is-compact.is-open .site-nav li, .site-header.is-compact.is-open .site-nav .lang-switch { opacity: 1; transform: none; transition: opacity .35s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.site-header.is-compact.is-open .site-nav li:nth-child(1) { transition-delay: 90ms; }
.site-header.is-compact.is-open .site-nav li:nth-child(2) { transition-delay: 120ms; }
.site-header.is-compact.is-open .site-nav li:nth-child(3) { transition-delay: 150ms; }
.site-header.is-compact.is-open .site-nav li:nth-child(4) { transition-delay: 180ms; }
.site-header.is-compact.is-open .site-nav li:nth-child(5) { transition-delay: 210ms; }
.site-header.is-compact.is-open .site-nav li:nth-child(6) { transition-delay: 240ms; }
.site-header.is-compact.is-open .site-nav li:nth-child(7) { transition-delay: 270ms; }
.site-header.is-compact.is-open .site-nav li:nth-child(8) { transition-delay: 300ms; }
.site-header.is-compact.is-open .site-nav .lang-switch { transition-delay: 330ms; }
.site-header.is-compact .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
.site-header.is-compact .site-nav a, .site-header.is-compact .site-nav__soon { font-size: 1.5rem; line-height: 1.2; padding: 14px 0; border-bottom: var(--hairline) solid var(--card-border-subtle); color: var(--scorpion); }
.site-header.is-compact .site-nav__soon { opacity: .55; }
.site-header.is-compact .site-nav__mobile-only { display: block !important; }
.site-header.is-compact .site-nav .lang-switch { display: flex !important; gap: 16px; }
.site-header.is-compact .site-nav .lang-switch a { font-size: 1rem; border: 0; padding: 8px 0; }
.site-header.is-compact .site-nav .lang-switch a[aria-current='true'] { color: var(--text); font-weight: 600; }

/* Promo bar (below the header, Ebony Clay) */
.promo-bar { display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; min-height: 70px; padding: 14px 40px; background: var(--ebony); color: var(--primary); }
.promo-bar p { margin: 0; max-width: 900px; font-size: 1rem; line-height: 1.2; }
/* Promotional banners (Páginas › Faixas promocionais): the banner's colour, white or dark text to suit it. */
.promo-banner { background: var(--banner-bg, var(--wine)); color: var(--banner-fg, var(--primary)); }
.promo-banner__inner { display: flex; align-items: center; justify-content: center; gap: 12px 32px; flex-wrap: wrap; max-width: 1200px; min-height: 70px; margin: 0 auto; padding: 14px 40px; }
.promo-banner__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: center; }
.promo-banner__title { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.promo-banner__body { margin: 0; font-size: .95rem; line-height: 1.35; }
.promo-banner__btn { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 1.5px solid currentColor; border-radius: 7px; color: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; }
.promo-banner__btn:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
@media (max-width: 640px) { .promo-banner__inner { padding: 14px 20px; flex-direction: column; } }
@media (max-width: 640px) { .promo-bar { padding: 14px 20px; text-align: center; } }

/* Full-width bands (sections). Every band has 50px padding, as in the design. */
.section { padding: var(--pad); }
.section--tall { min-height: 810px; display: flex; flex-direction: column; justify-content: center; }
.section--tight { padding-block: 40px; }
.section--light { background: var(--primary); color: var(--text); }
.section--venus, .section--mauve { background: var(--accent); color: var(--primary); }
.section--thatch, .section--rose { background: var(--thatch); color: var(--primary); }
.section--scorpion, .section--plum { background: var(--scorpion); color: var(--primary); }
.section--mulled, .section--slate { background: var(--mulled); color: var(--primary); }
.section--sand { background: var(--sand); color: var(--white); }
.section--dark { background: var(--text); color: var(--primary); }
.section--swirl { background: var(--swirl); }
.section > .inner { width: 100%; max-width: var(--max); margin-inline: auto; }
.section-title { font-size: clamp(1.75rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.5; margin-bottom: 14.4px; }
.section-intro { margin-bottom: 14.4px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head .section-title { margin: 0; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap); }
.stack > * { margin: 0; }
.center.stack { align-items: center; }
.w-600 { max-width: 600px; } .w-610 { max-width: 610px; } .w-640 { max-width: 640px; } .w-700 { max-width: 700px; } .w-750 { max-width: 750px; } .w-800 { max-width: 800px; }

.split { display: grid; gap: var(--gap); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--center, .split--media { align-items: center; }
  .split--top { align-items: start; }
  .split--reverse > :first-child { order: 2; }
}

/* Image boxes. Pictures are scaled to fit, never cropped: where a box has a fixed size, the whole picture shows inside it. */
.media { width: 100%; object-fit: contain; background: var(--swirl-light); }
/* Images that can be see-through (PNG, WebP, GIF, SVG) show the page behind them, not a coloured box. */
.media.is-clear, img.is-clear { background: none; }
.media--r10 { border-radius: 10px; } .media--r20 { border-radius: 20px; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile-grid img { aspect-ratio: 439 / 300; object-fit: cover; width: 100%; }
.portrait { aspect-ratio: 4 / 5 !important; }

/* Hero (home): Venus background, text on the left */
.hero {
  position: relative; min-height: 810px; display: flex; flex-direction: column; justify-content: center; padding: var(--pad); color: var(--primary); overflow: hidden;
  /* Figma “home_background”: still layered shapes, drawn as a vector so they stay sharp at any size. */
  background: var(--accent) url(/assets/img/home-background.svg) center top / cover no-repeat;
}
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; max-width: var(--max); margin-inline: auto; }
.hero__content > * { margin: 0; }
.hero__content h1 { max-width: 1000px; line-height: 1.1; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero__text > * { margin: 0; }
.hero__content .lead { max-width: 500px; line-height: 1.3; }
@media (max-width: 700px) { .hero, .section--tall { min-height: 0; padding-block: 96px; } }

/* Page header (Serviços): Scorpion band, title at the bottom left */
.page-header { min-height: 450px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); background: var(--scorpion); color: var(--primary); }
.page-header > div { width: 100%; max-width: var(--max); margin-inline: auto; }
.page-header h1 { font-size: clamp(2.6rem, 6.7vw, 6rem); font-weight: 800; margin-bottom: 14.4px; max-width: 670px; }
.page-header .lead { max-width: 670px; margin: 0 0 14.4px; }
.page-header--short { min-height: 300px; }
@media (max-width: 700px) { .page-header { min-height: 280px; } }

/* Accordion (Figma “Accordion Item”) */
.acc { border-bottom: var(--hairline) solid var(--card-border-subtle); }
.acc summary { display: flex; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1rem; line-height: 1.2; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; flex: none; width: 14px; height: 14px; margin-left: auto; background: currentColor; -webkit-mask: url(/assets/img/icon-chevron-down.svg) center / contain no-repeat; mask: url(/assets/img/icon-chevron-down.svg) center / contain no-repeat; transition: transform .2s; }
.acc[open] summary::after { transform: rotate(180deg); }
/* Opening and closing slide (site.js animates the height; the arrow turns back as soon as closing starts). */
.acc.is-animating, .consent__more.is-animating { overflow: hidden; }
.acc.is-closing summary::after, .consent__more.is-closing summary::after { transform: none; }
@media (prefers-reduced-motion: reduce) { .acc summary::after, .consent__more summary::after { transition: none; } }
.acc__body { padding-bottom: 16px; line-height: 1.3; }
.acc__body p:last-child, .acc__body ul:last-child { margin-bottom: 0; }
.acc__body ul { margin: 0 0 10px; padding-left: 1.2em; }

/* Cards and features */
.feature-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid:not(.feature-grid--2) { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); border: var(--hairline) solid var(--card-border-subtle); }
.card p:last-child { margin-bottom: 0; }
.card--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.quote { margin: 0 0 14.4px; font-size: 22.4px; font-weight: 400; line-height: 1; }

/* Plan cards (Figma “Library” set): Dawn Pink, a faint outline, 16px corners, centred price, ticked list, dark button. */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 318px)); justify-content: center; gap: 24px; }
.plan-grid--2 { max-width: none; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 20px; background: var(--dawn); border: var(--hairline) solid rgba(0, 0, 0, .05); border-radius: 16px; color: var(--text); }
.plan--featured { border-color: var(--text); }
.plan-grid--public .plan { min-height: 500px; }
.plan__rule { width: 100%; margin: 0; border: 0; border-top: var(--hairline) solid var(--latte); }
.plan__head { min-height: 40px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; }
/* The label row over the name is 18px tall (Figma: the “NOVO” or “-50%” slot). */
.plan__badge { font-size: 12px; font-weight: 500; color: var(--latte); text-transform: uppercase; line-height: 18px; }
.plan__badge--sale { align-self: flex-end; margin-bottom: 1px; padding: 3px 4px 2px; border-radius: 4px; background: #9aeaa9; color: #038932; font-size: 12px; font-weight: 400; line-height: 1; text-transform: none; }
.plan__name { margin: 0; font-size: 24px; font-weight: 700; line-height: 1; text-align: center; }
.plan__price { min-height: 70px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.plan__price strong { font-size: 32px; font-weight: 700; line-height: 1; }
.plan__price s { font-size: 32px; font-weight: 400; text-decoration: none; margin-right: .25em; }
.plan__price span { font-size: 14px; line-height: 1.2; }
/* What is added when signing up, under the price and over the line (Figma Library › Card: “Acrescem 25€…”). */
.plan__price:has(+ .plan__fee) { min-height: 0; }
.plan__fee { margin: 0; min-height: 40px; padding-bottom: 16px; border-bottom: var(--hairline) solid var(--latte); font-size: 11px; line-height: 1; }
.plan__fee strong { font-weight: 600; }
.plan__note { margin: 0; padding-bottom: 16px; border-bottom: var(--hairline) solid var(--latte); font-size: 11px; line-height: 1.2; text-align: center; }
.plan__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan__features li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.55; }  /* Figma “Text/14 Regular” */
.plan__features .ico--check { font-size: 16px; }
.plan .btn { width: 100%; border: 0; border-radius: 10px; }   /* Figma: a 40px dark button without an outline */
.plan form { margin-top: auto; }
.plan form .btn { width: 100%; }

/* Timetable placeholder */
.timetable { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: 24px; }

/* Notices */
.notice { background: var(--dawn); border-left: 4px solid var(--thatch); padding: 14px 18px; border-radius: 8px; margin: 0 0 1.5rem; color: var(--text); }
.notice--panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); }
.notice--panel p { margin: 0; flex: 1 1 320px; }

/* Help line under FAQs */
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; padding: 20px; }
.help p { display: flex; align-items: center; gap: 15px; margin: 0; line-height: 1.3; }
.help .ico--question { font-size: 20px; }
.help .btn { border-radius: 6px; }

/* Testimonials on Sand (the home page carousel is styled under Home below) */
.testimonial { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.testimonial blockquote { margin: 0; font-size: 16px; line-height: 19.2px; }
.testimonial figcaption { font-size: 12.8px; line-height: 16px; text-transform: uppercase; }
.testimonial figcaption::before { content: '– '; }

/* Blog */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.search { display: flex; gap: 10px; margin-bottom: 1.5rem; max-width: 560px; }
.search input { flex: 1; min-width: 0; }
.search__status { margin-bottom: 1.5rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-weight: 600; }


/* Rich text from the database */
.prose { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--thatch); margin: 1.5em 0; padding-left: 1.2em; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: var(--hairline) solid var(--card-border-subtle); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose--legal { font-size: 1rem; }
.prose > :first-child { margin-top: 0; }

/* FAQ lists */
.faq-list { display: flex; flex-direction: column; width: 100%; max-width: 680px; margin-inline: auto; }
.faq .prose { padding-bottom: 16px; line-height: 1.3; }
.section--dark .acc { border-color: var(--swirl); }

/* Forms (Figma “Form Field” and “Form Button”) */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field, .form label:not(.check) { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.2; font-weight: 500; }  /* Figma “Form/Label” */
input, textarea, select { font: 400 1rem/1.2 var(--font); color: var(--text); background: var(--white); border: var(--hairline) solid var(--card-stroke); border-radius: 6px; padding: 6px 16px; width: 100%; min-height: 34px; }
/* Placeholder text is always regular weight, whatever the box's own text weight. */
::placeholder { font-weight: 400; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155,139,152,.25); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--text); }
textarea { resize: vertical; min-height: 34px; }
.field--dark { color: var(--primary); }
/* Surface=Dark, on the newsletter band: a faint white fill and a thin light edge. */
.field--dark input { background: rgba(255, 255, 255, .05); border-color: var(--primary); color: var(--primary); border-radius: var(--radius-field); }
.form-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--text); border-radius: var(--radius-field); background: var(--text); color: var(--primary); font: 400 1rem/1 var(--font); cursor: pointer; justify-self: start; }
.form-btn:hover { background: var(--link-hover); }
.form-btn--dark { background: var(--primary); border-color: var(--primary); color: var(--accent); width: 198px; max-width: 100%; }
.form-btn:disabled { cursor: not-allowed; }
.form .btn { justify-self: start; }
.form__status { padding: 12px 16px; border-radius: 10px; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.form__status--ok { background: var(--green-bg); color: var(--green-text); }
.form__status--error { background: var(--destructive-bg); color: var(--destructive); }
/* ---------- Shared form components (Figma page “Components”) ---------- */
/*
 * Form Button: 42px tall (Slim: 34px), 6px corners, Inter 16 on one line, 16px at each side.
 * Surface=Light is the default (dark fill, white text); the modifiers are the other surfaces.
 */
.fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 42px; padding: 0 16px; border: 1px solid var(--text); border-radius: var(--radius-field); background: var(--text); color: var(--white); font: 400 16px/1 var(--font); text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.fbtn:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--white); }
.fbtn--dark { background: var(--primary); border-color: var(--primary); color: var(--accent); }           /* Surface=Dark, for coloured bands */
.fbtn--dark:hover { background: var(--white); border-color: var(--white); color: var(--accent); }
.fbtn.fbtn--dark:disabled, .fbtn.fbtn--dark:disabled:hover { background: var(--primary); border-color: var(--primary); color: var(--accent); opacity: .6; }
.fbtn--outlined { background: transparent; color: var(--text); }                                            /* Surface=ButtonOutlined */
.fbtn--outlined:hover { background: var(--text); border-color: var(--text); color: var(--primary); }
.fbtn--slim { height: 34px; }                                                                               /* Surface=ButtonSlim: only beside a 34px text box, to match its height */
.fbtn--destructive { background: var(--destructive); border-color: var(--destructive); }                    /* Surface=ButtonDestructive */
.fbtn--destructive:hover { background: #a00000; border-color: #a00000; }
.fbtn--icon::after { content: ''; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url(/assets/img/icon-arrow-right.svg) center / contain no-repeat; mask: url(/assets/img/icon-arrow-right.svg) center / contain no-repeat; } /* Surface=ButtonIcon */
/* Surface=ButtonDisabled: greyed out and inactive (for example while a form is incomplete). */
.fbtn--disabled, .fbtn:disabled, .fbtn[aria-disabled='true'], .fbtn--disabled:hover, .fbtn:disabled:hover { background: rgba(64, 58, 54, .2); border-color: transparent; color: rgba(64, 58, 54, .5); cursor: not-allowed; }
.fbtn--block { display: flex; width: 100%; }

/* Form Container: a white box holding a form. Elevated (soft shadow) on the off-white page; Outlined for quieter boxes and on white. */
.fcard { display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--white); border-radius: 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
.fcard--outlined { border: var(--hairline) solid var(--card-border-subtle); border-radius: 20px; box-shadow: none; }
@media (max-width: 760px) { .fcard { padding: 24px; } }

/* Checkbox: 16px square, 3px corners; white with a Swirl Light edge when off, Text colour with a white tick when on. */
input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--card-border-subtle); border-radius: 3px; background: var(--white) center / 100% 100% no-repeat; vertical-align: middle; cursor: pointer; }
input[type=checkbox]:checked { border-color: var(--text); background-color: var(--text); background-image: url(/assets/img/checkbox-tick.svg); }
input[type=checkbox]:focus { box-shadow: none; }
input[type=checkbox]:focus-visible { outline: 3px solid var(--mulled); outline-offset: 2px; }
input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.icon-list li { display: flex; gap: 8px; align-items: center; }
.icon-list .ico { font-size: 17.6px; }
.icon-list a { text-decoration: none; }

/* Footer (Figma “Footer”): newsletter band on Venus, links band on Ebony Clay */
.site-footer { color: var(--primary); }
.newsletter { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; min-height: 270px; padding: var(--pad); background: var(--accent); }
.newsletter__intro { flex: 1 1 400px; display: flex; flex-direction: column; gap: 20px; }
.site-footer .newsletter__intro h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.2; }
.newsletter__intro p { margin: 0; line-height: 1.3; }
/* Name and surname side by side, the email under them, then the light button (Figma “Footer”, 600px wide). */
.newsletter__form { flex: 0 1 600px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.newsletter__form .fbtn { justify-self: start; }
.newsletter__email { grid-column: 1 / -1; }
@media (max-width: 520px) { .newsletter__form { grid-template-columns: 1fr; } }

/* Wider than 900px: the brand and the four link columns stay in one row, each column narrowing as the window does
   (up to the Figma widths, 277px and 240px). 900px and narrower (phones and tablets): see the accordion below. */
.site-footer__links { display: flex; flex-wrap: nowrap; gap: 20px; padding: var(--pad); background: var(--ebony); font-size: 12px; line-height: 1.2; }
.site-footer__brand { flex: 0 1 277px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.footer-col { flex: 0 1 240px; min-width: 0; }
.footer-col__fold { display: flex; flex-direction: column; gap: 20px; }
/* On computers the column's heading is just a heading: nothing to open or close (site.js keeps it open). */
.footer-col__head { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.footer-col__head::-webkit-details-marker { display: none; }
.footer-col__icon { display: none; }
.site-footer__copy { display: flex; flex-direction: column; gap: 4px; }
.site-footer__copy strong { font-size: 14px; }
.site-footer__cookies { font-size: 14px; font-weight: 600; text-decoration: none; }
.site-footer__links h2 { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.site-footer__links h2.site-footer__plain { text-transform: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer nav a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer__follow p { margin: 0 0 4px; font-weight: 600; }
.social { display: flex; gap: 10px; padding-top: 3px; }
.social a { display: inline-flex; color: var(--primary); font-size: 15px; }
/* Language flags (Figma “Footer”): 20px tall, 4px corners, 16px apart. */
.lang-switch--footer { display: flex; align-items: center; gap: 16px; }
.lang-switch--footer a { display: block; line-height: 0; border-radius: 4px; }
.lang-switch--footer img { width: auto; height: 20px; object-fit: cover; border-radius: 4px; }
.lang-switch__code { display: none; }

/*
 * Phones and tablets: the link columns become an accordion (a line between rows, the heading on the left and a +
 * on the right that turns into − when open), then, centred under it: the flags with PT / EN, Siga-nos with the
 * icons, the copyright and Customisar cookies.
 */
@media (max-width: 900px) {
  .site-footer__links { flex-direction: column; gap: 0; padding-top: 48px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .footer-col { flex: none; border-top: 1px solid rgba(250, 248, 247, .35); }
  .footer-col:last-child { border-bottom: 1px solid rgba(250, 248, 247, .35); }
  .footer-col__fold { gap: 0; }
  .footer-col__head { min-height: 57px; padding-block: 16px; cursor: pointer; pointer-events: auto; }
  .site-footer__links .footer-col__head h2 { font-size: 14px; text-transform: uppercase; }
  .footer-col__icon { display: block; position: relative; flex: none; width: 14px; height: 14px; }
  .footer-col__icon::before, .footer-col__icon::after { content: ''; position: absolute; inset: 6px 0; height: 2.5px; border-radius: 1px; background: currentColor; transition: transform .2s; }
  .footer-col__icon::after { transform: rotate(90deg); }
  .footer-col__fold[open]:not(.is-closing) .footer-col__icon::after { transform: rotate(0deg); }
  .footer-col__icon::before, .footer-col__icon::after { transition-duration: .28s; }
  .footer-col__fold ul { gap: 0; padding-bottom: 16px; }
  .site-footer nav a { display: inline-block; padding-block: 8px; font-size: 14px; line-height: 1.25; }
  /* The brand goes last, centred, in the order of the design: flags, Siga-nos, copyright, cookies. */
  .site-footer__brand { order: 1; flex: none; align-items: center; gap: 0; padding-top: 48px; text-align: center; font-size: 14px; }
  .site-footer__copy { display: contents; }
  .lang-switch--footer { order: 1; gap: 16px; }
  .lang-switch--footer a { display: inline-flex; align-items: center; gap: 10px; padding-block: 10px; line-height: 1; color: var(--primary); text-decoration: none; font-size: 14px; }
  .lang-switch__code { display: inline; }
  .site-footer__follow { order: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 28px; }
  .site-footer__follow p { margin: 0; font-size: 14px; }
  .social { gap: 6px; margin: 0; padding: 0; }
  .social a { padding: 10px; font-size: 18px; }
  .site-footer__copy strong { order: 3; margin-top: 28px; font-size: 14px; }
  .site-footer__copy span { order: 4; margin-top: 4px; }
  .site-footer__cookies { order: 5; display: inline-block; margin-top: 28px; padding-block: 10px; text-transform: uppercase; }
}

/* Images and preview banner added in Phase 2 */
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5em; }
.preview-banner { position: sticky; top: 0; z-index: 60; margin: 0; padding: 10px var(--pad); background: #8a5a00; color: #fff; text-align: center; font-weight: 600; }

/* ---------- Weekly timetable (booking page and member area) ---------- */
.tt__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.tt__nav a { font-weight: 600; }
.tt__nav strong::first-letter { text-transform: uppercase; }
.tt__nav strong { display: inline-block; }
.tt__days { display: grid; gap: 10px; margin-bottom: 24px; }
@media (min-width: 700px) { .tt__days { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tt__days { grid-template-columns: repeat(7, 1fr); } }
.tt__day { background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: var(--radius-sm); padding: 14px; }
.tt__day h3 { font-size: .95rem; margin-bottom: .6em; }
.tt__day h3::first-letter { text-transform: uppercase; }
.tt__day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tt__empty { color: var(--muted); margin: 0; font-size: .9rem; }
.tt__class { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--bg); text-decoration: none; border: 1.5px solid transparent; }
.tt__class:hover { border-color: var(--mauve); }
.tt__class--mine { border-color: var(--ink); background: var(--cream); }
.tt__time { font-size: .8rem; font-weight: 600; color: var(--muted); }
.tt__meta, .tt__places { font-size: .8rem; color: var(--muted); }
.tt__places { font-weight: 600; color: var(--plum); }

/* ---------- Member area ---------- */
.member__title { font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: .6em; }
.member-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: var(--hairline) solid var(--card-border-subtle); }
.member-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.member-nav a { display: block; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .925rem; }
.member-nav a[aria-current] { background: var(--ink); color: var(--white); }
.member .section-title { margin-top: 1.5em; margin-bottom: .75em; }
.member .form__status { margin-bottom: 20px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-weight: 400; }
.stack-sm > * + * { margin-top: 14px; }
.narrow-form { max-width: 560px; }
.auth-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 800px) { .auth-grid { grid-template-columns: 1.2fr 1fr; } }
.form .check, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; flex: none; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; }
.form input[type=checkbox], .form input[type=radio] { width: auto; }
.yesno { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.yesno legend { font-weight: 600; margin-bottom: 6px; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 8px; }
.stat { display: grid; gap: 4px; }
.stat__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 1.6rem; line-height: 1.15; }
.booking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.booking { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: var(--radius-sm); padding: 14px 18px; }
.booking p { margin: 6px 0 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--cream); color: var(--plum); }
.tag--ok { background: #e3f1ea; color: var(--ok); }
.tag--warn { background: #fbf0d9; color: #8a5a00; }
.class-detail { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .class-detail { grid-template-columns: 1fr 1fr; } }
.class-detail form + form { margin-top: 10px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
.insurance { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.insurance h2 { font-size: 1.25rem; margin-bottom: .3em; }
.insurance p { margin: 0; }
.plan-grid--3 { margin-bottom: 16px; }
@media (min-width: 1100px) { .plan-grid.plan-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.plan form { margin-top: auto; }
.plan form .btn { width: 100%; }
.details-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .details-grid { grid-template-columns: 1fr 1fr; } }
.details-grid h2 { font-size: 1.25rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plain-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
form.inline { display: inline; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); font-size: .925rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: var(--hairline) solid var(--card-border-subtle); }
.data-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.btn[disabled] { cursor: not-allowed; }

/* ---------- Home (Figma “Home · Desktop”) ---------- */
/* The video keeps the 1440 × 810 shape of the design, so it isn't a tall strip on tablets. */
.video-band { position: relative; height: min(810px, 56.25vw); background: var(--swirl); overflow: hidden; }
.video-band__media { width: 100%; height: 100%; object-fit: cover; }
/* The 16:9 Vimeo video covers the band whatever its shape: as wide as the band, at least as tall, centred, and a
   touch larger so no edge of Vimeo's black frame shows. It can't be clicked (no controls to reach). */
.video-band__vimeo { position: absolute; top: 50%; left: 50%; width: max(100%, calc(min(810px, 56.25vw) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; transform: translate(-50%, -50%) scale(1.02); pointer-events: none; }

/* Small label over a heading (“Promoção limitada”, “Primeira coleção”): Figma “Text/12 Semi Bold Caps” in a 12px row. */
.home-tag { height: 12px; margin: 0; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .7px; text-transform: uppercase; opacity: .6; }

/* Tall coloured bands (About, Empresas, Instrutores): heading, text and button in an 800px column on the left. */
.home-tall__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.home-tall__inner > * { margin: 0; max-width: 800px; }
.home-tall__inner .subtitle { line-height: 1.1; padding-bottom: 14.4px; }
.home-tall__inner p { line-height: 1.3; }
.home-tall__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.home-tall__text > * { margin: 0; }

/* Plano Online: two equal columns, text on the left and the devices picture, whole, on the right. */
.section.home-online { padding-block: 100px; }
.home-online__grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .home-online__grid { grid-template-columns: 1fr 1fr; } }
.home-online__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 50px; }
.home-online__text > * { margin: 0; }
.home-online__head { display: flex; flex-direction: column; gap: 8px; }
.home-online__head > * { margin: 0; }
.home-online__head .subtitle { line-height: 1.1; }
.home-online__body { display: flex; flex-direction: column; gap: 12.8px; }
.home-online__body p { margin: 0; line-height: 1.3; }
.home-online__body .highlight { font-weight: 600; line-height: 1.2; }   /* Figma “Text/16 Semi Bold” */
/* The picture keeps the box of the design (660 × 371) and shows whole inside it. */
.home-online__img { width: 100%; height: auto; aspect-ratio: 660 / 371.25; object-fit: contain; }

/* Loja: text on the left, two columns of pictures scrolling in opposite directions on the right. */
.section.home-shop { padding-block: 100px; }
.home-shop__grid { display: grid; gap: 40px; align-items: center; max-width: 1600px; }
@media (min-width: 900px) { .home-shop__grid { grid-template-columns: minmax(280px, 400px) minmax(0, 840px); } }
.home-shop__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 50px; }
.home-shop__text > * { margin: 0; }
.home-shop__head { display: flex; flex-direction: column; gap: 8px; }
.home-shop__head > * { margin: 0; }
.home-shop__head .subtitle { line-height: 1.1; padding-bottom: 14.4px; }
.home-shop__text > p { max-width: 352px; line-height: 1.3; }
.home-shop__marquee { height: 640px; }

/* Testimonials: one quote at a time in an 800px centred column (Figma “Testemunhos”). */
.home-testimonials { min-height: 360px; display: flex; align-items: center; justify-content: center; }
.carousel { width: 100%; max-width: 800px; margin-inline: auto; }
.carousel__viewport { overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; transition: transform .7s cubic-bezier(.45, .05, .25, 1); }
.carousel__track.is-jumping, .carousel__track.is-dragging { transition: none; }
.carousel__slide { flex: 0 0 100%; min-width: 0; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.home-testimonials .testimonial blockquote { line-height: 1.3; }
.home-testimonials .testimonial figcaption { font-size: 16px; font-weight: 600; line-height: 1.2; }

/* Tablets: the tall bands and the top band shrink to fit their text rather than the 810px desktop height. */
@media (min-width: 701px) and (max-width: 1024px) {
  .hero { min-height: 640px; }
  .home-tall { min-height: 0; padding-block: 120px; }
}
@media (max-width: 899px) {
  .home-online__text, .home-shop__text { padding-block: 0; }
  .home-shop__marquee { height: 480px; }
}
/* Phones: the same breathing room above and below every home band. */
@media (max-width: 700px) {
  .section.home-online, .section.home-shop { padding-block: 64px; }
  .home-shop__marquee { height: 420px; }
  .home-testimonials { min-height: 0; padding-block: 56px; }
  .carousel__slide { padding: 0; }
}

/*
 * Scrolling picture strips (Marquee in components.tsx): each strip holds its pictures twice in a row and slides by
 * exactly one set, so the loop has no seam. Pictures keep their own shape. Only `transform` moves, which the
 * graphics chip handles without redrawing the page. The edges fade out with a mask.
 */
.marquee { --gap: 40px; display: flex; gap: var(--gap); overflow: hidden; }
.marquee__lane { flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; }
.marquee__track { display: flex; gap: var(--gap); will-change: transform; animation: var(--move) calc(var(--count) * var(--per-item, 6s)) linear infinite; }
.marquee__lane--reverse .marquee__track { animation-direction: reverse; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__img { display: block; flex: none; object-fit: contain; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; background: none; }
/* Columns that move up and down: pictures as wide as the column, faded at the top and bottom. */
.marquee--vertical { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.marquee--vertical .marquee__track { --move: marquee-up; flex-direction: column; }
.marquee--vertical .marquee__img { width: 100%; height: auto; }
/* Rows that move sideways: pictures the same height, faded at the left and right. */
.marquee--horizontal { --gap: 24px; flex-direction: column; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee--horizontal .marquee__lane { flex: none; }
.marquee--horizontal .marquee__track { --move: marquee-left; --per-item: 8s; width: max-content; }
.marquee--horizontal .marquee__img { width: auto; height: var(--row, 220px); }
@keyframes marquee-up { to { transform: translate3d(0, calc(-50% - var(--gap) / 2), 0); } }
@keyframes marquee-left { to { transform: translate3d(calc(-50% - var(--gap) / 2), 0, 0); } }
@media (max-width: 700px) { .marquee { --gap: 16px; } .marquee--horizontal { --row: 140px; } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Videos (Figma “Videos Subscribed / Logged Out / Unsubscribed · Desktop”) ---------- */
/* Library: a 402px column of banners and shop products on the left, the filters and videos on the right. */
.section.videos { padding: 100px 50px 50px; }
.videos__inner { display: flex; gap: 20px; align-items: flex-start; max-width: var(--max); margin-inline: auto; }
.videos__side { flex: 0 0 402px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.videos__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.videos-banner { display: flex; align-items: center; gap: 15px; margin: 0; padding: 20px; border: var(--hairline) solid rgba(0, 0, 0, .06); border-radius: 15px; color: var(--primary); text-decoration: none; line-height: 1.3; }
.videos-banner--live { background: #754e5b; }
/* A class live on Zoom right now: a pulsing red dot before the text. */
.videos-banner--now { background: #5a2f3d; }
.videos-banner__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, .6); animation: live-ring 1.6s ease-out infinite; }
@keyframes live-ring { to { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .videos-banner__dot { animation: none; } }
.videos-banner--feedback { background: var(--thatch); }
.videos-banner .ico { font-size: 19px; }
.videos-banner__text { flex: 1 1 auto; }
.videos-banner .videos-banner__chevron { font-size: 12px; }
.videos-ads { display: flex; flex-direction: column; gap: 16px; }
/*
 * Shop product: the picture always square, as tall as the card with a one-line name and three lines of text
 * (16px padding, 10px gaps). A name that wraps makes the card taller and the picture stays square in the middle.
 */
.videos-ad { --ad: 127px; display: flex; align-items: center; overflow: hidden; border: var(--hairline) solid rgba(0, 0, 0, .05); border-radius: 15px; background: var(--dawn); color: var(--text); text-decoration: none; }
.videos-ad__img { flex: none; width: var(--ad); height: var(--ad); object-fit: cover; background: var(--swirl-light); }
.videos-ad__body { flex: 1; align-self: stretch; display: flex; flex-direction: column; gap: 10px; min-height: var(--ad); padding: 16px; min-width: 0; }
.videos-ad__body strong { font-size: 16px; font-weight: 600; line-height: 1.2; }
.videos-ad__desc { font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.videos-ad__price { font-size: 12.8px; font-weight: 600; line-height: 1; color: var(--link); }
.videos-manage { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; line-height: 1.3; }
.videos-manage .ico { font-size: 12px; }
/* Search: the site's input field with the search icon inside it on the right, lined up with the filters. */
.videos-search { margin: 0; }
.videos-search__field { position: relative; display: block; }
/* A white box like the banners under it, 46px tall (level with the filters), the icon on the right. */
.videos-search__field input { display: block; width: 100%; height: 46px; min-height: 46px; margin: 0; padding: 8px 46px 8px 20px; border: var(--hairline) solid rgba(0, 0, 0, .06); border-radius: 15px; background: var(--white); color: var(--text); font: inherit; font-size: 16px; line-height: 1.3; -webkit-appearance: none; appearance: none; }
.videos-search__field input::placeholder { color: rgba(0, 0, 0, .3); opacity: 1; }
.videos-search__field input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.videos-search__field input::-webkit-search-decoration { display: none; }
.videos-search__field .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--text); pointer-events: none; }
.videos-filter { display: flex; gap: 32px; align-items: center; min-height: 46px; padding-left: 32px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.videos-filter::-webkit-scrollbar { display: none; }
.videos-filter a { color: var(--link); text-decoration: none; line-height: 1.3; }
.videos-filter a[aria-current='page'] { color: var(--text); font-weight: 600; }
.videos-list { display: flex; flex-direction: column; gap: 50px; }
.video-card { overflow: hidden; border: var(--hairline) solid rgba(0, 0, 0, .05); border-radius: 24px; background: var(--dawn); color: var(--text); scroll-margin-top: 90px; }
.video-card__player { display: block; aspect-ratio: 16 / 9; background: var(--swirl-light); }
.video-card__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-card__player--link { display: flex; align-items: center; justify-content: center; color: var(--link); }
.video-card__body { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.video-card__body > * { margin: 0; }
.video-card__title { font-size: 24px; font-weight: 700; line-height: 1.2; }   /* Text/24 Bold */
.video-card__text { line-height: 1.3; max-width: 46em; }
.video-card__text + .video-card__text { margin-top: -20px; }
/* Tags (Figma “Post Info”): the type in dark (Vídeo / Áudio), then the Focus tags in Swirl. */
.video-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.video-tag { display: inline-flex; align-items: center; padding: 4px 16px; border-radius: 99px; background: var(--swirl); color: var(--text); font-size: 14px; line-height: 1.4; white-space: nowrap; }
.video-tag--type { background: var(--text); color: var(--primary); }
/* Audio (Figma “Audio Loop”): the same 16:9 frame as a video, its picture filling it, and the player along the bottom. */
.video-card__audio { position: relative; overflow: hidden; }
.video-card__audio > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card__audio::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(34, 34, 59, .35), rgba(34, 34, 59, 0)); pointer-events: none; }
.video-card__audio-player { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; width: calc(100% - 32px); height: 48px; }
.videos-empty { padding: 50px 32px; color: var(--link); }
/* Restricted: the “members only” card beside the Online Plan card. */
.section.videos-restricted { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; padding: 30px 50px 50px; min-height: 810px; }
.videos-restricted__card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 50px; width: 380px; max-width: 100%; min-height: 550px; padding: 20px; border-radius: 20px; text-align: center; }
.videos-restricted__text { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.videos-restricted__text > * { margin: 0; }
.videos-restricted__icon { font-size: 50px; color: var(--swirl); }
.videos-restricted__title { font-size: 20px; font-weight: 700; line-height: 1.2; }   /* Text/20 Bold */
.videos-restricted__text p { line-height: 1.3; }
.section.videos-help { padding: 70px 20px; }
@media (max-width: 1024px) {
  /* One column: the live class banner first, then the videos, then the other banner and the shop products. */
  .videos__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .videos__side { display: contents; }
  .videos__main { order: 1; margin-bottom: 24px; }
  .videos__side > :not(.videos-banner--live, .videos-search) { order: 2; }
  .videos-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .videos-filter { padding-left: 0; }
}
@media (max-width: 700px) {
  .section.videos { padding: 100px var(--pad) 56px; }
  .videos-filter { gap: 24px; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .videos-filter a { display: inline-flex; align-items: center; min-height: 44px; }
  .videos-list { gap: 24px; }
  .video-card { border-radius: 16px; }
  .video-card__body { padding: 20px; gap: 14px; }
  .video-card__text + .video-card__text { margin-top: -14px; }
  .video-card__title { font-size: 20px; line-height: 1.2; }
  .video-card__audio-player { left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); height: 40px; }
  .section.videos-restricted { min-height: 0; padding: 32px var(--pad) 56px; gap: 24px; }
  .videos-restricted__card { min-height: 0; gap: 32px; padding: 24px 0; }
  .section.videos-help { padding: 48px var(--pad); }
}

/* ---------- Services (Figma “Serviços – Desktop 1440”) ----------
   Everything here is scoped to the Services page (classes starting with svc-). There is only a desktop frame in
   Figma; on tablets the cards wrap two to a row and the studios stay side by side, and on phones it all stacks. */

/* Banner: title and text at the bottom left, on Scorpion (Figma “Hero”). */
.svc-hero .lead { max-width: 40em; line-height: 1.3; text-wrap: pretty; }

/* Bands of the page, with a centred title and short text. Body text stops at about 70 characters a line (Figma: 600px). */
.svc { --svc-measure: 34.5em; }           /* about 65–75 characters of Inter 16 */
.svc-band { background: var(--primary); color: var(--text); }
.svc-band > .inner { max-width: 1360px; }
.svc-head { padding-bottom: 44.6px; text-align: center; }
.svc-head .subtitle { margin: 0 0 10.8px; line-height: 1.1; }
.svc-head p { max-width: var(--svc-measure); margin: 0 auto; line-height: 1.3; text-wrap: pretty; }

/* Plan and session cards: 318px wide, centred, wrapping onto new rows (a lone card stays in the middle). */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.svc-grid > .plan { flex: 1 1 280px; max-width: 318px; }
.svc-plans { padding: 128px 40px; }
.svc-plans > .inner { max-width: 1000px; }                          /* Figma: the band is as wide as the three cards */
.svc-plans .svc-grid:has(+ .svc-fee) { padding-bottom: 40px; border-bottom: var(--hairline) solid var(--swirl); }
/* The joining fee and insurance explained, in a grey box under the cards. */
.svc-fee { display: flex; gap: 12px; align-items: flex-start; width: fit-content; max-width: 443px; margin: 40px auto 0; padding: 16px; border-radius: 20px; background: var(--swirl-light); color: var(--text); font-size: 14px; line-height: 1.2; }
.svc-fee .ico { margin-top: 1px; font-size: 16px; opacity: .7; }
.svc-fee p { margin: 0; text-wrap: pretty; }
.svc-plans .plan { min-height: 500px; }
.svc-plans .plan__head { min-height: 42px; }                      /* Figma Library › Card: the empty label row stays over the name */
.svc-plans .plan__rule { margin-top: 40px; }                       /* Figma: a 40px space above the line on plan cards */
.svc-singles { padding: 100px 40px; }
.svc-singles > .inner { width: fit-content; max-width: min(100%, 1360px); }   /* Figma: as wide as the cards */
.svc-singles .svc-head { padding-bottom: 24.6px; }
.svc-singles .plan { min-height: 360px; }
.svc-singles .plan__rule { margin-top: -20px; }                    /* Figma: the line sits right under the price */

/* Plano Online: Swirl Light band, text on the left and the devices picture on the right. */
.svc-online { padding: 80px 50px; background: var(--swirl-light); color: var(--text); }
.svc-online__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.svc-online__text { display: flex; flex-direction: column; align-items: flex-start; padding-block: 47px 50px; }
.svc-online__text > * { margin: 0; }
/* Label: Figma “Text/12 Semi Bold Caps” in Link Hover. */
.svc-online__text .eyebrow { margin-bottom: 8.6px; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .7px; color: var(--link-hover); }
.svc-online__text .subtitle { margin-bottom: 8.6px; line-height: 1.1; }
.svc-online__text p:not(.eyebrow) { max-width: 553px; line-height: 1.3; }
.svc-online__text p.highlight { margin-top: 12px; font-weight: 600; line-height: 1.2; }   /* Figma “Text/16 Semi Bold” */
.svc-online__text .fbtn { margin-top: 14.8px; }
.svc-online__img { width: 100%; height: auto; aspect-ratio: 660 / 371.25; object-fit: contain; }

/* Studios: two cards side by side, each with a square photo. */
.svc-studios { padding: 80px 40px; }
.svc-studios > .inner { max-width: 1000px; }
.svc-studios__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.svc-studio { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.svc-studio__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 20px; background: var(--swirl-light); }
.svc-studio__body { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.svc-studio__info { padding-right: 10px; }
.svc-studio__info h3 { margin: 0 0 1.3px; font-size: 24px; line-height: 1.2; }
.svc-studio__info p { max-width: var(--svc-measure); margin: 0; line-height: 1.3; text-wrap: pretty; }
.svc-studio__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Questions (shared dark FAQ band): answers stop at about 70 characters a line inside the 680px column. */
.faq-band { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-block: 50px; }
.faq-band .section-title { margin: 0 0 14.4px; }
.faq-band .faq-list { max-width: 680px; }
.faq-band .faq .prose { max-width: 34.5em; text-wrap: pretty; }
/* “Pronta para começar?” band (Figma “Sobre” CTA): heading on a 1.1 line, then the text and the button. */
.cta-band { padding-block: 100px; }
.cta-band .stack { gap: 0; }
.cta-band .subtitle { line-height: 1.1; }
.cta-band .stack > p { margin-top: 15.4px; line-height: 1.3; }
.cta-band .btn { margin-top: 19.6px; }

/* Tablets */
@media (max-width: 1024px) {
  .svc-plans .plan, .svc-singles .plan { min-height: 0; }   /* cards in a row still share one height */
  .svc-plans .plan__rule { margin-top: 12px; }
  .svc-online { padding-inline: var(--pad); }
  .svc-online__text { padding-block: 0; }
  .svc-studios__grid { gap: 24px; }
}
@media (max-width: 899px) {
  .svc-online__grid { grid-template-columns: 1fr; gap: 24px; }
  .svc-online { padding-block: 64px; }
}
/* Phones: one column, cards as wide as the screen allows and only as tall as their content */
@media (max-width: 700px) {
  .svc-plans, .svc-singles, .svc-studios, .cta-band { padding: 64px var(--pad); }
  .svc-online { padding-block: 56px; }
  .svc-head { padding-bottom: 24px; }
  .svc-grid { gap: 16px; }
  .svc-grid > .plan { flex-basis: 100%; max-width: 420px; }
  .svc-plans .plan__rule { margin-top: 0; }
  .svc-plans .plan__features, .svc-singles .plan__features { padding-bottom: 8px; }
  .svc-studios__grid { grid-template-columns: 1fr; gap: 48px; }
  .svc-studio { gap: 20px; }
  .faq-band { padding: 48px var(--pad); }
  .faq-band .section-title { line-height: 1.2; }
}

/* ---------- About (Figma “Sobre – Desktop 1440”) ---------- */
/* About (Figma “About · Desktop”): centred bands; small capital label, big heading, then an 800px paragraph. */
.about-head { display: flex; flex-direction: column; gap: 8px; }
.about-head > * { margin: 0; }
.about-head .title, .about-head .subtitle { line-height: 1.1; }
/* The moving backgrounds of the Home and About top sections (public/assets/backgrounds.js): a canvas over the still
   picture, faded in once its first frame is drawn. The still picture stays underneath for loading and for devices
   that cannot run it. */
.hero__bg, .about-anim__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__canvas, .about-anim__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero__canvas.is-ready, .about-anim__canvas.is-ready { opacity: 1; }
.about-anim { position: relative; overflow: hidden; }
.about-anim > :not(.about-anim__bg) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero__canvas, .about-anim__canvas { transition: none; } }
.about-text { max-width: 800px; margin: 0 auto; padding-bottom: 14.4px; line-height: 1.3; text-wrap: pretty; }
.about-text--narrow { max-width: 700px; }
.about-hero {
  min-height: 765px; display: flex; flex-direction: column; justify-content: center; padding: 50px 100px; color: var(--primary);
  /* Figma “about_background”: still dark bands, drawn as a vector so they stay sharp at any size. */
  background: var(--ebony) url(/assets/img/about-background.svg) center top / cover no-repeat;
}
.about-hero__inner { display: flex; flex-direction: column; gap: 24px; }
.about-hero__title { max-width: 900px; margin-inline: auto; }
.about-cols__head { display: flex; flex-direction: column; gap: 24px; align-items: center; padding-bottom: 32px; }
.about-cols__head > * { margin: 0; }
.about-cols--levels .about-cols__head { padding-bottom: 63px; }
.about-cols__body { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.about-cols--levels .about-cols__body { gap: 16px; }
.about-steps { display: block; max-width: none; height: 16px; width: auto; }
.about-cols__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.about-cols__grid article { width: 277px; }
.about-cols--levels .about-cols__grid { gap: 32px; }
.about-cols--levels .about-cols__grid article { width: 268px; }
.about-cols__grid h3 { font-size: 16px; font-weight: 600; line-height: 40px; margin: 0; }   /* Benefícios: Figma “Text/16 Semi Bold” */
.about-cols--levels .about-cols__grid h3 { font-size: 20px; font-weight: 700; }                 /* Níveis: Figma “Text/20 Bold” */
.about-cols--levels .about-cols__grid p { max-width: 243px; margin-inline: auto; }
.about-cols__grid p { margin: 0; line-height: 1.3; }
/* The dots only line up with the columns while they sit side by side. */
@media (max-width: 960px) { .about-steps { display: none; } .about-cols__grid { gap: 32px; } }
.about-events .inner { display: flex; flex-direction: column; gap: 50px; }
.about-events .about-cols__head { padding-bottom: 0; }
/* Two columns of exactly the same width that never change size when an item opens; each column stacks on its own. */
.about-events__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0 72px; width: 100%; max-width: 1144px; margin-inline: auto; }
.about-events__col { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 800px) { .about-events__grid { grid-template-columns: minmax(0, 1fr); } .about-hero { padding-inline: var(--pad); min-height: 0; padding-block: 120px; } }
.about-events .acc { border-color: var(--swirl); color: var(--primary); }
/* Founder: photo and quote side by side, then the biography in two columns. */
.section.about-founder { padding: 100px 120px; }
.about-founder__top { display: grid; gap: 40px; align-items: center; margin-bottom: 50px; }
@media (min-width: 900px) { .about-founder__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1200px) { .about-founder__top { grid-template-columns: minmax(0, 1fr) minmax(0, 603px); } }
.about-founder__img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; object-fit: cover; object-position: 50% 20%; }
/* Quote in Figma “Text/20 Bold”, name in “Text/16 Semi Bold Caps”. */
.about-founder__words { display: flex; flex-direction: column; gap: 38.2px; padding-top: 4.7px; }
.about-founder__quote { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.about-founder__name { font-size: 16px; font-weight: 600; line-height: 1.2; text-transform: uppercase; margin: 0; padding-bottom: 12.6px; }
.about-founder__bio { columns: 2; column-gap: 40px; line-height: 1.3; }
.about-founder__bio p { margin: 0 0 14.4px; orphans: 2; widows: 2; }
.about-founder__bio p:last-child { margin-bottom: 0; }
@media (max-width: 1024px) { .section.about-founder { padding-inline: var(--pad); } }
@media (max-width: 760px) { .about-founder__bio { columns: 1; } }

/* ---------- Online Plan (Figma “Plano Online – Desktop 1440”) ---------- */
.online-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 100px 40px; text-align: center; }
/* Picture and text both stop at 800px (Figma: max width 800 on each). */
.online-hero__img { width: 100%; max-width: 800px; height: auto; max-height: 352.94px; object-fit: contain; }
.online-hero .title { margin: 0; line-height: 1.1; }
.online-hero__text { max-width: 800px; margin: 0; padding-bottom: 14.4px; line-height: 1.3; }
.online-hero .kicker { margin: 0; padding-bottom: 14.4px; }
.online-hero__btn { width: 200px; }
/* Flexibilidade máxima: title and text, then two rows of video thumbnails sliding sideways. */
.online-flex { padding: 90px 0 60px; }
/* The title stays on one line on wide screens (Figma: 739px wide); the text stops at 800px. */
.online-flex__head { display: flex; flex-direction: column; align-items: center; gap: 21px; padding: 0 var(--pad) 40px; }
.online-flex__head > * { margin: 0; }
.online-flex__title { margin: 0; line-height: 1.1; }
.online-flex__text { max-width: 800px; line-height: 1.3; }
.online-flex__marquee { --row: 240px; }
/* Energia em direto: the picture, whole, on the left; the title with its live dot and the text on the right. */
.section.online-live { padding: 100px; display: flex; align-items: center; }
.online-live__inner { display: flex; align-items: center; justify-content: center; gap: 50px; width: 100%; max-width: var(--max); margin-inline: auto; }
.online-live__img { flex: 1 1 0; min-width: 0; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 24px; }
/* Title and text with no space between them (Figma: 158px title, then the text). */
.online-live__text { flex: 0 1 670px; display: flex; flex-direction: column; gap: 0; }
.online-live__text p { margin: 0; line-height: 1.3; }
/* Two even lines (“Energia / em direto”), as in the design. */
.online-live__title { max-width: 500px; margin: 0; line-height: 1.1; text-wrap: balance; }
/* The dot's top lines up with the top of the capitals: its bottom sits .45em above the baseline. */
.online-live__dot { display: inline-block; width: 20px; height: 20px; margin: 0 0 .45em 0; vertical-align: baseline; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .online-live__dot { animation: none; } }
/* Acesso sem limites: the infinity sign over the title. */
.online-unlimited { min-height: 630px; display: flex; align-items: center; justify-content: center; }
.online-unlimited__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 860px; }
.online-unlimited__inner > * { margin: 0; }
.online-unlimited__inner .subtitle { line-height: 1.1; }
.online-unlimited p { padding-bottom: 14.4px; line-height: 1.3; }
.online-unlimited__icon { width: 168px; height: 78px; }
/* Subscrever: the title and the price card side by side. */
.section.online-subscribe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 64px; padding: 128px 40px; }
.online-subscribe__title { max-width: 500px; text-align: center; margin: 0; line-height: 1.1; }
/* The Online Plan card (Figma Library › Variant8). */
.plan--online { width: 318px; max-width: 100%; min-height: 500px; border-radius: 16px; }
.plan--online .plan__head { min-height: 40px; justify-content: flex-end; }
.plan--online .plan__name { padding: 0; }
.plan__price--offer { min-height: 70px; gap: 4px; }
.plan--online .plan__price--offer + .plan__promo { margin-top: -4px; }   /* 16px between the price and the code */
/* The new price sits in the middle with the old one, struck through, to its left. */
.plan.plan--online .plan__amount { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; width: 100%; font-size: 32px; line-height: 1; }
.plan__amount s { grid-column: 1; justify-self: end; font-size: 24px; font-weight: 400; color: var(--link); text-decoration: line-through; margin: 0; }
.plan__amount strong { grid-column: 2; }
.plan__price--offer > span:last-child { font-size: 14px; line-height: 1.2; }
.plan__promo { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; border-bottom: var(--hairline) solid var(--latte); }
.plan__code { margin: 0; padding: 8px 16px; border-radius: 10px; background: rgba(36, 32, 30, .1); font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; }
.plan__small { max-width: 260px; margin: 0 auto; font-size: 11px; line-height: 1.2; text-align: center; }
.plan--online .plan__rule { margin: 0; }
.plan__actions { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.plan__actions p { margin: 0; line-height: 1.3; }
.plan__login { margin-left: 6px; color: var(--link-blue, #00a1d8); text-decoration: underline; }
.plan__actions .plan__small { padding: 0; }

/* ---------- Booking (Figma “Agendamento – Desktop 1440”) ---------- */
.booking-band { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 20px; padding-block: 100px; }
/* Side column: title (Text/48 Bold), then each group's heading (Text/32 Bold) over its Accordion Items. */
.booking-side { flex: 0 1 350px; display: flex; flex-direction: column; gap: 20px; padding-right: 20px; }
.booking-side__title { margin: 0 0 5.25px; font-size: clamp(2.25rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.2; }
.booking-side__heading { margin: 0 0 16.64px; font-size: 32px; font-weight: 700; line-height: 1.2; }
.booking-side__heading--spaced { margin-top: 30px; }
.booking-side__list { gap: 4px; margin-bottom: 10px; }
.booking-side__note { font-size: 14px; }
.booking-side p { margin: 0; }
.booking-cal { flex: 1 1 600px; max-width: 938px; min-height: 720px; padding: 10px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 15px; }
.booking-cal .tt__days { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.booking-cal .tt__day { background: var(--primary); border-color: var(--swirl-light); }
.booking-cal .tt__class { background: var(--white); }
.booking-cal .notice { margin: 0; }
@media (max-width: 800px) { .booking-side { flex-basis: 100%; padding-right: 0; } .booking-band { padding-block: 48px; } }

/* ---------- Contact (Figma “Contacto – Desktop 1440”) ---------- */
/* The details (hugging their text) and the 540px form box, centred side by side and centred on each other. */
.contact-band { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 40px; padding-block: 100px; }
.contact-band__info { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 19.78px; padding-right: 50px; }
.contact-band__info .subtitle { margin: 0; line-height: 1.1; }
.contact-band .icon-list .ico { font-size: 20px; }
.contact-band .icon-list li { line-height: 1.3; }
/* Form Container (Elevated) holding the success or error notice, then the form: fields 16px apart, the button 32px below. */
.contact-band__box { flex: 0 1 540px; min-width: 0; }
.contact-form { display: flex; flex-direction: column; }
.contact-form__fields { display: flex; flex-direction: column; gap: 16px; }
.contact-form .mform__pair { gap: 16px; align-items: start; }
.contact-form > .fbtn { margin-top: 32px; }   /* the spam check between them has no height unless it needs a click */
/* Tablets and phones: details above the form, both in one centred column. */
@media (max-width: 1179px) { .contact-band__info, .contact-band__box { flex-basis: 100%; max-width: 640px; } .contact-band__info { padding-right: 0; } }
@media (max-width: 700px) { .contact-band { padding-block: 64px; } }
.online-live__img { min-width: 0; }
.plan__price .plan__amount { font-size: 32px; line-height: 1.2; }
.plan--online .btn.is-disabled { background: var(--text); border-color: var(--text); color: var(--primary); border-radius: 7px; opacity: .6; }

/* ---------- Blog (Figma “Blog · Archive Desktop” and “Blog Article · Desktop”) ---------- */
.rule { width: 100%; margin: 2px 0; border: 0; border-top: var(--hairline) solid var(--card-border-subtle); }
/* Side by side down to phone sizes: the title column and the list shrink with the window, and only stack at 760px. */
.blog-band { display: flex; justify-content: center; align-items: flex-start; gap: clamp(24px, 3.5vw, 50px); padding: 50px clamp(var(--pad), 7vw, 100px) 100px; }
.blog-band__side { flex: 0 1 310px; min-width: 170px; display: flex; flex-direction: column; gap: 20px; }
.blog-band__title { margin: 0; font-size: clamp(2.6rem, 6.7vw, 6rem); font-weight: 800; line-height: 1.1; }   /* Global/Title 96 · LH 110 */
.blog-band__side .search__status { margin: 0; }
.blog-band__list { flex: 1 1 868px; max-width: 868px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }
.blog-band__list .pagination { margin-top: 20px; }
@media (max-width: 760px) { .blog-band { flex-wrap: wrap; padding: 40px var(--pad) 64px; gap: 24px; } .blog-band__side, .blog-band__list { flex-basis: 100%; } .blog-band__list { padding-top: 0; } }

/* Post card: picture 340px tall, the author's photo floating over its bottom edge, body, then a footer line. */
.post-card { --media-h: 340px; position: relative; min-width: 0; background: var(--white); border: var(--hairline) solid rgba(0, 0, 0, .1); border-radius: 24px; overflow: hidden; }
.post-card__link { position: relative; display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.post-card__media { flex: none; height: var(--media-h); background: var(--swirl-light); overflow: hidden; }
.post-card__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-card__avatar { position: relative; flex: none; align-self: flex-start; margin: -30px 0 -30px 16px; z-index: 1; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #d9d9d9; box-shadow: 0 1px 30px rgba(0, 0, 0, .05); }
.post-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 48px 24px 24px; }
/* On the blog's list the pictures keep a taller shape at every width: 16:9, and 4:3 on phones. */
.blog-band__list .post-card__media { height: auto; aspect-ratio: 16 / 9; }
.post-card__body > * { margin: 0; }
.post-card__body h3 { font-size: 20px; font-weight: 600; line-height: 1.2; }
/* At most four lines, ending in “…” when cut (line-clamp adds the ellipsis; long words break so nothing spills sideways). */
.post-card__excerpt { flex: none; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; text-overflow: ellipsis; overflow-wrap: break-word; max-height: calc(4 * 1.3em); }
.post-card__more { font-size: 12.8px; font-weight: 600; line-height: 1; color: var(--link); text-transform: uppercase; }
.post-card__link:hover .post-card__more, .post-card__link:focus-visible .post-card__more { color: var(--link-hover); }
.post-card__foot { margin: 0; padding: 16px 16px 16px 24px; border-top: var(--hairline) solid rgba(0, 0, 0, .1); font-size: 11px; line-height: 1.3; color: #949494; }
@media (max-width: 640px) { .post-card { --media-h: 240px; } .blog-band__list .post-card__media { aspect-ratio: 4 / 3; } }

/* Article: title and author on the left, the text in a white box on the right. */
.article-band { display: flex; justify-content: center; align-items: flex-start; gap: clamp(24px, 3.5vw, 50px); padding: 100px var(--pad) 50px; }
.article-band__meta { flex: 0 1 400px; min-width: 220px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.article-band__head { display: flex; flex-direction: column; gap: 32px; padding-bottom: 20px; border-bottom: var(--hairline) solid var(--card-border-subtle); }
.article-band__title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
/* “‹ Blog” above the article's title, back to the list (like the basket's “‹ Voltar”). */
.article-band__back { display: inline-flex; align-items: center; gap: 2px; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.article-band__back img { flex: none; width: 16px; height: 20.5px; }
.article-band__back:hover { color: var(--primary); }
.article-band__head h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }   /* Text/32 Bold */
.article-band__author { display: flex; align-items: center; gap: 16px; }
.article-band__avatar { width: 60px; height: 60px; border-radius: 30px; object-fit: cover; background: var(--latte); flex: none; }
.article-band__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-band__who strong { font-size: 16px; font-weight: 600; line-height: 1.2; }
.article-band__who span, .article-band__date { font-size: 13px; line-height: 1.45; color: var(--link); }   /* Text/13 Regular */
.article-band__content { flex: 1 1 700px; max-width: 700px; align-self: stretch; min-width: 0; display: flex; flex-direction: column; gap: 20px; background: var(--white); border-radius: 24px; overflow: hidden; }
.article-band__media { flex: none; height: 400px; background: var(--swirl-light); overflow: hidden; }
.article-band__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-band__body { padding: 32px; }
.article-band__body .notice { margin: 0 0 14.4px; }
.article-band__body .prose { line-height: 1.55; }
.article-band__body .prose li { line-height: 1.3; }
.article-band__body .prose > :last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .article-band { flex-wrap: wrap; padding-top: 40px; gap: 24px; }
  .article-band__meta { position: static; flex-basis: 100%; }
  .article-band__content { flex-basis: 100%; }
}
@media (max-width: 640px) { .article-band__media { height: 240px; } .article-band__body { padding: 24px 20px; } }
.article-divider { width: min(864px, calc(100% - 2 * var(--pad))); margin: 15px auto; }
.related-band { display: flex; flex-direction: column; gap: 15.66px; padding: 0 var(--pad) 100px; }
.related-band__title { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.2; }   /* Text/48 Bold */

/* ---------- FAQ (Figma “Perguntas Frequentes – Desktop 1440”) ---------- */
.faq-page { display: flex; flex-direction: column; align-items: center; gap: 50px; padding: 200px 40px 100px; }
.faq-page > * { width: 100%; max-width: 780px; }
.faq-page__head { display: flex; flex-direction: column; align-items: center; gap: 36.6px; text-align: center; }
.faq-page__head .subtitle { margin: 0; line-height: 1.1; }
/* Search: Figma “Input Field” (Tinted, with an icon): 13px label, 6px gap, 34px box with a Swirl outline, the icon 7px after it. */
.faq-page__search { display: grid; grid-template-columns: 1fr 18px; align-items: center; gap: 6px 7px; width: 100%; text-align: left; font-size: 13px; font-weight: 500; line-height: 1.2; }
.faq-page__search > span:first-child { grid-column: 1 / -1; }
.faq-page__search input { border-color: var(--swirl); }
.faq-page__search .ico { font-size: 18px; }
.faq-page__list { display: flex; flex-direction: column; gap: 40px; }
.faq-page__group { display: flex; flex-direction: column; gap: 20px; }
.faq-page__group .kicker { margin: 0; color: var(--link); font-size: 13px; line-height: 1.1; letter-spacing: .1px; }   /* Figma “Text/13 Semi Bold Caps” */
.faq-item summary { cursor: pointer; list-style: none; font-size: 20px; font-weight: 700; line-height: 1.2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ' »'; font-size: 13px; font-weight: 600; white-space: nowrap; }
.faq-item[open] summary::after { content: ''; }
.faq-item .prose { padding-top: 10px; line-height: 1.2; }
@media (max-width: 700px) { .faq-page { padding-top: 80px; } }

/* ---------- Legal (Figma “Legal & Utility”) ---------- */
.legal-band { padding: 100px var(--pad); }
.legal-band__title { margin: 0 0 100px; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 56px; text-align: center; }
.legal-band__content { max-width: 800px; margin-inline: auto; }
@media (max-width: 700px) { .legal-band__title { margin-bottom: 40px; line-height: 1.2; } }

/* ---------- 404 (Figma “Erro 404 – Desktop 1440”) ---------- */
.not-found { min-height: 810px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: var(--pad); text-align: center; }
.not-found__box { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.not-found__box > * { margin: 0; }
.not-found__btn { border-radius: 10px; }
.not-found__btn .ico { font-size: 16px; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 700px) { .not-found { min-height: 60vh; } }
@media (max-width: 899px) { .home-online--short, .online-live, .online-unlimited, .online-subscribe { min-height: 0; } }

/* ==========================================================================
   Redesign: schedule calendar, sign-in and account (Figma pages “Scheduling”, “Account”, “Flows”)
   ========================================================================== */
.ico--chevron-left { --i: url(/assets/img/icon-chevron-left.svg); }
.ico--chevron-right { --i: url(/assets/img/icon-chevron-right.svg); }
.ico--clipboard-check { --i: url(/assets/img/icon-clipboard-check.svg); }
.ico--account-user { --i: url(/assets/img/icon-account-user.svg); }
.ico--lock { --i: url(/assets/img/icon-lock.svg); }
.ico--eye { --i: url(/assets/img/icon-eye.svg); }
.ico--payment { --i: url(/assets/img/icon-payment.svg); }
.ico--basket { --i: url(/assets/img/icon-basket.svg); }
.ico--logout { --i: url(/assets/img/icon-logout.svg); }
.ico--trash { --i: url(/assets/img/icon-trash.svg); }
.ico--xmark { --i: url(/assets/img/icon-xmark.svg); }
.ico--tick { --i: url(/assets/img/icon-tick.svg); }
.ico--tag-tick { --i: url(/assets/img/icon-tag-tick.svg); }
.ico--tag-x { --i: url(/assets/img/icon-tag-x.svg); }
.ico--warning { --i: url(/assets/img/icon-warning.svg); }

/* Buttons used inside the calendar and side column (Figma “Button”: 7px radius, line height 2.5) */
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--text); border-radius: 7px; background: var(--text); color: var(--primary); font: 400 16px/2.5 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.cbtn:hover { background: var(--link-hover); border-color: var(--link-hover); }
.cbtn--outline { background: var(--white); color: var(--text); }
.cbtn--outline:hover { background: var(--text); color: var(--primary); }
.cbtn--danger { background: #754e5b; border-color: #754e5b; }
.cbtn--small { padding: 8px 12px; line-height: 1.15; }
.cbtn--green { background: #4cbb17; border-color: #4cbb17; color: var(--white); }
.cbtn--green:hover { background: #327d0f; border-color: #327d0f; }
.cbtn--red-outline { background: var(--white); border-color: #ca0202; color: #ca0202; }
.cbtn--red-outline:hover { background: #ca0202; border-color: #ca0202; color: var(--white); }
.cbtn--block { width: 100%; border-radius: 10px; }
.cbtn.is-disabled { background: rgba(0, 0, 0, .1); border-color: transparent; color: rgba(0, 0, 0, .4); cursor: not-allowed; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; background: var(--swirl-light); color: var(--text); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tag .ico { font-size: 9px; }
.tag--dark { background: var(--text); color: var(--primary); }
.tag--ok { background: #4cbb17; color: var(--white); }
.tag--red { background: #ca0202; color: var(--white); }

/* Side column accordions with their button (Figma “Accordion Open”) */
.booking-band { align-items: flex-start; }
.booking-side > div { display: flex; flex-direction: column; }
.acc--plan .acc__body { display: flex; flex-direction: column; gap: 24px; }
.acc--plan .plan__features { flex: none; }

/* Calendar card (Figma node “Calendar”) */
.cal { flex: 1 1 600px; max-width: 960px; min-height: 722px; display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 15px; }
.cal__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: var(--hairline) solid var(--swirl); }
.cal__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1; }
.cal__embed { display: block; width: 100%; min-height: 760px; border: 0; background: #fff; }
/* Phase 1: Classfit's widget only (src/lib/classfit.ts). */
.cal__classfit { min-height: 190px; }
.cal__classfit iframe { display: block; max-width: 100%; border: 0; }
.cal__credits { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; line-height: 1.3; }
.cal__count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 4px; border: 1px solid var(--text); border-radius: 6px; }
.cal__strip { display: flex; align-items: center; gap: 10px; padding: 36px 0; }
.cal__arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 80px; background: var(--swirl-light); color: var(--text); }
.cal__arrow .ico { font-size: 20px; }
.cal__arrow.is-off { opacity: .35; }
.cal__grid { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 8px; text-align: center; }
.cal__wd { padding-bottom: 8px; font-weight: 600; line-height: 1.3; }
.cal__day { justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 48px; height: 48px; border-radius: 99px; color: var(--text); text-decoration: none; }
.cal__day b { font-weight: 600; line-height: 1; }
.cal__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal__dot.is-none { visibility: hidden; }
a.cal__day:hover { background: var(--swirl-light); }
.cal__day.is-today { background: var(--swirl-light); }
.cal__day.is-selected, a.cal__day.is-selected:hover { background: var(--text); color: var(--primary); }
.cal__day.is-past { color: rgba(64, 58, 54, .5); }
.cal__daybar { margin: 0; padding: 12px; border-radius: 8px; background: var(--swirl-light); font-size: 14px; font-weight: 600; line-height: 1; }
.cal__notice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1; background: var(--swirl-light); }
.cal__notice--ok { background: rgba(76, 187, 23, .2); color: #327d0f; }
.cal__notice .ico { font-size: 14px; }
.cal__notice--error { background: #f7e4e4; color: var(--error); }
.cal__empty { padding: 40px 0; text-align: center; }
.cal__empty p { margin: 0 0 8px; }
.cal__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.cal__foot { margin: 0; }
@media (max-width: 640px) {
  .cal { padding: 20px; }
  .cal__strip { gap: 4px; padding: 16px 0; }
  .cal__arrow { width: 32px; height: 32px; }
  .cal__day { width: 40px; height: 40px; }
  .cal__wd { font-size: 13px; }
}

/* Class row (Figma component “Schedule/Class Row”) */
.crow { display: flex; flex-direction: column; gap: 12px; padding: 8px 24px 8px 8px; border: var(--hairline) solid var(--swirl); border-radius: 8px; scroll-margin-top: 90px; }
.crow__main { display: flex; align-items: center; gap: 24px; }
.crow__img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.crow__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1; }
.crow__info p { margin: 0; }
.crow__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.crow__meta { line-height: 1.3 !important; }
.crow__full { color: var(--link); }
.crow__who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.crow__avatar { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #9a9a9a; color: var(--white); font-size: 8px; font-weight: 700; }
.crow__avatar--photo { object-fit: cover; background: #e8e2de; }
.crow__action { flex: none; }
.crow.is-dim .crow__name, .crow.is-dim .crow__meta, .crow.is-dim .crow__who { opacity: .6; }
.crow.is-dim .crow__img { opacity: .4; }
.is-struck { text-decoration: line-through; }
@media (max-width: 640px) { .crow__main { flex-wrap: wrap; gap: 12px; } .crow__action { width: 100%; } .crow__action .cbtn { width: 100%; } }

/* Panels inside a row open with a page anchor (#det-…, #conf-…, #canc-…, #wait-…) */
.row-panel { display: none; flex-direction: column; gap: 12px; padding: 16px; border-radius: 8px; background: var(--swirl-light); font-size: 14px; line-height: 1.3; scroll-margin-top: 140px; }
.row-panel:target, .row-panel.is-open { display: flex; }
.row-panel--row:target { flex-direction: row; }
.row-panel__head { display: flex; align-items: center; gap: 8px; }
.row-panel__head .ico { font-size: 14px; }
.cal__locked { margin-bottom: 20px; }
.row-panel__note { font-size: 12px; color: var(--link); }
.row-confirm { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.row-confirm__text { display: flex; flex-direction: column; gap: 8px; }
.row-confirm .seat-choice span { padding: 6px 12px; }
.row-panel h4 { margin: 0; font-size: 16px; font-weight: 600; }
.row-panel p { margin: 0; }
.row-form { display: flex; flex-direction: column; gap: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.seat-choice { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.seat-choice legend { margin-bottom: 10px; color: var(--link); }
.seat-choice label { cursor: pointer; }
.seat-choice input { position: absolute; opacity: 0; }
.seat-choice span { display: inline-block; padding: 10px 16px; border: var(--hairline) solid var(--control-border); box-shadow: var(--shadow-control); border-radius: 8px; background: var(--white); font-weight: 600; }
.seat-choice input:checked + span { background: var(--text); border-color: var(--text); color: var(--primary); }
.seat-choice input:focus-visible + span { outline: 3px solid var(--mulled); outline-offset: 2px; }

/* Shared facts list */
.mfacts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; line-height: 1.3; }
.mfacts dt { font-weight: 600; color: var(--link); }
.mfacts dd { margin: 0; }

/* ---------- Sign-in, sign-up and password pages (Figma “Iniciar Sessão”, “Criar Conta”, “Password Reset”) ---------- */
.auth-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 100px; min-height: 810px; padding-block: 60px; }
.auth-band--plan { align-items: flex-start; gap: 40px; padding-top: 40px; }
.auth-band--center { flex-direction: column; gap: 22px; }
.auth-band--signup.auth-band--plan { column-gap: 80px; }                           /* Sign up · With plan chosen: plan card, 80px, form */
/* Title (Text/32 Bold) over a short line or the list of benefits. */
.auth-intro { width: 300px; max-width: 100%; }
.auth-intro h1 { margin: 0 0 22px; font-size: 32px; font-weight: 700; line-height: 1.2; }
.auth-intro p { margin: 0; line-height: 1.3; }
.auth-intro--center { text-align: center; }
.auth-intro--center h1 { margin-bottom: 24px; }
.auth-intro__list { text-align: left; }
.auth-intro__list li { font-size: 16px; line-height: 1.3; }
.auth-title { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; text-align: center; }
.mbox { width: 640px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--primary); border: var(--hairline) solid var(--card-border-subtle); border-radius: 24px; }
/* Form Container sizes: Log in 500px; Sign up fills the row beside the intro or plan card, up to 600px; the centred
   boxes up to 600px. */
.mbox--login { width: 500px; }
.mbox--signup { width: auto; flex: 1 1 500px; max-width: min(600px, 100%); }
.mbox--narrow { width: 600px; padding: 40px; border-radius: 20px; }
/* Figma “Form Container”: Elevated (white, soft shadow) and Outlined (white, subtle outline). */
.mbox--elevated { background: var(--white); border: 0; border-radius: 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
.mbox--outlined { background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 20px; box-shadow: none; }
.mbox__title { margin: 0; font-size: 36px; font-weight: 700; line-height: 1; text-align: center; }
.mbox p { margin: 0; line-height: 1.3; }
.mbox--login p.mfield__hint, .mbox--signup p.mfield__hint, .mbox--narrow p.mfield__hint { line-height: 1.45; }  /* Text/13 Regular */
.mbox--signup .mbox__title { margin-bottom: 2px; font-size: 32px; line-height: 1.2; }  /* 22px above the form */
.mform { display: flex; flex-direction: column; gap: 16px; }
/* Sign up: the fields, then 32px, then the button with the terms and the log-in link under it. */
.mform--signup { gap: 32px; }
.mform__group { display: flex; flex-direction: column; gap: 16px; }
.mform__actions { display: flex; flex-direction: column; gap: 15px; }
.mform--reset { gap: 24px; }                                                        /* Forgot password and New password */
.mbtn.fbtn--icon { gap: 4px; }
.mform__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mform__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mfield { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1.2; }
.mfield input, .mfield select, .mfield textarea { width: 100%; height: 34px; padding: 6px 16px; border: var(--hairline) solid var(--card-stroke); border-radius: var(--radius-field); background: var(--white); color: var(--text); font: 400 16px/1.2 var(--font); }
.mfield textarea { height: 120px; padding-block: 8px; resize: vertical; }
/* Surface=Tinted: a field sitting straight on the off-white page has a Swirl outline. */
.mfield--tinted input, .mfield--tinted select, .mfield--tinted textarea { border-color: var(--swirl); }
/* A link beside the label (for example “Esqueceu-se da palavra-passe?”). */
.mfield__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mfield__link { font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--link-blue); text-decoration: none; }
.mfield__link:hover { color: #046e8f; }
/* State=Error: red label and outline, and the message with its icon under the box. */
.mfield--error { color: var(--destructive); }
.mfield--error input, .mfield--error select, .mfield--error textarea { border-color: var(--destructive); }
.mfield__error { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--destructive); }
.mfield__error::before { content: ''; flex: none; width: 13px; height: 13px; margin-top: 3px; background: currentColor; -webkit-mask: url(/assets/img/icon-circle-exclamation.svg) center / contain no-repeat; mask: url(/assets/img/icon-circle-exclamation.svg) center / contain no-repeat; }
/* Two boxes under one label (Figma “Form Field”, Surface4, e.g. the two address lines) are joined into one, with a line between. */
.mfield input:has(+ input) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mfield input + input { margin-top: -8px; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.mfield input[readonly] { background: var(--swirl-light); color: var(--link); }
.mfield__hint { font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--link); }
/* Show button: a Form Button in the field's row, 7px after the box and as tall as it (for example “Alterar”). */
.mfield__control { display: flex; align-items: stretch; gap: 7px; }
.mfield__control input { flex: 1 1 auto; min-width: 0; }
.mfield__control .fbtn { flex: none; height: auto; }
.mcheck { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.3; cursor: pointer; }
.mcheck input { flex: none; }
.mbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; padding: 8px 16px; border: 1px solid var(--text); border-radius: 6px; background: var(--text); color: var(--white); font: 400 16px/1 var(--font); text-decoration: none; cursor: pointer; }
.mbtn:hover { background: var(--link-hover); }
.mbtn:disabled, .mbtn--disabled { background: rgba(64, 58, 54, .2); border-color: transparent; color: rgba(64, 58, 54, .5); cursor: not-allowed; }
.mbtn--auto { width: auto; align-self: flex-start; }
.mbtn--danger { background: var(--destructive); border-color: var(--destructive); }
.mlink { color: var(--link); text-decoration: none; font-size: 16px; line-height: 1.3; }
.mlink:hover { color: var(--link-hover); }
.mlink--blue { color: #00a1d8; }
.mlink--blue:hover { color: #046e8f; }
.mlink--button { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--link); text-decoration: underline; cursor: pointer; }
.center { text-align: center; }
.or { display: flex; align-items: center; gap: 16px; line-height: 1.3; }
.or::before, .or::after { content: ''; flex: 1; border-top: var(--hairline) solid var(--card-border-subtle); }
/* Figma “alt-login”: icon and label centred with 10px between them, full width under the “Ou” line. */
.alt-login { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 42px; padding: 10px 12px; border: var(--hairline) solid var(--control-border); box-shadow: var(--shadow-control); border-radius: 4px; background: var(--white); color: var(--text); font: 400 16px/1.3 var(--font); cursor: pointer; }
.alt-login:hover { border-color: var(--text); }
.alt-login--auto { width: auto; }
.alt-login__icon { flex: none; }
.alt-login-wrap { display: flex; flex-direction: column; gap: 8px; }
.alt-login-wrap[hidden] { display: none; }
/* The emailed code (Figma “Confirm your email”, and “Account · Change email” with the code): where it went (8px to
   the spam hint), 32px, then the field and the two buttons side by side, 16px apart. */
.mcode { display: flex; flex-direction: column; gap: 32px; }
.mcode__intro { display: flex; flex-direction: column; gap: 8px; }
.mcode__intro p { margin: 0; line-height: 1.3; }
.mcode__intro .mfield__hint { line-height: 1.45; }
.mcode__actions { display: flex; gap: 16px; }
.mcode__actions > * { flex: 1 1 0; min-width: 0; }
.mcode__resend { width: auto; height: auto; min-height: 42px; white-space: normal; }
.mback { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: var(--text); font: 500 16px/1.2 var(--font); text-decoration: none; }
.mback:hover { color: var(--link-hover); }
@media (max-width: 480px) { .mcode__actions { flex-direction: column; } }
/* “Usar outra conta”: small underlined link under the button. */
.auth-other { padding: 0; border: 0; background: none; color: var(--link); font: 400 14px/1.55 var(--font); text-decoration: underline; cursor: pointer; }
.auth-other:hover { color: var(--link-hover); }
.mnotice { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mnotice--ok { background: var(--green-bg); color: var(--green-text); }
.mnotice--error { background: var(--destructive-bg); color: var(--destructive); }
.mclassfit { display: grid; justify-items: start; gap: 12px; margin: 0 0 24px; padding: 20px; border: var(--hairline) solid var(--card-border-subtle); border-radius: 10px; }
.mclassfit .msection { margin: 0; }
.mnotice--info { background: var(--swirl-light); color: var(--text); }
.plan--summary { width: 318px; max-width: 100%; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--link); }
.secure .ico { font-size: 14px; }
.stripe-embed { min-height: 360px; background: var(--white); }
/* The box holding Stripe's payment form is white, like the form itself (Pagamento page and shop checkout). */
.mbox:has(> .stripe-embed) { background: var(--white); }
.checkout__stripe { background: var(--white); }
@media (max-width: 760px) { .auth-band { gap: 32px; min-height: 0; } .mbox { padding: 24px; } }

/* ---------- Account dashboard (Figma “Account Dashboard • Desktop”) ---------- */
.account-band { padding-block: 100px; }  /* Figma: padding pinned at 100px above and below (Account · Details, Account · Privacy) */
.account { width: 1000px; max-width: 100%; margin-inline: auto; display: flex; flex-direction: column; gap: 32px; }
.account__hello { margin: 0; padding: 24px 0; border-bottom: var(--hairline) solid var(--card-border-subtle); font-size: 40px; font-weight: 700; line-height: 1; }
.subscription { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 20px 30px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 20px; }
.subscription__status { display: flex; align-items: center; gap: 15px; margin: 0; line-height: 1.3; }
.subscription__status .ico { font-size: 20px; }
.subscription__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.subscription__actions .btn { padding: 10px; border-radius: 10px; line-height: 1.3; }
.onboarding { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.onboarding p { margin: 0; }
.account__body { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-radius: 6px; background: none; color: var(--text); font: 400 16px/1.3 var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.tab .ico { font-size: 16px; }
.tab:hover, .tab[aria-current] { background: var(--swirl-light); }
.account__content { min-width: 0; display: flex; flex-direction: column; gap: 16px; line-height: 1.3; }
.account__content p { margin: 0; }
/* Detalhes da conta: the form in a white box (Figma “Form Container”, Style=Outlined), with a fainter rule inside. */
.account__content--card { gap: 24px; padding: 40px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 20px; }
.account__content--card .mrule { border-top-color: rgba(0, 0, 0, .1); }
.mform__pair--names { gap: 16px; }
.account__content .mfield input + input { margin-top: -8px; }
/* Figma “Input Field”, Type=Select: a 12px chevron 16px from the right instead of the browser's arrow. */
.account__content .mfield select { padding-right: 40px; background: var(--white) url(/assets/img/select-chevron.svg) right 16px center / 12px no-repeat; -webkit-appearance: none; appearance: none; }
/* Figma “Notice” with its icon (Type=Info: “Ainda não tem um plano ativo”, the survey's closing note). */
.mnotice--icon { display: flex; align-items: center; gap: 10px; }
.mnotice--icon .ico { font-size: 16px; }
.mrule { width: 100%; margin: 16px 0 0; border: 0; border-top: var(--hairline) solid var(--card-border-subtle); }
.msection { margin: 13px 0 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mhead .msection { margin: 0; }
.mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mlist li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.mlist--links li { justify-content: flex-start; }
.mbookings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mbookings li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--white); border: var(--hairline) solid var(--swirl); border-radius: 8px; }
.mplans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.plan--small { gap: 12px; padding: 16px; }
.plan--small .plan__head { min-height: 0; }
.plan--small .plan__name { font-size: 18px; }
.plan--small .plan__price { min-height: 0; }
.plan--small .plan__price strong { font-size: 24px; }
.plan--small .btn, .plan--small form .btn { margin-top: auto; padding: 8px; font-size: 14px; line-height: 1.2; }
.yesno { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.yesno legend { margin-bottom: 8px; font-weight: 600; line-height: 1.3; }
@media (max-width: 760px) { .account__body { grid-template-columns: 1fr; } .tabs { flex-direction: row; flex-wrap: wrap; } .tab { width: auto; } .account__hello { font-size: 30px; } .mform__pair { grid-template-columns: 1fr; } }
/* Apagar conta: a page of its own, reached from the Privacy tab (Figma “Delete account · Privacy”): a centred heading
   over a white box as wide as the page (Form Container, Style=Outlined). */
.mdelete { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 100px 40px; }
.mdelete__title { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; text-align: center; }
.mdelete__box { align-self: center; width: 100%; max-width: 800px; gap: 15px; line-height: 1.3; }  /* Figma: up to 800px wide */
.mdelete__box p { margin: 0; }
.mdelete__button { align-self: flex-start; }
.mdelete__resend { align-self: flex-start; }
@media (max-width: 760px) { .mdelete { padding: 50px var(--pad); } .account__content--card { padding: 24px; } }
/* Alterar email (src/member/email.tsx): in the Detalhes da conta box, a heading and a line, then the form, then the
   Form Buttons side by side (Light to send, ButtonOutlined to go back). */
.memail__intro { display: flex; flex-direction: column; gap: 8px; }
.memail__intro .msection { margin: 0; }
.memail__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Account › Gerir planos (Figma “Account · Plans (no plan)”, “(studio plan active)”, “(Online plan active)”) ---------- */
.ico--calendar { --i: url(/assets/img/icon-calendar.svg); }
.ico--info-square { --i: url(/assets/img/icon-info-square.svg); }
.ico--circle-check { --i: url(/assets/img/icon-circle-check.svg); }
.ico--circle-info { --i: url(/assets/img/icon-circle-info.svg); }
.mplanspage { display: flex; flex-direction: column; gap: 40px; }
/* The plan box: the plan's details and buttons with one; without one, just the “Ainda não tem um plano ativo” notice. */
.mstatus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 20px; padding: 20px 20px 20px 30px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 20px; line-height: 1.3; }
.mstatus.mstatus--none { flex-direction: column; align-items: stretch; gap: 16px; padding: 0; background: none; border: 0; border-radius: 0; }
.mstatus__side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mstatus__more { color: var(--link); }
.mstatus--plan { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 40px; padding: 24px; }
.mstatus__facts { display: grid; grid-template-columns: max-content 1fr; gap: 15px 40px; margin: 0; font-size: 16px; }
.mstatus__facts dt { font-weight: 600; }
.mstatus__facts dd { margin: 0; }
.mstatus__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mstatus__actions form { flex: 1 1 260px; }
/* The buttons are Figma “Form Button” (Surface=Light, .fbtn); long labels wrap on narrow screens. */
.mplanspage .fbtn { max-width: 100%; white-space: normal; }
.mgroup { display: flex; flex-direction: column; gap: 16px; }
.mgroup__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.mplan { display: flex; gap: 20px; padding: 20px; background: var(--dawn); border: var(--hairline) solid rgba(0, 0, 0, .05); border-radius: 16px; }
.mplan__main { flex: none; width: 240px; display: flex; flex-direction: column; gap: 13px; padding-right: 24px; border-right: var(--hairline) solid var(--card-border-subtle); }
.mplan__head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 14px; text-align: center; }
.mplan__badge { font-size: 12px; font-weight: 500; line-height: 1; text-transform: uppercase; color: #7d6354; }
.mplan__name { margin: 0 0 8px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.mplan__price { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; }
.mplan__price s { font-size: 18px; font-weight: 400; color: var(--link); }
.mplan__per { margin: 0; font-size: 14px; line-height: 1.55; }
.mplan__note { margin: 4px 0 0; font-size: 12px; line-height: 1.3; color: var(--link); }
.mplan__features { flex: 1; min-width: 0; align-self: flex-start; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.55; }
.mplan__features li { display: flex; align-items: flex-start; gap: 8px; }
.mplan__features .ico { font-size: 16px; margin-top: 3px; }
/* Phase 1 note (Figma “mclassfit”): white box with the Card Border Subtle outline (also on Marcações). */
.account__content .mclassfit { gap: 10px; margin: 0 0 22px; padding: 18px 20px; background: var(--white); border-color: var(--card-border-subtle); }
.account__content .mplanspage .mclassfit { margin: 0; }
/* Figma “Account · Plans · Popup”: studio plans only for people living in Portugal. Closing goes back to Gerir planos. */
.mpopup { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mpopup__overlay { position: absolute; inset: 0; background: rgba(41, 36, 33, .5); }
.mpopup__box { position: relative; width: 560px; max-width: 100%; max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 20px; padding: 32px; background: var(--white); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
.mpopup__head { display: flex; align-items: center; gap: 16px; }
.mpopup__title { flex: 1; margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; }
.mpopup__close { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--text); }
.mpopup__link { font-size: 14px; line-height: 1.55; color: var(--link); text-align: center; text-decoration: underline; }
.mpopup__link:hover { color: var(--link-hover); }
@media (max-width: 640px) {
  .mstatus { padding: 20px; }
  .mstatus__facts { column-gap: 20px; }
  .mplan { flex-direction: column; gap: 16px; }
  .mplan__main { width: 100%; padding: 0 0 16px; border-right: 0; border-bottom: var(--hairline) solid var(--card-border-subtle); }
  .mplan__features { align-self: stretch; }
}

/* ---------- The survey before cancelling a plan (Figma “Plano Online Cancellation Form”), one question per screen ---------- */
.cfb-band, .cfb-band--online { padding-block: 100px; }
.cfb { width: 860px; max-width: 100%; margin-inline: auto; display: flex; flex-direction: column; gap: 32px; color: var(--text); }
.cfb__intro { display: flex; flex-direction: column; gap: 20px; padding-bottom: 23px; border-bottom: var(--hairline) solid var(--card-border-subtle); }
.cfb__title { margin: 0; font-size: 40px; font-weight: 700; line-height: 1; }
.cfb__text { margin: 0; font-size: 16px; line-height: 1.55; }
/* The form sits in a Form Container (Style=Elevated): white, 24px corners, a soft shadow. */
.cfb-form { display: flex; flex-direction: column; gap: 32px; padding: 40px; background: var(--white); border-radius: 24px; box-shadow: var(--shadow-card); }
/* How far through the questions: a 4px dark bar on a faint track. */
.cfb-progress { height: 4px; background: var(--card-border-subtle); }
.cfb-progress span { display: block; height: 100%; background: var(--text); border-radius: 10px; }
.cfb-question { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.cfb-question__head { display: flex; flex-direction: column; gap: 1px; padding: 0; }
.cfb-question__title { font-size: 16px; font-weight: 600; line-height: 1.2; }
.cfb-question__hint { font-size: 14px; line-height: 1.4; color: var(--link); }
.cfb-choices { display: flex; flex-wrap: wrap; gap: 8px; }
/* Each answer is a radio button drawn as Figma “Choice Option”: a 42px box with a hairline edge and a soft shadow,
   in a 4px margin; dark when chosen. Ratings are 80px wide and sit side by side. */
.cfb-option { position: relative; display: inline-flex; padding: 4px; cursor: pointer; }
.cfb-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cfb-option span { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 42px; min-height: 42px; padding: 11px 16px; background: var(--white); border: var(--hairline) solid var(--control-border); border-radius: var(--radius-field); box-shadow: var(--shadow-control); font-size: 14px; line-height: 1.4; transition: background-color .15s, border-color .15s, color .15s; }
.cfb-option:hover span { border-color: var(--text); }
.cfb-option input:checked + span { background: var(--text); border-color: var(--text); color: var(--primary); }
.cfb-option input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.cfb-rating { display: inline-flex; flex-direction: column; align-self: flex-start; gap: 8px; }
.cfb-rating__options { display: flex; }
.cfb-option--rating span { width: 80px; padding: 12px; font-weight: 600; line-height: 1.3; }
.cfb-option--rating input:checked + span { font-weight: 400; }
.cfb-rating__labels { display: flex; justify-content: space-between; gap: 12px; padding-inline: 4px; font-size: 13px; line-height: 1.45; color: var(--link); }
/* Phones get a drop-down list for the reasons (Figma “Dropdown”) instead of the boxes. */
.cfb-select { display: none; }
.cfb-select select { width: 100%; height: 48px; padding: 0 48px 0 16px; background: var(--white) url(/assets/img/icon-chevron-down.svg) right 16px center / 24px no-repeat; border: var(--hairline) solid var(--card-border-subtle); border-radius: var(--radius-field); color: var(--text); font: 400 16px/1.2 var(--font); -webkit-appearance: none; appearance: none; }
.cfb-select select:has(option[value=""]:checked) { color: var(--link); }
/* Figma “Text Area”: the comment box, styled like the form fields. */
.cfb-textarea { display: block; width: 100%; min-height: 120px; padding: 12px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: var(--radius-field); color: var(--text); font: 400 16px/1.2 var(--font); resize: vertical; }
.cfb-textarea::placeholder { color: rgba(64, 58, 54, .4); opacity: 1; }
.cfb-textarea:focus, .cfb-select select:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.cfb-form__foot { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; border-top: var(--hairline) solid var(--card-border-subtle); }
.cfb-actions { display: flex; align-items: center; gap: 24px; }
/* “Continuar” and “Agora não” on the left, “Manter o plano” on the right. */
.cfb-actions--split { justify-content: space-between; }
.cfb-skip { font-size: 14px; line-height: 1.4; color: var(--link); text-decoration: none; }
.cfb-skip:hover { color: var(--link-hover); text-decoration: underline; }
/* The offer's “Cancelar plano” is a button drawn as the same quiet link. */
.cfb-skip--button { padding: 0; background: none; border: 0; font-family: var(--font); cursor: pointer; }
/* Ratings from 1 to 10 (a PostHog survey can use them): narrower boxes, wrapping when needed. */
.cfb-rating__options--wide { flex-wrap: wrap; }
.cfb-rating__options--wide .cfb-option--rating span { width: 48px; }
/* The offer mid-survey: the offer in a Form Container, and beside it the plan's card with the offer's price. */
.cfb-offer { display: flex; align-items: flex-start; gap: 24px; }
.cfb-offer__box { flex: 1 1 536px; min-width: 0; }
.cfb-offer__text { display: flex; flex-direction: column; gap: 8px; }
.cfb-offer__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; }
.cfb-offer__body { margin: 0; font-size: 14px; line-height: 1.4; color: var(--link); }
.cfb-offer__foot { padding-top: 16px; }
.cfb-offer__note { margin: 0; font-size: 12px; line-height: 1.2; color: var(--link); }
.cfb-offer__card { flex: none; width: 300px; padding-bottom: 24px; box-shadow: 0 0 10px rgba(0, 0, 0, .1); }
/* "Oferta exclusiva": 16px over the plan's name, with a soft shine crossing it from top left to bottom right every few
   seconds (a diagonal see-through white band moved over the green). Still for people who ask for less motion. */
.plan__badge--offer { align-self: center; margin-bottom: 16px; padding: 3px 4px 2px; border-radius: 4px; background: linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, .7) 50%, transparent 58%) 100% 100% / 300% 300% no-repeat, #a4ecb2; color: #2b6b0d; font-size: 12px; font-weight: 400; line-height: 1; text-transform: none; animation: offer-shine 4s ease-in-out 1s infinite; }
@keyframes offer-shine { 0% { background-position: 100% 100%, 0 0; } 45%, 100% { background-position: 0 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .plan__badge--offer { animation: none; background: #a4ecb2; } }
/* The offer's price centred, with the usual price struck through beside it. */
.cfb-offer__amounts { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; width: 100%; }
.cfb-offer__amounts strong { grid-column: 2; }
.cfb-offer__amounts s { grid-column: 3; justify-self: start; margin: 0; font-size: 24px; line-height: 1; color: var(--link); text-decoration: line-through; }
@media (max-width: 860px) {
  .cfb-offer { flex-direction: column; align-items: stretch; }
  .cfb-offer__box { flex: none; }
  .cfb-offer__card { width: 100%; max-width: 360px; align-self: center; }
}
@media (max-width: 640px) {
  .cfb-band, .cfb-band--online { padding: 32px 20px 48px; }
  .cfb { gap: 24px; }
  .cfb__intro { gap: 12px; }
  .cfb__title { font-size: 32px; }
  .cfb-form { gap: 24px; padding: 24px 20px; }
  .cfb-choices { display: none; }
  .cfb-choices--multi { display: flex; flex-direction: column; gap: 0; }
  .cfb-select { display: block; }
  .cfb-rating { display: flex; align-self: stretch; }
  .cfb-rating__options .cfb-option { flex: 1; padding: 2px; }
  .cfb-option--rating span { width: 100%; }
  .cfb-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .cfb-submit { width: 100%; }
  .cfb-skip { align-self: center; }
  .cfb-actions--split > .cfb-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Payment results (Figma “Thank you”, “Payment cancelled”) ---------- */
/* 100px above and below, at least 80% of the screen tall, everything centred. */
.result-band { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 100px; }
.result { width: 670px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 20px; text-align: center; }
.result--spaced { gap: 64px; padding: 0; }
.result__head { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.result__icon { margin-bottom: 5px; font-size: 50px; color: var(--text); }
.result__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.2; }
.result__text { max-width: 414px; margin: 0; line-height: 1.3; }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
/* Subscription or purchase details: a 600px white box straight under the buttons. */
.order { width: 600px; max-width: 100%; padding: 32px 31px 31px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 10px; }
.order h2 { margin: 0 0 13px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.order dl { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 0; line-height: 1.3; }
.order dd { margin: 0; text-align: right; }
/* Pagamento (Figma “Payment”): 100px further from the header than the sign-up page, white box with a soft shadow, 32px title. */
.auth-band.pay-band { min-height: 0; padding-top: 140px; padding-bottom: 160px; }
.pay-band .mbox__title { font-size: 32px; line-height: 1.2; }
.pay-band .plan__price { gap: 2px; }
.pay-band .plan__price strong { line-height: 1.2; }
.pay-band .plan__price span, .pay-band .plan__features li { line-height: 1.55; }
@media (max-width: 760px) { .auth-band.pay-band { padding-top: 40px; padding-bottom: 60px; } .result-band { padding-block: 50px; } }

/* ---------- Shop (Figma page “Shop”) ---------- */
.ico--image { --i: url(/assets/img/icon-image.svg); }
.ico--box-open { --i: url(/assets/img/icon-box-open.svg); }
:root { --wine: #754e5b; } /* Palette/Rose: shop banner */

/* Photos: grey box until a photo is chosen (Figma “Image Placeholder”) */
.shop-photo { display: block; overflow: hidden; }
/* White behind product photos, for transparent images (PNG cut-outs). Photos fill the frame (object-fit: cover), so the
   white never shows around an ordinary photo. */
.shop-photo:not(.shop-photo--empty) { background: #fff; }
/* Product photos sit in a square frame and fill it, trimmed at the edges when the photo isn't square (never stretched). */
.shop-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-photo--empty { display: flex; align-items: center; justify-content: center; color: var(--swirl); background: var(--swirl-light); }
.shop-photo--empty .ico { font-size: 32px; }
.shop-photo[hidden] { display: none; }

/* Loja: 160px side columns around a 1030px content column (Figma “Shop – Desktop 1440”) */
.shop-hero, .shop-products { display: grid; grid-template-columns: 160px minmax(0, 1030px) 160px; justify-content: center; }
.shop-hero { grid-template-columns: minmax(0, 520px) minmax(0, 509px); column-gap: 0; padding: 100px 45px 65px; }
.shop-hero__intro { display: flex; flex-direction: column; gap: 15px; padding-right: 20px; }
.shop-hero__intro > * { margin: 0; }
.shop-hero__title { font-size: clamp(3.5rem, 6.7vw, 6rem); font-weight: 800; line-height: 1.1; }
.shop-hero__intro p { line-height: 1.3; }
/* Figma “Promo Banner” */
.shop-banner { display: flex; flex-direction: column; gap: 20px; min-height: 200px; width: 509px; max-width: 100%; padding: 50px; background: var(--wine); border: var(--hairline) solid var(--card-border-subtle); border-radius: 20px; color: var(--primary); text-decoration: none; }
.shop-banner__heading { font-size: 32px; font-weight: 700; line-height: 1.2; }
.shop-banner__text { line-height: 1.3; }

.shop-products { padding: 10px 45px 100px; }
.shop-products::after { content: ''; }
.shop-filter ul { list-style: none; margin: 0; padding: 40px 40px 0 0; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.shop-filter a { font-size: 16px; line-height: 1.3; color: var(--link); text-decoration: none; white-space: nowrap; }
.shop-filter a:hover, .shop-filter a[aria-current='page'] { color: var(--link-hover); }

.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(370px, auto); gap: 10px; }
.shop-grid__featured { grid-column: span 3; }
.shop-grid > li { min-width: 0; }
.shop-grid--empty { display: block; padding-top: 40px; line-height: 1.3; }

/* Product cards (Figma “Product Card” and “Featured Product Card”): 370px tall in the grid, the photo 248px tall
   across the card (square on the shop page, wider in “Também pode gostar…”). */
.product-card { height: 100%; min-height: 350px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; background: var(--dawn); border: var(--hairline) solid var(--card-border-subtle); border-radius: 20px; color: var(--text); text-decoration: none; }
.product-card__img { flex: none; width: 100%; height: 248px; border-radius: 19px 19px 0 0; }
.product-card__details { flex: 1; display: flex; flex-direction: column; padding: 0 10px 10px; text-align: center; }
.product-card__title { font-size: 19.2px; font-weight: 700; line-height: 1; }
.product-card__price { padding-top: 10px; line-height: 1.3; }
/* Featured: the photo fills the left half from top to bottom; description, name and price on the right. */
.product-card--featured { flex-direction: row; align-items: stretch; gap: 0; min-height: 300px; }
.product-card--featured .product-card__img { flex: 1 1 0; width: auto; min-width: 0; height: auto; border-radius: 19px 0 0 19px; }
.product-card--featured .product-card__details { flex: 1 1 0; min-width: 0; justify-content: center; padding: 30px 10px 42px; }
.product-card__desc { flex: 1; min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 0 20px; font-size: 14.4px; line-height: 1.2; }
.product-card--featured .product-card__title { padding-bottom: 20px; }
.product-card--featured .product-card__price { padding-top: 0; }

@media (max-width: 1349px) {
  .shop-products { grid-template-columns: 160px minmax(0, 1030px); justify-content: start; }
  .shop-products::after { display: none; }
  .shop-hero { justify-content: start; padding-left: calc(45px + 160px); }
}
@media (max-width: 1023px) {
  .shop-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 60px var(--pad) 40px; }
  .shop-hero__intro { padding-right: 0; }
  .shop-products { grid-template-columns: 1fr; gap: 24px; padding: 0 var(--pad) 80px; }
  .shop-filter ul { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 0; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-grid__featured { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  /* Phones: narrow cards keep a square photo and are only as tall as their content. */
  .product-card { min-height: 0; }
  .product-card__img { height: auto; aspect-ratio: 1; }
  .product-card--featured { flex-direction: column; }
  .product-card--featured .product-card__img { flex: none; width: 100%; border-radius: 19px 19px 0 0; }
  .product-card--featured .product-card__details { padding: 20px 10px; }
  .product-card__desc { padding: 0 10px 16px; }
  .shop-banner { padding: 32px; }
}

/* Produto (Figma “Produto – Desktop 1440”) */
.product { display: grid; grid-template-columns: repeat(2, minmax(0, 645px)); justify-content: center; gap: 50px; padding: 50px; }
.product__gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product__main { width: 100%; aspect-ratio: 1; border-radius: 20px; }
.product__thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.product__thumbs a { display: block; border-radius: 10px; outline-offset: 2px; }
.product__thumbs a[aria-current='true'] .product__thumb { box-shadow: 0 0 0 2px var(--text); }
.product__thumb { width: 100px; height: 100px; border-radius: 10px; }
.product__summary { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.product__summary > * { margin: 0; }
.product__head { display: flex; flex-direction: column; gap: 15.44px; }
.product__head > * { margin: 0; }
.product__title { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; color: var(--text); }
.product__desc { max-width: 577px; line-height: 1.3; }
.product__specs .acc__body { line-height: 1.3; }
.product__buy { display: flex; flex-direction: column; gap: 12px; padding-top: 60px; }
.product__buy .form__status { margin: 0; }
.product__sizes { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.product__sizes legend { padding: 0; margin-bottom: 12.4px; font-weight: 600; line-height: 1.2; }
.product__sizes > div { display: flex; flex-wrap: wrap; gap: 10px; }
.size-pill { position: relative; cursor: pointer; }
.size-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.size-pill span { display: block; padding: 7.6px 16px; border: var(--hairline) solid var(--control-border); box-shadow: var(--shadow-control); border-radius: 7px; line-height: 1.3; }
.size-pill input:checked + span { border-color: var(--text); }
.size-pill.is-out, .size-pill.is-out input { cursor: not-allowed; }
.size-pill.is-out span { color: var(--link); background: var(--swirl-light); text-decoration: line-through; opacity: .7; }
.size-pill input:focus-visible + span { outline: 3px solid var(--mulled); outline-offset: 2px; }
.size-pill:hover span { border-color: var(--accent); }
.product__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.qty { display: inline-flex; align-items: center; gap: 16px; line-height: 1.3; white-space: nowrap; }
.qty--boxed { padding: 12px 16px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 7px; }
/* The − and + keep their size, but each sits in a 40px box so it's easy to hit (negative margins keep the layout). */
.qty__step { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; margin: -10px -15px; padding: 0; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; cursor: pointer; line-height: 1.3; touch-action: manipulation; }
.qty__step:hover:not(:disabled) { background: rgba(65, 58, 53, .06); }
.qty__step:disabled { opacity: .35; cursor: default; }
.qty input { width: 2.2ch; min-height: 0; padding: 0; border: 0; background: none; text-align: center; line-height: 1.3; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 2px; }
.product__add { padding: 13.7px 24px; border: 0; border-radius: 7px; background: var(--text); color: var(--primary); font: 400 16px/1.3 var(--font); cursor: pointer; }
.product__add:hover { background: var(--link-hover); }
.product__add:disabled { opacity: .5; cursor: not-allowed; }
.product__price { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.product__price strong { font-size: 24px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.product__stock { display: inline-flex; align-items: center; gap: 8px; color: var(--link); line-height: 1.3; }
.product__stock .ico { font-size: 15px; }
/* Também pode gostar…: Product Cards, as on the shop page. */
.upsells { display: flex; flex-direction: column; gap: 18px; padding: 47px 50px 50px; max-width: 1440px; margin-inline: auto; }
.upsells__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.upsells__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(370px, auto); gap: 24px; }
.upsells .product-card { height: 100%; }
@media (max-width: 899px) {
  .product { grid-template-columns: 1fr; gap: 32px; padding: 32px var(--pad); }
  .product__buy { padding-top: 20px; }
  .upsells { padding: 32px var(--pad) 60px; }
  .upsells__row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 16px; }
  .upsells .product-card { height: auto; min-height: 0; }
}

/* Form fields and buttons in the shop (Figma “Form Field” and “Form Button”, Surface=Light/Dark) */
.sfield { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1; }
.sfield input, .sfield select { border-color: var(--swirl-light); border-radius: 6px; height: 34px; }
.sfield input:disabled { background: var(--white); cursor: not-allowed; }
.sfield input[aria-invalid='true'] { border-color: var(--error); }
.sfield__error { font-style: normal; font-weight: 400; font-size: 12.8px; color: var(--error); }
.sfield--dark { color: var(--primary); }
.sfield--dark input, .sfield--dark input:disabled { background: transparent; border-color: var(--swirl); color: var(--primary); }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--text); border-radius: 6px; background: var(--text); color: var(--white); font: 400 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.sbtn:hover { background: var(--link-hover); border-color: var(--link-hover); }
.sbtn--block { width: 100%; }
.sbtn--light { padding: 8px; background: var(--primary); border-color: var(--primary); color: var(--accent); }
.sbtn--light:hover { background: var(--white); border-color: var(--white); }
.sbtn--light:disabled { cursor: not-allowed; }
.sbtn--back { padding: 0 16px; border: 0; border-radius: 10px; color: var(--primary); line-height: 2.5; }
.sbtn--back .ico { font-size: 16px; }
.scheck { display: flex; align-items: center; gap: 8px; line-height: 1.3; cursor: pointer; }
.scheck input { border-radius: 3px; }

/* Carrinho (Figma “Carrinho – Desktop 1440”) */
/* Basket (Figma “Basket · Desktop”) */
.cart { max-width: 1600px; margin-inline: auto; padding: 50px 50px 100px; }
.cart > .form__status { margin: 0 0 20px; }
.cart__layout { display: flex; align-items: flex-start; gap: 40px; }
.cart__items { flex: 1 1 0; min-width: 0; }
.cart .cart__items { padding-left: 0; }
.totals { flex: none; width: 360px; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 10px; box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04); }
.totals__group { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; border-bottom: var(--hairline) solid var(--card-border-subtle); }
.totals__row { display: flex; justify-content: space-between; gap: 20px; line-height: 1.3; }
.totals__row > span:last-child { text-align: right; white-space: nowrap; }
.totals__row--muted > span { opacity: 0.6; }
.cart .basket-line__img { border-radius: 8px; }
.totals__total { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.totals__total-value { white-space: nowrap; }
/* Código de cupão: Input Field (Surface=White) with its inline button, a slim outlined Form Button 7px away. */
.coupon { display: flex; align-items: stretch; gap: 7px; margin: 0; }
.coupon__field { flex: 1 1 0; min-width: 0; }
.coupon__field input::placeholder { color: var(--link); opacity: 1; }
.coupon .fbtn { flex: none; height: auto; min-height: 34px; }
@media (max-width: 899px) {
  .cart { padding: 32px var(--pad) 60px; }
  .cart__layout { flex-direction: column; align-items: stretch; }
  .cart .cart__items { padding-left: 0; }
  .totals { width: auto; }
}

/* Carrinho vazio (Figma “Carrinho Vazio – Desktop 1440”) */
.cart-empty { min-height: 900px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 50px; }
.cart-empty__box { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.cart-empty__icon { font-size: 80px; color: var(--swirl); }
.cart-empty__text { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.3; }
@media (max-width: 899px) { .cart-empty { min-height: 60vh; } }

/* Checkout (Figma “Checkout – Desktop 1443”): the basket on the left, Stripe's form in a card on the right */
.checkout { max-width: 1440px; margin-inline: auto; padding: 64px 50px 200px 74px; }
.checkout__back { display: inline-flex; align-items: center; padding-bottom: 32px; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.checkout__back img { flex: none; width: 16px; height: 20.5px; }
.checkout__content { display: flex; align-items: flex-start; gap: 40px; }
/* The basket column is 625px wide with a 16px indent (pinned in Figma); the card takes the rest. */
.checkout__items { flex: 0 1 625px; min-width: 0; display: flex; flex-direction: column; padding-left: 16px; }
.checkout__total { display: flex; flex-direction: column; gap: 4.8px; margin: 0; padding-bottom: 32.6px; color: var(--text); }
.checkout__total-label { font-weight: 600; line-height: 1.2; opacity: 0.6; }
.checkout__total-value { font-size: 40px; font-weight: 700; line-height: 1; }
.basket-lines { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.basket-line { display: flex; align-items: center; gap: 20px; }
.basket-line__product { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-start; gap: 16px; }
.basket-line__img { flex: none; width: 64px; height: 64px; border-radius: 10px; }
.basket-line__details { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 9px; padding-top: 0.6px; }
.basket-line__name { color: var(--text); font-weight: 600; line-height: 1.2; text-decoration: none; }
.basket-line__qty { display: flex; align-items: center; gap: 8px; margin: 0; line-height: 1.3; }
.basket-line__qty-label { opacity: 0.6; }
.basket-line__select { position: relative; display: inline-flex; align-items: center; }
.basket-line__select select { appearance: none; -webkit-appearance: none; field-sizing: content; margin: 0; padding: 0 22px 0 0; border: 0; background: transparent; color: var(--text); font: 600 16px/1.3 var(--font); cursor: pointer; }
.basket-line__select img { position: absolute; right: 0; pointer-events: none; }
.basket-line__update { padding: 2px 8px; border: var(--hairline) solid var(--control-border); box-shadow: var(--shadow-control); border-radius: 6px; background: var(--white); color: var(--text); font: 400 13px/1.2 var(--font); cursor: pointer; }
.basket-line__price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; padding-top: 0.6px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.basket-line__each { font-size: 14px; font-weight: 400; line-height: 1.55; opacity: 0.6; }
.checkout-sum { display: flex; align-items: center; gap: 16px; height: 72px; }
.checkout-sum__spacer { flex: none; width: 64px; }
.checkout-sum__row { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: var(--hairline) solid var(--card-border-subtle); line-height: 1.3; }
.checkout-sum__value { white-space: nowrap; }
.checkout-sum--bold .checkout-sum__row, .checkout-sum--total .checkout-sum__row { font-weight: 600; line-height: 1.2; }
.checkout-sum--muted .checkout-sum__row > span { opacity: 0.6; }
.checkout-sum--total .checkout-sum__value { font-size: 20px; font-weight: 700; }
/* The card is a Form Container (Style=Elevated, .fcard) with 24px padding; the fields are Input Fields (.mfield). */
.checkout__card { flex: 1 1 0; min-width: 0; min-height: 500px; gap: 16px; margin: 0; padding: 24px; }
.checkout__billing { display: flex; flex-direction: column; gap: 16px; }
.checkout__group { display: flex; flex-direction: column; gap: 13px; }
.checkout__heading { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.checkout__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Input Field, Type=Select: a 12px chevron 16px from the right edge. */
.checkout__card .mfield select { -webkit-appearance: none; appearance: none; padding-right: 38px; background: var(--white) url(/assets/img/select-chevron.svg) right 16px center / 12px no-repeat; cursor: pointer; }
.checkout__card .scheck { gap: 11px; padding-left: 4px; }
.checkout__pay { display: flex; flex-direction: column; gap: 13px; }
.checkout__pay > .form__status { margin: 0; }
.checkout__ship { display: none; flex-direction: column; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.checkout__ship legend { padding: 0; margin-bottom: 16px; font-weight: 600; line-height: 1.2; }
.checkout__card:has(#ship-other:checked) .checkout__ship { display: flex; }
.review__payment { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--swirl-light); border-radius: 7px; }
.review__method { margin: 0; font-weight: 600; line-height: 1.2; }
.review__soon { margin: 0; font-size: 13px; line-height: 1.45; color: var(--link); }
.review__privacy { margin: 0; font-size: 13px; line-height: 1.45; }
/* Hidden by site.js once Stripe's own form (with its own pay button) has loaded. */
.review__payment[hidden], .checkout__card [data-place-order][hidden] { display: none; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0 var(--pad) 200px; line-height: 1.3; }
.checkout + .secure { line-height: 1.45; }
.secure .ico { font-size: 14px; }
@media (max-width: 999px) {
  .checkout { padding: 32px var(--pad) 80px; }
  .checkout__content { flex-direction: column; align-items: stretch; }
  .checkout__items, .checkout__card { flex: none; }
  .checkout__items { padding-left: 0; }
  .checkout__card { min-height: 0; }
  .secure { padding-bottom: 80px; }
}
@media (max-width: 520px) {
  .checkout__total-value { font-size: 32px; }
  .checkout-sum__spacer { display: none; }
  .checkout__card { padding: 16px; border-radius: 16px; }
}
@media (max-width: 520px) { .checkout__pair:not(.checkout__pair--tight) { grid-template-columns: 1fr; } }

/* Encomenda recebida (Figma “Order confirmed”): centred icon, message and button, then the order in a white card. */
.received { display: flex; flex-direction: column; align-items: center; padding: 100px 40px; }
.received__notice { width: 600px; max-width: 100%; }
.received__result { width: 670px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 20px; text-align: center; }
.received__message { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.received__icon { font-size: 50px; color: var(--text); }
.received__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.2; }
.received__order { width: 600px; max-width: 100%; display: flex; flex-direction: column; gap: 13px; padding: 32px 31px 31px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 10px; }
.received__heading { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.received__details, .received__list { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.received__row { display: flex; align-items: flex-start; gap: 12px; line-height: 1.3; }
.received__row dt { flex: 1 1 0; min-width: 0; }
.received__row dd { margin: 0; text-align: right; white-space: nowrap; }
.received__row--total { font-size: 14px; font-weight: 600; }
.received__rule { width: 100%; height: 1px; margin: 0; border: 0; background: var(--card-border-subtle); }
@media (max-width: 899px) { .received { padding: 60px var(--pad); } }
@media (max-width: 520px) { .received__order { padding: 24px 20px; } .received__row dd { white-space: normal; } }

/* Newsletter pop-up (Figma “Popup – Newsletter Promo”) */
.shop-popup { width: 785px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--wine); color: var(--primary); overflow: auto; }
.shop-popup::backdrop { background: rgba(34, 34, 59, .55); }
.shop-popup__body { min-height: 550px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; text-align: center; }
.shop-popup__body > * { margin: 0; }
.shop-popup__kicker { font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.shop-popup__title { font-size: clamp(2.75rem, 9vw, 4.5rem); font-weight: 700; line-height: .9; }
.shop-popup__text { max-width: 564px; line-height: 1.3; }
.shop-popup__form { width: 560px; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.shop-popup__email { grid-column: 1 / -1; }
/* The spam check and the button each take a whole row, so the button sits under the fields (not beside the empty check). */
.shop-popup__form .newsletter__check, .shop-popup__form .sbtn { grid-column: 1 / -1; }
.shop-popup__form .newsletter__check:empty { display: none; }
.shop-popup__form .sbtn { justify-self: start; }
.shop-popup__close-form { position: absolute; top: 20px; right: 20px; margin: 0; }
.shop-popup__close { display: flex; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }
.shop-popup__close .ico { font-size: 20px; }
@media (max-width: 560px) { .shop-popup__body { min-height: 0; padding: 56px 20px 32px; } .shop-popup__form { grid-template-columns: 1fr; } }
.review__element { min-height: 40px; }
/* Member area: shop orders */
.morders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.morder { padding: 20px; background: var(--white); border: var(--hairline) solid var(--card-border-subtle); border-radius: 10px; }
.morder p { margin: 0; }
.morder__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px !important; }
.morder__head span { color: var(--link); }
.morder__items { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; line-height: 1.3; }
.morder__items li, .morder__total { display: flex; justify-content: space-between; gap: 16px; }
.morder__items--extra { color: var(--link); }
.morder__total { padding-top: 12px; border-top: var(--hairline) solid var(--card-border-subtle); }
.morder__status { margin: -6px 0 12px !important; font-size: 14px; color: var(--link); }

/* Cookie banner (Figma “Cookie Banner”), only shown once PostHog or Google Ads is switched on under Integrações:
   a 600px box in the middle of the dimmed page. */
.consent { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .2); color: var(--text); }
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent__inner { width: 600px; max-width: 100%; max-height: calc(100dvh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: 20px; background: var(--primary); box-shadow: 0 0 20px rgba(0, 0, 0, .2); }
.consent:focus-visible .consent__inner { outline: 2px solid var(--text); outline-offset: 2px; }
.consent__head { display: flex; flex-direction: column; gap: 8px; padding-left: 4px; }
.consent__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.consent__text { margin: 0; font-size: 14px; line-height: 1.2; }
.consent__text a { color: var(--text); font-weight: 500; text-decoration: underline; }
/* “Gerir preferências”: each kind with its tick box; its name opens its description. */
.consent__choices { display: flex; flex-direction: column; margin: -8px 0 0; }
.consent__choices[hidden] { display: none; }
.consent__kind { display: flex; align-items: flex-start; gap: 8px; padding-left: 4px; }
.consent__kind > input { margin-top: 18px; }
.consent__kind input[type=checkbox]:disabled:checked { background-color: rgba(64, 58, 54, .35); border-color: transparent; cursor: default; }
.consent__more { flex: 1; min-width: 0; padding: 16px 8px 16px 0; border-bottom: var(--hairline) solid var(--card-border-subtle); }
.consent__kind--last .consent__more { border-bottom: 0; }
.consent__more summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; }
.consent__more summary::-webkit-details-marker { display: none; }
.consent__more summary::after { content: ''; flex: none; width: 11px; height: 11px; background: currentColor; -webkit-mask: url(/assets/img/icon-chevron-down.svg) center / contain no-repeat; mask: url(/assets/img/icon-chevron-down.svg) center / contain no-repeat; transition: transform .2s; }
.consent__more[open] summary::after { transform: rotate(180deg); }
.consent__more summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.consent__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.consent__desc { margin: 0; padding-top: 8px; font-size: 12px; line-height: 1.3; color: rgba(64, 58, 54, .7); }
/* The buttons under a thin line: the main ones on the left, “Rejeitar todos” as plain text on the right. */
.consent__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding-top: 24px; border-top: var(--hairline) solid var(--card-border-subtle); }
.consent__choices:not([hidden]) + .consent__actions { margin-top: -16px; padding-top: 16px; }
.consent__main { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__main [hidden] { display: none; }
.consent__reject { padding: 8px 0; background: none; border: 0; color: var(--text); font: 400 14px/1.3 var(--font); cursor: pointer; }
.consent__reject:hover { text-decoration: underline; }
/* Form Button, Surface8: white, with a thin edge and the soft shadow. */
.fbtn--white { background: var(--white); border: var(--hairline) solid var(--control-border); color: var(--text); font-size: 14px; line-height: 1.3; }
.fbtn--white:hover { background: var(--white); border-color: var(--text); color: var(--text); }
@media (max-width: 520px) {
  .consent { align-items: flex-end; padding: 8px 8px max(8px, env(safe-area-inset-bottom)); }
  .consent__inner { padding: 20px; max-height: calc(100dvh - 16px); }
  .consent__main, .consent__main .fbtn { width: 100%; }
  .consent__actions { justify-content: center; }
}

/* "Preferências de cookies" (CookiePrefsPage): the banner's choices on a page of their own, for browsers that hide
   the banner. The status line has a tick before it. */
.choices { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; padding: 24px; border: var(--hairline) solid var(--card-border-subtle); border-radius: 20px; background: var(--white); color: var(--text); }
.choices[hidden] { display: none; }
.choices__intro { margin: 0; font-size: 14px; line-height: 1.3; }
.choices__row { display: flex; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: var(--hairline) solid var(--card-border-subtle); cursor: pointer; }
.choices__row input { margin-top: 2px; }
.choices__row > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.3; }
.choices__desc { font-size: 12px; color: rgba(64, 58, 54, .7); }
.choices__row input:disabled:checked { background-color: rgba(64, 58, 54, .35); border-color: transparent; cursor: default; }
.choices__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 16px; border-top: var(--hairline) solid var(--card-border-subtle); }
.choices__status { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ok); }
.choices__status::before { content: ''; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url(/assets/img/icon-circle-check.svg) center / contain no-repeat; mask: url(/assets/img/icon-circle-check.svg) center / contain no-repeat; }
.choices__status[hidden] { display: none; }
.choices__more { margin: 0; font-size: 14px; line-height: 1.3; }
.choices__more a { color: var(--text); font-weight: 500; text-decoration: underline; }

/* Newsletter forms once PostHog is switched on (it sends the newsletter) */
.newsletter__status, .shop-popup__status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.newsletter__status[hidden], .shop-popup__status[hidden] { display: none; }
.newsletter__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Phones and tablets (checked at 360, 390, 768 and 1440 px wide)
   ========================================================================== */

/* The sticky header no longer covers the top of a section reached by a link (#horario, #contact-form and so on). */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
/* The page behind the open phone menu stays still. The lock sits on the page itself (html), and body must then not
   clip: with both set to hidden, body turns into its own scrolling box, the sticky header stops following the screen
   and the menu opens out of sight. (Browsers without :has() keep the rule on body near the top, which locks the page.) */
html:has(body.menu-open) { overflow: hidden; scroll-padding-top: 0; } /* no room kept for the header: moving through the open menu with Tab must not scroll the page behind */
html:has(body.menu-open) body { overflow: visible; }

/* Fallbacks for browsers without small/dynamic viewport units, then the units that ignore the browser's toolbars. */
.not-found, .cart-empty { min-height: 0; }
@media (max-width: 700px) { .not-found { min-height: 60vh; min-height: 60svh; } }
@media (max-width: 899px) { .cart-empty { min-height: 60vh; min-height: 60svh; } }
@media (min-width: 900px) { .cart-empty { min-height: 900px; } }
@media (min-width: 701px) { .not-found { min-height: 810px; } }
.shop-popup { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }

/* Long email addresses and codes break instead of pushing the page sideways. */
.mfacts dd, .facts dd, .order dd, .received__overview dd { overflow-wrap: anywhere; }
.icon-list a, .mbookings li, .morder p, .subscription__status, .mbox p, .result__text, .totals__row > span:first-child { overflow-wrap: break-word; }

/* Text that reads in lines of about 55–75 letters on tablets and computers (as .measure--body on the home page). */
.product__desc { max-width: 36em; }
.product-card__desc { max-width: 36em; align-self: center; }
.legal-band__content { max-width: 38em; }
.prose { line-height: 1.55; }

/* Header: the basket, account and menu buttons are 44px squares on phones and tablets. */
.site-header.is-compact .site-header__inner { gap: 4px; padding-inline: 20px max(20px, env(safe-area-inset-right)); }
.site-header.is-compact .site-header__brand { margin-right: auto; }
.site-header.is-compact .site-header__icon { align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; }
.site-header.is-compact .menu-toggle { align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin-right: -10px; }
.site-header.is-compact .site-nav { overscroll-behavior: contain; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.site-header.is-compact .site-nav .lang-switch a { padding: 12px 0; }

/* Touch screens: every button, field and tick box is at least 44px tall. */
@media (pointer: coarse) {
  .btn, .cbtn, .sbtn, .mbtn, .fbtn, .form-btn, .alt-login, .product__add, .tab { min-height: 44px; }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { min-height: 44px; }
  .qty input[name], .basket-line__select select { min-height: 0; }
  .basket-line__select { min-height: 44px; }
  .check, .mcheck, .scheck { min-height: 44px; align-items: center; }
  .check input { margin-top: 0; }
  .qty--boxed { gap: 0; padding: 0 4px; }
  .qty__step { min-width: 44px; min-height: 44px; margin: 0; }
  .size-pill span { min-width: 44px; padding: 13px 16px; text-align: center; }
  .faq-item summary { padding-block: 6px; }
  .pagination a { display: inline-block; padding-block: 12px; }
  .mform .mlink, .mbox .mlink--blue { display: inline-block; padding-block: 8px; }
  .icon-list { gap: 4px; }
  .icon-list a, .link-back, .mlist .mlink { display: inline-block; padding-block: 10px; }
}


/* Contact form: the answer is shown where the form is. */
@media (max-width: 899px) {
  .contact-band__box { scroll-margin-top: calc(var(--header-h) + 16px); }
  .form-btn { min-width: 120px; }
}

/* ---------- Agendamento ---------- */
/* Tablets: the plans and single sessions sit side by side above the calendar, which takes the full width. */
@media (min-width: 641px) and (max-width: 1069px) {
  .booking-side { flex-basis: 100%; padding-right: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
  .booking-side__title { grid-column: 1 / -1; }
}
@media (max-width: 1069px) {
  .cal { flex-basis: 100%; max-width: none; min-height: 0; }
}
/* Phones: the calendar card uses the width for the days; the two arrows move above them. */
@media (max-width: 640px) {
  .cal { padding: 16px; gap: 16px; }
  .cal__head { padding-bottom: 16px; }
  .cal__title { margin-right: auto; }
  .cal__credits { order: 1; flex-basis: 100%; font-size: 14px; }
  .cal__strip { display: grid; grid-template-columns: 44px 1fr 44px; grid-template-areas: 'prev . next' 'days days days'; row-gap: 4px; padding: 0; }
  .cal__strip > :first-child { grid-area: prev; }
  .cal__strip > :last-child { grid-area: next; }
  .cal__grid { grid-area: days; row-gap: 4px; }
  .cal__arrow { width: 44px; height: 44px; }
  .cal__day { width: 100%; max-width: 48px; height: 44px; }
  .cal__empty { padding: 24px 0; }
  .cal__list { gap: 12px; }
  .crow { padding: 8px; }
  .crow__main { gap: 12px; }
  .crow__info { padding-right: 8px; }
  .crow__meta .mlink { white-space: nowrap; }
  .row-panel { padding: 14px; }
  .row-actions > * { flex: 1 1 auto; }
  .row-confirm .row-actions { flex-basis: 100%; }
}

/* ---------- Sobre: less empty space between the bands on phones ---------- */
@media (max-width: 800px) { .about-hero { padding-block: 96px; } }
@media (max-width: 700px) {
  .about-hero ~ .section--tall { padding-block: 72px; }
  .about-cols__head, .about-cols--levels .about-cols__head { padding-bottom: 32px; }
  .section.about-founder { padding-block: 64px; }
  .about-founder__top { gap: 32px; margin-bottom: 32px; }
}

/* ---------- Plano Online on tablets and phones ---------- */
@media (max-width: 1024px) {
  .section.online-live { padding: 80px var(--pad); }
  .online-live__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .online-live__img { flex: none; max-width: 620px; align-self: center; }
  .online-live__text { flex: none; gap: 12px; }
}
@media (max-width: 700px) {
  .online-hero { padding: 48px var(--pad) 56px; gap: 16px; }
  .online-flex { padding: 64px 0 48px; }
  .online-flex__marquee { --row: 150px; }
  .section.online-live { padding-block: 64px; }
  .online-unlimited { padding-block: 64px; }
  .online-unlimited__icon { width: 112px; height: 52px; }
  .section.online-subscribe { padding: 56px var(--pad) 64px; gap: 32px; }
  .plan--online { min-height: 0; }
  .plan--online .plan__actions { padding-top: 8px; }
}

/* ---------- Shop on phones and tablets ---------- */
@media (max-width: 1023px) {
  .shop-filter ul { gap: 0 24px; }
  .shop-filter a { display: inline-block; padding-block: 12px; }
}
@media (max-width: 899px) {
  .upsells .product-card { height: 100%; }
}
@media (max-width: 699px) {
  .shop-grid > li:not(.shop-grid__featured) .product-card__title, .upsells .product-card__title { font-size: 16px; line-height: 1.15; }
  .product-card { gap: 14px; }
}
.shop-popup__close-form { top: 10px; right: 10px; }
.shop-popup__close { align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }

/* ---------- Member area on phones ---------- */
@media (max-width: 760px) {
  .account-band { padding-block: 50px; }
  .account { gap: 24px; }
  .account__hello { padding: 8px 0 20px; }
  .subscription { padding: 20px; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding-bottom: 16px; border-bottom: var(--hairline) solid var(--card-border-subtle); }
  .tab { width: 100%; padding: 10px 12px; font-size: 15px; line-height: 1.2; }
  .account__body { gap: 24px; }
}
@media (max-width: 520px) {
  .mplans:has(.plan__features) { grid-template-columns: 1fr; }
}



/* Account › Gerir plano on phones: the long "change or cancel" button wraps instead of running off the screen. */
.account .btn, .mbox .btn, .mfacts + form .btn { white-space: normal; max-width: 100%; }
.mfacts + form { max-width: 100%; }
.plan--small .plan__badge { color: #7d6354; }

/* ---------- Newsletter line beside the pay button (shop checkout and Pagamento), quiet like the payment notes ---------- */
.buyer-news { display: flex; flex-direction: column; gap: 8px; }
.buyer-news > .buyer-news__text { margin: 0; font-size: 13px; line-height: 1.45; color: var(--link); }
.buyer-news__box { display: flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
/* Touch screens wider than 900px: bigger targets in the footer (narrower screens have the accordion's own sizes). */
@media (pointer: coarse) and (min-width: 901px) {
  .site-footer__cookies, .lang-switch--footer a { display: inline-block; padding-block: 10px; }
  .social { gap: 0; margin: -10px 0 0 -10px; }
  .social a { padding: 10px; }
}
@media (pointer: coarse) { .buyer-news__box { min-height: 44px; } }

/* ---------- Gift cards (src/views/pages/giftcard.tsx; not in Figma yet, see docs/figma-tasks.md) ---------- */
.ico--gift { --i: url(/assets/img/icon-gift.svg); }
.shop-hero__gift { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.shop-hero__gift .ico { font-size: 18px; }
.totals__note { margin: 0; font-size: 13px; line-height: 1.3; color: var(--link); }
.giftcard { max-width: 1440px; margin-inline: auto; padding: 64px 50px 120px 74px; }
.giftcard__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: start; margin-top: 32px; }
.giftcard__intro { display: flex; flex-direction: column; gap: 20px; }
.giftcard__intro > p { margin: 0; max-width: 520px; line-height: 1.4; }
.giftcard__title { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.1; }
.giftcard__picture { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; max-width: 420px; aspect-ratio: 1.6; padding: 28px; border-radius: 20px; background: var(--wine); color: var(--primary); box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.giftcard__logo { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); }
.giftcard__label { font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.giftcard__value { position: absolute; right: 28px; bottom: 24px; font-size: 40px; font-weight: 700; line-height: 1; }
.giftcard__points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.4; }
.giftcard__form { gap: 24px; }
.giftcard__form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.giftcard__form legend { padding: 0; margin-bottom: 14px; font-size: 20px; }
.giftcard__form textarea { height: auto; min-height: 96px; resize: vertical; }
.giftcard__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.giftcard__chip { position: relative; }
.giftcard__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.giftcard__chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: var(--hairline) solid var(--control-border); box-shadow: var(--shadow-control); border-radius: var(--radius-field); background: var(--white); font-size: 16px; }
.giftcard__chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--white); }
.giftcard__chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.giftcard__amounts.mfield--error .giftcard__chip span { border-color: var(--error, #b3261e); }
.giftcard__form .secure { padding: 0; }
.giftcard__done { margin: 0; line-height: 1.4; }
@media (max-width: 900px) {
  .giftcard { padding: 40px var(--pad, 20px) 80px; }
  .giftcard__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .giftcard__title { font-size: 32px; }
}

/* ---------- Videos page: a thumbnail chosen in the dashboard, with a play button (src/views/pages/videos.tsx) ---------- */
.video-card__poster { position: relative; overflow: hidden; cursor: pointer; }
.video-card__poster > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card__poster noscript iframe { position: absolute; inset: 0; }
.video-card__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: linear-gradient(to top, rgba(34, 34, 59, .28), rgba(34, 34, 59, 0) 55%); cursor: pointer; }
.video-card__play-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(250, 248, 247, .92); box-shadow: 0 4px 18px rgba(34, 34, 59, .22); transition: transform .15s ease, background-color .15s ease; }
.video-card__play-ico::before { content: ''; margin-left: 5px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--mulled); }
.video-card__play:hover .video-card__play-ico { transform: scale(1.06); background: #fff; }
.video-card__play:focus-visible { outline: 3px solid var(--mulled); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .video-card__play-ico { transition: none; } .video-card__play:hover .video-card__play-ico { transform: none; } }
@media (max-width: 900px) { .video-card__play-ico { width: 56px; height: 56px; } .video-card__play-ico::before { border-width: 10px 0 10px 16px; margin-left: 4px; } }

/* ---------- Members' survey, “A sua opinião é importante” (src/member/survey.tsx) ---------- */
/* Same card as the survey after cancelling (.cfb); question 1 is five stars, each a real radio button. */
.msv-band { padding-block: 64px 100px; }
.msv-question__title { margin-bottom: 12px; }
.msv-question__title + * { clear: both; }
.msv-optional { font-weight: 400; color: var(--link); }
.msv-error { margin-top: 8px; }
.msv-stars { display: flex; gap: 4px; }
.msv-star { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--text); border-radius: 6px; cursor: pointer; }
.msv-star input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.msv-star svg { width: 36px; height: 36px; fill: transparent; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transition: fill .15s; }
/* The chosen star and every star before it are filled. */
.msv-star:has(input:checked) svg, .msv-star:has(~ .msv-star input:checked) svg { fill: currentColor; }
.msv-star:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.msv-question--error .msv-star, .msv-question--error .cfb-option span { color: var(--destructive); border-color: var(--destructive); }
@media (hover: hover) {
  /* While pointing, the stars up to the pointer show filled instead. */
  .msv-stars .msv-star:hover svg, .msv-stars .msv-star:has(~ .msv-star:hover) svg { fill: currentColor; }
  .msv-stars .msv-star:hover ~ .msv-star svg { fill: transparent; }
}
@media (prefers-reduced-motion: reduce) { .msv-star svg { transition: none; } }
@media (max-width: 640px) {
  .msv-band { padding: 24px 20px 48px; }
  .msv-stars { justify-content: space-between; }
}

/* ---------- Members' survey as a pop-up (src/member/survey-popup.tsx, public/assets/survey-popup.js) ---------- */
/* The same dialog as .mpopup (dimmed page, white box), a little wider and scrolling inside on short screens. The
   questions use the survey page's pieces (.msv-stars, .cfb-rating, .cfb-textarea). On phones it rises from the bottom,
   full width. While it is open the page behind doesn't scroll. */
.spop-open, .spop-open body { overflow: hidden; }
.spop { z-index: 300; }
/* The messages and the thank-you wait hidden until the script shows them. */
.spop [hidden] { display: none; }
.spop .mpopup__box { width: 600px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); gap: 16px; padding: 28px 32px; overscroll-behavior: contain; color: var(--text); }
.spop .mpopup__box:focus { outline: none; }
.spop__title { font-size: 24px; }
/* ✕: a 44px target round the 24px cross. */
.spop__close { width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0; background: none; border: 0; border-radius: var(--radius-field); cursor: pointer; }
.spop__close:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; }
.spop .msv-preview { font-weight: 400; }
.spop__body { display: flex; flex-direction: column; gap: 16px; }
.spop__intro { margin: 0; font-size: 14px; line-height: 1.5; }
.spop__form { display: flex; flex-direction: column; gap: 20px; }
.spop__actions { display: flex; align-items: center; gap: 24px; padding-top: 16px; border-top: var(--hairline) solid var(--card-border-subtle); }
.spop__thanks:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0 8px; text-align: center; }
.spop__thanks .result__title:focus { outline: none; }
/* It fades in and the box rises a little; not for people who ask for less motion. */
.spop .mpopup__overlay, .spop .mpopup__box { transition: opacity .25s ease, transform .25s ease; }
.spop:not(.is-in) .mpopup__overlay, .spop:not(.is-in) .mpopup__box { opacity: 0; }
.spop:not(.is-in) .mpopup__box { transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) { .spop .mpopup__overlay, .spop .mpopup__box { transition: none; transform: none; } }
@media (max-width: 640px) {
  .spop { align-items: flex-end; padding: 0; }
  .spop .mpopup__box { width: 100%; max-height: 92vh; max-height: 92dvh; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .spop .cfb-rating, .spop .cfb-rating__options { align-self: stretch; }
  .spop .cfb-option--rating { flex: 1; }
  .spop .cfb-option--rating span { width: 100%; padding-inline: 4px; }
  .spop__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .spop__actions .fbtn { width: 100%; }
}

/* ---------- Booking (Phase 1): back to the whole Classfit widget, shown when it opens on one tab (src/views/schedule.tsx) ---------- */
.cal__back { align-self: flex-start; }
.cal__back:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Conta › Notificações: each kind of email with its tick box and a line under it */
.mchoice + .mchoice { margin-top: 16px; }
.mchoice .mfield__hint { margin: 4px 0 0 32px; }
.mchoice.is-off { opacity: .5; }
.mchoice.is-off .mcheck { cursor: not-allowed; }

/* Filled buttons (Figma “Form Button”): a soft shadow round the fill. Outlined, disabled and text-like buttons have none. */
.fbtn, .mbtn, .cbtn, .sbtn, .form-btn, .btn--solid, .btn--primary { box-shadow: var(--shadow-button); }
.fbtn--dark, .form-btn--dark, .sbtn--light { box-shadow: var(--shadow-button-light); }
.fbtn--outlined, .cbtn--outline, .cbtn--red-outline, .sbtn--back, .fbtn--disabled, .fbtn:disabled, .fbtn[aria-disabled='true'], .mbtn:disabled, .mbtn--disabled, .cbtn.is-disabled, .form-btn:disabled, .btn:disabled, .btn.is-disabled, .btn--soon { box-shadow: none; }

/* ---------- The chat (PostHog Support) on the Videos and Services pages (src/integrations/chat.tsx, public/assets/chat.js) ---------- */
/* The studio's own round button (Figma “Chat Bubble”), bottom right, clear of the phone's home bar. It sits under the
   header's menu, the shop pop-up and the cookie banner (their layers are higher), so it never covers them. */
.chat-bubble { --chat-gap: 24px; --chat-size: 60px; position: fixed; right: calc(var(--chat-gap) + env(safe-area-inset-right, 0px)); bottom: calc(var(--chat-gap) + env(safe-area-inset-bottom, 0px)); z-index: 40; width: var(--chat-size); height: var(--chat-size); padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); transition: transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.chat-bubble[hidden] { display: none; }
.chat-bubble img { display: block; width: 100%; height: 100%; }
.chat-bubble:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.chat-bubble:active { transform: scale(.97); }
.chat-bubble:focus-visible { outline: 3px solid var(--mulled); outline-offset: 3px; border-radius: 50%; }
.chat-bubble[aria-busy='true'] { cursor: progress; }
@media (max-width: 640px) { .chat-bubble { --chat-gap: 16px; --chat-size: 52px; } }
@media (prefers-reduced-motion: reduce) { .chat-bubble, .chat-bubble:hover, .chat-bubble:active { transition: none; transform: none; } }
/* PostHog's chat panel: its own round button is never shown (the studio's replaces it, so the panel shows only while
   open), and the open panel sits just above the studio's button, so that button can close it again. PostHog writes its
   positions straight onto its elements, hence !important. Colours, font and corners are set in chat.js. */
html:not(.chat-open) #ph-conversations-widget-container { display: none !important; }
#ph-conversations-widget-container > div { right: calc(var(--chat-right, 24px) + env(safe-area-inset-right, 0px)) !important; bottom: calc(var(--chat-above, 96px) + env(safe-area-inset-bottom, 0px)) !important; }
#ph-conversations-widget-container > div > div { max-height: calc(100vh - var(--chat-above, 96px) - 24px) !important; max-height: calc(100dvh - var(--chat-above, 96px) - 24px) !important; }
/* The open panel is white with a thin light grey border, and so is its header (PostHog paints the header in the
   purple used for the member's messages, so it is turned white here, with the title and buttons in the text colour). */
#ph-conversations-widget-container > div > div { border: 1px solid #e5e5e5 !important; }
#ph-conversations-widget-container > div > div > div:first-child { background: #ffffff !important; color: var(--text, #403a36) !important; border-bottom: 1px solid #e5e5e5 !important; }
#ph-conversations-widget-container > div > div > div:first-child button { color: var(--text, #403a36) !important; }
#ph-conversations-widget-container > div > div > div:first-child button:hover { background: #f2f2f2 !important; }
@media (max-width: 640px) {
  #ph-conversations-widget-container { --chat-right: 16px; --chat-above: 80px; }
  #ph-conversations-widget-container > div > div { max-width: calc(100vw - 32px) !important; }
}

/* ---------- Audit U-6, U-8, U-21 ---------- */

/* Phones: every link and button people tap is at least 44 by 44 pixels (Apple's and Google's guidance). */
@media (pointer: coarse) {
  .basket-line__select select,
  .crow__meta a,
  .site-footer ul a,
  .site-footer__cookies,
  .social a,
  .cbtn--small { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .social a { justify-content: center; }
}

/* The spam check keeps its place while it loads, so the sign-up and contact pages don't jump. */
.cf-turnstile { min-height: 65px; }

/* Printing a page (an order, an article): the content only, without the header, menus, footer, banners and chat. */
@media print {
  .site-header, .site-footer, .consent, .promo, [data-chat], .cart-popup, .nav, .langmenu { display: none !important; }
  body { background: #fff; color: #000; }
  main#main { padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
.contact-form__why { margin: 8px 0 0; text-align: center; } .contact-form__why[hidden] { display: none; }
/* Size guide under the sizes on a product page (owner decision 10, src/shop/size-guide.ts). */
.size-guide { margin: 4px 0 16px; font-size: 14px; }
.size-guide summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.size-guide__table { margin-top: 12px; }
.size-guide__table h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.size-guide__unit { font-weight: 400; color: var(--text-soft, inherit); }
.size-guide__scroll { overflow-x: auto; }
.size-guide table { border-collapse: collapse; width: 100%; min-width: 320px; }
.size-guide th, .size-guide td { border-bottom: 1px solid var(--line, #ddd); padding: 6px 8px; text-align: center; white-space: nowrap; }
.size-guide tbody th, .size-guide thead th:first-child { text-align: left; font-weight: 500; }
.size-guide__note { margin: 6px 0 0; font-size: 13px; }
