/* Hakeemi Cloud — theme gallery + single-theme pages.
   Light-first, consistent with the landing page. Plain CSS, no frameworks.
   Gallery page: .sc-*  |  Theme detail page: .tpage-* / .tsection-* / .tswitch */

:root {
  --bg: #f5f7fb;
  --bg-soft: #ecf0f7;
  --card: #ffffff;
  --border: #dfe4ee;
  --text: #0d1424;
  --muted: #5b6579;
  --primary: #2563eb;
  --secondary: #0ea5e9;
  --accent: #14b8a6;
  --grad: linear-gradient(100deg, var(--primary), var(--secondary) 55%, var(--accent));
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* mode-dependent surface details */
  --hero-tint: rgba(37, 99, 235, 0.08);
  --card-hover-shadow: 0 18px 40px rgba(13, 20, 36, 0.14), 0 0 0 1px rgba(14, 165, 233, 0.25);
  --panel-shadow: 0 24px 60px rgba(13, 20, 36, 0.25);
  --menu-shadow: 0 16px 40px rgba(13, 20, 36, 0.16);
  color-scheme: light;
}

/* Dark / light / auto — html[data-theme] is set by theme-toggle.js.
   Light is the default; "dark" forces dark, "auto" follows the OS. */
html[data-theme="dark"] {
  --bg: #070b16;
  --bg-soft: #0d1424;
  --card: #101a30;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --muted: #9aa4bd;
  --hero-tint: rgba(37, 99, 235, 0.16);
  --card-hover-shadow: 0 18px 40px rgba(3, 7, 18, 0.55), 0 0 0 1px rgba(14, 165, 233, 0.25);
  --panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --menu-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #070b16;
    --bg-soft: #0d1424;
    --card: #101a30;
    --border: rgba(255, 255, 255, 0.09);
    --text: #eef1f8;
    --muted: #9aa4bd;
    --hero-tint: rgba(37, 99, 235, 0.16);
    --card-hover-shadow: 0 18px 40px rgba(3, 7, 18, 0.55), 0 0 0 1px rgba(14, 165, 233, 0.25);
    --panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    --menu-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* High contrast — stronger text, borders and muted tones on either palette. */
html[data-contrast="high"] {
  --text: #000000;
  --muted: #333c4e;
  --border: #b4bdd0;
}

html[data-theme="dark"][data-contrast="high"] {
  --text: #ffffff;
  --muted: #c9d3e8;
  --border: rgba(255, 255, 255, 0.32);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"][data-contrast="high"] {
    --text: #ffffff;
    --muted: #c9d3e8;
    --border: rgba(255, 255, 255, 0.32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.sc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--grad);
  flex: none;
}

/* Shared buttons ---------------------------------------------------------- */

.sc-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.sc-btn:hover { transform: translateY(-1px); }

.sc-btn:active { transform: translateY(1px) scale(0.97); transition-duration: 0.06s; }
.sc-btn-small {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent);
}

.sc-btn-small:hover {
  background: color-mix(in srgb, var(--primary) 86%, #000000);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 45%, transparent);
}

.sc-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent);
}

.sc-btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 88%, #000000);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 40%, transparent);
}

.sc-btn-whatsapp {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent);
}

.sc-btn-whatsapp:hover { box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 50%, transparent); }

.sc-btn-whatsapp .wa-icon {
  width: 1.05em;
  height: 1.05em;
  margin-right: 2px;
  vertical-align: -0.16em;
}

/* Theme switch — button opens a labelled dropdown (auto/light/dark +
   high contrast). Identical to the landing page's control. */
.theme-switch { position: relative; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover { border-color: rgba(14, 165, 233, 0.55); transform: translateY(-1px); }

.theme-toggle svg { width: 16px; height: 16px; }

.theme-toggle .icon-chevron { width: 13px; height: 13px; opacity: 0.6; }

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-auto,
.theme-toggle .icon-moon { display: none; }

html[data-theme="auto"] .theme-toggle .icon-auto { display: block; }
html[data-theme="auto"] .theme-toggle .icon-sun { display: none; }

html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.theme-toggle[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }

.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--menu-shadow);
}

.theme-menu[hidden] { display: none; }

.theme-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.theme-menu button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }

.theme-menu button svg { width: 15px; height: 15px; opacity: 0.75; flex: none; }

.theme-menu button .check { margin-left: auto; opacity: 0; }

.theme-menu button[aria-checked="true"] { font-weight: 700; }

.theme-menu button[aria-checked="true"] .check { opacity: 1; }

.theme-menu .theme-menu-sep {
  height: 1px;
  margin: 5px 6px;
  background: var(--border);
}

/* Header ------------------------------------------------------------------- */

.sc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.sc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.sc-links { display: flex; align-items: center; gap: 22px; }

.sc-links a:not(.sc-btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.sc-links a:not(.sc-btn):hover { color: var(--text); }

/* Gallery hero --------------------------------------------------------------- */

.sc-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 56px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--hero-tint) 0%, transparent 70%),
    var(--bg);
}

.sc-hero .sc-container { position: relative; z-index: 1; }

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sc-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sc-hero h1 {
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.sc-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sc-lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Theme grid ----------------------------------------------------------------- */

.sc-section { padding: 48px 0 72px; }

.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.sc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: var(--card-hover-shadow);
}

.sc-card-swatch {
  height: 92px;
  border-radius: 12px;
  flex: none;
  background-size: cover;
}

.sc-card-body { display: flex; flex-direction: column; gap: 4px; }

.sc-card-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }

.sc-card-blurb { color: var(--muted); font-size: 0.9rem; }

.sc-card-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Gallery CTA ----------------------------------------------------------------- */

.sc-cta {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  text-align: center;
}

.sc-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.sc-cta-inner h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sc-cta-inner p { margin: 0 0 18px; color: var(--muted); }

.sc-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Footer ----------------------------------------------------------------------- */

.sc-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.sc-footer p { margin: 0; }

.sc-fine { margin-top: 8px; font-size: 0.8rem; opacity: 0.7; }

@media (max-width: 640px) {
  .sc-hero { padding: 64px 0 40px; }
  .sc-section { padding: 32px 0 56px; }
}

/* ============================================================================
   Theme detail page (extends base.html — platform chrome over dark bg)
   ============================================================================ */

body {
  /* base.html + site.css drive the theme-preview area; keep platform chrome dark */
  background: var(--bg);
}

/* The base.html navbar/footer are themed via --c-* vars (default light).
   Override for platform pages so chrome matches the dark design. */
body .navbar,
body .footer {
  --c-primary: var(--primary);
  --c-secondary: var(--secondary);
  --c-accent: var(--accent);
  --c-bg: var(--bg);
  --c-bg-soft: var(--bg-soft);
  --c-card: var(--card);
  --c-text: var(--text);
  --c-muted: var(--muted);
  --c-border: var(--border);
}

/* Detail hero ----------------------------------------------------------------- */

.tpage-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 40px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, var(--hero-tint) 0%, transparent 70%),
    var(--bg);
}

.tpage-hero .container { position: relative; z-index: 1; }

.tpage-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.tpage-back:hover { color: var(--text); }

.tpage-hero .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.tpage-hero h1 {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tpage-blurb {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Palette + type sections ------------------------------------------------------ */

.tsection { padding: 56px 0; }

.tsection--alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.tsection-title {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Section kicker — small-caps eyebrow above titles. */
.kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link {
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover { color: var(--secondary); }

.tsection-note {
  max-width: 640px;
  margin: -12px 0 28px;
  color: var(--muted);
  font-size: 0.98rem;
}

.tpalette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.swatch {
  position: relative;
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
}

.swatch span {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.swatch code {
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Light-theme swatches need dark labels for contrast. */
.swatch[style*="#ffffff"] span,
.swatch[style*="#fffaf5"] span,
.swatch[style*="#fffdf9"] span,
.swatch[style*="#f5f7fa"] span,
.swatch[style*="#fff1f2"] span,
.swatch[style*="#f0fdfa"] span,
.swatch[style*="#f3f6fb"] span,
.swatch[style*="#fdf0e6"] span,
.swatch[style*="#f6f6f6"] span,
.swatch[style*="#eef3ee"] span,
.swatch[style*="#faf5ff"] span,
.swatch[style*="#f5f2e8"] span {
  color: rgba(15, 18, 30, 0.85);
  text-shadow: none;
}

.swatch[style*="#ffffff"] code,
.swatch[style*="#fffaf5"] code,
.swatch[style*="#fffdf9"] code,
.swatch[style*="#f5f7fa"] code,
.swatch[style*="#fff1f2"] code,
.swatch[style*="#f0fdfa"] code,
.swatch[style*="#f3f6fb"] code,
.swatch[style*="#fdf0e6"] code,
.swatch[style*="#f6f6f6"] code,
.swatch[style*="#eef3ee"] code,
.swatch[style*="#faf5ff"] code,
.swatch[style*="#f5f2e8"] code {
  color: rgba(15, 18, 30, 0.6);
  text-shadow: none;
}

.ttype {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.ttype > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.ttype-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ttype-sample {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.ttype-sample--heading { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.ttype-sample--body { font-family: var(--font-body); font-size: 1rem; font-weight: 400; }

.ttype-specimen {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.ttype-specimen--body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.ttype-shape {
  width: 72px;
  height: 72px;
  margin-top: 14px;
  background: var(--grad);
  opacity: 0.85;
}

/* Live sample preview (theme-scoped) -------------------------------------------
   The demo theme's tokens are set on this element (inline style). The tenant
   sections read --c-* for their text but inherit their background from the
   page, so pin both to the theme's own values. */

.theme-preview {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  margin:0 24px;
  box-shadow:var(--shadow-card);
}
.theme-preview .hero {
  padding: 48px 0 32px;
  border-bottom:1px solid var(--c-border);
}
.theme-preview .section {
  padding: 36px 0;
  border-bottom:1px solid var(--c-border);
}
.theme-preview .section:last-child{border-bottom:0}
@media(max-width:640px){
  .theme-preview{margin:0 16px;border-radius:12px}
  .theme-preview .hero{padding:32px 0 24px}
  .theme-preview .section{padding:24px 0}
}

/* Contact form inside the preview is a disabled placeholder — keep it tidy. */
.theme-preview .contact-form input,
.theme-preview .contact-form textarea {
  opacity: 0.75;
}

/* Detail CTA --------------------------------------------------------------------- */

.tsection--cta {
  background:
    radial-gradient(80% 120% at 50% -30%, var(--hero-tint) 0%, transparent 60%),
    var(--bg-soft);
}

.tsection-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tsection-cta-inner h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tsection-cta-inner p {
  margin: 0;
  color: var(--muted);
  max-width: 480px;
}

.tsection-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons on the dark detail page (base.html loads site.css which themes .btn
   via --c-* vars; scope them to the dark platform palette). */
.tsection-cta-actions .btn-primary,
.tsection-cta-actions .btn {
  --c-primary: var(--primary);
}

.tsection-cta-actions .btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Floating theme switcher ----------------------------------------------------------- */

.tswitch { position: relative; }

.tswitch-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 45%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tswitch-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--primary) 60%, transparent);
}

.tswitch-fab:active { transform: translateY(0) scale(0.96); transition-duration: 0.06s; }

.tswitch-panel {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 120;
  width: 280px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--panel-shadow);
  padding: 14px;
}

.tswitch-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.tswitch-home {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.tswitch-home:hover { color: var(--text); }

.tswitch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tswitch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.tswitch-item:hover { background: rgba(255, 255, 255, 0.06); }

.tswitch-item.is-active { background: rgba(37, 99, 235, 0.16); }

.tswitch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tswitch-name { flex: 1; }

.tswitch-current {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tswitch-all {
  display: block;
  margin-top: 10px;
  padding: 8px 4px 2px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.tswitch-all:hover { color: var(--text); }

@media (max-width: 640px) {
  .tpage-hero { padding: 120px 0 32px; }
  .tswitch-fab { right: 16px; bottom: 16px; padding: 11px 16px; }
  .tswitch-panel { right: 16px; bottom: 74px; width: calc(100vw - 32px); max-width: 320px; }
  .tsection-cta-inner, .tsection-cta-actions { flex-direction: column; align-items: flex-start; }
}
