/* ═══════════════════════════════════════════
   handledvip.com — Design System
   Aesthetic: warm editorial. Bon Appétit meets
   your most decisive friend. Not SaaS. Not AI.
   A service that has taste.
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* Palette — warm, not corporate */
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --ink: #1C1917;
  --ink-soft: #57534E;
  --ink-muted: #A8A29E;
  --warm: #D4A574;
  --warm-light: #FBF3EB;
  --warm-dark: #B8834A;
  --accent: #C2410C;
  --accent-soft: #FEF2EC;
  --green: #166534;
  --green-soft: #DCFCE7;
  --border: #E7E5E4;

  /* Type scale */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-w: 1120px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  font-size: var(--text-base);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* ── Typography ── */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-body {
  font-family: var(--font-body);
}

.t-muted {
  color: var(--ink-muted);
}

.t-soft {
  color: var(--ink-soft);
}

.t-accent {
  color: var(--accent);
}

.t-sm {
  font-size: var(--text-sm);
}

.t-xs {
  font-size: var(--text-xs);
}

.t-center {
  text-align: center;
}

.t-balance {
  text-wrap: balance;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--tight {
  padding: var(--space-3xl) 0;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ink);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
}

.nav__links a {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--ink);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__headline {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
}

.hero__headline em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

/* ── CTA Box ── */
.cta-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 420px;
}

.cta-box__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--warm-dark);
  margin-bottom: var(--space-xs);
}

.cta-box__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.cta-box__number a {
  color: var(--ink);
  text-decoration: none;
}

.cta-box__hint {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* A2P Consent Notice */
.consent-box {
  background: var(--green-soft);
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}

.consent-box__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--space-xs);
}

.consent-box p {
  font-size: var(--text-xs);
  color: var(--green);
  line-height: 1.7;
}

.legal-fine {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.legal-fine a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Phone Mockup ── */
.phone {
  width: 320px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 50px 100px -20px rgba(28, 25, 23, 0.15),
    0 30px 60px -30px rgba(28, 25, 23, 0.2);
}

.phone__notch {
  width: 120px;
  height: 28px;
  background: var(--ink);
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: relative;
  top: -2px;
  z-index: 2;
}

.phone__screen {
  background: #F5F5F4;
  border-radius: 32px;
  padding: 48px 16px 24px;
  min-height: 520px;
  position: relative;
}

.phone__header {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
}

/* Chat bubbles */
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 0.4s ease forwards;
}

.bubble--user {
  background: #007AFF;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}

.bubble--handled {
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bubble--handled strong {
  font-weight: 600;
}

.bubble:nth-child(1) {
  animation-delay: 0.3s;
}

.bubble:nth-child(2) {
  animation-delay: 0.8s;
}

.bubble:nth-child(3) {
  animation-delay: 1.5s;
}

.bubble:nth-child(4) {
  animation-delay: 2.2s;
}

.bubble:nth-child(5) {
  animation-delay: 3.0s;
}

.bubble--link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #007AFF;
  text-decoration: underline;
}

@keyframes bubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
}

.how__step {}

.how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-light);
  color: var(--warm-dark);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.how__step h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.how__step p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PERSONALITY SECTION — "Not another app"
   ═══════════════════════════════════════════ */
.personality__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.card {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}

.card--warm {
  background: var(--warm-light);
  border-color: transparent;
}

.card__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   EXAMPLE RECS — show the voice
   ═══════════════════════════════════════════ */
.examples__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.rec-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(28, 25, 23, 0.08);
}

.rec-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-dark);
  margin-bottom: var(--space-sm);
}

.rec-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.rec-card__price {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
}

.rec-card p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.65;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq__list {
  max-width: 680px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.faq__q {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__q::after {
  content: '+';
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--ink-muted);
  transition: transform 0.3s;
}

.faq__item.open .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.open .faq__a {
  max-height: 300px;
  padding-top: var(--space-md);
}

.faq__a p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   BOTTOM CTA
   ═══════════════════════════════════════════ */
.bottom-cta {
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4xl) var(--space-2xl);
  margin: 0 var(--space-xl) var(--space-3xl);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.bottom-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: #fff;
}

.bottom-cta__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--warm);
}

.bottom-cta__number a {
  color: var(--warm);
  text-decoration: none;
}

.bottom-cta__sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.bottom-cta__sub a {
  color: var(--warm);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.footer a {
  color: var(--ink-muted);
  margin-left: var(--space-lg);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* ═══════════════════════════════════════════
   LEGAL PAGES (Terms, Privacy)
   ═══════════════════════════════════════════ */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-5xl);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-xs);
}

.legal__date {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-3xl);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
}

.legal h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
  line-height: 1.75;
}

.legal ul,
.legal ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal li {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.legal strong {
  color: var(--ink);
}

/* Alert boxes for legal pages */
.alert {
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.alert--green {
  background: var(--green-soft);
  border: 1px solid #BBF7D0;
}

.alert--green p,
.alert--green li {
  color: var(--green);
}

.alert--red {
  background: #FEF2F2;
  border: 2px solid var(--accent);
}

.alert--red p {
  color: var(--accent);
  font-weight: 600;
}

.alert__title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

/* ═══════════════════════════════════════════
   SCREENSHOT FEATURE
   ═══════════════════════════════════════════ */
.screenshot-feature {
  background: var(--warm-light);
  border-top: 1px solid #EFE0CE;
  border-bottom: 1px solid #EFE0CE;
}

.screenshot-feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.screenshot-feature__copy {
  max-width: 480px;
}

.screenshot-feature__headline {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-xl);
}

.screenshot-feature__headline em {
  font-style: normal;
  color: var(--accent);
}

.screenshot-feature__body {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.screenshot-feature__sub {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.65;
}

.screenshot-feature__phone {
  display: flex;
  justify-content: center;
}

/* Image-attachment bubble (iMessage style) */
.bubble--image-attach,
.bubble.bubble--user.bubble--image-attach {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #D1D1D6 !important;
  color: var(--ink) !important;
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 130px;
  max-width: 160px;
  border-bottom-right-radius: 6px;
  margin-left: auto;
}

.bubble--image-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.bubble--image-label {
  font-size: 13px;
  font-weight: 500;
  color: #3A3A3C;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) var(--space-xl);
  }

  .hero__headline {
    font-size: var(--text-4xl);
  }

  .phone {
    width: 280px;
  }

  .phone__screen {
    min-height: 460px;
    padding: 40px 14px 20px;
  }

  .how__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .screenshot-feature__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .screenshot-feature__headline {
    font-size: var(--text-4xl);
  }

  .screenshot-feature__copy {
    max-width: 100%;
  }

  .personality__grid {
    grid-template-columns: 1fr;
  }

  .examples__grid {
    grid-template-columns: 1fr;
  }

  .bottom-cta {
    margin: 0 var(--space-md) var(--space-2xl);
    padding: var(--space-3xl) var(--space-lg);
  }

  .bottom-cta h2 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 1.25rem;
  }

  .hero__headline {
    font-size: var(--text-3xl);
  }

  .cta-box__number {
    font-size: var(--text-3xl);
  }

  .nav__links {
    gap: var(--space-md);
  }

  .footer {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer a {
    margin-left: var(--space-md);
  }
}