/* WatchTalkie — shared design system */

:root {
  color-scheme: light;
  --color-primary: #1a6fd4;
  --color-primary-dark: #1256a8;
  --color-primary-light: #e8f2fc;
  --color-accent: #0ea5e9;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8fc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-footer-bg: #0c1e3a;
  --color-footer-text: #cbd5e1;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --max-width-legal: 960px;
  --nav-height: 4rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --space-section: 5rem;
  --space-section-header: 3rem;
  --space-card: 1.75rem;
  --space-icon-title: 1rem;
  --space-title-desc: 0.625rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

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

svg {
  display: block;
  flex-shrink: 0;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  /* Opaque solid colors avoid Android Chrome force-dark sticky flicker */
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
  /* Promote a stable compositor layer; avoid backdrop-filter (Android flash) */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Only animate elevation — never animate background (causes flash in force-dark) */
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-header.is-scrolled {
  background-color: #ffffff;
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* Homepage at top: opaque hero-matched fill (not transparent) */
body:has(.hero) .site-header:not(.is-scrolled) {
  background-color: var(--color-primary-light);
  border-bottom-color: transparent;
  box-shadow: none;
}

body:has(.hero) .site-header:not(.is-scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(226, 232, 240, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--color-primary);
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.5rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a.is-active,
.nav-menu a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: 600;
}

body:has(.hero) .site-header:not(.is-scrolled) .nav-menu a:hover,
body:has(.hero) .site-header:not(.is-scrolled) .nav-menu a.is-active,
body:has(.hero) .site-header:not(.is-scrolled) .nav-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.7);
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: var(--max-width-legal);
}

.section {
  padding: var(--space-section) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--space-section-header);
}

.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
}

.section-subtitle {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Hero */

.hero {
  position: relative;
  padding: 5.5rem 0 6.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26, 111, 212, 0.14), transparent),
    linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--color-text);
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 100%;
  max-width: 24rem;
  padding: 1rem 1.25rem 1.125rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-device-art {
  --hero-art-blue: #4f6bff;
  --hero-art-purple: #7b61ff;
  position: relative;
  width: 13rem;
  height: 14rem;
  margin: 0 auto 2.125rem;
  flex-shrink: 0;
}

.hero-device-ripple {
  position: absolute;
  top: 48%;
  left: 42%;
  border: 1.5px solid rgba(79, 107, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-device-ripple--1 {
  width: 42%;
  height: 42%;
}

.hero-device-ripple--2 {
  width: 56%;
  height: 56%;
}

.hero-device-ripple--3 {
  width: 70%;
  height: 70%;
}

.hero-device-ripple--4 {
  width: 84%;
  height: 84%;
}

.hero-device-phone {
  position: absolute;
  left: 0.4rem;
  bottom: 0;
  width: 5.2rem;
  height: 9.55rem;
  padding: 0.22rem;
  border-radius: 1rem;
  background: #1a1d24;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  z-index: 1;
}

.hero-device-phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 100%;
  border-radius: 0.8rem;
  background: #fff;
}

.hero-device-wave {
  display: block;
  width: 2.7rem;
  height: 0.7rem;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0.22rem 35% no-repeat,
    linear-gradient(currentColor, currentColor) 0.4rem 100% / 0.22rem 65% no-repeat,
    linear-gradient(currentColor, currentColor) 0.8rem 100% / 0.22rem 100% no-repeat,
    linear-gradient(currentColor, currentColor) 1.2rem 100% / 0.22rem 55% no-repeat,
    linear-gradient(currentColor, currentColor) 1.6rem 100% / 0.22rem 80% no-repeat,
    linear-gradient(currentColor, currentColor) 2rem 100% / 0.22rem 45% no-repeat;
  color: rgba(79, 107, 255, 0.35);
  border-radius: 0.125rem;
}

.hero-device-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--hero-art-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 107, 255, 0.35);
}

.hero-device-mic svg {
  width: 1.4rem;
  height: 1.4rem;
}

.hero-device-watch {
  position: absolute;
  right: 0.1rem;
  bottom: 1.5rem;
  width: 4.8rem;
  height: 5.65rem;
  padding: 0.28rem;
  border-radius: 1.1rem;
  background: #101218;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  z-index: 2;
}

.hero-device-watch-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, var(--hero-art-blue) 0%, var(--hero-art-purple) 100%);
}

.hero-device-watch-logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.hero-device-watch-dot {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.hero-card-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0;
}

.hero-card-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 0.375rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-card-icon--call {
  background: #e8f2fc;
}

.hero-card-icon--call .wt-icon {
  color: #1a6fd4;
}

.hero-card-icon--voice {
  background: #ccfbf1;
}

.hero-card-icon--voice .wt-icon {
  color: #0d9488;
}

.hero-card-icon--walkie {
  background: #ede9fe;
}

.hero-card-icon--walkie .wt-icon {
  color: #7c3aed;
}

.wt-icon-slot,
[data-wt-icon] {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hero-card-icon .wt-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.hero-card-icon span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 111, 212, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-store {
  min-width: 11rem;
  justify-content: flex-start;
  gap: 0.8125rem;
  text-align: left;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.btn-store-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: block;
}

.btn-store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.15;
  min-width: 0;
}

.btn-store-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-store-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-primary.btn-store .btn-store-icon,
.btn-primary.btn-store .btn-store-name {
  color: #fff;
}

.btn-primary.btn-store .btn-store-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.btn-secondary.btn-store .btn-store-icon,
.btn-secondary.btn-store .btn-store-name {
  color: var(--color-text);
}

.btn-secondary.btn-store .btn-store-eyebrow {
  color: var(--color-text-light);
}

.btn-secondary.btn-store:hover .btn-store-icon,
.btn-secondary.btn-store:hover .btn-store-name {
  color: var(--color-primary);
}

.btn-secondary.btn-store:hover .btn-store-eyebrow {
  color: rgba(26, 111, 212, 0.75);
}

.btn-store svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

/* Cards grid */

.card-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

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

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 111, 212, 0.25);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-icon-title);
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.wt-icon {
  display: block;
  flex-shrink: 0;
  max-width: none;
  fill: currentColor;
}

.card-icon--call,
.about-item-icon--call {
  background: #e8f2fc;
  color: #1a6fd4;
}

.card-icon--voice,
.about-item-icon--voice {
  background: #ccfbf1;
  color: #0d9488;
}

.card-icon--walkie,
.about-item-icon--walkie {
  background: #ede9fe;
  color: #7c3aed;
}

.card-icon--photo,
.about-item-icon--photo {
  background: #ffedd5;
  color: #c2410c;
}

.card-icon .wt-icon,
.about-item-icon .wt-icon {
  width: 1.375rem;
  height: 1.375rem;
}

.card-icon > svg,
.about-item-icon > svg {
  width: 1.375rem;
  height: 1.375rem;
  max-width: none;
}

.card-icon svg:not(.wt-icon),
.about-item-icon svg:not(.wt-icon),
.hero-card-icon svg:not(.wt-icon) {
  width: 1.5rem;
  height: 1.5rem;
  max-width: none;
}

.card h3 {
  margin: 0 0 var(--space-title-desc);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* What is */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.why-copy .section-title {
  margin-bottom: 1.25rem;
}

.why-title-short {
  display: none;
}

.why-text {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 34rem;
}

.why-text:last-child {
  margin-bottom: 0;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.why-cards .card {
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.about-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.about-item-icon svg {
  width: 1.375rem;
  height: 1.375rem;
  max-width: none;
}

.about-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.about-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Platform cards */

.platform-card {
  text-align: center;
  padding: var(--space-card) 1.25rem;
}

.platform-card .card-icon {
  margin: 0 auto var(--space-icon-title);
}

.platform-card h3 {
  margin: 0 0 var(--space-title-desc);
  font-size: 1.0625rem;
}

.platform-card p {
  font-size: 0.875rem;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  align-items: stretch;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 2rem 1.25rem 1.75rem;
  min-height: 16.5rem;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* Perfect for */

.use-card {
  text-align: center;
  padding: var(--space-card) 1rem;
}

.use-card .card-icon {
  margin: 0 auto var(--space-icon-title);
  width: 3rem;
  height: 3rem;
}

.use-card h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* FAQ */

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-question svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

/* Contact */

.contact-box {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.contact-box p {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.contact-reveal-btn {
  min-width: 12rem;
  margin: 0 auto;
}

.email-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal-doc .email-reveal {
  align-items: flex-start;
  margin-top: 1rem;
}

.legal-doc .contact-reveal-btn {
  margin: 0;
}

.contact-email-area {
  margin-top: 1rem;
}

.contact-email-area[hidden] {
  display: none;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.contact-email:hover {
  color: var(--color-primary-dark);
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand,
a.footer-brand {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-decoration-line: none;
}

a.footer-brand:hover,
a.footer-brand:focus,
a.footer-brand:visited,
a.footer-brand:active {
  color: #fff;
  text-decoration: none;
  text-decoration-line: none;
}

.footer-brand-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
  border-radius: 0.5rem;
}

.footer-brand-text {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--color-footer-text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--color-footer-text);
  text-align: center;
}

.footer-copy a {
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-copy a:hover {
  color: #fff;
}

/* Legal pages */

.legal-page {
  padding: 2.5rem 0 4rem;
  background: var(--color-bg-alt);
  min-height: calc(100vh - var(--nav-height));
}

.legal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.legal-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.legal-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.legal-shell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.25rem;
}

.legal-doc {
  line-height: 1.75;
  color: var(--color-text);
}

.legal-doc :is(h1, h2, h3) {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-text);
}

.legal-doc h1 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.legal-doc h1:first-child {
  margin-top: 0;
}

.legal-doc h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text-muted);
}

.legal-doc p {
  margin: 0.75rem 0;
  font-size: 0.975rem;
}

.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin: 0.4rem 0;
  font-size: 0.975rem;
}

.legal-doc hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.legal-doc a {
  color: var(--color-primary);
}

.legal-doc strong {
  font-weight: 650;
}

.legal-loading {
  color: var(--color-text-muted);
  font-style: italic;
}

/* 404 */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 12rem);
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-code {
  margin: 0 0 0.5rem;
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.04em;
}

.error-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.error-text {
  margin: 0 0 2rem;
  max-width: 28rem;
  color: var(--color-text-muted);
}

/* Animations */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1024px) {
  :root {
    --space-section: 4.5rem;
    --space-section-header: 2.75rem;
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 3.75rem;
    --space-section-header: 2.5rem;
    --space-card: 1.5rem;
  }

  .section-label {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.875rem;
  }

  .hero {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-grid {
    gap: 0.75rem;
  }

  .hero-title {
    font-size: clamp(2.125rem, 8vw, 2.75rem);
  }

  .hero-subtitle {
    margin-bottom: 1.75rem;
  }

  .hero-card {
    max-width: min(100%, 20.5rem);
    margin: 0 auto;
    padding: 0.25rem 0.875rem 1rem;
  }

  .hero-device-art {
    width: 10.5rem;
    height: 11.35rem;
    margin-top: 0;
    margin-bottom: 1.75rem;
  }

  .hero-device-phone {
    width: 4.2rem;
    height: 7.7rem;
  }

  .hero-device-watch {
    width: 3.85rem;
    height: 4.55rem;
    bottom: 1.2rem;
  }

  .hero-device-mic {
    width: 2.25rem;
    height: 2.25rem;
  }

  .hero-device-mic svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .hero-device-watch-logo {
    font-size: 0.9375rem;
  }

  .hero-card-icons {
    gap: 0.5rem;
    margin-bottom: 0;
  }

  .hero-card-icon {
    padding: 0.7rem 0.25rem;
  }

  .why-title-full {
    display: none;
  }

  .why-title-short {
    display: inline;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 0.875rem 1rem;
  }

  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  .why-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
    padding: 1.75rem 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-store {
    width: 100%;
  }

  .contact-box {
    padding: 2rem 1.5rem;
  }

  .contact-reveal-btn {
    width: 100%;
    min-width: 0;
  }

  .legal-shell {
    padding: 1.5rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* Profile invitation hero (shared design tokens; used by SSR profile pages) */

.invite-hero {
  text-align: center;
  padding: 4.5rem 0 4rem;
}

.invite-hero-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.invite-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.invite-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 3px solid #fff;
  background: var(--color-primary-light);
}

.invite-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
}

.invite-name {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
}

.invite-handle {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.invite-headline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.invite-subtitle {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.invite-actions {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.invite-open-hint {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.invite-download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.invite-download-row .btn[disabled],
.invite-actions .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Open CTA must remain tappable for manual retries after a failed auto-open */
#open-in-app {
  min-width: 14rem;
}

@media (max-width: 640px) {
  .invite-hero {
    padding: 3.5rem 0 3rem;
  }

  .invite-avatar {
    width: 5.5rem;
    height: 5.5rem;
  }
}
