/*
 * LiveList hosting styles.
 * Theme tokens mirror Flutter AccentThemePalette / AppThemeIds
 * (light, dark, heather, spruce_forest, cerulean, dark_peach, twilight, polar_night).
 * In-app WebView: ?theme=<id>&app=true
 */

:root,
[data-theme="light"] {
  --bg: #f4efec;
  --bg-accent: #d8ccc5;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #3b2f28;
  --muted: #4a5568;
  --primary: #805774;
  --primary-soft: #c9b5c0;
  --on-primary: #ffffff;
  --secondary: #d8ccc5;
  --on-secondary: #4d3b32;
  --border: #e2e8f0;
  --link: #805774;
  --shadow: rgba(59, 47, 40, 0.12);
  --qr-bg: #ffffff;
  --glow: rgba(128, 87, 116, 0.18);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #20232a;
  --bg-accent: #1d4044;
  --surface: #171923;
  --surface-elevated: #1e222b;
  --text: #e2e8f0;
  --muted: #a0aec0;
  --primary: #2c7a7b;
  --primary-soft: #3a5c5d;
  --on-primary: #e6fffa;
  --secondary: #1d4044;
  --on-secondary: #b2f5ea;
  --border: #3a4556;
  --link: #81e6d9;
  --shadow: rgba(0, 0, 0, 0.35);
  --qr-bg: #ffffff;
  --glow: rgba(44, 122, 123, 0.28);
  color-scheme: dark;
}

[data-theme="heather"] {
  --bg: #f4ecee;
  --bg-accent: #7c3f5c;
  --surface: #faf5f7;
  --surface-elevated: #ffffff;
  --text: #532a34;
  --muted: #616c7e;
  --primary: #ac5b6e;
  --primary-soft: #d4a8b4;
  --on-primary: #ffffff;
  --secondary: #7c3f5c;
  --on-secondary: #ffffff;
  --border: #eddbdf;
  --link: #ac5b6e;
  --shadow: rgba(83, 42, 52, 0.12);
  --qr-bg: #ffffff;
  --glow: rgba(172, 91, 110, 0.2);
  color-scheme: light;
}

[data-theme="spruce_forest"] {
  --bg: #eceff3;
  --bg-accent: #335251;
  --surface: #f6f7f8;
  --surface-elevated: #ffffff;
  --text: #532a34;
  --muted: #4a5568;
  --primary: #394c5c;
  --primary-soft: #9aabba;
  --on-primary: #ffffff;
  --secondary: #335251;
  --on-secondary: #ffffff;
  --border: #d3d8db;
  --link: #394c5c;
  --shadow: rgba(57, 76, 92, 0.12);
  --qr-bg: #ffffff;
  --glow: rgba(57, 76, 92, 0.18);
  color-scheme: light;
}

[data-theme="cerulean"] {
  --bg: #d9e3f3;
  --bg-accent: #2252a0;
  --surface: #e8eef8;
  --surface-elevated: #f4f7fc;
  --text: #162c5c;
  --muted: #3566b6;
  --primary: #174082;
  --primary-soft: #8ba4d4;
  --on-primary: #ffffff;
  --secondary: #2252a0;
  --on-secondary: #ffffff;
  --border: #ccd5e3;
  --link: #174082;
  --shadow: rgba(22, 44, 92, 0.14);
  --qr-bg: #ffffff;
  --glow: rgba(23, 64, 130, 0.22);
  color-scheme: light;
}

[data-theme="dark_peach"] {
  --bg: #1a1a1c;
  --bg-accent: #5c4a42;
  --surface: #26262a;
  --surface-elevated: #2e2e34;
  --text: #e8e4e0;
  --muted: #a0aec0;
  --primary: #e67c65;
  --primary-soft: #8a6a5e;
  --on-primary: #1c1410;
  --secondary: #5c4a42;
  --on-secondary: #f2e2d8;
  --border: #3e3834;
  --link: #e67c65;
  --shadow: rgba(0, 0, 0, 0.4);
  --qr-bg: #ffffff;
  --glow: rgba(230, 124, 101, 0.28);
  color-scheme: dark;
}

[data-theme="twilight"] {
  --bg: #121118;
  --bg-accent: #4f4a6e;
  --surface: #1c1b28;
  --surface-elevated: #242234;
  --text: #e8e6f4;
  --muted: #b4abd4;
  --primary: #9b8af0;
  --primary-soft: #6a628f;
  --on-primary: #ffffff;
  --secondary: #4f4a6e;
  --on-secondary: #e4e1f7;
  --border: #342f4a;
  --link: #9b8af0;
  --shadow: rgba(0, 0, 0, 0.45);
  --qr-bg: #ffffff;
  --glow: rgba(155, 138, 240, 0.28);
  color-scheme: dark;
}

[data-theme="polar_night"] {
  --bg: #1a1b2e;
  --bg-accent: #4a9eff;
  --surface: #25263f;
  --surface-elevated: #2d2e4a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #70d6ff;
  --primary-soft: #3d5a78;
  --on-primary: #061018;
  --secondary: #4a9eff;
  --on-secondary: #f8f7fc;
  --border: #34365a;
  --link: #70d6ff;
  --shadow: rgba(0, 0, 0, 0.4);
  --qr-bg: #ffffff;
  --glow: rgba(112, 214, 255, 0.26);
  color-scheme: dark;
}

/* App WebView: theme/lang/legal chrome controlled by the app via query params. */
html[data-app="true"] .app-hide-in-app {
  display: none !important;
}

/* Shown only in the app WebView (e.g. non-linking brand beside legal meta). */
.app-show-in-app {
  display: none !important;
}

html[data-app="true"] .app-show-in-app {
  display: inline-flex !important;
}

/* Inline plain-text stand-ins for web-only links in legal body copy. */
html[data-app="true"] span.app-show-in-app {
  display: inline !important;
}

/* Privacy/terms in-app: hide site header + H1; brand sits beside the meta line. */
html[data-app="true"] body.page-legal > .page > header,
html[data-app="true"] body.page-legal main.card > h1 {
  display: none !important;
}

.legal-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.legal-meta-row .meta {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.brand-static {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  --page-pad-x: 16px;
  --page-pad-y: 20px;
  --main-pad: 22px 18px;
  --content-max: 40rem;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: var(--page-pad-y) var(--page-pad-x) calc(var(--page-pad-y) + 16px);
  padding-left: max(var(--page-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--page-pad-x), env(safe-area-inset-right));
  padding-bottom: max(
    calc(var(--page-pad-y) + 16px),
    env(safe-area-inset-bottom)
  );
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 1rem;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

body.is-landing {
  padding-bottom: max(var(--page-pad-y), env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 10% -10%, var(--glow), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, var(--bg-accent), transparent 50%),
    var(--bg);
}

body.is-landing footer {
  text-align: center;
}

.page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 18px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  object-fit: contain;
}

body.is-landing .brand-logo {
  width: 42px;
  height: 42px;
}

/* App-icon plate — same padding/radius; white in light themes, black in dark. */
:root:not([data-theme]) .brand-logo,
[data-theme="light"] .brand-logo,
[data-theme="heather"] .brand-logo,
[data-theme="spruce_forest"] .brand-logo,
[data-theme="cerulean"] .brand-logo,
[data-theme="dark"] .brand-logo,
[data-theme="dark_peach"] .brand-logo,
[data-theme="twilight"] .brand-logo,
[data-theme="polar_night"] .brand-logo {
  padding: 2px;
  border-radius: 22.5%;
}

:root:not([data-theme]) .brand-logo,
[data-theme="light"] .brand-logo,
[data-theme="heather"] .brand-logo,
[data-theme="spruce_forest"] .brand-logo,
[data-theme="cerulean"] .brand-logo {
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(59, 47, 40, 0.08),
    inset 0 0 0 1px rgba(59, 47, 40, 0.06);
}

[data-theme="dark"] .brand-logo,
[data-theme="dark_peach"] .brand-logo,
[data-theme="twilight"] .brand-logo,
[data-theme="polar_night"] .brand-logo {
  /* Same chrome as theme / language controls */
  background: var(--surface);
  box-shadow:
    0 1px 2px var(--shadow),
    inset 0 0 0 1px var(--border);
}

:root:not([data-theme]) body.is-landing .brand-logo,
[data-theme="light"] body.is-landing .brand-logo,
[data-theme="heather"] body.is-landing .brand-logo,
[data-theme="spruce_forest"] body.is-landing .brand-logo,
[data-theme="cerulean"] body.is-landing .brand-logo,
[data-theme="dark"] body.is-landing .brand-logo,
[data-theme="dark_peach"] body.is-landing .brand-logo,
[data-theme="twilight"] body.is-landing .brand-logo,
[data-theme="polar_night"] body.is-landing .brand-logo {
  padding: 3px;
}

nav.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.95rem;
}

nav a {
  color: var(--link);
  text-decoration: none;
  padding: 4px 0;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
}

.lang-switch {
  position: relative;
}

.theme-toggle,
.lang-switch-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 2px var(--shadow);
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.theme-toggle:hover,
.lang-switch-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary-soft);
}

.theme-toggle:focus-visible,
.lang-switch-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lang-switch-toggle {
  height: 40px;
  padding: 0 12px 0 14px;
  gap: 6px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.lang-switch-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.lang-switch.is-open .lang-switch-chevron {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  min-width: 100%;
  list-style: none;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px var(--shadow);
}

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

.lang-switch-menu a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.lang-switch-menu a:hover {
  background: color-mix(in srgb, var(--primary-soft) 28%, transparent);
  text-decoration: none;
}

.lang-switch-menu a[aria-current="true"] {
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--primary-soft) 22%, transparent);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  justify-content: center;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a.theme-toggle {
  text-decoration: none;
}

/* Must beat .theme-toggle { display: inline-flex } so production stays hidden. */
.local-dev-invite[hidden] {
  display: none !important;
}

/* Toggle shows the opposite mode icon (sun = switch to light, moon = to dark). */
[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="heather"] .theme-toggle .icon-sun,
[data-theme="spruce_forest"] .theme-toggle .icon-sun,
[data-theme="cerulean"] .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon,
[data-theme="dark_peach"] .theme-toggle .icon-moon,
[data-theme="twilight"] .theme-toggle .icon-moon,
[data-theme="polar_night"] .theme-toggle .icon-moon {
  display: none;
}

main.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--main-pad);
  box-shadow: 0 10px 28px var(--shadow);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  overflow-wrap: anywhere;
  word-break: break-word;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

body.is-landing main.card {
  padding: 28px 20px;
  box-shadow:
    0 18px 40px var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--primary-soft) 35%, transparent);
}

body.page-legal main.card {
  box-shadow: 0 6px 18px var(--shadow);
}

h1 {
  font-size: 1.45rem;
  margin: 0 0 8px;
  line-height: 1.25;
}

h2 {
  font-size: 1.08rem;
  margin: 22px 0 8px;
  line-height: 1.3;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 1.15rem;
}

li {
  margin-bottom: 6px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

a {
  color: var(--link);
}

footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--link);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Landing intro (headline + lead above carousel) */
.landing-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 4px 0 20px;
}

.landing-intro h1 {
  margin: 0 0 14px;
  padding: 0;
  max-width: 22rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

.hero-mark {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.hero-mark img {
  width: 88px;
  height: 88px;
  display: block;
  filter: drop-shadow(0 8px 16px var(--shadow));
}

body.is-landing .hero h1 {
  text-align: center;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.landing-intro .lead,
.hero > p.lead {
  text-align: center;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

/* Portrait screenshot carousel */
.shot-carousel {
  margin: 0 0 22px;
}

.shot-viewport {
  overflow: hidden;
  margin: 0 -4px;
}

.shot-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  /* Horizontal only — height must match the screenshot frames. */
  padding: 0 calc(50% - min(34vw, 7.25rem));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overflow-anchor: none;
}

/* Block trackpad/wheel pan until start position is locked. */
.shot-track.is-booting {
  overflow-x: hidden;
}

.shot-track::-webkit-scrollbar {
  display: none;
}

.shot-slide {
  flex: 0 0 min(68vw, 14.5rem);
  cursor: pointer;
}

.shot-frame {
  width: 100%;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow:
    0 14px 32px var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--primary-soft) 30%, transparent);
  background: var(--surface-elevated);
  overflow: hidden;
}

/* Height follows the screenshot (HTML width/height + intrinsic ratio). */
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.shot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.shot-nav {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px var(--shadow);
  transition:
    transform 0.15s ease,
    border-color 0.2s ease;
}

.shot-nav:hover {
  transform: translateY(-1px);
  border-color: var(--primary-soft);
}

.shot-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shot-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  cursor: pointer;
}

.shot-dot[aria-current="true"] {
  background: var(--primary);
  width: 18px;
}

/* Landing privacy / terms — no card, just centered pills */
.landing-legal-actions {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.landing-legal-actions a {
  display: inline-block;
  width: auto;
  min-width: 10.5rem;
  padding: 12px 20px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.actions a,
.actions button {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.2s ease;
}

.actions a:hover,
.actions button:hover {
  transform: translateY(-1px);
}

.actions a.primary,
.actions button.primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 18px var(--glow);
}

.actions a.secondary,
.actions button.secondary {
  background: color-mix(in srgb, var(--secondary) 75%, var(--surface));
  color: var(--on-secondary);
}

/* Invite landing (/i/* Cloud Function) */
.invite-hint {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.invite-safari-callout {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  text-align: center;
}

.invite-safari-callout p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}

.invite-safari-callout + .actions {
  margin-top: 16px;
}

body.is-invite .page {
  max-width: 26rem;
  /* Fill viewport under body.is-landing equal top/bottom padding */
  min-height: calc(100vh - 2 * var(--page-pad-y));
  min-height: calc(100dvh - 2 * var(--page-pad-y));
  display: flex;
  flex-direction: column;
}

body.is-invite header {
  flex-shrink: 0;
}

body.is-invite main.card {
  width: 100%;
  margin-block: auto;
}

body.is-invite footer {
  flex-shrink: 0;
  margin-top: 12px;
  text-align: center;
}

/* Store QR section (landing only) */
.store-section {
  margin-top: 22px;
}

.store-section h2 {
  text-align: center;
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.store-section .store-lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 28rem;
  margin: 0 auto;
  justify-items: stretch;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 12px;
  box-shadow: 0 10px 24px var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-soft);
  box-shadow: 0 16px 32px var(--shadow);
}

.store-card .qr {
  width: min(128px, 100%);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 14px;
  background: var(--qr-bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.store-card .qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.store-badge {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

.store-badge-google {
  /* Official Play badge PNG includes generous transparent padding */
  height: 58px;
  margin: -8px 0;
}

@media (min-width: 768px) {
  body {
    --page-pad-x: 32px;
    --page-pad-y: 20px;
    --main-pad: 36px 40px;
    --content-max: 45rem;
    font-size: 1.02rem;
    line-height: 1.6;
  }

  body.is-landing {
    --content-max: 48rem;
  }

  header {
    margin-bottom: 24px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  body.is-landing .brand-logo {
    width: 46px;
    height: 46px;
  }

  :root:not([data-theme]) .brand-logo,
  [data-theme="light"] .brand-logo,
  [data-theme="heather"] .brand-logo,
  [data-theme="spruce_forest"] .brand-logo,
  [data-theme="cerulean"] .brand-logo,
  [data-theme="dark"] .brand-logo,
  [data-theme="dark_peach"] .brand-logo,
  [data-theme="twilight"] .brand-logo,
  [data-theme="polar_night"] .brand-logo {
    padding: 3px;
  }

  :root:not([data-theme]) body.is-landing .brand-logo,
  [data-theme="light"] body.is-landing .brand-logo,
  [data-theme="heather"] body.is-landing .brand-logo,
  [data-theme="spruce_forest"] body.is-landing .brand-logo,
  [data-theme="cerulean"] body.is-landing .brand-logo,
  [data-theme="dark"] body.is-landing .brand-logo,
  [data-theme="dark_peach"] body.is-landing .brand-logo,
  [data-theme="twilight"] body.is-landing .brand-logo,
  [data-theme="polar_night"] body.is-landing .brand-logo {
    padding: 3px;
  }

  nav.legal-nav {
    gap: 12px 18px;
    font-size: 0.98rem;
  }

  .lang-switch-toggle {
    font-size: 0.9rem;
  }

  body.is-landing main.card {
    padding: 40px 44px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .landing-intro h1 {
    margin-bottom: 16px;
    font-size: 2.1rem;
    max-width: 26rem;
  }

  body.is-landing .hero h1 {
    font-size: 2.25rem;
  }

  .landing-intro .lead,
  .hero > p.lead {
    font-size: 1.1rem;
  }

  .landing-intro {
    margin-bottom: 28px;
  }

  .shot-carousel {
    margin-bottom: 28px;
  }

  .shot-track {
    gap: 14px;
    padding-inline: calc(50% - 7.75rem);
  }

  .shot-slide {
    flex-basis: 15.5rem;
  }

  .shot-frame {
    border-radius: 26px;
  }

  .landing-legal-actions {
    margin-top: 32px;
  }

  h2 {
    font-size: 1.18rem;
    margin: 28px 0 10px;
  }

  .meta {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .legal-meta-row {
    gap: 24px;
  }

  footer {
    margin-top: 30px;
    font-size: 0.9rem;
  }

  .hero-mark img {
    width: 104px;
    height: 104px;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
  }

  .actions a,
  .actions button {
    display: inline-block;
    width: auto;
    min-width: 10.5rem;
    padding: 12px 20px;
  }

  .store-section {
    margin-top: 28px;
  }

  .store-grid {
    max-width: 36rem;
    gap: 16px;
  }

  .store-card {
    padding: 18px 16px;
  }

  .store-card .qr {
    width: 148px;
  }

  .store-badge {
    height: 40px;
  }

  .store-badge-google {
    height: 60px;
  }
}
