/* ============================================================
   app.css — the product screens, in the editorial system
   ------------------------------------------------------------
   Loaded last. Its job is to take components that were built for
   the old glass/gradient look and bring them in line with the
   marketing page: hairlines instead of cards, brass instead of
   violet, serif for display numbers, near-zero radius.
   ============================================================ */

/* ---------- Display type across the app ---------- */
.app-shell h1, .session h1, .summary h1, .settings h1,
.rooms-head h1, .auth-form-wrap h1, .lp-h {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.022em;
}
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3);
}
.label::before { content: ""; width: 20px; height: 1px; background: var(--brass-500); }

/* ---------- Buttons: flat, sharp, no sheen ---------- */
.btn { border-radius: var(--r-sm); font-weight: 500; letter-spacing: -0.005em; min-height: 42px; }
.btn-primary {
  background: var(--text); color: var(--bg); border-color: transparent;
  box-shadow: none;
}
.btn-primary:hover { background: #fff; box-shadow: none; transform: none; }
.btn-primary::after { display: none; }
.btn:hover { transform: none; }
.btn-ghost { background: transparent; border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(235,231,224,0.05); border-color: var(--text-2); }
.btn-subtle { background: transparent; border-color: var(--line); }
.btn-subtle:hover { border-color: var(--line-strong); }
.btn-danger { background: transparent; border-color: rgba(181,112,95,0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(181,112,95,0.1); }
.btn-brass { background: var(--brass-500); color: #17130C; border-color: transparent; }
.btn-brass:hover { background: var(--brass-400); }

/* ---------- Kill the glass ---------- */
.glass { background: rgba(13,12,11,0.82); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.card, .rail-card, .metric, .mini-stat, .focus-hero, .rail-panel {
  border-radius: var(--r-lg); box-shadow: none; background: var(--surface);
}
.card::before { display: none; }
.card-hover:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }

.pill {
  border-radius: var(--r-sm); background: transparent; border-color: var(--line);
  font-size: var(--fs-xs); color: var(--text-2);
}
.badge {
  border-radius: var(--r-sm); background: transparent;
  border: 1px solid rgba(192,138,62,0.4); color: var(--brass-400); font-weight: 500;
}
.avatar { border-radius: var(--r-sm); box-shadow: none; font-weight: 600; }
.dot { width: 6px; height: 6px; }
.dot.live { animation: none; box-shadow: none; background: var(--brass-500); }

/* ============================================================
   SUBNAV
   ============================================================ */
.subnav { background: rgba(13,12,11,0.9); border-bottom: 1px solid var(--line); }
.subnav .container { height: 62px; }
.subnav-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; letter-spacing: -0.02em; }

/* ============================================================
   ROOMS — an editorial ledger, not a grid of gradient cards
   ============================================================ */
.rooms-head { padding-block: clamp(44px, 6vw, 76px) clamp(28px, 3vw, 40px); }
.rooms-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.04; margin: 18px 0 12px; }
.rooms-head .lede { color: var(--text-2); font-size: 1rem; max-width: 52ch; }

/* Header stat row — hairline separated, no floating boxes */
.mini-stats { display: flex; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.mini-stat {
  flex: 1; display: block; padding: 16px 20px; border: 0;
  border-right: 1px solid var(--line); border-radius: 0; background: transparent;
}
.mini-stat:last-child { border-right: 0; }
.mini-stat:hover { transform: none; background: var(--surface); }
.mini-stat .ms-ico { display: none; }
.mini-stat .ms-body b {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.55rem;
  letter-spacing: -0.02em; line-height: 1;
}
.mini-stat .ms-body small {
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-3); margin-top: 8px;
}

/* The room list */
.rooms-grid { display: block; border-top: 1px solid var(--line); padding-bottom: var(--s-7); }
.room-card {
  display: grid; grid-template-columns: 52px 1fr 210px 130px;
  gap: clamp(14px, 2.5vw, 34px); align-items: center; width: 100%;
  padding: clamp(20px, 2.6vw, 30px) 0; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: transparent; text-align: left; cursor: pointer;
  transition: background var(--dur-2) ease;
}
.room-card:hover { transform: none; box-shadow: none; background: rgba(235,231,224,0.022); }
.rc-cover, .rc-badge { display: none; }
.rc-emoji {
  position: static; width: auto; height: auto; background: none; border: 0;
  box-shadow: none; font-size: 1.5rem; line-height: 1; transform: none !important;
}
.rc-body { display: contents; }
.rc-title { display: block; }
.rc-title h3 {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  letter-spacing: -0.018em; margin: 0;
}
.rc-count { display: none; }
.rc-tagline {
  color: var(--text-2); font-size: 0.9rem; line-height: 1.55; margin: 6px 0 0;
  min-height: 0; max-width: 44ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rc-topic {
  padding: 4px 9px; border-radius: var(--r-xs); font-size: 0.7rem; font-weight: 400;
  background: transparent; border: 1px solid var(--line); color: var(--text-3);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 0; padding: 0; }
.rc-foot .avatar-row { display: none; }
.rc-live { text-align: right; }
.rc-live b {
  display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem;
  letter-spacing: -0.02em; line-height: 1;
}
.rc-live small {
  display: block; font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-3); margin-top: 5px;
}
.rc-enter {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 0.8rem; color: var(--text-3);
  transition: color var(--dur-2) ease;
}
.rc-enter svg { width: 15px; height: 15px; transition: transform var(--dur-2) var(--ease-out); }
.room-card:hover .rc-enter { color: var(--brass-400); }
.room-card:hover .rc-enter svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .room-card { grid-template-columns: 40px 1fr auto; }
  .rc-topics { display: none; }
}
@media (max-width: 620px) {
  .mini-stats { flex-direction: column; }
  .mini-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .mini-stat:last-child { border-bottom: 0; }
  .room-card { grid-template-columns: 34px 1fr; row-gap: 10px; }
  .rc-foot { grid-column: 2; justify-content: flex-start; }
}

/* Leaderboard */
.lb-list { display: block; border-top: 1px solid var(--line); }
.lb-row {
  border-radius: 0; padding: 13px 0; border-bottom: 1px solid var(--line);
  background: transparent !important; box-shadow: none !important;
}
.lb-row:hover { background: rgba(235,231,224,0.022) !important; }
.lb-rank { font-family: var(--font-serif); font-weight: 400; font-size: 0.95rem; color: var(--text-3); }
.lb-row.you .lb-name b { color: var(--brass-400); }
.lb-time { font-family: var(--font-serif); font-size: 1rem; }

/* ============================================================
   STUDY SESSION
   ============================================================ */
.session { background: var(--bg); }
.session-body { gap: clamp(16px, 2vw, 26px); padding: clamp(16px, 2vw, 28px); }

/* Subject bar — a rule with an input on it, not a pill */
.subject-input-wrap {
  border-radius: var(--r-lg); border-color: var(--line); background: var(--surface); box-shadow: none;
}
.subject-input-wrap:focus-within { border-color: var(--brass-500); background: var(--surface); }
.subject-ico { color: var(--text-3); }
.subject-input { font-weight: 400; }
.subject-saved { color: var(--brass-400); }
.subject-chip {
  border-radius: var(--r-xs); background: transparent; border-color: var(--line);
  color: var(--text-3); font-weight: 400;
}
.subject-chip:hover { border-color: var(--brass-500); color: var(--text); background: transparent; }

/* Camera */
.cam-stage { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: none; background: var(--surface); }
.cam-status, .cam-timer, .cam-detector {
  border-radius: var(--r-sm); background: rgba(13,12,11,0.82);
  border: 1px solid var(--line); backdrop-filter: blur(8px); font-weight: 500;
}
.cam-status.focused { color: var(--accent-green); border-color: rgba(127,158,118,0.4); }
.cam-status.distracted { color: var(--brass-400); border-color: rgba(192,138,62,0.4); }
.cam-status.away { color: var(--accent-rose); border-color: rgba(181,112,95,0.4); }
.cam-timer { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0; }
.cam-detector.pro { color: var(--brass-400); border-color: rgba(192,138,62,0.35); }
.cam-detector.pro .dot { background: var(--brass-500); }
.ph-ico { border-radius: var(--r-md); background: transparent; border: 1px solid var(--line); }

/* Metrics — one hairline strip, like a ledger footer */
.metrics-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.metric {
  border: 0; border-right: 1px solid var(--line); border-radius: 0;
  padding: 16px 18px; display: block; background: transparent;
}
.metric:last-child { border-right: 0; }
.metric:hover { transform: none; background: rgba(235,231,224,0.022); }
.metric .m-ico { display: none; }
.metric .m-label {
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500; margin: 0;
}
.metric .m-value {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem;
  letter-spacing: -0.02em; margin-top: 8px;
}
.metric .m-hint { display: none; }
.metric .m-track { position: static; height: 2px; margin-top: 12px; background: var(--line); }
.metric .m-track > i { background: var(--accent); }

/* Focus hero */
.focus-hero {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 22px; gap: 20px;
}
/* A thin brass arc — a gauge, not a donut.
   The mask MUST live on a pseudo-element: applying it to .focus-ring-xl
   itself also masks its children, which silently erased the percentage
   number inside the ring. */
.focus-ring-xl {
  --ring: var(--brass-500);
  position: relative; background: none; width: 104px; height: 104px;
  display: grid; place-items: center;
}
.focus-ring-xl::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; display: block;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}
.focus-ring-xl[data-grade="high"] { --ring: var(--accent-green); }
.focus-ring-xl[data-grade="mid"]  { --ring: var(--brass-500); }
.focus-ring-xl[data-grade="low"]  { --ring: var(--accent-rose); }
.focus-ring-xl .fr-inner { position: relative; z-index: 1; background: none; box-shadow: none; width: auto; height: auto; }
.focus-ring-xl b { font-family: var(--font-serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.03em; }
.focus-ring-xl small { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--text-3); }

.focus-state {
  border-radius: var(--r-sm); background: transparent; border: 1px solid var(--line);
  font-weight: 500; font-size: 0.74rem; letter-spacing: 0.02em;
}
.focus-state[data-state="focused"] { color: var(--accent-green); border-color: rgba(127,158,118,0.4); background: transparent; }
.focus-state[data-state="distracted"] { color: var(--brass-400); border-color: rgba(192,138,62,0.4); background: transparent; }
.focus-state[data-state="away"] { color: var(--accent-rose); border-color: rgba(181,112,95,0.4); background: transparent; }
.goal-head { font-size: 0.7rem; letter-spacing: 0.06em; }
.goal-bar { height: 2px; border-radius: 0; background: var(--line); }
.goal-bar > i { border-radius: 0; background: var(--brass-500); }
.goal-hint { font-size: 0.7rem; }

/* Rail panel — text tabs, not pills */
.rail-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: none; }
.rail-tabs { background: transparent; border-bottom: 1px solid var(--line); padding: 0; gap: 0; }
.rail-tabs button {
  border-radius: 0; padding: 14px 16px; font-weight: 500; font-size: 0.82rem;
  color: var(--text-3); position: relative; background: none; box-shadow: none;
}
.rail-tabs button svg { display: none; }
.rail-tabs button[aria-selected="true"] { background: none; color: var(--text); box-shadow: none; }
.rail-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass-500);
}
.tab-count {
  border-radius: var(--r-xs); background: transparent; border: 1px solid var(--line);
  color: var(--text-3); font-weight: 500; font-size: 0.62rem;
}
.rail-tabs button[aria-selected="true"] .tab-count { background: transparent; color: var(--brass-400); border-color: rgba(192,138,62,0.4); }
.rail-tabs #chatUnread { background: var(--brass-500); color: #17130C; border-color: transparent; }

.participant { border-radius: var(--r-sm); }
.participant:hover { background: rgba(235,231,224,0.03); }
.participant.is-you { background: transparent; box-shadow: inset 2px 0 0 var(--brass-500); }
.p-time { font-family: var(--font-serif); font-size: 0.85rem; letter-spacing: 0; }

/* Tutor + chat */
.input { border-radius: var(--r-sm); background: var(--surface-2); border-color: var(--line); }
.input:focus { border-color: var(--brass-500); }
.msg.user .bubble { background: var(--surface-3); color: var(--text); border-radius: var(--r-md); }
.msg.ai .bubble { border-radius: var(--r-md); background: var(--surface-2); }
.msg .m-ava { border-radius: var(--r-xs); background: var(--surface-3); }
.msg.ai .m-ava { background: var(--surface-3); color: var(--brass-400); }
.chip { border-radius: var(--r-sm); background: transparent; border-color: var(--line); }
.chip:hover { border-color: var(--brass-500); }
.cm-text { border-radius: var(--r-md); background: var(--surface-2); border-color: var(--line); }
.chat-msg.mine .cm-text { background: var(--surface-3); color: var(--text); }
.ai-avatar { border-radius: var(--r-xs); background: var(--surface-3); color: var(--brass-400); }

/* ============================================================
   SUMMARY
   ============================================================ */
.summary-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.stat-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.stat-card .sc-ico { display: none; }
.stat-card .sc-val { font-family: var(--font-serif); font-weight: 400; font-size: 2.1rem; letter-spacing: -0.025em; }
.stat-card .sc-label { font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.chart .bar { border-radius: var(--r-xs) var(--r-xs) 0 0; background: var(--surface-3); }
.chart .bar.today { background: var(--brass-500); }
.ach { border-radius: var(--r-sm); background: transparent; border-color: var(--line); }
.ach.unlocked:hover { transform: none; border-color: var(--brass-500); }
.subj-track { height: 2px; border-radius: 0; background: var(--line); }
.subj-fill { border-radius: 0; background: var(--brass-500) !important; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-form-wrap h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.auth-proof { background: var(--surface); border-left: 1px solid var(--line); }
.auth-proof-glow { display: none; }
.auth-proof h2 { font-family: var(--font-serif); font-weight: 400; }
.auth-stats b { font-family: var(--font-serif); font-weight: 400; }
.auth-quote { border-radius: var(--r-lg); background: transparent; border-color: var(--line); box-shadow: none; }
.auth-quote p { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.5; }
.auth-divider::before, .auth-divider::after { background: var(--line); }
.btn-google { border-radius: var(--r-sm); }
.pw-meter i { border-radius: 0; }
.auth-error { border-radius: var(--r-sm); }

/* ============================================================
   SETTINGS
   ============================================================ */
.set-row { border-radius: var(--r-lg); background: var(--surface); border-color: var(--line); }
.set-section > h2 { font-size: 0.68rem; letter-spacing: 0.16em; }
.seg { border-radius: var(--r-sm); background: transparent; border-color: var(--line); padding: 3px; }
.seg button { border-radius: var(--r-xs); font-weight: 500; }
.seg button[aria-selected="true"] { background: var(--surface-3); box-shadow: none; }
.toggle { border-radius: var(--r-full); }
.toggle[aria-checked="true"] { background: var(--brass-500); border-color: var(--brass-500); }

/* ============================================================
   BREAK
   ============================================================ */
.break-screen { background: var(--bg); }
.breath::before { display: none; }
.breath-core {
  background: transparent; border: 1px solid var(--brass-500); color: var(--brass-400);
  box-shadow: none; font-family: var(--font-serif); font-weight: 400; font-size: 1.05rem;
}
.break-timer { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }

/* ============================================================
   TOASTS / MODALS
   ============================================================ */
.toast { border-radius: var(--r-lg); background: var(--surface); border-color: var(--line-strong); }
.modal { border-radius: var(--r-lg); background: var(--surface); border-color: var(--line-strong); }
.modal h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }

/* ============================================================
   PRO — plans & upgrade prompts
   ============================================================ */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 34px; }
.plan { background: var(--surface); padding: clamp(22px, 3vw, 34px); position: relative; display: flex; flex-direction: column; }
.plan h2 { font-size: 1.3rem; margin: 0 0 4px; }
.plan-pro { background: var(--bg-1); }
.plan-tag { position: absolute; top: 16px; right: 16px; font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-400); border: 1px solid rgba(192,138,62,0.4);
  padding: 3px 9px; border-radius: var(--r-xs); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 20px; }
.plan-price b { font-family: var(--font-serif); font-weight: 400; font-size: 2.3rem; letter-spacing: -0.03em; }
.plan-price span { font-size: 0.8rem; color: var(--text-3); }
.plan-pro .plan-price b { color: var(--brass-400); }
.plan-list { display: grid; gap: 11px; margin: 0 0 22px; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; line-height: 1.5; color: var(--text-2); }
.plan-list li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--accent-green); }
.plan-list li b { color: var(--text); font-weight: 600; }
.plan-list li.off { color: var(--text-3); }
.plan-list li.off svg { color: var(--text-3); }
.plan-note { font-size: 0.74rem; color: var(--text-3); margin-top: auto; }
.plan .btn-block { margin-top: 16px; }

.pro-after { margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pro-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px;
  padding-top: 30px; border-top: 1px solid var(--line); }
.pro-benefits h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.05rem; margin: 0 0 7px; letter-spacing: -0.015em; }
.pro-benefits p { font-size: 0.86rem; line-height: 1.6; color: var(--text-2); margin: 0; }

/* Chat composer replacement for free members */
.chat-locked { padding: 14px; border-top: 1px solid var(--line); text-align: center; flex: none; }
.chat-locked p { font-size: 0.8rem; color: var(--text-3); margin: 0 0 10px; }

@media (max-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; }
  .pro-benefits { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Legal pages — terms, privacy, refunds, contact
   Long-form prose, so this is the one place in the app tuned for
   reading rather than scanning: a measure near 68ch, generous line
   height, and numbered hairline headings borrowed from the feature
   rows on the landing page.
   ============================================================ */
.lg-back { display: inline-block; font-size: var(--fs-sm); color: var(--text-3); margin-bottom: 22px; }
.lg-back:hover { color: var(--text-2); }
.lg-updated { font-size: var(--fs-xs); color: var(--text-3); margin-top: 14px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); }

.lg-doc { max-width: 68ch; }
.lg-doc p { font-size: 0.95rem; line-height: 1.75; color: var(--text-2); margin: 0 0 15px; }
.lg-doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--brass-600); }
.lg-doc a:hover { text-decoration-color: var(--brass-400); }
.lg-doc b { color: var(--text); font-weight: 500; }
.lg-doc em { color: var(--text); font-style: italic; }

.lg-h { display: flex; align-items: baseline; gap: 14px; margin: 38px 0 16px;
  font-family: var(--font-serif); font-weight: 400; font-size: 1.22rem;
  letter-spacing: -0.015em; color: var(--text); }
.lg-h span { font-family: var(--font-sans); font-size: 0.68rem; font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em; color: var(--brass-500); flex: none; }
.lg-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.lg-list { margin: 0 0 16px; padding: 0; list-style: none; }
.lg-list li { position: relative; padding-left: 20px; margin-bottom: 10px;
  font-size: 0.95rem; line-height: 1.7; color: var(--text-2); }
.lg-list li::before { content: ''; position: absolute; left: 2px; top: 0.72em;
  width: 6px; height: 1px; background: var(--brass-600); }

.lg-index { display: grid; gap: 1px; margin-top: 30px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lg-card { display: block; padding: 20px 22px; background: var(--bg); transition: background 0.18s ease; }
.lg-card:hover { background: var(--surface); }
.lg-card b { display: block; font-family: var(--font-serif); font-weight: 400;
  font-size: 1.05rem; color: var(--text); margin-bottom: 5px; }
.lg-card small { font-size: 0.84rem; line-height: 1.55; color: var(--text-3); }

.lg-foot { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--line); }
.lg-foot a { font-size: var(--fs-sm); color: var(--text-3); }
.lg-foot a:hover { color: var(--text); }

@media (max-width: 620px) {
  .lg-h { font-size: 1.1rem; gap: 10px; }
  .lg-h::after { display: none; }
}

/* Legal links in the landing page's footer bottom row. */
.foot-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-legal a { color: var(--text-3); }
.foot-legal a:hover { color: var(--text); }
