/* ==========================================================================
   SaddleTalk website — design tokens + components
   Source: SaddleTalk design system (sage #8B9A6B, system type, flat surfaces)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --st-primary: #8B9A6B;
  --st-primary-hover: #7C8B5E;
  --st-primary-container: #C9D2B0;
  --st-on-primary-container: #3B4524;
  --st-primary-deep: #4A5D23;
  --st-avatar-navy: #1E2B4D;

  --st-background: #FFFFFF;
  --st-surface: #F0F0EE;
  --st-surface-low: #F7F7F5;
  --st-surface-high: #E8E8E5;
  --st-on-background: #000000;
  --st-on-surface-variant: #757575;
  --st-inverse-surface: #1E1E1E;
  --st-on-inverse-surface: #FFFFFF;

  --st-error: #FF5449;
  --st-hairline: rgba(117, 117, 117, .15);
  --st-divider: rgba(117, 117, 117, .10);
  --st-link-hover: #6F7C54;

  --st-demo-bg: #121212;
  --st-demo-card: #1E1E1E;

  --st-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

html.dark {
  --st-background: #121212;
  --st-surface: #1E1E1E;
  --st-surface-low: #181818;
  --st-surface-high: #262626;
  --st-on-background: #FFFFFF;
  --st-on-surface-variant: #B0B0B0;
  --st-inverse-surface: #F0F0EE;
  --st-on-inverse-surface: #121212;
  --st-hairline: rgba(176, 176, 176, .15);
  --st-divider: rgba(176, 176, 176, .10);
  --st-link-hover: #C9D2B0;
  --st-demo-bg: #1E1E1E;
  --st-demo-card: #262626;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--st-font-sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--st-background); color: var(--st-on-background); min-width: 0; overflow-x: clip; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--st-primary); text-decoration: none; }
a:hover { color: var(--st-link-hover); text-decoration: underline; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--st-primary); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.st-icon {
  font-family: "Material Icons Outlined";
  font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: "liga"; flex: none;
}
.st-icon.round { font-family: "Material Icons Round"; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1160px; width: 100%; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--st-surface-low); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--st-primary); }
.eyebrow--light { color: #C9D2B0; }
.eyebrow--muted { color: #B0B0B0; }
.section-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.5px; text-wrap: balance; }
.lede { font-size: 17px; line-height: 1.55; color: var(--st-on-surface-variant); text-wrap: pretty; }
.mb-12 { margin-bottom: 12px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.max-640 { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px;
  border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--st-primary); color: #fff; }
.btn--primary:hover { background: var(--st-primary-hover); color: #fff; }
.btn--outline { background: transparent; border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--sm { height: 48px; padding: 0 20px; font-size: 15px; }

/* ---------- Navigation ---------- */
.nav {
  position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  max-width: 1160px; width: 100%; margin: 0 auto; padding: 20px 24px;
}
.nav__brand { order: 1; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.nav__brand:hover { color: #fff; text-decoration: none; }
.nav__brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { order: 2; margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav__links a { color: #fff; font-size: 14px; padding: 8px 12px; border-radius: 12px; }
.nav__links a:hover { color: #fff; text-decoration: none; background: rgba(240, 240, 238, .15); }
.nav__controls { order: 3; display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; background: rgba(240, 240, 238, .15); border-radius: 20px; padding: 3px; gap: 2px; }
.lang-switch button {
  border: 0; cursor: pointer; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 1.2px;
  padding: 6px 10px; border-radius: 20px; background: transparent; color: #fff;
}
.lang-switch button.is-active { background: #F0F0EE; color: #121212; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(240, 240, 238, .15); color: #fff; display: flex; align-items: center; justify-content: center;
}
.theme-toggle .st-icon { font-size: 18px; }
@media (max-width: 700px) {
  .nav__links { order: 4; flex-basis: 100%; margin-left: 0; margin-right: -12px; justify-content: flex-end; }
  .nav__controls { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; color: #fff; background: #121212; }
.hero picture { display: contents; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 70%; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .75) 100%); }
.hero__body { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-end; max-width: 1160px; width: 100%; margin: 0 auto; padding: 64px 24px 96px; }
.hero__content { max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -1.5px; text-wrap: balance; }
.hero__sub { font-size: 18px; line-height: 1.55; max-width: 560px; color: rgba(255, 255, 255, .85); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__note { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.how__head { display: flex; flex-direction: column; gap: 12px; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--st-hairline); }
.step__n { flex: none; width: 40px; font-size: 28px; font-weight: 700; color: var(--st-primary); letter-spacing: -.5px; line-height: 1; }
.step__body { display: flex; flex-direction: column; gap: 6px; }
.step__t { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.step__d { font-size: 15px; line-height: 1.55; color: var(--st-on-surface-variant); text-wrap: pretty; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; border-top: 1px solid var(--st-hairline); }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--st-hairline); }
.feature > .st-icon { font-size: 26px; color: var(--st-primary); margin-top: 2px; }
.feature__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature__t { font-size: 18px; font-weight: 600; }
.feature__d { font-size: 15px; line-height: 1.55; color: var(--st-on-surface-variant); text-wrap: pretty; }

/* ---------- Lesson vs Ride ---------- */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mode { position: relative; overflow: hidden; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.mode--lesson { background: var(--st-surface); }
.mode--lesson::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(139, 154, 107, .4); }
.mode--ride { background: var(--st-inverse-surface); color: var(--st-on-inverse-surface); }
.mode__label { display: flex; align-items: center; gap: 8px; }
.mode--ride .mode__label { color: #C9D2B0; }
html.dark .mode--ride .mode__label { color: var(--st-on-primary-container); }
.mode__label .st-icon { font-size: 18px; }
.mode__t { font-size: 26px; font-weight: 600; letter-spacing: -.3px; }
.mode__d { font-size: 16px; line-height: 1.55; color: var(--st-on-surface-variant); text-wrap: pretty; }
.mode--ride .mode__d { color: inherit; opacity: .72; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--st-background); border: 1px solid var(--st-hairline); }
.mode--ride .chip { background: rgba(176, 176, 176, .12); border-color: rgba(176, 176, 176, .25); }

/* ---------- Summary demo ---------- */
.demo { background: var(--st-demo-bg); color: #fff; }
.demo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.demo__head { display: flex; flex-direction: column; gap: 16px; }
.demo__head .lede { color: #B0B0B0; max-width: 460px; }
.demo__cards { display: flex; flex-direction: column; gap: 12px; max-width: 520px; width: 100%; justify-self: end; }
.demo-card { background: var(--st-demo-card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.demo-card__label { display: flex; align-items: center; gap: 8px; }
.demo-card__label .st-icon { font-size: 16px; }
.demo-card__text { font-size: 14px; line-height: 1.6; color: #E8E8E5; text-wrap: pretty; }
.demo-card__list { display: flex; flex-direction: column; }
.demo-card__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(176, 176, 176, .1); font-size: 14px; line-height: 1.5; color: #E8E8E5; }
.demo-card__item .st-icon { font-size: 18px; color: var(--st-primary); }

/* ---------- App screens ---------- */
.screens { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.screens__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.screens__head .section-title { max-width: 640px; }
.screens__head .lede { max-width: 520px; }
.screens__row { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; width: 100%; }
.screens__watch { width: 200px; max-width: 100%; height: auto; display: block; }
.solve--screens .solve__visual { align-items: center; }

.phone { width: 280px; max-width: 100%; background: #121212; color: #fff; border-radius: 40px; padding: 14px; border: 1px solid rgba(176, 176, 176, .2); }
.phone__screen { border-radius: 28px; overflow: hidden; background: #121212; padding: 44px 16px 24px; display: flex; flex-direction: column; gap: 20px; min-height: 560px; }
.phone__screen--session { gap: 24px; }
.phone__greeting { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.phone__ready { font-size: 13px; color: #B0B0B0; margin-top: 4px; }
.phone__group { display: flex; flex-direction: column; gap: 12px; }
.phone__label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #B0B0B0; }
.tile { border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.tile--primary { background: var(--st-primary); }
.tile--surface { background: #1E1E1E; border: 1px solid rgba(176, 176, 176, .15); }
.tile__icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; flex: none; }
.tile--surface .tile__icon { background: rgba(255, 255, 255, .1); }
.tile__icon .st-icon { font-size: 22px; }
.tile__body { min-width: 0; }
.tile__t { font-size: 14px; font-weight: 600; }
.tile__d { font-size: 11px; color: rgba(255, 255, 255, .8); }
.tile--surface .tile__d { color: #B0B0B0; }
.session-card { position: relative; overflow: hidden; background: #1E1E1E; border: 1px solid rgba(176, 176, 176, .15); border-radius: 16px; padding: 12px 16px; }
.session-card--lesson::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(139, 154, 107, .4); }
.session-card--ride { border: 0; display: flex; justify-content: space-between; align-items: center; }
.session-card__t { font-size: 13px; font-weight: 600; }
.session-card__d { font-size: 11px; color: #B0B0B0; margin-top: 2px; }
.avatars { display: flex; }
.avatars span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #1E1E1E; }
.avatars span + span { margin-left: -8px; }
.phone__topbar { display: flex; justify-content: space-between; align-items: center; }
.phone__title { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.live { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--st-primary); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st-primary); }
.participants { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.participant { background: #1E1E1E; border-radius: 16px; aspect-ratio: .8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 12px; font-weight: 600; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; position: relative; }
.avatar--sage { background: rgba(139, 154, 107, .15); color: var(--st-primary); }
.avatar--navy { background: rgba(30, 43, 77, .6); color: #fff; }
.avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--st-primary); border: 3px solid #1E1E1E; }
.phone__spacer { flex: 1; }
.phone__controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mic { position: relative; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; }
.mic__pulse { position: absolute; width: 72px; height: 72px; border-radius: 20px; background: var(--st-primary); animation: st-pulse 1.5s ease-out infinite; }
.mic__btn { position: relative; width: 72px; height: 72px; border-radius: 20px; background: var(--st-primary); display: flex; align-items: center; justify-content: center; }
.mic__btn .st-icon { font-size: 34px; }
.phone__mute { font-size: 11px; color: #B0B0B0; }
.end-btn { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--st-error); color: var(--st-error); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; margin-top: 8px; }
@keyframes st-pulse { 0% { transform: scale(1); opacity: .3; } 100% { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mic__pulse { animation: none; opacity: 0; } html { scroll-behavior: auto; } }

.watch { width: 280px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; align-self: center; }
.watch img { width: 230px; height: auto; display: block; }
.watch__text { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.watch__t { font-size: 18px; font-weight: 600; }
.watch__d { font-size: 15px; line-height: 1.55; color: var(--st-on-surface-variant); text-wrap: pretty; }

/* ---------- FAQ accordion ---------- */
.faq-box { display: flex; flex-direction: column; background: var(--st-background); border: 1px solid var(--st-hairline); border-radius: 16px; overflow: hidden; }
.faq-item { border-top: 1px solid var(--st-divider); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
  padding: 20px 24px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--st-on-background);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .st-icon { font-size: 22px; color: var(--st-primary); transition: transform .2s; }
.faq-item[open] summary .st-icon { transform: rotate(180deg); }
.faq-item__a { padding: 0 24px 20px; font-size: 15px; line-height: 1.55; color: var(--st-on-surface-variant); max-width: 640px; text-wrap: pretty; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--st-hairline); }
.faq-list .faq-item { border-top: 0; border-bottom: 1px solid var(--st-hairline); }
.faq-list .faq-item summary { padding: 20px 0; }
.faq-list .faq-item__a { padding: 0 40px 20px 0; }
.link-more { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 24px; }
.link-more .st-icon { font-size: 18px; }
.faq-preview { max-width: 800px; margin: 0 auto; }

/* ---------- Invite / tester form ---------- */
.invite { padding: 24px; }
.invite__card {
  position: relative; overflow: hidden; max-width: 1160px; margin: 0 auto; border-radius: 24px; background: #121212; color: #fff;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.invite__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 65%; opacity: .55; }
.invite__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .85)); }
.invite__card > :not(.invite__img):not(.invite__scrim) { position: relative; }
.invite__title { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.8px; max-width: 640px; text-wrap: balance; }
.invite__sub { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 520px; text-wrap: pretty; }
.invite-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; max-width: 560px; margin-top: 8px; text-align: left; }
.invite-form input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(240, 240, 238, .15);
  color: #fff; font-family: inherit; font-size: 16px; outline: none; min-width: 0; width: 100%;
}
.invite-form input::placeholder { color: rgba(255, 255, 255, .6); }
.invite-form input:focus { border-color: rgba(255, 255, 255, .5); }
.invite-form__roles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip { height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.role-chip.is-active { border-color: var(--st-primary); background: var(--st-primary); }
.invite-form__submit { grid-column: 1 / -1; justify-self: center; padding: 0 32px; }
.invite-form__submit:disabled { opacity: .5; cursor: default; }
.invite-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.invite__error { grid-column: 1 / -1; text-align: center; font-size: 14px; color: #FFB4AE; }
.invite__error a { color: #fff; font-weight: 600; }
.invite__done { display: none; flex-direction: column; align-items: center; gap: 12px; }
.invite__done.is-visible { display: flex; }
.invite__badge { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 20px; border-radius: 12px; background: rgba(139, 154, 107, .3); font-size: 16px; font-weight: 600; text-align: left; }
.invite__badge .st-icon { font-size: 20px; color: #C9D2B0; }
.invite__stores { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.invite__stores .st-icon { font-size: 16px; }

/* ---------- Footer ---------- */
.footer { max-width: 1160px; margin: 0 auto; padding: 64px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer--line { padding: 40px 24px; border-top: 1px solid var(--st-hairline); }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--st-on-background); }
.footer__logo:hover { color: var(--st-on-background); text-decoration: none; }
.footer__logo img { width: 28px; height: 28px; border-radius: 7px; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--st-on-surface-variant); }
.footer__ds { display: inline-flex; align-items: center; }
.footer__ds img { height: 28px; width: auto; display: block; }
.footer__ds .logo-dark { display: none; }
html.dark .footer__ds .logo-light { display: none; }
html.dark .footer__ds .logo-dark { display: block; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer__links a { color: var(--st-on-background); }

/* ---------- Sub-page header ---------- */
.page-header { background: #121212; color: #fff; }
.page-header__body { max-width: 1160px; margin: 0 auto; padding: 48px 24px 72px; display: flex; flex-direction: column; gap: 16px; }
.page-header h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -1px; text-wrap: balance; }
.page-header--legal h1 { font-size: clamp(32px, 4.5vw, 52px); }
.page-header .lede { color: #B0B0B0; max-width: 560px; }
.page-header__meta { font-size: 13px; color: #B0B0B0; }

/* ---------- FAQ page ---------- */
.faq-main { max-width: 1160px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; gap: 56px; }
.faq-group { display: grid; grid-template-columns: 1fr; gap: 32px 48px; }
@media (min-width: 860px) { .faq-group { grid-template-columns: minmax(260px, 1fr) 2fr; } }
.faq-group__head { display: flex; flex-direction: column; gap: 12px; align-self: start; }
.faq-group__head h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.4px; text-wrap: balance; }
.contact-card { background: var(--st-surface); border-radius: 16px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact-card__text { display: flex; flex-direction: column; gap: 6px; }
.contact-card__t { font-size: 20px; font-weight: 600; }
.contact-card__d { font-size: 15px; color: var(--st-on-surface-variant); }

/* ---------- Legal pages ---------- */
.legal-main { max-width: 1160px; margin: 0 auto; padding: 64px 24px 96px; display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 860px) { .legal-main { grid-template-columns: 260px minmax(0, 1fr); } }
.legal-toc { align-self: start; display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 860px) { .legal-toc { position: sticky; top: 24px; } }
.legal-toc .eyebrow { margin-bottom: 8px; }
.legal-toc a { color: var(--st-on-surface-variant); font-size: 14px; padding: 6px 0; }
.legal-toc a:hover { color: var(--st-on-background); }
.legal-body { display: flex; flex-direction: column; gap: 32px; max-width: 720px; }
.legal-body--plain { gap: 40px; }
.legal-intro { font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.legal-intro-block { display: flex; flex-direction: column; gap: 16px; }
.legal-intro-block p { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.legal-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--st-surface); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.legal-note > .st-icon { font-size: 20px; color: var(--st-primary); }
.legal-note__text { color: var(--st-on-surface-variant); }
.legal-note a { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.legal-note a .st-icon { font-size: 16px; }
.legal-section { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--st-hairline); scroll-margin-top: 24px; }
.legal-body--plain .legal-section { gap: 12px; padding-top: 32px; }
.legal-section h2 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.legal-body--plain .legal-section h2 { font-size: 24px; }
.legal-section h3 { margin-top: 6px; font-size: 17px; font-weight: 600; }
.legal-section p, .legal-section li { font-size: 16px; line-height: 1.6; color: var(--st-on-surface-variant); text-wrap: pretty; }
.legal-section ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-section a { font-weight: 600; }

/* ---------- FAQ search ---------- */
.faq-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 560px; margin-top: 8px; }
.faq-search > .st-icon { position: absolute; left: 16px; font-size: 20px; color: rgba(255, 255, 255, .7); pointer-events: none; }
.faq-search input {
  width: 100%; height: 52px; padding: 0 48px 0 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(240, 240, 238, .15); color: #fff; font-family: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
}
.faq-search input::placeholder { color: rgba(255, 255, 255, .6); }
.faq-search input:focus { border-color: rgba(255, 255, 255, .5); }
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-search__clear {
  position: absolute; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .8); display: flex; align-items: center; justify-content: center;
}
.faq-search__clear:hover { background: rgba(240, 240, 238, .15); color: #fff; }
.faq-search__clear .st-icon { font-size: 18px; }
.faq-empty { font-size: 16px; color: var(--st-on-surface-variant); text-align: center; padding: 24px 0 0; }
mark.faq-hit { background: rgba(139, 154, 107, .3); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Problem-first landing: the two problems ---------- */
.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.problem { background: var(--st-surface); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.problem__t { font-size: 26px; font-weight: 600; letter-spacing: -.3px; text-wrap: balance; }
.problem__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.problem__list li { padding: 12px 0; border-top: 1px solid var(--st-hairline); font-size: 16px; line-height: 1.5; color: var(--st-on-surface-variant); text-wrap: pretty; }

/* ---------- Problem-first landing: solutions ---------- */
.solve { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .solve { grid-template-columns: 1fr 1fr; gap: 64px; } .solve--flip .solve__text { order: 2; } }
.solve__text { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.solve__body { font-size: 17px; line-height: 1.6; color: var(--st-on-surface-variant); text-wrap: pretty; }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.points .st-icon { font-size: 20px; color: var(--st-primary); margin-top: 2px; }
.solve__visual { display: flex; justify-content: center; align-items: center; min-width: 0; }
.solve__panel { background: var(--st-demo-bg); color: #fff; border-radius: 24px; padding: 32px; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.mini-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 4px; }
.mini-mode { position: relative; overflow: hidden; border-radius: 16px; padding: 16px; background: var(--st-background); border: 1px solid var(--st-hairline); display: flex; flex-direction: column; gap: 6px; }
.mini-mode--lesson::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(139, 154, 107, .4); }
.mini-mode__label { display: flex; align-items: center; gap: 8px; }
.mini-mode__label .st-icon { font-size: 18px; }
.mini-mode__d { font-size: 15px; line-height: 1.5; color: var(--st-on-surface-variant); }
