/* ============================================================
   ARDraw — Landing Page Styles
   Layered on top of Tailwind via CDN
   ============================================================ */

:root {
  --bg-cream:        #FAF6EC;
  --bg-cream-soft:   #FFFBF2;
  --surface-white:   #FFFFFF;
  --ink-900:         #0E1A33;
  --ink-700:         #2A3654;
  --ink-600:         #5C6B85;
  --ink-400:         #9AA3B5;
  --ink-200:         #E5E8EF;
  --brand-500:       #FF2E7E;
  --brand-600:       #E91E6E;
  --brand-100:       #FFE3EE;
  --accent-violet:   #A78BFA;
  --accent-amber:    #FFC857;
  --success:         #22C55E;

  --shadow-sm:   0 4px 12px -4px rgba(14, 26, 51, .06);
  --shadow-md:   0 8px 24px -8px rgba(14, 26, 51, .10);
  --shadow-lg:   0 20px 48px -16px rgba(14, 26, 51, .14);
  --shadow-pink: 0 12px 32px -10px rgba(255, 46, 126, .35);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-cream);
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink-900);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.95rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-ghost:hover { background: var(--surface-white); border-color: var(--ink-400); }
.btn-dark {
  background: var(--ink-900);
  color: #fff;
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* ---- Hero gradient blob ---- */
.hero-blob {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(255, 46, 126, .18), transparent 60%),
    radial-gradient(45% 45% at 20% 80%, rgba(167, 139, 250, .18), transparent 60%),
    radial-gradient(55% 40% at 50% 0%,  rgba(255, 200, 87, .15), transparent 60%);
}

/* ---- Phone Mockup (notch-less, screenshots already include Dynamic Island) ---- */
.phone {
  position: relative;
  border-radius: 44px;
  background: #0E1A33;
  padding: 8px;
  box-shadow:
    0 30px 60px -20px rgba(14, 26, 51, .35),
    0 0 0 2px rgba(14, 26, 51, .04);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

/* Hero phone arrangement — flex with negative margins for overlap */
.phone-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 0;
}
.phone-stack .phone {
  width: 200px;
  flex-shrink: 0;
}
.phone-stack .phone-1 {
  transform: rotate(-9deg) translateY(28px);
  margin-right: -60px;
  z-index: 1;
}
.phone-stack .phone-2 {
  transform: rotate(0deg) translateY(-12px);
  z-index: 3;
}
.phone-stack .phone-3 {
  transform: rotate(9deg) translateY(28px);
  margin-left: -60px;
  z-index: 2;
}

@media (max-width: 640px) {
  .phone-stack .phone { width: 160px; }
  .phone-stack .phone-1 { margin-right: -50px; }
  .phone-stack .phone-3 { margin-left: -50px; }
}

/* ---- Section ---- */
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.85rem); font-weight: 800; }
.hero-title    { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; }

/* ---- Cards ---- */
.card {
  background: var(--surface-white);
  border: 1px solid var(--ink-200);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8dde7; }

.icon-tile {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: var(--brand-100);
  color: var(--brand-600);
}

/* ---- Pricing ---- */
.price-card { position: relative; padding: 2rem 1.75rem; }
.price-card.popular {
  background: linear-gradient(180deg, #ffffff 0%, #FFE3EE 100%);
  border: 2px solid var(--brand-500);
  transform: scale(1.04);
  box-shadow: var(--shadow-pink);
}
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink-900);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 6px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
}
.price-badge.save {
  background: var(--success);
  color: #fff;
}
.price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.price-period { color: var(--ink-600); font-weight: 500; }

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--ink-200);
  background: var(--surface-white);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: var(--ink-900);
}
.faq-icon { transition: transform .25s ease; color: var(--brand-500); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 24px 24px;
  color: var(--ink-600);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ---- Animations ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .btn, .card { transition: none; }
}

/* ---- Footer ---- */
.footer {
  background: var(--ink-900);
  color: #cbd0dc;
}
.footer a { color: #cbd0dc; }
.footer a:hover { color: #fff; }

/* ---- Doc pages (privacy / terms / support) ---- */
.doc-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.doc-content h1 { font-size: 2.4rem; margin-bottom: .5rem; }
.doc-content h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.doc-content p, .doc-content li { color: var(--ink-700); line-height: 1.75; }
.doc-content ul { list-style: disc; padding-left: 1.4rem; margin: .5rem 0 1rem; }
.doc-content a { color: var(--brand-600); text-decoration: underline; }
.doc-content .meta { color: var(--ink-400); font-size: .9rem; margin-bottom: 2rem; }

/* ---- Marquee categories ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface-white);
  border: 1px solid var(--ink-200);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
}
