/* =========================================================
   balladly — static landing page
   Visual identity: saturated magenta + warm yellow + ink black
   Voice: casual, mobile-native, four-word cadence
   See docs/brand/brand-voice-guide.md (canonical)
   ========================================================= */

:root {
  --magenta: #E91E5C;
  --magenta-deep: #B81348;
  --yellow: #FFD43B;
  --yellow-warm: #FFB800;
  --ink: #0A0F1F;
  --ink-soft: #141A2C;
  --paper: #FFF8E7;
  --paper-warm: #FFF0CC;
  --line: rgba(10, 15, 31, 0.10);
  --muted: rgba(10, 15, 31, 0.62);

  --font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

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

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 12px; top: 12px;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; border-radius: 6px; z-index: 1000;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 231, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.nav-links { display: flex; gap: 28px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--magenta);
  box-shadow: 0 8px 24px -8px rgba(233, 30, 92, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-nav {
  padding: 10px 16px;
  font-size: 14px;
  background: var(--magenta);
  color: var(--paper);
}
.btn-nav:hover { background: var(--ink); }

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) var(--pad-x) clamp(48px, 8vw, 96px);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-blob-a {
  width: 480px; height: 480px;
  background: var(--magenta);
  top: -120px; left: -120px;
}
.hero-blob-b {
  width: 380px; height: 380px;
  background: var(--yellow);
  bottom: -100px; right: -80px;
  opacity: 0.5;
}
.hero-blob-c {
  width: 280px; height: 280px;
  background: var(--magenta-deep);
  top: 40%; right: 8%;
  opacity: 0.25;
}
.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  color: var(--ink);
}
.ink-magenta { color: var(--magenta); }
.ink-yellow { color: var(--yellow-warm); }

.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-disclosure {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* === PHONE MOCK === */
.hero-phone {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(10, 15, 31, 0.45),
    0 0 0 8px rgba(10, 15, 31, 0.04),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotate(-1deg) translateY(-4px); }

.phone-notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f5f5f7 0%, #e9e9ec 100%);
  border-radius: 32px;
  padding: 56px 14px 18px;
  overflow: hidden;
}

.imessage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 14px;
}
.imsg-header {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}
.imsg-header span { font-weight: 400; }

.imsg-bubble {
  padding: 9px 14px;
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.3;
  word-break: break-word;
}
.imsg-in {
  background: #E5E5EA;
  color: #000;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.imsg-out {
  background: #007AFF;
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.imsg-audio {
  background: var(--magenta);
  color: white;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-width: 200px;
}
.imsg-play {
  width: 22px; height: 22px;
  background: white;
  color: var(--magenta);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.imsg-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 22px;
}
.imsg-wave i {
  display: inline-block;
  width: 2px;
  background: white;
  border-radius: 2px;
  animation: wave 1.1s ease-in-out infinite;
}
.imsg-wave i:nth-child(1)  { height: 30%; animation-delay: 0.00s; }
.imsg-wave i:nth-child(2)  { height: 55%; animation-delay: 0.06s; }
.imsg-wave i:nth-child(3)  { height: 80%; animation-delay: 0.12s; }
.imsg-wave i:nth-child(4)  { height: 45%; animation-delay: 0.18s; }
.imsg-wave i:nth-child(5)  { height: 70%; animation-delay: 0.24s; }
.imsg-wave i:nth-child(6)  { height: 90%; animation-delay: 0.30s; }
.imsg-wave i:nth-child(7)  { height: 60%; animation-delay: 0.36s; }
.imsg-wave i:nth-child(8)  { height: 35%; animation-delay: 0.42s; }
.imsg-wave i:nth-child(9)  { height: 80%; animation-delay: 0.48s; }
.imsg-wave i:nth-child(10) { height: 50%; animation-delay: 0.54s; }
.imsg-wave i:nth-child(11) { height: 70%; animation-delay: 0.60s; }
.imsg-wave i:nth-child(12) { height: 30%; animation-delay: 0.66s; }
.imsg-wave i:nth-child(13) { height: 60%; animation-delay: 0.72s; }
.imsg-wave i:nth-child(14) { height: 85%; animation-delay: 0.78s; }
.imsg-wave i:nth-child(15) { height: 45%; animation-delay: 0.84s; }
.imsg-wave i:nth-child(16) { height: 70%; animation-delay: 0.90s; }
.imsg-wave i:nth-child(17) { height: 35%; animation-delay: 0.96s; }
.imsg-wave i:nth-child(18) { height: 55%; animation-delay: 1.02s; }
.imsg-time { font-size: 11px; opacity: 0.85; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}

/* === BAND === */
.band {
  background: var(--ink);
  color: var(--paper);
  padding: 24px var(--pad-x);
}
.band-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: baseline;
}
.band-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.band-item strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  color: var(--yellow);
  line-height: 1;
}
.band-item span {
  font-size: 13px;
  color: rgba(255, 248, 231, 0.7);
}

/* === SECTION === */
.section {
  padding: clamp(72px, 10vw, 128px) var(--pad-x);
}
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-cta {
  background: var(--magenta);
  color: white;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 16px;
}
.section-label-light { color: var(--yellow); }

.section-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: var(--ink);
}
.section-headline-light { color: var(--paper); }

.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  margin: 0 0 56px;
  max-width: 580px;
}

/* === STEPS === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.step {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ink);
}
.step:nth-child(1) { background: var(--paper-warm); }
.step:nth-child(2) { background: #FFE6CC; }
.step:nth-child(3) { background: #FFD9E8; }
.step:nth-child(4) { background: var(--yellow); }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--magenta);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

/* === VIBES === */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.vibe {
  border-left: 4px solid var(--yellow);
  padding: 8px 0 8px 24px;
}
.vibe-trigger {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  margin: 0 0 8px;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.vibe-line {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 248, 231, 0.78);
}

/* === PRICING === */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
  max-width: 980px;
}
.price-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.price-card-feature {
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.02);
}
.price-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.price-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: var(--magenta);
}
.price-card-feature .price-tag { color: var(--yellow); }
.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}
.price-detail {
  font-size: 14px;
  margin: 0 0 12px;
  font-weight: 500;
  opacity: 0.75;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.price-list li {
  padding-left: 18px;
  position: relative;
}
.price-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 700;
}
.price-card-feature .price-list li::before { color: var(--yellow); }

.price-foot {
  font-size: 12px;
  color: var(--muted);
  margin: 32px 0 0;
  max-width: 580px;
}

/* === CTA / WAITLIST === */
.cta-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: white;
}
.cta-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px;
}
.cta-foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn-download:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 32px -10px rgba(10, 15, 31, 0.4);
}
.btn-download:active { transform: translateY(1px); }
.btn-download svg { flex-shrink: 0; }

/* === FOOTER === */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 32px var(--pad-x);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.wordmark-foot { color: var(--paper); }
.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: rgba(255, 248, 231, 0.65);
}
.footer-meta a:hover { color: var(--yellow); }

/* === RESPONSIVE === */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(32px, 6vw, 64px);
    padding-bottom: clamp(32px, 6vw, 64px);
  }
  .hero-phone { order: -1; }
  .phone { transform: rotate(-2deg) scale(0.78); transform-origin: center top; }
  .nav-links { display: none; }
  .band-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .vibe-grid { grid-template-columns: 1fr; gap: 24px; }
  .price-grid { grid-template-columns: 1fr; gap: 14px; }
  .price-card-feature { transform: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 48px; }
  .nav-inner { padding: 12px var(--pad-x); }
  .btn-nav { padding: 8px 14px; font-size: 13px; }
  .btn-download { padding: 14px 22px; font-size: 15px; width: 100%; justify-content: center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .imsg-wave i { animation: none !important; height: 50% !important; }
  .phone { transform: none !important; }
  .step:hover { transform: none; }
  * { transition: none !important; }
}
