/* ============================================================
   Echoed — High-Fidelity Claymorphism
   Nunito (headings) + DM Sans (body). No JS. No trackers.
   ============================================================ */

:root {
  --canvas: #F4F1FA;
  --foreground: #332F3A;
  --muted: #635F69;
  --accent: #7C3AED;
  --accent-soft: #A78BFA;
  --accent-alt: #DB2777;
  --tertiary: #0EA5E9;
  --success: #10B981;
  --warning: #F59E0B;

  --font-heading: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-claySurface:
    30px 30px 60px #cdc6d9,
    -30px -30px 60px #ffffff,
    inset 10px 10px 20px rgba(139, 92, 246, 0.05),
    inset -10px -10px 20px rgba(255, 255, 255, 0.8);

  --shadow-clayCard:
    16px 16px 32px rgba(160, 150, 180, 0.2),
    -10px -10px 24px rgba(255, 255, 255, 0.9),
    inset 6px 6px 12px rgba(139, 92, 246, 0.03),
    inset -6px -6px 12px rgba(255, 255, 255, 1);

  --shadow-clayCard-hover:
    22px 22px 42px rgba(160, 150, 180, 0.28),
    -12px -12px 28px rgba(255, 255, 255, 0.95),
    inset 6px 6px 12px rgba(139, 92, 246, 0.03),
    inset -6px -6px 12px rgba(255, 255, 255, 1);

  --shadow-clayButton:
    12px 12px 24px rgba(139, 92, 246, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.4),
    inset 4px 4px 8px rgba(255, 255, 255, 0.4),
    inset -4px -4px 8px rgba(0, 0, 0, 0.1);

  --shadow-clayPressed:
    inset 10px 10px 20px #d9d4e3,
    inset -10px -10px 20px #ffffff;

  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 92px; /* clears the floating nav */
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
}

p { margin: 0; }
p + p { margin-top: 18px; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
}

/* ---------- Background blobs (buoyancy) ---------- */

.blob-field {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  height: 60vh;
  width: 60vh;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 1;
}

.blob-1 {
  top: -18%;
  left: -16%;
  background: var(--accent);
  opacity: 0.10;
  animation: clay-float-slow 12s ease-in-out infinite;
}

.blob-2 {
  top: -10%;
  right: -20%;
  background: var(--tertiary);
  opacity: 0.10;
  animation: clay-float 8s ease-in-out infinite;
  animation-delay: 2s;
}

.blob-3 {
  bottom: -22%;
  left: 10%;
  background: var(--accent-alt);
  opacity: 0.10;
  animation: clay-float-delayed 10s ease-in-out infinite;
  animation-delay: 4s;
}

.blob-4 {
  bottom: -16%;
  right: -18%;
  background: var(--success);
  opacity: 0.08;
  animation: clay-breathe 6s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes clay-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes clay-float-delayed {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-2deg); }
}
@keyframes clay-float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}
@keyframes clay-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .orb-float, .card-progress, .app-store-btn, .clay-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  height: 64px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-clayCard);
}

@media (min-width: 640px) {
  .site-nav {
    top: 24px;
    left: 32px;
    right: 32px;
    height: 80px;
    border-radius: 40px;
  }
}

.site-nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .site-nav .wrap { padding: 0 32px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  object-fit: cover;
}

@media (min-width: 640px) {
  .brand-logo { width: 56px; height: 56px; }
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .wordmark { font-size: 24px; }
}

.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: var(--shadow-clayButton);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (min-width: 640px) {
  .clay-btn { font-size: 15px; padding: 12px 26px; }
}

.clay-btn:hover { transform: translateY(-2px); }
.clay-btn:active { transform: scale(0.92); box-shadow: var(--shadow-clayPressed); }

/* ---------- Sections rhythm ---------- */

section { padding: 72px 0; position: relative; }

@media (min-width: 1024px) {
  section { padding: 100px 0; }
}

.eyebrow-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.section-title {
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.section-narrow {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

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

.section-body p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}

/* ---------- App Store button (hero + closing only) ---------- */

.app-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  width: 100%;
  padding: 14px 28px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: var(--shadow-clayButton);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (min-width: 640px) {
  .app-store-btn { width: auto; }
}

.app-store-btn:hover { transform: translateY(-4px); }
.app-store-btn:active { transform: scale(0.92); box-shadow: var(--shadow-clayPressed); }

.cta-subtext {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.cta-stack { display: flex; flex-direction: column; align-items: center; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 120px 0 88px;
  position: relative;
}

@media (min-width: 1024px) {
  .hero { padding: 160px 0 110px; min-height: 78vh; display: flex; align-items: center; }
  .hero .wrap { width: 100%; }
}

.hero-orb {
  display: none;
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

@media (min-width: 1024px) {
  .hero-orb { display: block; }
  .hero-orb-1 {
    width: 120px; height: 120px; top: 6%; left: 8%;
    background: linear-gradient(135deg, #C4B5FD, var(--accent));
    box-shadow: var(--shadow-clayButton);
    animation: clay-float-slow 12s ease-in-out infinite;
  }
  .hero-orb-2 {
    width: 80px; height: 80px; top: 18%; right: 12%;
    background: linear-gradient(135deg, #F9A8D4, var(--accent-alt));
    box-shadow: var(--shadow-clayButton);
    animation: clay-float 8s ease-in-out infinite;
    animation-delay: 2s;
  }
  .hero-orb-3 {
    width: 64px; height: 64px; bottom: 10%; left: 16%;
    background: linear-gradient(135deg, #7DD3FC, var(--tertiary));
    box-shadow: var(--shadow-clayButton);
    animation: clay-float-delayed 10s ease-in-out infinite;
    animation-delay: 4s;
  }
  .hero-orb-4 {
    width: 130px; height: 130px; top: 4%; right: 32%;
    animation: clay-float 11s ease-in-out infinite;
    animation-delay: 1s;
    opacity: 0.9;
  }
}

.hero h1 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(38px, 8vw, 96px);
  max-width: 960px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, var(--foreground) 20%, var(--accent) 60%, var(--accent-alt) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subhead {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

@media (min-width: 640px) {
  .hero .subhead { font-size: 20px; }
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
  }
}

.hero-copy { width: 100%; }

@media (min-width: 1024px) {
  .hero-copy { flex: 1 1 560px; max-width: 640px; }
  .hero-copy h1,
  .hero-copy .subhead { margin-left: 0; margin-right: 0; }
  .hero-copy .cta-stack { align-items: flex-start; }
  .hero-copy .cta-subtext { text-align: left; }
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-art { flex: 0 0 auto; width: 420px; height: 565px; max-width: none; margin: 0; }
}

.hero-art-a,
.hero-art-b {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
  filter: drop-shadow(0 20px 30px rgba(51, 47, 58, 0.22));
}
.hero-art-b { margin-bottom: 0; }

@media (min-width: 1024px) {
  .hero-art-a,
  .hero-art-b { position: absolute; margin: 0; }
  .hero-art-a { top: 0; left: 0; transform: rotate(-8deg); z-index: 1; }
  .hero-art-b { top: 64px; left: 176px; transform: rotate(8deg); z-index: 2; }
}

/* ============================================================
   Image placeholders — swap for real <img>/<picture> assets.
   Every slot carries the same four pieces of information a real
   component's props would: name, description, aspect, variant.
   The dashed box + label IS the "component"; drop a real <img>
   inside a .img-slot (or replace it outright) and move the
   aria-label text onto the <img>'s alt attribute.
   ============================================================ */

.img-slot {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  background: #EFEDF3;
  border: 1px dashed #C9C4D4;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.img-slot-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C86A0;
}

.img-slot-desc {
  font-size: 13px;
  color: #635F69;
  line-height: 1.5;
  max-width: 384px;
}

.img-slot-dims {
  font-size: 10px;
  color: #A8A2B8;
  margin-top: auto;
  padding-top: 10px;
}

/* bare + soft shadow, used where a device frame would be wrong
   (cropped UI details rather than a full screen) */
.img-slot--shadow { box-shadow: var(--shadow-clayCard); }

/* the one photograph: no card chrome at all, deeper background
   so it reads as deliberately different from the UI slots */
.img-slot--photo {
  background: #DDD8E5;
  border: none;
  border-radius: 0;
}

/* framed: wraps a .img-slot in an iPhone-ish outline */
.img-device {
  background: linear-gradient(160deg, #2C2735, #19161F);
  border-radius: 44px;
  box-shadow: var(--shadow-clayCard);
  padding: 14px 10px;
  position: relative;
}

.img-device::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.img-device img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 24px;
}

/* ---------- Compounding section (visual centerpiece) ---------- */

.compounding-outer { padding: 88px 0; }

@media (min-width: 1024px) {
  .compounding-outer { padding: 140px 0; }
}

.clay-surface {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-claySurface);
  padding: 48px 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .clay-surface { padding: 72px 48px; border-radius: 56px; }
}
@media (min-width: 1024px) {
  .clay-surface { padding: 96px 72px; border-radius: 60px; }
}

.clay-surface .section-title { margin-bottom: 56px; }

.progression {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin: 0 auto 64px;
}

@media (min-width: 1024px) {
  .progression {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 28px;
    padding: 0 20px;
  }
}

.progression-line {
  display: none;
}

@media (min-width: 1024px) {
  .progression-line {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 0;
  }
}

.card-progress {
  position: relative;
  z-index: 1;
  border-radius: 32px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.card-progress .stamp {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.card-progress p {
  color: var(--foreground);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
}

.card-progress .img-device { width: 100%; margin-bottom: 24px; }

/* card 1: small, low elevation, translucent */
.card-1 {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  opacity: 0.85;
  box-shadow: var(--shadow-clayCard);
}
.card-1 .stamp { background: linear-gradient(135deg, #C4B5FD, var(--accent)); }

/* card 2: medium */
.card-2 {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  box-shadow: var(--shadow-clayCard-hover);
}
.card-2 .stamp { background: linear-gradient(135deg, #7DD3FC, var(--tertiary)); }

/* card 3: large, opaque, highest elevation */
.card-3 {
  width: 100%;
  max-width: 460px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-claySurface);
}
.card-3 .stamp { background: linear-gradient(135deg, #F9A8D4, var(--accent-alt)); }

@media (min-width: 1024px) {
  .card-1 { transform: translateY(48px) scale(0.94); }
  .card-2 { transform: translateY(8px) scale(1.0); }
  .card-3 { transform: translateY(-24px) scale(1.05); }
}

.compounding-closer {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--foreground);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Problem (split layout) ---------- */

.problem-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.problem-text .section-title { margin-bottom: 20px; }
.problem-text { text-align: center; }

@media (min-width: 900px) {
  .problem-text { text-align: left; }
}

.problem-visual {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: var(--shadow-clayCard);
  padding: 32px;
}

.problem-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Photo (full-bleed) ---------- */

.photo-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 48px;
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .photo-bleed { margin-top: 64px; margin-bottom: 64px; }
}

.photo-bleed img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ---------- Privacy (the one concave section) ---------- */

.privacy-panel {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 48px;
  box-shadow: var(--shadow-clayPressed);
  padding: 48px 28px;
  text-align: center;
}

@media (min-width: 640px) {
  .privacy-panel { padding: 64px 56px; }
}

/* ---------- Closing ---------- */

.closing { text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-radius: 48px 48px 0 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-clayCard);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-left { align-items: flex-start; }
}

.footer-left .wordmark { font-size: 18px; }
.footer-left span.copyright { font-size: 13px; color: var(--muted); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

/* ---------- Legal pages ---------- */

.legal-main { padding: 56px 0 96px; }

.legal-panel {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-clayCard);
  padding: 40px 24px;
}

@media (min-width: 640px) {
  .legal-panel { padding: 56px; }
}

.legal-panel h1 {
  font-weight: 900;
  font-size: 32px;
  color: var(--foreground);
  margin-bottom: 6px;
}

.legal-panel .updated {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

.legal-panel h2 {
  font-weight: 800;
  font-size: 20px;
  color: var(--muted);
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-panel p {
  font-size: 16px;
  color: var(--foreground);
  line-height: 1.7;
}

.legal-panel .placeholder {
  color: var(--muted);
  font-style: italic;
}

.legal-panel h3 {
  font-weight: 700;
  font-size: 16px;
  color: var(--foreground);
  margin-top: 22px;
  margin-bottom: 6px;
}

.legal-panel p + h3 { margin-top: 26px; }

.legal-panel hr {
  border: none;
  border-top: 1px solid rgba(51, 47, 58, 0.1);
  margin: 32px 0;
}

.legal-panel ul {
  margin: 12px 0;
  padding-left: 22px;
}

.legal-panel li {
  font-size: 16px;
  color: var(--foreground);
  line-height: 1.7;
  margin-bottom: 4px;
}

.legal-panel .table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}

.legal-panel table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-panel th,
.legal-panel td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid rgba(51, 47, 58, 0.1);
  color: var(--foreground);
  line-height: 1.5;
}

.legal-panel th {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.legal-panel a { color: var(--accent); }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.16,.8,.3,1), transform 0.8s cubic-bezier(.16,.8,.3,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-2.reveal { --reveal-delay: 0.12s; }
.card-3.reveal { --reveal-delay: 0.24s; }

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