:root {
  color-scheme: light dark;
  --font-display: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
  --bg: #eef6ff;
  --bg-deep: #dcecff;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.34);
  --border: rgba(58, 93, 137, 0.2);
  --border-strong: rgba(255, 255, 255, 0.76);
  --text: #10233d;
  --muted: #55708d;
  --accent: #1476f2;
  --accent-2: #15b8a6;
  --accent-3: #ff9f43;
  --accent-soft: rgba(20, 118, 242, 0.16);
  --accent-medium: rgba(20, 118, 242, 0.26);
  --accent-border: rgba(20, 118, 242, 0.44);
  --field: rgba(255, 255, 255, 0.74);
  --grid-line: rgba(61, 99, 146, 0.16);
  --grid-line-strong: rgba(61, 99, 146, 0.22);
  --grid-mask: rgba(0, 0, 0, 0.78);
  --shadow: 0 24px 80px rgba(35, 86, 148, 0.18);
  --shadow-soft: 0 14px 40px rgba(35, 86, 148, 0.12);
  --ring: rgba(20, 118, 242, 0.3);
  --ios-icon-sm: 28px;
  --ios-icon-md: 64px;
  --ios-icon-lg: clamp(72px, 12vw, 104px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071322;
    --bg-deep: #020814;
    --surface: rgba(19, 31, 50, 0.56);
    --surface-strong: rgba(27, 42, 66, 0.72);
    --surface-soft: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.22);
    --text: #f4f8ff;
    --muted: #a9bbd2;
    --accent: #58a6ff;
    --accent-2: #5eead4;
    --accent-3: #ffc56e;
    --accent-soft: rgba(88, 166, 255, 0.16);
    --accent-medium: rgba(88, 166, 255, 0.25);
    --accent-border: rgba(88, 166, 255, 0.45);
    --field: rgba(18, 31, 51, 0.78);
    --grid-line: rgba(255, 255, 255, 0.08);
    --grid-line-strong: rgba(255, 255, 255, 0.12);
    --grid-mask: rgba(0, 0, 0, 0.65);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.24);
    --ring: rgba(88, 166, 255, 0.36);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef6ff;
  --bg-deep: #dcecff;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.34);
  --border: rgba(58, 93, 137, 0.2);
  --border-strong: rgba(255, 255, 255, 0.76);
  --text: #10233d;
  --muted: #55708d;
  --accent: #1476f2;
  --accent-2: #15b8a6;
  --accent-3: #ff9f43;
  --accent-soft: rgba(20, 118, 242, 0.16);
  --accent-medium: rgba(20, 118, 242, 0.26);
  --accent-border: rgba(20, 118, 242, 0.44);
  --field: rgba(255, 255, 255, 0.74);
  --grid-line: rgba(61, 99, 146, 0.16);
  --grid-line-strong: rgba(61, 99, 146, 0.22);
  --grid-mask: rgba(0, 0, 0, 0.78);
  --shadow: 0 24px 80px rgba(35, 86, 148, 0.18);
  --shadow-soft: 0 14px 40px rgba(35, 86, 148, 0.12);
  --ring: rgba(20, 118, 242, 0.3);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071322;
  --bg-deep: #020814;
  --surface: rgba(19, 31, 50, 0.56);
  --surface-strong: rgba(27, 42, 66, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f8ff;
  --muted: #a9bbd2;
  --accent: #58a6ff;
  --accent-2: #5eead4;
  --accent-3: #ffc56e;
  --accent-soft: rgba(88, 166, 255, 0.16);
  --accent-medium: rgba(88, 166, 255, 0.25);
  --accent-border: rgba(88, 166, 255, 0.45);
  --field: rgba(18, 31, 51, 0.78);
  --grid-line: rgba(255, 255, 255, 0.08);
  --grid-line-strong: rgba(255, 255, 255, 0.12);
  --grid-mask: rgba(0, 0, 0, 0.65);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.24);
  --ring: rgba(88, 166, 255, 0.36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: no-preference) {
  html.theme-transitioning,
  html.theme-transitioning *,
  html.theme-transitioning *::before,
  html.theme-transitioning *::after {
    transition:
      background-color 0.42s ease,
      background 0.42s ease,
      border-color 0.42s ease,
      box-shadow 0.42s ease !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 14% 12%, rgba(20, 118, 242, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(21, 184, 166, 0.2), transparent 30rem),
    radial-gradient(circle at 50% 88%, rgba(255, 159, 67, 0.13), transparent 32rem),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-position: 0 0, 0 0, 34px 34px, 34px 34px;
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, var(--grid-mask), transparent 76%);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 10px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), var(--shadow-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  padding: 9px 12px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--text);
  transform: translateY(-1px);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.theme-switcher button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  font: inherit;
  font-size: 0;
  font-weight: 800;
  padding: 0;
}

.theme-switcher button > span[aria-hidden="true"] {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 0;
}

.theme-switcher button[data-theme-choice="system"] > span[aria-hidden="true"]::before,
.theme-switcher button[data-theme-choice="system"] > span[aria-hidden="true"]::after,
.theme-switcher button[data-theme-choice="light"] > span[aria-hidden="true"]::before,
.theme-switcher button[data-theme-choice="dark"] > span[aria-hidden="true"]::before {
  content: "";
  display: block;
}

.theme-switcher button[data-theme-choice="system"] > span[aria-hidden="true"]::before {
  width: 18px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.theme-switcher button[data-theme-choice="system"] > span[aria-hidden="true"]::after {
  width: 10px;
  height: 2px;
  margin-top: -1px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 4px 0 -1px currentColor;
}

.theme-switcher button[data-theme-choice="light"] > span[aria-hidden="true"]::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 -8px 0 -4px currentColor,
    0 8px 0 -4px currentColor,
    8px 0 0 -4px currentColor,
    -8px 0 0 -4px currentColor,
    6px 6px 0 -5px currentColor,
    -6px 6px 0 -5px currentColor,
    6px -6px 0 -5px currentColor,
    -6px -6px 0 -5px currentColor;
}

.theme-switcher button[data-theme-choice="dark"] > span[aria-hidden="true"]::before {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: inset -5px 0 0 0 var(--surface-strong);
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.22);
}

.theme-switcher button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.glass {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.42);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255,255,255,0.48), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.32), transparent 22rem);
  opacity: 0.68;
}

.glass > * { position: relative; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(22px, 5vw, 56px);
  min-height: 460px;
  padding: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero.compact {
  grid-template-columns: 1fr;
  min-height: auto;
  padding-block: clamp(28px, 6vw, 54px);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 5.4vw, 4.7rem);
}
h2 { font-size: clamp(2rem, 4.8vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }

p { line-height: 1.65; }

.subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2.2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
  padding: 11px 17px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn.primary {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--accent-medium), var(--surface-soft));
}

.device-stack {
  display: grid;
  gap: 14px;
  perspective: 1000px;
}

.device-card {
  min-height: 132px;
  padding: 22px;
  transform: translate3d(-3px, 0, 0) rotate(-1.4deg) skewX(-0.35deg);
  will-change: transform;
}

.device-card:nth-child(2) {
  transform: translate3d(-1px, 0, 0) rotate(-0.55deg) skewX(-0.2deg);
}

.device-card:nth-child(3) {
  transform: translate3d(-6px, 0, 0) rotate(-1.85deg) skewX(-0.45deg);
}

.device-card span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.device-card img {
  width: var(--ios-icon-sm);
  height: var(--ios-icon-sm);
  border-radius: 22.5%;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.device-card strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.section {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-header p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tile {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-soft);
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.tile p,
.product-card p,
.legal-copy p,
.contact-helper p {
  color: var(--muted);
}

.legal-copy h2 {
  margin-top: 28px;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: -0.025em;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 24px;
}

.product-icon {
  display: grid;
  width: var(--ios-icon-md);
  height: var(--ios-icon-md);
  place-items: center;
  border-radius: 22.5%;
  background: linear-gradient(135deg, var(--accent-medium), var(--surface-soft));
  border: 1px solid var(--border-strong);
  font-weight: 900;
}

.product-icon img {
  width: 100%;
  height: 100%;
  border-radius: 22.5%;
  object-fit: contain;
}

.product-card .btn { margin-top: 0; }

.watchcue-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  min-height: 390px;
}

.watchcue-copy {
  max-width: 680px;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-3) 18%, transparent);
}

.watchcue-visual {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  isolation: isolate;
}

.watchcue-app-icon {
  position: relative;
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--border-strong);
  border-radius: 22.5%;
  object-fit: contain;
  box-shadow:
    0 28px 70px color-mix(in srgb, var(--accent-3) 26%, transparent),
    0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.7);
  transform: rotate(-7deg);
  z-index: 1;
}

.watchcue-app-icon-large { width: clamp(132px, 18vw, 190px); }
.watchcue-app-icon-hero { width: clamp(180px, 27vw, 290px); }

.watchcue-orbit {
  position: absolute;
  width: min(95%, 330px);
  aspect-ratio: 1;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px color-mix(in srgb, var(--accent) 5%, transparent),
    0 0 0 58px color-mix(in srgb, var(--accent-2) 4%, transparent);
  transform: rotate(18deg) scaleY(0.42);
}

.watchcue-hero {
  min-height: 560px;
}

.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.store-link:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.store-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}

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

.app-heading {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 26px);
}

.app-heading-icon {
  width: var(--ios-icon-lg);
  height: var(--ios-icon-lg);
  border: 1px solid var(--border-strong);
  border-radius: 22.5%;
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

.pill-list,
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li,
.check-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 9px 12px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  align-content: start;
  margin-top: 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  border-radius: 22px;
  color: var(--text);
  padding: 16px;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.details-list {
  display: grid;
  gap: 12px;
}

.app-update-card .section-header p[data-update-date] {
  font-size: 0.95rem;
  font-weight: 700;
}

.update-notes {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

.update-history-slot {
  margin: 16px 0;
}

.update-history {
  border-radius: 24px;
}

.update-history-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.update-history-item {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.api-docs h3 {
  margin: 18px 0 8px;
  letter-spacing: -0.02em;
}

.api-docs pre {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  overflow-x: auto;
}

.api-docs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.update-history-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.update-history-item h3 {
  margin: 0;
  font-size: 1rem;
}

.update-history-item h3 a {
  color: inherit;
  text-decoration: none;
}

.update-history-item h3 a:hover {
  color: var(--accent);
}

.update-history-date,
.update-history-empty {
  margin: 6px 0 0;
  color: var(--muted);
}

.update-history-notes {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-line;
}

details {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

textarea {
  min-height: 190px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring), inset 0 1px 0 rgba(255,255,255,0.18);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a,
a { color: var(--accent); }

@media (max-width: 820px) {
  .site-shell { width: min(100% - 24px, 1120px); }
  .navbar { align-items: flex-start; flex-direction: column; }
  .nav-actions { justify-content: flex-start; width: 100%; }
  .nav-links { justify-content: flex-start; }
  .hero,
  .split,
  .watchcue-showcase { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .grid,
  .feature-grid,
  .check-list { grid-template-columns: 1fr; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .watchcue-showcase { min-height: 0; }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .navbar,
  .section,
  .hero {
    border-radius: 24px;
  }

  .nav-links,
  .theme-switcher,
  .actions {
    width: 100%;
  }

  .nav-links a,
  .theme-switcher button,
  .btn {
    flex: 1 1 auto;
  }

  .hero {
    padding: 24px 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .product-card {
    min-height: 0;
  }

  .app-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .section,
  .navbar {
    animation: float-in 0.7s ease both;
  }

  .section:nth-of-type(2) { animation-delay: 0.08s; }
  .section:nth-of-type(3) { animation-delay: 0.16s; }
  .device-card {
    animation: plank-drop-payforge 680ms cubic-bezier(0.2, 0.86, 0.3, 1) both;
  }
  .device-card:nth-child(2) {
    animation-name: plank-drop-forgeshift;
    animation-delay: 0.24s;
  }
  .device-card:nth-child(3) {
    animation-name: plank-drop-forgetrack;
    animation-delay: 0.48s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-card,
  .device-card:nth-child(2),
  .device-card:nth-child(3) {
    animation: none;
  }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes plank-drop-payforge {
  0% { transform: translate3d(0, -16px, 0) rotate(0deg) skewX(0deg); }
  72% { transform: translate3d(-4px, -1px, 0) rotate(-1.6deg) skewX(-0.4deg); }
  100% { transform: translate3d(-3px, 0, 0) rotate(-1.4deg) skewX(-0.35deg); }
}

@keyframes plank-drop-forgeshift {
  0% { transform: translate3d(0, -16px, 0) rotate(0deg) skewX(0deg); }
  72% { transform: translate3d(-2px, -1px, 0) rotate(-0.75deg) skewX(-0.25deg); }
  100% { transform: translate3d(-1px, 0, 0) rotate(-0.55deg) skewX(-0.2deg); }
}

@keyframes plank-drop-forgetrack {
  0% { transform: translate3d(0, -16px, 0) rotate(0deg) skewX(0deg); }
  72% { transform: translate3d(-7px, -1px, 0) rotate(-2.05deg) skewX(-0.5deg); }
  100% { transform: translate3d(-6px, 0, 0) rotate(-1.85deg) skewX(-0.45deg); }
}
