/* Outside app/assets so stylesheet_link_tag :app does not load this on sign-in, the club, or the mobile app. */
:root {
  --bg: #ffffff;
  --surface: #eef2f3;
  --ink: #12191c;
  --muted: #5b676c;
  --line: #e5e9ea;
  --on-photo: #ffffff;
  --on-photo-muted: rgba(255, 255, 255, .86);
  --btn: #ffffff;
  --btn-ink: #0d1a20;
  /* The ocre of the headline underline is the only accent: underline, pins and callout arrows. */
  --accent: #e3aa55;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.cms a { color: inherit; }
:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto;
  padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px)); }

/* Hero : photo plein cadre + voile sombre à gauche pour le texte, téléphone entier à droite */
html { height: 100%; }
body { min-height: 100%; display: flex; flex-direction: column; }
.hero { position: relative; isolation: isolate; color: var(--on-photo); flex: 1 0 auto; display: flex; flex-direction: column; min-height: 600px; }
.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #1a1218; }
.hero-photo img { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 72%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 10, 20, .86) 0%, rgba(14, 10, 20, .7) 30%, rgba(14, 10, 20, .22) 52%, rgba(14, 10, 20, .05) 100%),
    linear-gradient(180deg, rgba(14, 10, 20, .5) 0%, rgba(14, 10, 20, 0) 26%, rgba(14, 10, 20, 0) 74%, rgba(14, 10, 20, .4) 100%); }

.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login { color: var(--on-photo); text-decoration: none; font-weight: 500; font-size: .88rem; padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .4); white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.login:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 25, 28, .08); }
.logo img { width: 28px; height: auto; display: block; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; align-items: center; align-content: center; gap: 40px; padding-block: 16px 48px; flex: 1; }

.hero h1 { margin: 0; font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.hero h1 .mark { position: relative; z-index: 0; white-space: nowrap; }
.hero h1 .mark::after { content: ""; position: absolute; z-index: -1; left: -0.04em; right: 0.02em; bottom: 0.08em; height: 0.16em; border-radius: 2px; background: var(--accent); }
.lead { margin: 20px 0 0; font-size: clamp(1.02rem, 1.8vw, 1.15rem); color: var(--on-photo-muted); text-wrap: pretty; }

.cta-row { margin-top: 32px; display: flex; flex-wrap: nowrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 192px; padding: 10px 20px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); text-decoration: none; line-height: 1.15; transition: background-color .15s var(--ease), transform .15s var(--ease); }
/* The badges are links, so beat `.cms a { color: inherit }` or they turn white on white. */
.cms a.store { color: var(--btn-ink); }
.store:hover { background: #e8ecee; }
.store:active { transform: scale(.98); }
.store svg { flex: none; display: block; }
.store .ico { display: grid; place-items: center; width: 28px; flex: none; }
.store small { display: block; font-size: .72rem; white-space: nowrap; }
.store strong { display: block; font-size: 1.05rem; font-weight: 600; white-space: nowrap; }

.contact-row { margin-top: 24px; }
.contact-link { color: var(--on-photo-muted); text-decoration: none; font-size: .98rem; text-wrap: balance; }
.contact-link strong { color: var(--on-photo); font-weight: 600; border-bottom: 1px solid currentColor; }
.contact-link:hover strong { border-bottom-width: 2px; }

/* iPhone frame. The app is painted at 390×844 inside the iframe, then scaled
   to the screen so a larger frame keeps the same layout.
   Callouts sit beside the phone on a wide screen, and stack under it otherwise. */
.stage { --phone-w: min(340px, calc((100dvh - 260px) / 2.1)); position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
/* Corners follow the phone's width, like a real iPhone, so a small frame is not a pill. */
.phone { position: relative; width: var(--phone-w); padding: 10px; border-radius: calc(var(--phone-w) * .16);
  background: linear-gradient(145deg, #5b6469 0%, #20262a 34%, #343c41 66%, #1a1f22 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 50px 90px -24px rgba(0, 0, 0, .7), 0 12px 30px -10px rgba(0, 0, 0, .5); }
.phone::before { content: ""; position: absolute; left: -4px; top: 23%; width: 4px; height: 10.5%; border-radius: 2px 0 0 2px; background: #3b4348;
  box-shadow: 0 97px 0 #3b4348, 0 -58px 0 #3b4348; }
.phone::after { content: ""; position: absolute; right: -4px; top: 29%; width: 4px; height: 15.6%; border-radius: 0 2px 2px 0; background: #3b4348; }
.screen { --app-width: 390px; --app-height: 844px; position: relative; border-radius: calc(var(--phone-w) * .16 - 10px); overflow: hidden; background: #f2f2f7; border: 6px solid #000; aspect-ratio: 390 / 844; container-type: size; }
.screen iframe { position: absolute; top: 0; left: 0; width: var(--app-width); height: var(--app-height); border: 0; transform-origin: top left; transform: scale(calc(100cqw / var(--app-width))); pointer-events: none; background: #f2f2f7; overflow: hidden; }
/* Dynamic Island in screen units, so it keeps its place above the preview's 84px top inset at any size. */
.screen::after { content: ""; position: absolute; z-index: 2; top: 3cqw; left: 50%; width: 32cqw; height: 9.4cqw; transform: translateX(-50%); border-radius: 4.7cqw; background: #000; }
.pin { display: none; appearance: none; position: absolute; z-index: 3; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--accent); box-shadow: 0 0 0 4px rgba(227, 170, 85, .3), 0 1px 4px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); pointer-events: none; cursor: pointer; transition: transform .15s var(--ease); }
.pin:active { transform: translate(-50%, -50%) scale(.92); }
/* Centers on the 390×844 preview: session card, Ask Arnold sparkle, QR button, first upcoming session. */
.pin-session { left: 14.9%; top: 33.6%; }
.pin-arnold { left: 89.2%; top: 12.8%; }
.pin-access { left: 85.1%; top: 41.1%; }
.pin-whatsapp { left: 82.1%; top: 61.1%; }
.feature-dialog { margin: auto; padding: 0; border: 0; background: transparent; width: min(380px, calc(100vw - 32px)); }
.feature-dialog-sheet { position: relative; }
.feature-dialog::backdrop { background: rgba(14, 10, 20, .62); }
.feature-dialog .co { position: static; width: auto; margin: 0; transform: none; padding-right: 52px; }
.feature-dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); color: #1d2529; cursor: pointer; }
.feature-dialog-close svg { width: 16px; height: 16px; display: block; }

.callouts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; width: min(560px, 100%); }
.arrows { display: none; }
.co { padding: 12px 16px; color: var(--ink); background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.co-h { display: flex; align-items: center; gap: 8px; }
.ic { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: var(--muted); }
.ic svg, .ic img { width: 20px; height: 20px; display: block; }
.co strong { font-size: .93rem; line-height: 1.25; font-weight: 600; }
.co p { margin: 4px 0 0; font-size: .8rem; line-height: 1.4; color: var(--muted); text-wrap: pretty; }

.site-footer { flex: none; border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: .9rem; color: var(--muted); background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; transition: color .15s var(--ease); }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 1239px) {
  .stage { display: contents; }
  .callouts, .arrows { display: none; }
  .pin { display: block; pointer-events: auto; }
}
@media (min-width: 821px) and (max-width: 1239px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; justify-content: stretch; gap: 36px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .phone { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (min-width: 1240px) {
  html, body { overflow: hidden; }
  .site-header .wrap, .site-footer .wrap { max-width: 1440px; padding-inline: max(36px, env(safe-area-inset-left, 0px)) max(36px, env(safe-area-inset-right, 0px)); }
  /* The phone sits on the right. The flexible column is the title, and the
     right padding is exactly the room the labels need beside the phone. */
  .hero-grid { max-width: 1440px; grid-template-columns: minmax(420px, 1fr) auto; gap: 0; align-items: center;
    padding-left: max(36px, env(safe-area-inset-left, 0px));
    padding-right: calc(214px + 28px + max(36px, env(safe-area-inset-right, 0px))); }
  .hero-copy { padding-right: calc(214px + 28px + 20px); }
  .stage { --phone-w: min(250px, calc((100dvh - 220px) / 2.2)); width: var(--phone-w); justify-self: end; display: block; }
  .callouts { display: block; width: auto; margin: 0; }
  .arrows { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .callouts .co { position: absolute; width: 214px; }
  .callouts .co-session { right: calc(100% + 28px); top: 22%; }
  .callouts .co-arnold { left: calc(100% + 28px); top: -2%; }
  .callouts .co-access { left: calc(100% + 28px); top: 32%; }
  .callouts .co-whatsapp { left: calc(100% + 28px); top: 64%; }
}
@media (min-width: 1240px) and (max-height: 780px) {
  html, body { overflow: auto; }
}
@media (max-width: 820px) {
  .hero::before { background: linear-gradient(180deg, rgba(14, 10, 20, .82) 0%, rgba(14, 10, 20, .62) 48%, rgba(14, 10, 20, .5) 100%); }
  .hero-photo img { left: 0; width: 100%; object-position: 62% 60%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 44px; }
  .stage { --phone-w: min(340px, 86vw); }
  .phone { margin-inline: auto; }
  .store { flex: 1 1 0; min-width: 0; width: auto; justify-content: center; padding-inline: 12px; gap: 8px; }
}
@media (max-width: 520px) {
  /* Sized on the viewport so both labels stay on one line down to a 320px screen. */
  .cta-row { gap: 10px; }
  .store { min-height: 48px; padding: 6px 8px; gap: 7px; border-radius: 10px; }
  .store .ico { width: 20px; }
  .store .ico svg { width: 18px; height: auto; }
  .store small { font-size: clamp(.62rem, 2.9vw, .72rem); }
  .store strong { font-size: clamp(.92rem, 4.4vw, 1.05rem); }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

.site-header .wrap { flex-wrap: wrap; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.lang { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .85rem; }
.lang a { text-decoration: none; opacity: .72; }
.lang a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.lang span { opacity: .55; }

