/* The studio landing page (/about). Builds on style.css: its tokens, header, wordmark, buttons and fit swatches.
   Fern owns the opening and the close; the leaf-grey ground and white panels carry the middle.
   Dyes appear only as the apparatus square beside a resource and the swatch bands, as everywhere in the app. */
.lp { --on-fern: #d5e6da; --track-h: 30px; background: var(--bg); padding: 0; }
.lp main { max-width: none; margin: 0; padding: 0; }
.lp a { text-underline-offset: .2em; }

/* Header: the app's own fern bar, with the landing's two links and one outlined action */
.lp .lp-top { gap: var(--s5); }
.lp .lp-top .brand::after { margin-right: 20px; }
.lp-nav { display: flex; gap: var(--s1); }
/* Sign in stays on a phone, where the links and the outlined action fold away: a host's way back in */
.lp-nav a, .lp-signin { color: var(--on-fern); font-weight: 600; text-decoration: none; padding: 9px 14px; border-radius: var(--r-md); white-space: nowrap; }
.lp-nav a:hover, .lp-signin:hover { background: rgb(255 255 255 / .08); color: #fff; }
.lp-lang select { width: 7.6em; height: 38px; min-height: 0; margin: 0; padding: 0 28px 0 12px; border-radius: var(--r-md); border: 1px solid rgb(255 255 255 / .24); background-color: transparent; color: #fff; font-weight: 600; font-size: var(--fs-sm);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-fern) 50%), linear-gradient(135deg, var(--on-fern) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.lp-lang select:hover { border-color: rgb(255 255 255 / .6); }
.lp-lang select option { color: var(--text); background: var(--surface); }
.lp-top :focus-visible, .hero-copy :focus-visible, .lp-close :focus-visible { outline-color: #fff; }

/* Buttons. On fern the one main action turns white with fern text; on the ground it is the app's .primary. */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-md); font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, box-shadow .2s, transform .05s; }
.lp-btn:active { transform: translateY(1px); }
.lp-btn--light { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-2); }
.lp-btn--light:hover { background: var(--brand-50); }
.lp-btn--line { height: 38px; min-height: 0; padding: 0 16px; border-color: rgb(255 255 255 / .24); color: #fff; }
.lp-btn--line:hover { border-color: rgb(255 255 255 / .6); }
.lp-btn--big { min-height: 52px; padding: 0 var(--s6); font-size: var(--fs-lg); }
.lp-link, .lp-link-light { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.lp-link { color: var(--brand-600); }
.lp-link-light { color: #fff; text-decoration-color: rgb(255 255 255 / .5); }
.lp-link-light:hover { text-decoration-color: #fff; }
.lp-link svg, .lp-link-light svg { flex: none; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.lp-link:hover svg { transform: translateX(3px); }
.lp-link-light:hover svg { transform: translateY(3px); }

/* ==========================================================================
   Hero: the fern field, and the studio's day on a white sheet that crosses into the ground
   ========================================================================== */
.hero { --overlap: 120px; padding: var(--s10) max(4vw, 16px) 0; color: #fff;
  background: linear-gradient(var(--brand-800) 0 calc(100% - var(--overlap)), var(--bg) 0); }
.hero-copy, .sheet { max-width: var(--container); margin-inline: auto; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8) var(--s10); align-items: end; padding: var(--s4) 0 var(--s10); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -0.04em; margin: 0; color: #fff; }
.hero-sub { font-size: var(--fs-lg); line-height: 1.5; color: var(--on-fern); max-width: 34em; margin-bottom: var(--s6); }
.hero-sub:has(+ .hero-plan:not([hidden])) { margin-bottom: var(--s3); }
.hero-plan { font-size: var(--fs-md); line-height: 1.5; color: var(--on-fern); max-width: 40em; margin-bottom: var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }

.sheet { margin-block: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); color: var(--text);
  box-shadow: var(--shadow-3); overflow: hidden; }
.sheet-head, .sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); padding: var(--s4) var(--s6); }
.sheet-head { border-bottom: 1px solid var(--line); }
.sheet-title { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }
.sheet-note, .req-note { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: var(--r-sm); padding: 3px 8px; }
.sheet-rows { padding: var(--s3) var(--s6) var(--s3); }
.sheet .row { display: grid; grid-template-columns: minmax(9em, 13em) 5.5em minmax(0, 1fr); align-items: center; gap: var(--s4); padding: var(--s2) 0; }
.sheet .row + .row:not(.axis) { border-top: 1px solid var(--line); }
.sheet .row.axis { padding: 0 0 var(--s1); }
.sheet .row.axis .track { grid-column: 3; background: none; height: 16px; font-size: 0.6875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.row.axis .track span { align-self: end; line-height: 1; transform: translateX(-50%); }
.row.axis .track span:first-child { transform: none; }
.row.axis .track .end { grid-column: 28; justify-self: end; transform: none; }
.r-name { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-weight: 700; }
.r-name b, .req-what span { overflow-wrap: anywhere; }
.r-name i, .req-what i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--dye); }
.no-dye .r-name i { background: none; }  /* a room is not an apparatus: no dye, the same indent */
.r-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-price small { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.track { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); height: var(--track-h); background: var(--surface-2); border-radius: var(--r-sm); }
.track > span { grid-row: 1; min-width: 0; }
.track .c { margin: 3px 1px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 0 6px; font-size: 0.6875rem; font-weight: 600; line-height: calc(var(--track-h) - 8px); color: var(--muted);
  background: var(--surface) repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 6px); }
.track .k { margin: 3px 1px; border-radius: var(--r-sm); background: var(--brand-800); }
.sheet.play .k { animation: book .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--t, 0s) * .7 + .4s); }  /* landing.js starts it; without it the day shows filled */
@keyframes book {
  from { clip-path: inset(0 100% 0 0 round 6px); opacity: .4; }
  to { clip-path: inset(0 0 0 0 round 6px); opacity: 1; }
}
.sheet-foot { border-top: 1px solid var(--line); background: var(--brand-50); font-size: var(--fs-sm); }
.sheet-keys { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); color: var(--muted); font-weight: 600; }
.key::before { content: ""; display: inline-block; width: 16px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.key--class::before { border: 1px solid var(--line-strong); background: var(--surface) repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 4px); }
.key--booked::before { background: var(--brand-800); }
.key--open::before { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sheet-total { font-weight: 600; }
.sheet-total b { font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; margin-left: var(--s1); }

@media (max-width: 999px) {
  /* Below 1000px the header's outlined action folds away in every language (FR, DE, RU pushed it off a tablet);
     the same action is the hero's first button, just below. */
  .lp-top-cta { display: none; }
  .hero-copy { grid-template-columns: 1fr; gap: var(--s5); padding-bottom: var(--s8); }
}
@media (max-width: 760px) {
  .lp .lp-top { gap: var(--s3); }
  .lp-nav { display: none; }
  .lp-lang select { width: auto; }  /* short codes (landing.js) */
  .lp-signin { padding-inline: 10px; }
  .hero { --overlap: 72px; padding-top: var(--s6); }
  .hero h1 { font-size: clamp(2.125rem, 9.6vw, 2.75rem); }
  .hero-sub { font-size: var(--fs-md); }
  .lp-btn--big { width: 100%; }
  .sheet { --track-h: 18px; border-radius: var(--r-lg); }
  .sheet-head, .sheet-foot { padding: var(--s3) var(--s4); }
  .sheet-rows { padding: var(--s2) var(--s4); }
  .sheet .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s3); }
  .sheet .row .track, .sheet .row.axis .track { grid-column: 1 / -1; }
  .track .c { font-size: 0; padding: 0; }
  .track .k, .track .c { margin: 2px 1px; }
  .sheet-total b { font-size: var(--fs-md); }
  .sheet-keys { display: grid; gap: var(--s1); }
}

/* ==========================================================================
   A booking arrives
   ========================================================================== */
.arrive { max-width: var(--container); margin: 0 auto; padding: 112px max(4vw, 16px) 104px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.arrive h2, .rules h2, .claim h2, .train h2, .lp-close h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; margin-bottom: var(--s8); }
.steps { margin: 0; display: grid; gap: var(--s5); }
.steps div { padding-top: var(--s4); border-top: 1px solid var(--line-strong); }
.steps dt { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--s1); }
.steps dd { margin: 0; color: var(--muted); max-width: 36em; }

.req { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s6); box-shadow: var(--shadow-3); max-width: 460px; justify-self: center; width: 100%; }
.req-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.req-badge { background: var(--warn-bg); color: var(--warn); font-size: var(--fs-xs); font-weight: 700; border-radius: var(--r-sm); padding: 3px 8px; }
.req-what { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-2xl); line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; margin-bottom: var(--s1); }
.req-what i { width: 12px; height: 12px; }
.req-when { color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: var(--s5); }
.req-who { display: flex; gap: var(--s3); align-items: center; padding: var(--s4) 0; border-block: 1px solid var(--line); margin-bottom: var(--s4); }
.req-who div { display: grid; }
.req-who span:not(.req-avatar) { color: var(--muted); font-size: var(--fs-sm); }
.req-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-800); font-size: var(--fs-sm); font-weight: 800; }
.req-checks { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: 6px; }
.req-checks li { display: flex; gap: var(--s2); align-items: center; }
.req-checks svg { color: var(--ok); flex: none; }
.req-msg { background: var(--surface-2); border-radius: var(--r-md); padding: var(--s3) var(--s4); margin-bottom: var(--s5); }
.req-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.req-price { font-size: var(--fs-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.req-price small { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.req-btns { display: flex; gap: var(--s2); }
.req-btns span { display: inline-flex; align-items: center; min-height: 40px; border-radius: var(--r-md); padding: 0 var(--s4); font-weight: 700; font-size: var(--fs-sm); }
.req-decline { border: 1px solid var(--line-strong); color: var(--brand-800); }
.req-accept { background: var(--brand-800); color: #fff; }

@media (max-width: 899px) {
  .arrive { grid-template-columns: 1fr; gap: 48px; padding-top: 80px; padding-bottom: 72px; }
}

/* ==========================================================================
   Your rules: a reference list on a white band, read in two columns
   ========================================================================== */
.rules { background: var(--surface); border-block: 1px solid var(--line); padding: 96px max(4vw, 16px); }
.rules > * { max-width: var(--container); margin-inline: auto; }
.rules-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; margin-top: 0; margin-bottom: 0; }
.rules-list div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.rules-list dt { font-weight: 700; }
.rules-list dd { margin: 0; color: var(--muted); }
@media (max-width: 899px) {
  .rules { padding-block: 72px; }
  .rules-list { grid-template-columns: 1fr; }
  .rules-list div { grid-template-columns: 1fr; gap: var(--s1); }
}

/* ==========================================================================
   For aerialists: the app's search, beside a pole's fit as the listing shows it
   ========================================================================== */
.train { max-width: var(--container); margin: 0 auto; padding: 104px max(4vw, 16px) 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s10) 72px; align-items: end; scroll-margin-top: var(--header-h); }
.train h2 { margin-bottom: var(--s4); }
.train-sub { font-size: var(--fs-lg); color: var(--muted); max-width: 36em; margin-bottom: var(--s6); }
.train-form { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); max-width: 600px; }
.train-form label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s2); }
.train-row { display: flex; gap: var(--s2); }
.train-row input { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); padding: 0 var(--s3); font-size: var(--fs-md); }
.train-row input::placeholder { color: var(--subtle); }
.train-row input:focus { outline: none; box-shadow: 0 0 0 1px var(--brand-600), 0 0 0 4px rgb(46 106 78 / .2); }
.train-fine { margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.train-fit { margin: 0 0 30px; padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); container-type: inline-size; }
/* As a listing's fit row (style.css .fit-name): the resource and its rate over its swatches. */
.train-fit .fit-name strong { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.train-fit .fit-price { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.train-fit .fit-price .muted { font-size: var(--fs-md); font-weight: 400; }
.train-fit .swatches { margin-top: var(--s3); gap: var(--s2); }
.train-fit-foot { margin: var(--s3) 0 0; }
.train-fit .sw::before { height: 10px; }
.train-fit .sw b { padding: 10px 10px 2px; font-size: var(--fs-md); overflow-wrap: normal; hyphens: manual; }
.train-fit .sw small { padding: 2px 10px 10px; }
@container (max-width: 380px) { .train-fit .swatches { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .train { grid-template-columns: 1fr; padding-top: 80px; gap: var(--s6); }
  .train-fit { max-width: 600px; margin-bottom: 0; }
}

/* ==========================================================================
   Claim, close
   ========================================================================== */
.claim { max-width: var(--container); margin: 0 auto; padding: 96px max(4vw, 16px) 104px; }
.claim > * { max-width: 760px; }
.claim h2 { margin-bottom: var(--s4); }
.claim p { font-size: var(--fs-lg); color: var(--muted); max-width: 38em; margin-bottom: var(--s4); }

.lp-close { background: var(--brand-800); color: var(--on-fern); padding: 96px max(4vw, 16px) var(--s8); }
.close-inner { max-width: var(--container); margin: 0 auto 88px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s6) var(--s10); }
.lp-close h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; margin: 0; max-width: 11em; color: #fff; }
.close-foot { max-width: var(--container); margin: 0 auto; padding-top: var(--s5); border-top: 1px solid rgb(255 255 255 / .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s8); font-size: var(--fs-sm); }
.close-foot p { margin: 0; max-width: 46em; }
.close-foot .made-by { margin-top: var(--s2); opacity: .85; }
.close-foot nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.close-foot a { color: #fff; }
@media (max-width: 760px) {
  .lp-close { padding-top: 72px; }
  .close-inner { margin-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet.play .k { animation: none; }
  .lp-btn, .lp-link svg, .lp-link-light svg { transition: none; }
}

/* Small phones (iPhone SE): as the app's header does, the brand shrinks and the gaps close; a long "Sign in"
   ("Iniciar sessão") may take two lines rather than push the page sideways. */
@media (max-width: 380px) {
  .lp .lp-top { gap: var(--s2); }
  .lp .lp-top .brand { font-size: 1.1875rem; }
  .lp .lp-top .brand::after { margin-right: 30px; }  /* room for the dye stripes drawn to its right */
  .lp-lang select { padding: 0 22px 0 8px; background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; }
  .lp-signin { min-width: 0; white-space: normal; text-align: center; line-height: 1.15; padding-block: 4px; }

  /* The hero's longest words ("Воздушникам", French "réservation") must break, not widen the page. */
  .hero h1 { font-size: 1.875rem; hyphens: auto; overflow-wrap: break-word; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .lp-btn--big { white-space: normal; text-align: center; }  /* "Inscrire votre studio, gratuitement" */
}
