/*
 * Split Letter: components
 * Built only from tokens.css. Load tokens.css first, then this file.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.sl {
  margin: 0;
  background: var(--sl-paper);
  color: var(--sl-text);
  font-family: var(--sl-body);
  font-size: var(--sl-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.sl img, .sl svg { display: block; max-width: 100%; }
.sl :where(a) { color: inherit; }
.sl :focus-visible { outline: 3px solid var(--sl-coral); outline-offset: 3px; }

.sl-wrap { width: 100%; max-width: var(--sl-container); margin: 0 auto; padding: 0 var(--sl-gutter); }
.sl-measure { max-width: var(--sl-measure); }

/* ---------- Type ---------- */
.sl-kicker {
  display: inline-block;
  margin: 0 0 var(--sl-space-3);
  font-family: var(--sl-body);
  font-size: var(--sl-text-kicker);
  font-weight: 700;
  letter-spacing: var(--sl-tracking-kicker);
  text-transform: uppercase;
  color: var(--sl-coral);
}
.sl-kicker--light { color: var(--sl-on-dark); }
.sl-h1, .sl-h2, .sl-h3 {
  margin: 0;
  font-family: var(--sl-display);
  font-weight: var(--sl-weight-head);
  letter-spacing: var(--sl-tracking-head);
  line-height: 1.08;
}
.sl-h1 { font-size: var(--sl-text-hero); }
.sl-h2 { font-size: var(--sl-text-h2); }
.sl-h3 { font-size: var(--sl-text-h3); line-height: 1.2; letter-spacing: -.01em; }
.sl-lead { margin: var(--sl-space-4) 0 0; font-size: var(--sl-text-lead); line-height: 1.55; color: var(--sl-soft); max-width: 620px; }
.sl-small { font-size: var(--sl-text-small); color: var(--sl-soft); }

.sl-link {
  display: inline-flex; align-items: center; gap: var(--sl-space-2);
  font-family: var(--sl-display); font-weight: 700; font-size: 18px;
  color: var(--sl-coral); text-decoration: none; white-space: nowrap;
}
.sl-link::after { content: "\2192"; transition: transform var(--sl-fast) var(--sl-ease); }
.sl-link:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.sl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sl-space-2);
  min-height: 48px; padding: 0 var(--sl-space-5);
  border: var(--sl-border); border-radius: var(--sl-radius);
  font-family: var(--sl-display); font-size: 17px; font-weight: 700;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--sl-fast) var(--sl-ease), color var(--sl-fast) var(--sl-ease), border-color var(--sl-fast) var(--sl-ease);
}
.sl-btn--primary { background: var(--sl-coral); color: var(--sl-on-dark); }
.sl-btn--primary:hover { background: var(--sl-coral-dark); border-color: var(--sl-coral-dark); }
.sl-btn--outline { background: var(--sl-paper); color: var(--sl-coral); }
.sl-btn--outline:hover { background: var(--sl-coral-soft); }
.sl-btn--white { background: var(--sl-paper); color: var(--sl-coral); border-color: var(--sl-paper); }
.sl-btn--white:hover { background: var(--sl-coral-soft); border-color: var(--sl-coral-soft); }
.sl-btn--ghost-light { background: transparent; color: var(--sl-on-dark); border-color: var(--sl-on-dark); }
.sl-btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.sl-btn--block { width: 100%; }
.sl-btns { display: flex; flex-wrap: wrap; gap: var(--sl-space-3); margin-top: var(--sl-space-6); }

/* ---------- Top bar ---------- */
.sl-bar { position: relative; z-index: 5; background: var(--sl-paper); }
.sl-bar__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--sl-bar); padding: 0 var(--sl-gutter);
}
.sl-bar a, .sl-bar button {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sl-display); font-size: var(--sl-text-nav); font-weight: 700;
  color: var(--sl-coral); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
}
.sl-bar a:hover, .sl-bar button:hover { color: var(--sl-coral-dark); }
.sl-bar__menu svg { width: 22px; height: 22px; }
.sl-bar__logo {
  font-family: var(--sl-display); font-weight: var(--sl-weight-giant) !important;
  font-size: 22px !important; letter-spacing: -.03em; color: var(--sl-ink) !important; gap: 0 !important;
}
.sl-bar__logo span { color: var(--sl-coral); }
.sl-bar__actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--sl-space-6); }
.sl-bar__icon {
  display: inline-grid; place-items: center; width: 26px; height: 20px;
  background: var(--sl-coral); color: var(--sl-on-dark); border-radius: 4px;
}
.sl-bar__icon svg { width: 14px; height: 14px; }
.sl-bar__search svg { width: 22px; height: 22px; }

/* ---------- Split letters (the signature) ---------- */
.sl-split { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.sl-split__pair {
  position: absolute; margin: 0;
  font-family: var(--sl-display); font-size: var(--sl-text-giant); font-weight: var(--sl-weight-giant);
  letter-spacing: var(--sl-tracking-giant); line-height: .78; color: var(--sl-paper); white-space: nowrap;
}
.sl-split__pair--top { top: 0; left: 38%; transform: translateY(-34%); }
.sl-split__pair--left { top: 33%; left: 0; transform: translate(-14%, -50%); }
.sl-split__pair--bottom { bottom: 0; right: 4%; transform: translateY(30%); }
.sl-split--tint .sl-split__pair { color: var(--sl-plaster-2); }
.sl-split--ghost .sl-split__pair { color: rgba(255, 255, 255, .2); }

/* ---------- Hero ---------- */
.sl-hero {
  position: relative; overflow: hidden;
  height: calc(100vh - var(--sl-bar)); min-height: 560px; max-height: 880px;
  background: var(--sl-wall); color: var(--sl-on-dark);
}
.sl-hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.sl-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: var(--sl-scrim); z-index: 1;
}
.sl-hero__caption {
  position: absolute; z-index: 3; left: var(--sl-gutter); right: var(--sl-gutter); bottom: clamp(32px, 7vh, 72px);
  max-width: 600px;
}
.sl-hero__caption .sl-lead { color: var(--sl-on-dark-soft); }

/* Inner page band: a shorter hero with split letters on coral or plaster */
.sl-band {
  position: relative; overflow: hidden;
  min-height: 360px; display: flex; align-items: flex-end;
  background: var(--sl-coral); color: var(--sl-on-dark);
}
.sl-band--plaster { background: var(--sl-plaster); color: var(--sl-text); }
.sl-band .sl-split__pair { font-size: clamp(110px, 17vw, 250px); }
.sl-band__body { position: relative; z-index: 3; width: 100%; padding: var(--sl-space-8) var(--sl-gutter) var(--sl-space-7); max-width: var(--sl-container); margin: 0 auto; }
.sl-band .sl-lead { color: var(--sl-on-dark-soft); }
.sl-band--plaster .sl-lead { color: var(--sl-soft); }

/* ---------- Sections ---------- */
.sl-section { padding: var(--sl-space-9) 0; }
.sl-section--tight { padding: var(--sl-space-8) 0; }
.sl-section--plaster { background: var(--sl-plaster); }
.sl-section--ink { background: var(--sl-ink); color: var(--sl-on-dark); }
.sl-section--ink .sl-lead { color: var(--sl-on-dark-soft); }
.sl-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sl-space-5); flex-wrap: wrap; margin-bottom: var(--sl-space-7); }

.sl-grid { display: grid; gap: var(--sl-space-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.sl-card { display: block; text-decoration: none; color: inherit; }
.sl-card__scene { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sl-wall); }
.sl-card__scene svg { width: 100%; height: 100%; }
.sl-card__body { padding-top: var(--sl-space-4); }
.sl-card__title { margin: 0; font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: var(--sl-text-h3); line-height: 1.2; letter-spacing: -.01em; transition: color var(--sl-fast) var(--sl-ease); }
.sl-card:hover .sl-card__title { color: var(--sl-coral); }
.sl-card__meta { margin: var(--sl-space-2) 0 0; font-size: var(--sl-text-small); color: var(--sl-soft); }

/* Feature: a number or icon over a short text, on plaster or paper */
.sl-feature__mark {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--sl-space-4);
  background: var(--sl-coral); color: var(--sl-on-dark); border-radius: var(--sl-radius);
  font-family: var(--sl-display); font-weight: var(--sl-weight-giant); font-size: 22px;
}
.sl-feature p { margin: var(--sl-space-2) 0 0; color: var(--sl-soft); }

/* ---------- Listing rows (timetable, what's on) ---------- */
.sl-listing { list-style: none; margin: 0; padding: 0; border-top: var(--sl-hair); }
.sl-listing__row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: var(--sl-space-5); align-items: center;
  padding: var(--sl-space-5) 0; border-bottom: var(--sl-hair); text-decoration: none; color: inherit;
}
.sl-listing__when { font-family: var(--sl-display); font-weight: 700; color: var(--sl-coral); }
.sl-listing__what { font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: 22px; line-height: 1.25; }
.sl-listing__what small { display: block; font-family: var(--sl-body); font-weight: 400; font-size: var(--sl-text-small); color: var(--sl-soft); }
.sl-listing__go { color: var(--sl-coral); font-size: 22px; transition: transform var(--sl-fast) var(--sl-ease); }
.sl-listing__row:hover .sl-listing__go { transform: translateX(4px); }

/* ---------- Tags ---------- */
.sl-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--sl-radius); background: var(--sl-coral-soft); color: var(--sl-coral-dark);
  font-size: var(--sl-text-kicker); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.sl-tag--plain { background: var(--sl-plaster); color: var(--sl-soft); }
.sl-tag--solid { background: var(--sl-coral); color: var(--sl-on-dark); }
.sl-tag--light { background: var(--sl-paper); color: var(--sl-coral); }

/* ---------- Quote band ---------- */
.sl-quote { margin: 0; font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.18; letter-spacing: -.02em; max-width: 960px; }
.sl-quote cite { display: block; margin-top: var(--sl-space-5); font-family: var(--sl-body); font-style: normal; font-size: var(--sl-text-small); font-weight: 500; color: var(--sl-on-dark-soft); }

/* ---------- Pricing ---------- */
.sl-plans { display: grid; gap: var(--sl-space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.sl-plan { display: flex; flex-direction: column; padding: var(--sl-space-6); background: var(--sl-paper); border-top: 6px solid var(--sl-plaster-2); }
.sl-plan--featured { background: var(--sl-coral); color: var(--sl-on-dark); border-top-color: var(--sl-coral-dark); }
.sl-plan__name { margin: 0; font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: var(--sl-text-h3); }
.sl-plan__for { margin: var(--sl-space-1) 0 0; font-size: var(--sl-text-small); color: var(--sl-soft); }
.sl-plan--featured .sl-plan__for { color: var(--sl-on-dark-soft); }
.sl-plan__price { margin: var(--sl-space-5) 0 0; font-family: var(--sl-display); font-weight: var(--sl-weight-giant); font-size: 56px; line-height: 1; letter-spacing: -.04em; }
.sl-plan__price small { font-family: var(--sl-body); font-size: var(--sl-text-small); font-weight: 500; letter-spacing: 0; color: var(--sl-soft); }
.sl-plan--featured .sl-plan__price small { color: var(--sl-on-dark-soft); }
.sl-plan__list { list-style: none; margin: var(--sl-space-5) 0 var(--sl-space-6); padding: 0; flex: 1; }
.sl-plan__list li { position: relative; padding: var(--sl-space-2) 0 var(--sl-space-2) 26px; border-top: var(--sl-hair); font-size: var(--sl-text-small); }
.sl-plan--featured .sl-plan__list li { border-top-color: rgba(255, 255, 255, .28); }
.sl-plan__list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 6px; border-left: 2px solid var(--sl-coral); border-bottom: 2px solid var(--sl-coral); transform: rotate(-45deg); }
.sl-plan--featured .sl-plan__list li::before { border-color: var(--sl-on-dark); }

.sl-table-wrap { overflow-x: auto; }
.sl-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--sl-text-small); }
.sl-table th, .sl-table td { padding: var(--sl-space-4) var(--sl-space-3); text-align: left; border-bottom: var(--sl-hair); }
.sl-table thead th { font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: 17px; border-bottom: 2px solid var(--sl-ink); }
.sl-table td.sl-yes { color: var(--sl-coral); font-weight: 700; }

/* ---------- FAQ ---------- */
.sl-faq { border-top: var(--sl-hair); }
.sl-faq details { border-bottom: var(--sl-hair); }
.sl-faq summary {
  display: flex; justify-content: space-between; gap: var(--sl-space-4); align-items: center;
  padding: var(--sl-space-5) 0; cursor: pointer; list-style: none;
  font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: 20px;
}
.sl-faq summary::-webkit-details-marker { display: none; }
.sl-faq summary::after { content: "+"; color: var(--sl-coral); font-size: 28px; font-weight: 500; line-height: 1; }
.sl-faq details[open] summary::after { content: "\2212"; }
.sl-faq p { margin: 0 0 var(--sl-space-5); color: var(--sl-soft); max-width: var(--sl-measure); }

/* ---------- Article ---------- */
.sl-article { max-width: var(--sl-measure); margin: 0 auto; }
.sl-article__meta { display: flex; flex-wrap: wrap; gap: var(--sl-space-3); align-items: center; margin-top: var(--sl-space-5); font-size: var(--sl-text-small); color: var(--sl-on-dark-soft); }
.sl-prose { font-size: 19px; line-height: 1.7; }
.sl-prose > * + * { margin-top: var(--sl-space-5); }
.sl-prose > * { margin-bottom: 0; }
.sl-prose > :first-child { margin-top: 0; }
.sl-prose p:first-child { font-size: 22px; line-height: 1.55; }
.sl-prose h2 { margin: var(--sl-space-7) 0 0; font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: 32px; line-height: 1.15; letter-spacing: -.02em; }
.sl-prose a { color: var(--sl-coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sl-prose ul { padding-left: 1.2em; }
.sl-prose li::marker { color: var(--sl-coral); }
.sl-prose blockquote {
  margin: var(--sl-space-7) 0; padding: 0;
  font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: 30px; line-height: 1.2; letter-spacing: -.02em; color: var(--sl-coral);
}
.sl-figure { margin: var(--sl-space-7) 0; }
.sl-figure__scene { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sl-wall); }
.sl-figure__scene svg { width: 100%; height: 100%; }
.sl-figure figcaption { margin-top: var(--sl-space-3); font-size: var(--sl-text-small); color: var(--sl-soft); }
.sl-author { display: flex; gap: var(--sl-space-4); align-items: center; margin-top: var(--sl-space-8); padding-top: var(--sl-space-5); border-top: var(--sl-hair); }
.sl-author__mark { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--sl-coral); color: var(--sl-on-dark); font-family: var(--sl-display); font-weight: var(--sl-weight-giant); font-size: 20px; }

/* ---------- Forms ---------- */
.sl-form { display: grid; gap: var(--sl-space-5); }
.sl-form__row { display: grid; gap: var(--sl-space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-field { display: grid; gap: var(--sl-space-2); }
.sl-label { font-family: var(--sl-display); font-weight: 700; font-size: 16px; }
.sl-hint { font-size: 14px; color: var(--sl-soft); }
.sl-input, .sl-select {
  width: 100%; min-height: 52px; padding: 0 var(--sl-space-4);
  border: 2px solid var(--sl-plaster-2); border-radius: var(--sl-radius); background: var(--sl-paper);
  font: inherit; color: var(--sl-text);
  transition: border-color var(--sl-fast) var(--sl-ease);
}
.sl-input:focus, .sl-select:focus { outline: none; border-color: var(--sl-coral); }
.sl-field--error .sl-input { border-color: var(--sl-coral); background: var(--sl-coral-soft); }
.sl-field--error .sl-hint { color: var(--sl-coral-dark); font-weight: 500; }
.sl-check { display: flex; gap: var(--sl-space-3); align-items: flex-start; font-size: var(--sl-text-small); color: var(--sl-soft); }
.sl-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sl-coral); flex: none; }
.sl-choice { display: grid; gap: var(--sl-space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sl-choice label {
  display: grid; gap: 2px; padding: var(--sl-space-4); cursor: pointer;
  border: 2px solid var(--sl-plaster-2); border-radius: var(--sl-radius);
  font-family: var(--sl-display); font-weight: var(--sl-weight-head);
}
.sl-choice label small { font-family: var(--sl-body); font-weight: 400; font-size: 14px; color: var(--sl-soft); }
.sl-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sl-choice input:checked + label { border-color: var(--sl-coral); background: var(--sl-coral-soft); }

.sl-auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - var(--sl-bar)); }
.sl-auth__art { position: relative; overflow: hidden; background: var(--sl-wall); color: var(--sl-on-dark); display: flex; align-items: flex-end; }
.sl-auth__art .sl-split__pair { font-size: clamp(110px, 14vw, 220px); }
.sl-auth__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: var(--sl-scrim); z-index: 1; }
.sl-auth__art .sl-lead { color: var(--sl-on-dark-soft); }
.sl-auth__art-body { position: relative; z-index: 3; padding: var(--sl-space-7) var(--sl-gutter); }
.sl-auth__panel { padding: var(--sl-space-8) var(--sl-gutter); display: flex; justify-content: center; }
.sl-auth__panel > div { width: 100%; max-width: 560px; }

/* ---------- Footer ---------- */
.sl-footer { position: relative; overflow: hidden; background: var(--sl-coral); color: var(--sl-on-dark); padding: var(--sl-space-8) 0 clamp(150px, 20vw, 280px); }
.sl-footer__cols { display: grid; gap: var(--sl-space-6); grid-template-columns: 2fr 1fr 1fr 1fr; position: relative; z-index: 3; }
.sl-footer h4 { margin: 0 0 var(--sl-space-3); font-family: var(--sl-display); font-weight: var(--sl-weight-head); font-size: 18px; }
.sl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sl-space-2); }
.sl-footer a { text-decoration: none; color: var(--sl-on-dark-soft); }
.sl-footer a:hover { color: var(--sl-on-dark); text-decoration: underline; }
.sl-footer p { margin: 0; color: var(--sl-on-dark-soft); max-width: 360px; }
.sl-footer .sl-split__pair { font-size: clamp(120px, 19vw, 290px); color: rgba(255, 255, 255, .22); }
.sl-footer .sl-split__pair--bottom { right: auto; left: var(--sl-gutter); transform: translateY(22%); }
.sl-footer .sl-footer__fine { max-width: none; margin-top: var(--sl-space-7); }
.sl-footer__fine { position: relative; z-index: 3; margin-top: var(--sl-space-7); padding-top: var(--sl-space-4); border-top: 1px solid rgba(255, 255, 255, .3); font-size: 14px; }

/* ---------- Scene fills (inline SVG scenes use these, never raw colors) ---------- */
.sl-f-sky { fill: var(--sl-sky); }
.sl-f-wall { fill: var(--sl-wall); }
.sl-f-wall2 { fill: var(--sl-wall-2); }
.sl-f-terra { fill: var(--sl-terracotta); }
.sl-f-pool { fill: var(--sl-pool); }
.sl-f-pool2 { fill: var(--sl-pool-2); }
.sl-f-deep { fill: var(--sl-pool-deep); }
.sl-f-tile { fill: var(--sl-tile); }
.sl-f-leaf { fill: var(--sl-leaf); }
.sl-f-sun { fill: var(--sl-sun); }
.sl-f-ink { fill: var(--sl-ink); }
.sl-f-paper { fill: var(--sl-paper); }
.sl-s-paper { fill: none; stroke: var(--sl-paper); }
.sl-s-tile { fill: none; stroke: var(--sl-tile); }
.sl-s-deep { fill: none; stroke: var(--sl-pool-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sl-grid, .sl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-plans { grid-template-columns: 1fr; max-width: 520px; }
  .sl-footer__cols { grid-template-columns: 1fr 1fr; }
  .sl-auth { grid-template-columns: 1fr; }
  .sl-auth__art { min-height: 380px; }
  .sl-auth__art .sl-split__pair--left { display: none; }
}
@media (max-width: 640px) {
  :root { --sl-bar: 68px; }
  .sl-bar__inner { grid-template-columns: auto 1fr auto; gap: var(--sl-space-4); }
  .sl-bar__logo { justify-self: center; }
  .sl-bar__label, .sl-bar__hide-sm { display: none !important; }
  .sl-bar__actions { gap: var(--sl-space-4); }
  .sl-grid, .sl-grid--2, .sl-grid--4, .sl-form__row, .sl-choice { grid-template-columns: 1fr; }
  .sl-section { padding: var(--sl-space-8) 0; }
  .sl-listing__row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sl-space-2) var(--sl-space-4); }
  .sl-listing__when { grid-column: 1 / -1; }
  .sl-split__pair--top { left: 30%; }
  .sl-split__pair--left { top: 34%; }
  .sl-footer__cols { grid-template-columns: 1fr; }
  .sl-prose { font-size: 18px; }
}
