/* Safe Move — unslopped landing (accent from icon #F0CCB7)
   Direction: direct / practical / neighborly · world: kitchen-table Wi‑Fi
   Signature: peer-link (device ↔ device on same network) */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --raised: #eceff4;
  --ink: #111827;
  --ink-2: #4b5565;
  --muted: #6b7487;
  --hairline: rgba(17, 24, 39, 0.08);
  --accent: #0060f0;
  --accent-ink: #0047c7;
  --accent-soft: #e8f1ff;
  --shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --max: 1120px;
  --font: "Figtree", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0;
}

/* Header — quiet chrome */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 250, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7487' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  max-width: 10.5rem;
  line-height: 1.25;
}

#lang-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
    border-color 160ms var(--ease), transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  min-height: 48px;
  padding: 0 1.25rem;
}

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

.btn-nav {
  background: var(--ink);
  color: #fff;
  min-height: 36px;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
}

.btn-nav:hover {
  background: #1f2937;
  color: #fff;
}

.btn-play-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .btn-nav {
    display: none;
  }
}

/* Hero — brand first, one composition */
.hero {
  padding: 2rem 0 4rem;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
  }
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
}

.peer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--muted);
}

.peer-link-lg {
  margin: 0 0 1rem;
}

.peer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.peer-dash {
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 4px,
    transparent 4px 8px
  );
  opacity: 0.55;
  animation: peer-flow 1.6s linear infinite;
}

.peer-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  white-space: nowrap;
}

@keyframes peer-flow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 16px 0;
  }
}

.phone-stage {
  position: relative;
  margin-inline: auto;
  max-width: 340px;
}

@media (min-width: 900px) {
  .phone-stage {
    max-width: 400px;
    margin-inline: auto 0;
  }
}

.hero-shot {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  background: #0b1220;
}

/* Modes — product shots, not emoji cards */
.modes {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.mode-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

@media (min-width: 800px) {
  .mode-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .mode-row-flip .mode-copy {
    order: 2;
  }

  .mode-row-flip .mode-shot {
    order: 1;
  }
}

.mode-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.mode-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.mode-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 34rem;
}

.mode-shot {
  margin: 0;
  max-width: 280px;
  justify-self: center;
}

.mode-shot img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  background: #0b1220;
}

.local-strip {
  display: grid;
  gap: 0.25rem;
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid var(--hairline);
  max-width: 40rem;
}

.local-strip h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.local-strip p {
  margin: 0;
  color: var(--ink-2);
}

/* Screenshots */
.shots-section {
  padding: 4rem 0;
  background: var(--bg);
}

.shots-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-items: center;
}

.shot-item {
  margin: 0;
  max-width: 240px;
  width: 100%;
}

.shot-item img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  background: #0b1220;
}

.shot-item figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Steps */
.steps-section {
  padding: 1rem 0 4rem;
  background: var(--bg);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0;
}

.step-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--accent);
  line-height: 1.4;
  padding-top: 0.15rem;
}

.steps h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Notes */
.notes-section {
  padding: 0 0 4rem;
  background: var(--bg);
}

.notes-section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.notes-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-2);
  max-width: 44rem;
}

.notes-list li {
  margin-bottom: 0.625rem;
}

.notes-list li:last-child {
  margin-bottom: 0;
}

.notes-list a {
  font-weight: 500;
}

/* Final CTA */
.final-cta {
  padding: 0 0 4rem;
  background: var(--bg);
}

.final-inner {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.final-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 12px;
}

.final-inner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.final-inner p {
  margin: 0 0 1.5rem;
  color: var(--ink-2);
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.site-footer p {
  margin: 0.25rem 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer-links a {
  font-weight: 500;
  font-size: 0.875rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 560ms var(--ease) forwards;
}

.reveal-delay {
  animation-delay: 120ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Legal pages */
.privacy-main,
.home-main {
  padding: 2.5rem 0 3.5rem;
}

.privacy-card,
.home-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--hairline);
}

@media (min-width: 720px) {
  .privacy-card,
  .home-card {
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

.privacy-card h1,
.home-card h1 {
  margin: 0 0 0.5rem;
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.privacy-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
}

.privacy-card h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.privacy-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.15rem 0 0.45rem;
}

.privacy-card p,
.privacy-card li,
.home-card p {
  color: var(--ink-2);
}

.privacy-card ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}

.privacy-card li + li {
  margin-top: 0.35rem;
}

.privacy-card code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--raised);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.privacy-back {
  display: inline-block;
  margin-top: 1.75rem;
  font-weight: 500;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Legacy class aliases so older legal markup stays readable */
.page-glow {
  display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}
