/* My Moment — Shiba theme tokens (mirrors iOS ShibaTheme.swift) */
:root {
  --tan: #d89968;
  --tan-dark: #b77d52;
  --tan-tint: #f6e2cf;
  --tan-tint-strong: #f0d2b4;
  --cream: #faf6ef;
  --cream-deep: #f2ece2;
  --pink: #f5c6c6;
  --pink-soft: #fce7e7;
  --ink: #2b1d14;
  --ink-soft: #8a7968;
  --divider: #e8dfd3;
  --divider-strong: #d6c8b8;
  --surface: #f2ece2;
  --surface-soft: #f7f2ea;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(43, 29, 20, 0.06), 0 1px 3px rgba(43, 29, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(43, 29, 20, 0.08), 0 2px 4px rgba(43, 29, 20, 0.04);
  --shadow-lg: 0 18px 40px rgba(183, 125, 82, 0.18), 0 8px 16px rgba(43, 29, 20, 0.06);

  --font-display: "ui-rounded", "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--tan-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--tan-tint-strong); color: var(--ink); }

/* Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top nav */
.nav {
  padding: 22px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 520px;
  background: radial-gradient(ellipse at 50% 20%, var(--pink-soft) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, var(--tan-tint) 0%, transparent 55%);
  filter: blur(20px);
  z-index: -1;
}
.hero-mascot {
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
  padding: 6px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-deep);
  border: 1px solid var(--divider);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tan);
  box-shadow: 0 0 0 4px rgba(216, 153, 104, 0.18);
}
h1.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
}
h1.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--tan) 0%, var(--tan-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Beta sign-up form */
.signup {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  background: white;
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--divider);
}
.signup input[type="email"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  border-radius: var(--radius-md);
  min-width: 0;
}
.signup input[type="email"]::placeholder { color: var(--ink-soft); }
.btn {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--tan);
  color: white;
  box-shadow: 0 1px 0 var(--tan-dark) inset, 0 6px 14px rgba(216, 153, 104, 0.32);
}
.btn-primary:hover { background: var(--tan-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.signup-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 18px;
  min-height: 22px;
  font-size: 14px;
  font-weight: 500;
}
.form-status.success { color: #2f7d3a; }
.form-status.error { color: #b04141; }

/* Sections */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-eyebrow {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tan-dark);
  font-weight: 600;
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
  color: var(--ink);
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tan-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--tan-dark);
  font-size: 22px;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--tan-tint) 0%, var(--pink-soft) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  border: 1px solid var(--divider);
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cta-banner p {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--divider);
  padding: 40px 0;
  margin-top: 60px;
  background: var(--surface-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); text-decoration: none; }

/* Legal pages */
.legal-page { padding: 40px 0 80px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.legal-page .updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-page h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--ink);
}
.legal-page p, .legal-page li {
  font-size: 16px;
  color: #3d2c20;
  line-height: 1.7;
}
.legal-page ul { padding-left: 20px; }
.legal-page a { color: var(--tan-dark); }
.legal-page strong { color: var(--ink); }

/* Auth callback */
.callback-card {
  background: white;
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin: 80px auto;
  max-width: 480px;
}
.callback-card .mascot {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 20px;
}
.callback-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.callback-card p {
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-size: 15px;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--divider);
  border-top-color: var(--tan);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 32px 0 60px; }
  .section { padding: 56px 0; }
  .signup { flex-direction: column; padding: 12px; }
  .signup .btn { width: 100%; }
  .cta-banner { padding: 40px 24px; }
}

/* Honeypot field — kept hidden from users, visible to bots */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
