/* Moti — redesigned landing */
:root {
  --cream: #F5EFE6;
  --cream-2: #EFE7D9;
  --cream-3: #FAF5EC;
  --ink: #1A1814;
  --ink-soft: #3A342C;
  --ink-muted: #716858;
  --green: #1F5F4A;
  --green-soft: #D8E6DB;
  --green-mint: #CFE8D4;
  --terracotta: #B55449;
  --terracotta-soft: #EEDDD8;
  --lilac: #D9D3EF;
  --peach: #FBE2D0;
  --sky: #D8E3F3;
  --rule: rgba(26, 24, 20, 0.10);
  --rule-strong: rgba(26, 24, 20, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display {
  font-family: var(--font-display, 'General Sans', 'Inter', sans-serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.0;
  text-wrap: balance;
}

.hand {
  font-family: 'Caveat', cursive;
  font-weight: 500;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.serif {
  font-family: var(--font-serif, 'Newsreader', 'Times New Roman', serif);
  font-weight: 500;
}

/* Aurora background blob layers */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
}
.aurora .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
}

/* subtle paper grain overlay via SVG */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Reusable sections */
section { position: relative; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--cream-3);
}
.btn-primary:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: rgba(0,0,0,0.04); }

/* App store badge */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream-3);
  padding: 11px 18px 11px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: transform .15s ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore .mini { font-size: 10px; opacity: 0.8; letter-spacing: 0.04em; }
.appstore .big  { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-top: -2px; }

/* Sticker */
.sticker {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.6) inset;
}
.sticker.green { background: var(--green); color: #fff; border-color: transparent; }
.sticker.terra { background: var(--terracotta); color: #fff; border-color: transparent; }
.sticker.dark  { background: var(--ink); color: var(--cream-3); border-color: transparent; }

/* Phone frame */
.phone {
  width: 280px;
  aspect-ratio: 290 / 600;
  border-radius: 44px;
  background: #0b0b0c;
  padding: 9px;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.4),
    0 14px 30px -15px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--cream-3);
  position: relative;
}
.phone .notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #0b0b0c;
  border-radius: 999px;
  z-index: 5;
}

/* Chat / entry card base */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 28px -18px rgba(0,0,0,0.25), 0 1px 0 rgba(0,0,0,0.04);
}
.card.mint { background: #E6F1E8; }
.card.peach { background: #FBE7D7; }
.card.lilac { background: #E8E2F2; }
.card.cream { background: var(--cream-3); }

/* Section separators */
.hr-dot {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hr-dot::before, .hr-dot::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}

/* Focus + a11y */
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; }

/* Headline fluid sizes */
.h-hero   { font-size: clamp(42px, 6vw, 96px); }
.h-section{ font-size: clamp(40px, 6vw, 84px); }
.h-card   { font-size: clamp(22px, 2.4vw, 30px); }

/* wiggly pen SVG line animation helper */
@keyframes drawPen {
  from { stroke-dashoffset: 220; }
  to   { stroke-dashoffset: 0; }
}

/* floating rotations for stickers */
.rot-l6 { transform: rotate(-6deg); }
.rot-l3 { transform: rotate(-3deg); }
.rot-r3 { transform: rotate(3deg); }
.rot-r6 { transform: rotate(6deg); }

/* iOS keyboard skeleton */
.kbd-row { display: flex; gap: 4px; justify-content: center; }
.kbd-key {
  flex: 1;
  height: 32px;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  color: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.25), 0 1px 0 rgba(0,0,0,0.05);
  border: 1px solid var(--rule);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
  display: block;
}
.tweak-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  padding: 8px 12px;
  background: var(--cream-2);
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.tweak-opt.active {
  background: var(--ink);
  color: var(--cream-3);
  border-color: var(--ink);
}


/* ─────────────────────────────────────────
   RESPONSIVE OVERRIDES
   Desktop layout is untouched (>900px).
   ───────────────────────────────────────── */

@media (max-width: 900px) {

  /* Nav: hide text links */
  .nav-links { display: none !important; }

  /* Hero: stack columns */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    min-height: unset !important;
  }
  .hero-phones { height: 440px !important; }
  .hero-phones .phone-back  { left: 2% !important; }
  .hero-phones .phone-front { right: 2% !important; }
  .h-hero { font-size: clamp(42px, 10vw, 80px) !important; }

  /* Before/After panel */
  .ba-panel { padding: 36px 28px 52px !important; }

  /* 3-step cards → single column */
  .steps-grid { grid-template-columns: 1fr !important; }

  /* Ritual → stack */
  .ritual-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .ritual-cards { min-height: 300px !important; }

  /* Languages → stack title + grid */
  .lang-outer { grid-template-columns: 1fr !important; gap: 32px !important; }
  .lang-grid  { grid-template-columns: repeat(2, 1fr) !important; }

  /* Levels → single column */
  .levels-grid { grid-template-columns: 1fr !important; }

  /* Download — hide decorative marks */
  .dl-marks { display: none !important; }

}

@media (max-width: 600px) {

  .hero-phones { height: 360px !important; }
  .hero-phones .phone-back  { top: 40px !important; }

  .lang-grid { grid-template-columns: 1fr !important; }

  .ba-panel { padding: 28px 18px 40px !important; }

  .ritual-inner { padding: 40px 28px !important; }

  section { padding-top: 64px !important; padding-bottom: 48px !important; }

}
