/* ============================================================
   Memorie — Organic Warmth Redesign
   Aesthetic: Kinfolk editorial meets modern AI product
   Palette: Warm cream · Midnight plum · Clay rose · Sage
   Fonts: Fraunces (serif display) + Instrument Sans (body)
   ============================================================ */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Core palette */
  --cream:         #F5F0E8;
  --cream-dark:    #EDE5D6;
  --cream-deeper:  #E2D8C5;
  --plum:          #2D1B40;
  --plum-mid:      #3E2656;
  --plum-light:    #5C3D7A;
  --plum-muted:    #7A5C99;
  --violet:        #8B5CF6;
  --violet-soft:   #A78BFA;
  --clay:          #C17B5A;
  --clay-light:    #D4956E;
  --sage:          #7A9E8E;
  --warm-white:    #FDFAF4;
  --ink:           #1A0F2E;
  --ink-muted:     #4A3B5E;
  --ink-quiet:     #7A6B8A;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;

  /* Sizes */
  --nav-h: 72px;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(26,15,46,0.08), 0 1px 2px rgba(26,15,46,0.06);
  --shadow-md:  0 4px 20px rgba(26,15,46,0.10), 0 2px 8px rgba(26,15,46,0.08);
  --shadow-lg:  0 20px 60px rgba(26,15,46,0.14), 0 8px 24px rgba(26,15,46,0.10);
  --shadow-xl:  0 40px 100px rgba(26,15,46,0.18), 0 16px 40px rgba(26,15,46,0.12);
}

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

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--plum);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,232,0.90);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(45,27,64,0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--plum);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--plum);
  background: rgba(45,27,64,0.06);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--warm-white);
  background: var(--plum);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--plum-mid);
  transform: translateY(-1px);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--plum);
  transition: background 0.2s;
}
.mobile-menu-btn:hover { background: rgba(45,27,64,0.06); }
.mobile-menu-btn svg { width: 20px; height: 20px; }
.mobile-menu-btn .close-icon { display: none; }
.mobile-menu-btn.active .menu-icon { display: none; }
.mobile-menu-btn.active .close-icon { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(45,27,64,0.07);
  background: var(--cream);
}
.mobile-nav.active { display: block; }
.mobile-nav .container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}
.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(45,27,64,0.06);
}
.mobile-nav-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--warm-white);
  background: var(--plum);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  text-align: center;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
}

/* Organic background blobs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(139,92,246,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 65%, rgba(193,123,90,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 85%, rgba(122,158,142,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Cursor glow */
#hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
#hero-glow.active { opacity: 1; }

.hero .container { position: relative; z-index: 1; width: 100%; }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

/* ── Hero Content ──────────────────────────────────────────── */
.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-muted);
  background: rgba(45,27,64,0.07);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(45,27,64,0.12);
  margin-bottom: 1.75rem;
  animation: fadeSlideUp 0.6s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--clay);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--plum);
  margin-bottom: 0.5rem;
  animation: fadeSlideUp 0.6s 0.08s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--violet);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.6s 0.14s ease both;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-quiet);
  margin-bottom: 2rem;
  max-width: 480px;
  animation: fadeSlideUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.6s 0.26s ease both;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-full);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--plum);
  color: var(--warm-white);
  box-shadow: 0 4px 20px rgba(45,27,64,0.25);
}
.btn-primary:hover {
  background: var(--plum-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,27,64,0.30);
}
.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  background: transparent;
  color: var(--plum);
  border: 1.5px solid rgba(45,27,64,0.2);
}
.btn-secondary:hover {
  background: rgba(45,27,64,0.05);
  border-color: rgba(45,27,64,0.35);
  transform: translateY(-1px);
}

/* ── Hero Demo (Phone area) ────────────────────────────────── */
.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  animation: fadeSlideUp 0.6s 0.1s ease both;
}

/* Organic ring decorations */
.deco-circles {
  position: absolute;
  inset: -80px;
  pointer-events: none;
  z-index: 0;
}
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.10);
}
.deco-circle-outer {
  inset: 0;
  animation: deco-rotate 30s linear infinite;
  border-style: dashed;
  border-color: rgba(139,92,246,0.07);
}
.deco-circle-middle {
  inset: 40px;
  animation: deco-rotate 22s linear infinite reverse;
  border-color: rgba(193,123,90,0.09);
}
.deco-circle-inner {
  inset: 90px;
  border-color: rgba(122,158,142,0.11);
  animation: deco-rotate 40s linear infinite;
  border-style: dotted;
}

@keyframes deco-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Phone Mockup ──────────────────────────────────────────── */
.phone-mockup {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 50px 100px rgba(140,90,80,0.28)) drop-shadow(0 16px 40px rgba(140,90,80,0.18));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.phone-mockup:hover {
  transform: translateY(-8px) rotate(0.5deg);
}

.phone-frame {
  width: 340px;
  height: 680px;
  /* iPhone rose gold — warm copper-pink aluminum */
  background: linear-gradient(160deg, #E8C4B8 0%, #DBAfa0 30%, #D4A090 60%, #C99484 100%);
  border-radius: 56px;
  padding: 6px;
  position: relative;
  /* Outer rim — polished rose gold metallic edge */
  border: 1.5px solid rgba(255,255,255,0.32);
  box-shadow:
    /* Edge rim specular */
    inset 0 2px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(120,60,50,0.12),
    inset 2px 0 0 rgba(255,255,255,0.15),
    inset -2px 0 0 rgba(120,60,50,0.08),
    /* Thick side edge depth */
    4px 0 0 #C99484,
    -4px 0 0 #C99484,
    0 4px 0 #BA8575,
    0 -1px 0 #DBAFA0;
}

/* Right side — power button */
.phone-frame::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 130px;
  width: 5px;
  height: 80px;
  background: linear-gradient(to right, #C99484, #DBAFA0 40%, #C99484);
  border-radius: 0 4px 4px 0;
  box-shadow: 1px 0 0 rgba(255,255,255,0.20);
}
/* Left side — volume up + volume down + silent switch */
.phone-frame::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 100px;
  width: 5px;
  height: 38px;
  background: linear-gradient(to left, #C99484, #DBAFA0 40%, #C99484);
  border-radius: 4px 0 0 4px;
  z-index: -1;
  /* Silent switch above, vol down below */
  box-shadow:
    0 -50px 0 7px #C99484,
    -1px -50px 0 7px rgba(255,255,255,0.16),
    0 58px 0 5px #C99484,
    -1px 58px 0 5px rgba(255,255,255,0.16),
    -1px 0 0 rgba(255,255,255,0.16);
}


.phone-screen {
  width: 100%;
  height: 100%;
  background: #F2F2F7;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Subtle screen glare */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(160deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 20;
  border-radius: 50px 50px 0 0;
}

/* iOS status bar */
.phone-status-bar {
  height: 44px;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.phone-status-bar::before {
  content: '9:41';
  font-size: 15px;
  font-weight: 600;
  font-family: -apple-system, sans-serif;
  letter-spacing: -0.03em;
  color: #000;
}
.phone-status-bar::after {
  content: '';
  display: block;
  width: 68px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 14' fill='%23000'%3E%3Crect x='0' y='5' width='3' height='8' rx='1' opacity='0.3'/%3E%3Crect x='5' y='3' width='3' height='10' rx='1' opacity='0.5'/%3E%3Crect x='10' y='1' width='3' height='12' rx='1'/%3E%3Cpath d='M21 4.5 C23 2.5 27 2.5 29 4.5' stroke='%23000' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M22.5 6.5 C23.5 5.5 26.5 5.5 27.5 6.5' stroke='%23000' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='25' cy='9.5' r='1.2' fill='%23000'/%3E%3Crect x='37' y='2' width='18' height='10' rx='3' stroke='%23000' stroke-width='1.2' fill='none'/%3E%3Crect x='38.5' y='3.5' width='11' height='7' rx='1.5' fill='%23000'/%3E%3Crect x='55' y='5' width='2' height='4' rx='1' fill='%23000' opacity='0.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* iOS 26 iMessage header — Liquid Glass */
.phone-header {
  background: rgba(248,248,252,0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  padding: 0 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  flex-shrink: 0;
  min-height: 44px;
}

.phone-header-back,
.phone-header-video {
  background: none;
  border: none;
  padding: 4px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007AFF;
  flex-shrink: 0;
}
.phone-header-back svg { width: 22px; height: 22px; }
.phone-header-video svg { width: 20px; height: 20px; }

.phone-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.phone-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--plum) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: white;
  font-weight: 700;
  font-family: -apple-system, sans-serif;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(45,27,64,0.30);
}

.phone-header-name {
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, sans-serif;
  color: #000;
  display: block;
  letter-spacing: -0.01em;
}

.phone-header-status {
  font-size: 10px;
  color: #8E8E93;
  font-family: -apple-system, sans-serif;
}

/* Messages area */
.phone-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scroll-behavior: smooth;
  background: #F2F2F7;
}
.phone-messages::-webkit-scrollbar { display: none; }
.phone-messages { -ms-overflow-style: none; scrollbar-width: none; }

/* iOS 26 message bubbles — Liquid Glass */
.msg {
  max-width: 78%;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.45;
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  animation: msgAppear 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
  white-space: pre-line;
}

.msg.user {
  align-self: flex-end;
  /* iOS 26 blue bubble with subtle glass sheen */
  background: linear-gradient(160deg, #1A84FF 0%, #0070F0 100%);
  color: #fff;
  border-radius: 20px 20px 5px 20px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.20) inset,
    0 2px 8px rgba(0,100,255,0.30);
}

.msg.system {
  align-self: flex-start;
  /* iOS 26 received bubble — frosted glass */
  background: rgba(229,229,234,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #000;
  border-radius: 20px 20px 20px 5px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.60) inset,
    0 1px 3px rgba(0,0,0,0.08);
}

.msg-time {
  align-self: center;
  font-size: 11px;
  color: #8E8E93;
  font-family: -apple-system, sans-serif;
  font-weight: 500;
  margin: 6px 0 2px;
  animation: msgAppear 0.25s ease both;
}

@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Typing indicator */
.phone-typing {
  padding: 4px 10px 6px;
  height: 36px;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
  background: #F2F2F7;
}
.phone-typing.visible { opacity: 1; }

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(229,229,234,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 13px;
  border-radius: 20px 20px 20px 5px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.60) inset;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  background: #8E8E93;
  border-radius: 50%;
  animation: iosTyping 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes iosTyping {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-4px); opacity: 1; }
}

/* iOS 26 Input bar */
.phone-input-bar {
  background: rgba(248,248,252,0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 0.5px solid rgba(0,0,0,0.08);
  padding: 8px 10px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.phone-input-plus,
.phone-input-mic {
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007AFF;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.phone-input-plus svg, .phone-input-mic svg { width: 20px; height: 20px; }
.phone-input-field {
  flex: 1;
  height: 34px;
  background: rgba(255,255,255,0.85);
  border-radius: 17px;
  border: 0.5px solid rgba(0,0,0,0.12);
  font-size: 13px;
  color: #C7C7CC;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-family: -apple-system, sans-serif;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}
.phone-input-field::after { content: 'iMessage'; }

/* Fade for persona switching */
.phone-messages.fade-out {
  opacity: 0;
  transition: opacity 0.3s;
}

/* ── Persona Slider ─────────────────────────────────────────── */
.persona-slider {
  position: relative;
  z-index: 1;
  width: 340px;
}

.persona-track {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--cream-dark);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid rgba(45,27,64,0.10);
}

#persona-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: var(--plum);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.34,1.56,0.64,1), transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(45,27,64,0.25);
}

.persona-option {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--radius-full);
  transition: color 0.25s;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-align: center;
}
.persona-option.active { color: var(--warm-white); }
.persona-option:hover:not(.active) { color: var(--plum); }

/* ── Section Shared ─────────────────────────────────────────── */
section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.875rem;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--plum);
  max-width: 680px;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--ink-quiet);
  max-width: 560px;
  line-height: 1.65;
}

/* ── The Problem ────────────────────────────────────────────── */
.the-problem {
  background: var(--plum);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.the-problem::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.the-problem .section-label { color: var(--clay-light); }
.the-problem .section-title { color: var(--cream); max-width: 100%; }

.problem-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.problem-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(245,240,232,0.8);
  font-style: italic;
}

.problem-punchline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--clay-light);
  margin-top: 1.5rem;
  letter-spacing: -0.03em;
}

.problem-detail, .problem-result {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245,240,232,0.7);
  margin-bottom: 1.25rem;
}

.problem-contrast {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--violet-soft);
  margin-top: 1.5rem;
}

/* ── The Solution ───────────────────────────────────────────── */
.the-solution {
  background: var(--cream);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.solution-item {
  background: var(--warm-white);
  border: 1px solid rgba(45,27,64,0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.solution-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139,92,246,0.2);
}

.solution-icon-well {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(193,123,90,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.solution-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.solution-item p {
  font-size: 0.9375rem;
  color: var(--ink-quiet);
  line-height: 1.6;
}

/* ── How It Works ───────────────────────────────────────────── */
.how-it-works {
  background: var(--cream-dark);
}

.how-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.example-group {
  background: var(--warm-white);
  border: 1px solid rgba(45,27,64,0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.example-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.25rem;
}
.example-hint {
  font-weight: 400;
  font-style: italic;
  color: var(--ink-quiet);
  font-size: 0.9rem;
}

.example-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.example-msg {
  align-self: flex-end;
  background: rgba(0,122,255,0.1);
  border-radius: 12px 12px 3px 12px;
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  color: var(--plum-mid);
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 1px 4px rgba(45,27,64,0.08);
}

.example-messages-memorie .example-msg {
  align-self: flex-start;
  background: rgba(193,123,90,0.08);
  border-radius: 12px 12px 12px 3px;
  color: var(--ink-muted);
  font-weight: 400;
}

.example-conversation {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.example-exchange {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.example-question {
  align-self: flex-end;
  background: rgba(0,122,255,0.1);
  color: var(--plum-mid);
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px 12px 3px 12px;
  max-width: 90%;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(45,27,64,0.08);
}

.example-answer {
  align-self: flex-start;
  background: rgba(45,27,64,0.05);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px 12px 12px 3px;
  max-width: 90%;
  box-shadow: 0 1px 4px rgba(45,27,64,0.08);
}

/* ── Who It's For ───────────────────────────────────────────── */
.who-its-for {
  background: var(--cream);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.use-case-card {
  background: var(--warm-white);
  border: 1px solid rgba(45,27,64,0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.use-case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139,92,246,0.18);
}

.use-case-icon-well {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(193,123,90,0.12) 0%, rgba(139,92,246,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.use-case-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.use-case-description {
  font-size: 0.9rem;
  color: var(--ink-quiet);
  line-height: 1.6;
}

/* ── Why SMS ────────────────────────────────────────────────── */
.why-sms {
  background: var(--cream-dark);
}

.why-sms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--warm-white);
  border: 1px solid rgba(45,27,64,0.07);
  border-radius: var(--radius-lg);
  align-items: flex-start;
  transition: transform 0.25s, box-shadow 0.25s;
}
.why-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.why-icon-well {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(122,158,142,0.15) 0%, rgba(139,92,246,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.why-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.375rem;
}
.why-content p {
  font-size: 0.9rem;
  color: var(--ink-quiet);
  line-height: 1.6;
}

.memorie-philosophy {
  background: var(--plum);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.memorie-philosophy::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 8rem;
  color: rgba(139,92,246,0.18);
  line-height: 1;
  pointer-events: none;
}
.memorie-philosophy blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(245,240,232,0.75);
  line-height: 1.7;
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.memorie-philosophy blockquote strong {
  color: var(--cream);
  font-weight: 600;
  font-style: normal;
}

/* ── Vision ─────────────────────────────────────────────────── */
.the-vision {
  background: var(--cream);
}

.vision-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 3rem;
}

.vision-phase {
  background: var(--warm-white);
  border: 1px solid rgba(45,27,64,0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.vision-phase:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.phase-marker {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--plum);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.vision-phase:nth-child(2) .phase-marker { background: var(--plum-light); }
.vision-phase:nth-child(3) .phase-marker { background: var(--violet); }

.vision-phase h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.625rem;
}
.vision-phase p {
  font-size: 0.9375rem;
  color: var(--ink-quiet);
  line-height: 1.65;
}

.vision-endstate {
  background: linear-gradient(135deg, rgba(45,27,64,0.04) 0%, rgba(139,92,246,0.06) 100%);
  border: 1px solid rgba(45,27,64,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  text-align: center;
}
.vision-endstate p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}
.vision-endstate em {
  color: var(--plum);
  font-style: normal;
  font-weight: 600;
}

/* ── Stats (hidden - no numbers yet) ───────────────────────── */
.stats-section { display: none; }

/* ── Waitlist ────────────────────────────────────────────────── */
.waitlist {
  background: var(--plum);
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(193,123,90,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(139,92,246,0.15) 0%, transparent 55%);
  pointer-events: none;
}

.waitlist-card {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.waitlist .section-label { color: var(--clay-light); }
.waitlist .section-title { color: var(--cream); margin: 0 auto 0.75rem; }
.waitlist .section-subtitle { color: rgba(245,240,232,0.65); margin: 0 auto 2.5rem; text-wrap: balance; }

.waitlist-form .form-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  height: 56px;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: rgba(245,240,232,0.95);
  border: 1.5px solid rgba(245,240,232,0.3);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-form input[type="email"]::placeholder { color: var(--ink-quiet); }
.waitlist-form input[type="email"]:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.submit-btn {
  height: 56px;
  padding: 0 1.75rem;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
}
.submit-btn:hover {
  background: var(--warm-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.submit-btn:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}

.btn-loading {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(45,27,64,0.3);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loading { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  font-size: 0.8125rem;
  color: rgba(245,240,232,0.45);
}

.form-error {
  font-size: 0.875rem;
  color: #FFAB91;
  min-height: 1.25rem;
  margin-top: 0.5rem;
}
.form-error:empty { display: none; }

.waitlist-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
.waitlist-success.show {
  display: flex;
  animation: fadeSlideUp 0.5s ease both;
}

.success-icon-well {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245,240,232,0.12);
  border: 1.5px solid rgba(245,240,232,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cream);
}

.waitlist-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
}
.waitlist-success p {
  color: rgba(245,240,232,0.65);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 2.5rem 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(245,240,232,0.4);
  font-family: var(--font-display);
}
.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(245,240,232,0.3);
  margin-top: 0.25rem;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .how-examples { grid-template-columns: 1fr; }
  .vision-timeline { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    order: 1;
  }
  .hero-demo { order: 2; }
  .hero-actions { justify-content: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .problem-content { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .solution-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .why-sms-grid { grid-template-columns: 1fr; }
  .waitlist-form .form-group { flex-direction: column; }
  .waitlist-form input[type="email"] { height: auto; padding: 1.1rem 1.25rem; font-size: 1rem; }
  .submit-btn { width: 100%; height: auto; padding: 1.1rem 1.75rem; justify-content: center; }
  .phone-frame { width: 280px; height: 560px; border-radius: 48px; }
  .phone-screen { border-radius: 43px; }
  .phone-screen::after { border-radius: 43px 43px 0 0; }
  .persona-slider { width: 280px; }
}

/* ── Focus visible ──────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
