/* Wooden Fish: Calm Tap — warm desk ritual (2026-11-19 refresh)
   Direction: linen + wood · quiet luxury, not toy-shop pink */

:root {
  --bg: #f3ebe2;
  --bg-deep: #e8ddd2;
  --surface: #fffbf6;
  --raised: #efe6dc;
  --ink: #2a2218;
  --ink-2: #5a4f44;
  --muted: #8a7d72;
  --hairline: rgba(42, 34, 24, 0.1);
  --accent: #c17f3a;
  --accent-ink: #8f5a24;
  --accent-soft: rgba(193, 127, 58, 0.14);
  --sage: #6b8f71;
  --shadow: 0 22px 50px rgba(42, 34, 24, 0.1);
  --shadow-soft: 0 10px 28px rgba(42, 34, 24, 0.06);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1080px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "DM Sans", ui-sans-serif, sans-serif;
  --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;
  position: relative;
  overflow-x: hidden;
}

.desk-glow {
  pointer-events: none;
  position: fixed;
  inset: -10% -20% auto -10%;
  height: 72vh;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(193, 127, 58, 0.18), transparent 58%),
    radial-gradient(ellipse at 82% 12%, rgba(107, 143, 113, 0.12), transparent 52%);
  z-index: 0;
}

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(255, 251, 246, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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(--surface);
  color: var(--ink);
  border-color: var(--hairline);
  min-height: 36px;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-soft);
}

.btn-nav:hover {
  background: var(--raised);
  color: var(--ink);
  border-color: rgba(42, 34, 24, 0.14);
}

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

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

/* Hero — brand first, one composition */
.hero {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 4.5rem;
  min-height: min(88vh, 820px);
  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-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 45, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  max-width: 14ch;
}

.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;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-aura {
  position: absolute;
  inset: 6% 8%;
  background: radial-gradient(
    circle at 50% 38%,
    rgba(193, 127, 58, 0.22),
    transparent 68%
  );
  filter: blur(22px);
  z-index: 0;
  animation: aura-pulse 7s var(--ease) infinite alternate;
}

@keyframes aura-pulse {
  from {
    opacity: 0.5;
    transform: scale(0.96);
  }
  to {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

.promo-band {
  position: relative;
  z-index: 1;
  padding: 0 0 1.5rem;
}

.promo-inner {
  padding: 0;
}

.promo-wide {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  background: var(--ink);
}

.feature-band {
  position: relative;
  z-index: 1;
  padding: 3.25rem 0;
  border-top: 1px solid var(--hairline);
}

.feature-band-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 251, 246, 0.85) 0%,
    transparent 100%
  );
}

.feature-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

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

  .feature-split-flip .feature-copy {
    order: 2;
  }

  .feature-split-flip .feature-shot {
    order: 1;
  }
}

.feature-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.feature-shot {
  margin: 0;
  justify-self: center;
  max-width: min(100%, 360px);
}

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

/* Modes — product shots, not emoji cards */
.modes {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

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

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.mode-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 246, 0.72);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 800px) {
  .mode-row {
    padding: 2rem 2.25rem;
  }
}

@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.75rem;
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: 1.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(193, 127, 58, 0.22);
  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-scroller {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.25rem 0 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.shots-scroller:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shot-item {
  margin: 0;
  flex: 0 0 min(72vw, 220px);
  scroll-snap-align: start;
  width: min(72vw, 220px);
}

.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.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface) 0%, var(--raised) 100%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.final-inner h2 {
  font-family: var(--display);
}

.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);
}


/* Muyu signature — soft tap */
.tap-sig {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2rem;
  color: var(--muted);
}
.tap-sig-lg { margin: 0 0 1rem; }
.tap-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.tap-ring {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.45;
  animation: tap-soft 1.4s var(--ease) infinite;
}
.tap-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-ink);
}
@keyframes tap-soft {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.25); opacity: 0.7; }
}
.icon-stage {
  position: relative;
  max-width: min(100%, 380px);
  margin-inline: auto;
  padding: 2rem;
}
.icon-stage::before {
  content: "";
  position: absolute;
  inset: 8% 5% 5% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.9), rgba(239, 230, 220, 0.4) 55%, transparent 72%);
  z-index: 0;
}
@media (min-width: 900px) {
  .icon-stage { margin-inline: auto 0; }
}
.hero-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 32px;
  border: none;
  box-shadow: var(--shadow);
  background: transparent;
}
.stage-bead {
  position: absolute;
  right: 0;
  bottom: 1.5rem;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  filter: drop-shadow(0 12px 20px rgba(42, 34, 24, 0.15));
}
.mode-shot {
  margin: 0;
  max-width: 220px;
  justify-self: center;
}
.mode-shot img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--bg-deep);
  box-shadow: var(--shadow-soft);
}
.mode-shot-pair {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 280px;
}
.mode-shot-pair img:last-child {
  width: 96px;
  border-radius: 50%;
}
