/* ─────────────────────────────────────────────────────────
   arcoco — public site
   ───────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f4fcfb;
  --surface: #ffffff;
  --surface-tint: #e9f8f6;

  /* Text */
  --fg: #15292c;
  --fg-muted: #5f7375;
  --fg-faint: #8aa1a3;

  /* Borders */
  --border: #cbe6e3;
  --border-soft: #e3f1ef;

  /* Brand — real arcoco app palette */
  --brand-teal: #2DB4C8;         /* primary accent (app brandTeal) */
  --brand-teal-soft: #35C0B5;    /* action gradient mid */
  --brand-seafoam: #3FC8AF;      /* action gradient end */
  --brand-mint: #9AE0AA;         /* wordmark accent (drift highlight) */
  --brand-green: #66BB6A;        /* wordmark stop 1 */
  --brand-teal-dark: #26A69A;    /* wordmark stop 3 */

  --accent: #2DB4C8;
  --accent-strong: #1f8d9d;

  /* Action / "Play" button gradient — lava-lamp palette */
  --action-gradient: linear-gradient(135deg, #2DB4C8 0%, #35C0B5 50%, #3FC8AF 100%);
  --action-glow: rgba(53, 192, 181, 0.35);

  /* Wordmark gradient — green → mint → teal */
  --wordmark-gradient: linear-gradient(105deg, #66BB6A 0%, #9AE0AA 50%, #26A69A 100%);

  --brand-gradient: var(--action-gradient);
  --brand-glow: var(--action-glow);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 42, 42, 0.04), 0 1px 3px rgba(15, 42, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 42, 42, 0.06), 0 2px 4px rgba(15, 42, 42, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 118, 110, 0.30), 0 12px 32px -16px rgba(15, 42, 42, 0.18);
  --shadow-phone: 0 36px 80px -24px rgba(11, 95, 89, 0.35), 0 18px 48px -16px rgba(15, 42, 42, 0.18);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061615;
    --bg-soft: #0a211f;
    --surface: #0d2926;
    --surface-tint: #0f3430;

    --fg: #eafff9;
    --fg-muted: #9bc7c1;
    --fg-faint: #6f9b96;

    --border: rgba(94, 234, 212, 0.18);
    --border-soft: rgba(94, 234, 212, 0.10);

    --accent: #5eead4;
    --accent-strong: #2dd4bf;
    --accent-bright: #67e8f9;
    --accent-cyan: #22d3ee;
    --brand-gradient: linear-gradient(135deg, #2dd4bf 0%, #22d3ee 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(45, 212, 191, 0.85) 0%, rgba(34, 211, 238, 0.85) 100%);
    --brand-glow: rgba(45, 212, 191, 0.30);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px -20px rgba(45, 212, 191, 0.22), 0 12px 32px -16px rgba(0, 0, 0, 0.5);
    --shadow-phone: 0 40px 100px -28px rgba(45, 212, 191, 0.30), 0 20px 48px -16px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  /* Very subtle ambient tint at the top of the page */
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--brand-glow), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(56, 189, 248, 0.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

::selection { background: var(--accent-bright); color: #fff; }

/* ───────── Nav ───────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

@supports not (backdrop-filter: blur(1px)) {
  .nav { background: var(--bg); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--fg); }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--fg-muted);
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ───────── Main wrappers ───────── */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 64px;
}
main.wide { max-width: 760px; }
main.full { max-width: 1080px; padding: 0 28px 80px; }

/* ───────── Hero ───────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0 80px;
  position: relative;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 32px 0 56px;
    text-align: center;
  }
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent-strong);
  background: var(--surface-tint);
  border: 1px solid var(--border-soft);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
  opacity: 0;
  animation: rise 700ms 80ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 10px var(--brand-glow);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.035em;
  line-height: 1.04;
  opacity: 0;
  animation: rise 700ms 180ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.12rem;
  color: var(--fg-muted);
  max-width: 30em;
  margin: 0 0 28px;
  line-height: 1.6;
  opacity: 0;
  animation: rise 700ms 280ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@media (max-width: 880px) {
  .hero .lead { margin-left: auto; margin-right: auto; }
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  opacity: 0;
  animation: rise 700ms 380ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@media (max-width: 880px) {
  .hero-cta { justify-content: center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(15, 118, 110, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(15, 118, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero-meta {
  margin-top: 32px;
  font-size: 0.86rem;
  color: var(--fg-faint);
  opacity: 0;
  animation: rise 700ms 500ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* ───────── Hero visual (iPhone mockup + floating chips) ───────── */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 580px;
  opacity: 0;
  animation: rise 900ms 220ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(closest-side, var(--brand-glow), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(56, 189, 248, 0.18), transparent 75%);
  filter: blur(20px);
  z-index: 0;
  animation: pulse 9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* iPhone frame — pure CSS, no images */
.iphone {
  position: relative;
  width: 280px;
  height: 568px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a2f33 0%, #0e1112 60%, #1a1d20 100%);
  padding: 8px;
  box-shadow:
    var(--shadow-phone),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 1;
}

.iphone::before {
  /* dynamic-island */
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}

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

/* In-phone app UI — homescreen vibe */
.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f2a2a;
  letter-spacing: -0.01em;
}
.app-status .icons {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #0f2a2a;
}
.app-status .icons span {
  display: inline-block;
  width: 14px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
}
.app-status .icons .battery {
  width: 22px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: transparent;
  position: relative;
}
.app-status .icons .battery::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  width: 70%;
  background: currentColor;
  border-radius: 1px;
}

.app-header {
  padding: 36px 22px 12px;
}
.app-header .greet {
  font-size: 0.78rem;
  color: #5f7371;
  margin: 0 0 4px;
  font-weight: 500;
}
.app-header .title {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f2a2a;
  margin: 0;
}

.session-card {
  margin: 14px 18px 0;
  border-radius: 22px;
  padding: 20px 20px 18px;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 12px 28px -10px rgba(15, 118, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.session-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.35), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.session-card .session-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 8px;
}
.session-card .session-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.session-card .session-meta {
  font-size: 0.82rem;
  opacity: 0.86;
  margin: 0 0 16px;
}
.session-card .start-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #0b5f59;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.recent {
  padding: 22px 22px 0;
}
.recent .recent-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f7371;
  margin: 0 0 10px;
}

.word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef6f4;
}
.word-row:last-child { border-bottom: none; }
.word-row .w {
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f2a2a;
  letter-spacing: -0.01em;
}
.word-row .pos {
  font-size: 0.74rem;
  color: #5f7371;
  margin-left: 4px;
  font-weight: 500;
}
.word-row .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfffb;
  color: #0b5f59;
}
.word-row .badge.gold { background: #fff5dc; color: #8a6300; }

.app-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 16px 22px;
  border-top: 1px solid #eef6f4;
}
.app-tabbar .tab {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #cfe0dc;
}
.app-tabbar .tab.active { background: var(--brand-gradient); }

/* Floating word chips */
.word-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  box-shadow: var(--shadow-md);
  z-index: 2;
  will-change: transform;
}
.word-chip .check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}
.word-chip.muted { color: var(--fg-muted); font-weight: 500; }
.word-chip.muted .check {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--fg-faint);
}

.word-chip.c1 { top: 10%; left: -4%; animation: drift1 12s ease-in-out infinite; }
.word-chip.c2 { top: 28%; right: -8%; animation: drift2 14s ease-in-out infinite; }
.word-chip.c3 { bottom: 22%; left: -10%; animation: drift3 13s ease-in-out infinite; }
.word-chip.c4 { bottom: 6%; right: -4%; animation: drift4 11s ease-in-out infinite; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50%      { transform: translate(6px, -10px) rotate(-1deg); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) rotate(2deg); }
  50%      { transform: translate(-8px, 8px) rotate(3deg); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) rotate(-1deg); }
  50%      { transform: translate(10px, -8px) rotate(0deg); }
}
@keyframes drift4 {
  0%, 100% { transform: translate(0, 0) rotate(1deg); }
  50%      { transform: translate(-6px, -12px) rotate(2deg); }
}

@media (max-width: 880px) {
  .hero-visual { min-height: 560px; }
  .word-chip.c1 { left: 2%; }
  .word-chip.c2 { right: 2%; }
  .word-chip.c3 { left: 0%; }
  .word-chip.c4 { right: 2%; }
}

/* ───────── Features row ───────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 64px;
}

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.feature .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-tint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.feature h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.feature p {
  font-size: 0.93rem;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.55;
}

/* ───────── Info cards row (Privacy / Support) ───────── */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 24px;
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

.card-link {
  display: block;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  color: var(--fg);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);

  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.cards .card-link:nth-child(1) { animation-delay: 1.8s; }
.cards .card-link:nth-child(2) { animation-delay: 1.9s; }

.card-link:hover {
  color: var(--fg);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.card-link h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.card-link p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  margin: 0;
}

.card-link .arrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.card-link:hover .arrow { gap: 10px; }

/* ───────── Content pages (privacy / support) ───────── */

.page-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.1;
}

.page-header h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-header .subtitle {
  color: var(--fg-muted);
  margin: 0;
  font-size: 1.05rem;
}

.page-header .meta {
  color: var(--fg-faint);
  font-size: 0.88rem;
  margin: 10px 0 0;
}

h2 {
  font-size: 1.32rem;
  margin: 36px 0 10px;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg);
}

h3 {
  font-size: 1.02rem;
  margin: 22px 0 6px;
  font-weight: 600;
}

p { margin: 0 0 14px; }

ul { padding-left: 1.4rem; }
li { margin-bottom: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0 28px;
  box-shadow: var(--shadow-sm);
}

.card h2 { margin-top: 0; }

.email {
  display: inline-block;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq { margin: 8px 0 24px; }
.faq dt {
  font-weight: 600;
  margin-top: 22px;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.faq dd {
  margin: 6px 0 0;
  color: var(--fg-muted);
}
.faq dd a { color: var(--accent); }

/* ───────── Footer ───────── */

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 28px 56px;
  border-top: 1px solid var(--border-soft);
  text-align: center;

  opacity: 0;
  animation: rise 0.8s 2.05s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

footer .footer-links {
  margin-bottom: 14px;
  font-size: 0.95rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

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

footer .footer-meta {
  font-size: 0.84rem;
  color: var(--fg-faint);
  margin: 0;
  line-height: 1.7;
}

/* ───────── Entrance keyframes ───────── */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────
   Brand moments — mirrors the arcoco app home screen
   - .brand-wordmark      breathing + drifting gradient text
   - .brand-tagline       segmented "Articulation & Communication Coach"
                          with accent highlights pulsing on Ar/Co/Co
   - .action-button       lava-lamp gradient pill (matches in-app Play button)
   ───────────────────────────────────────────────────────── */

.brand-wordmark {
  font-family: ui-rounded, "SF Pro Rounded", var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(3.6rem, 11vw, 7rem);
  line-height: 1;
  display: inline-block;

  background: linear-gradient(105deg,
    #66BB6A 0%,
    #9AE0AA 50%,
    #26A69A 100%);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  opacity: 0;
  animation:
    wordmarkRise 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    wordmarkDrift 5s 1.3s ease-in-out infinite,
    wordmarkBreathe 3.6s 1.3s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(154, 224, 170, 0.0));
}

@keyframes wordmarkRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
    filter: blur(8px) drop-shadow(0 4px 14px rgba(38, 166, 154, 0.10));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) drop-shadow(0 4px 14px rgba(38, 166, 154, 0.10));
  }
}

@keyframes wordmarkDrift {
  0%   { background-position:   0%  50%; }
  25%  { background-position:  50% 100%; }
  50%  { background-position: 100%  50%; }
  75%  { background-position:  50%   0%; }
  100% { background-position:   0%  50%; }
}

@keyframes wordmarkBreathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 14px rgba(38, 166, 154, 0.10));
  }
  50% {
    transform: scale(1.025);
    filter: drop-shadow(0 8px 24px rgba(38, 166, 154, 0.30));
  }
}

.brand-tagline {
  font-family: ui-rounded, "SF Pro Rounded", var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  letter-spacing: 0.005em;
  color: var(--fg);
  margin: 14px 0 0;
  line-height: 1.4;
  display: inline-block;
  position: relative;

  /* The whole line fades + slides in on first paint */
  opacity: 0;
  transform: translateY(6px);
  animation: taglineRise 0.9s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

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

.brand-tagline .seg {
  font-weight: 400;
  color: var(--fg);
}
.brand-tagline .seg-amp {
  font-weight: 500;
}
.brand-tagline .seg-accent {
  font-weight: 800;
  color: var(--brand-teal-dark);
  display: inline-block;
  transform-origin: 50% 60%;
  animation: accentPulse 7s ease-in-out infinite;
}
.brand-tagline .seg-accent.s1 { animation-delay: 1.4s; }
.brand-tagline .seg-accent.s2 { animation-delay: 1.6s; }
.brand-tagline .seg-accent.s3 { animation-delay: 1.8s; }

@keyframes accentPulse {
  0%, 80%, 100% { transform: scale(1); color: var(--brand-teal-dark); }
  6%            { transform: scale(1.14); color: var(--brand-teal); }
  14%           { transform: scale(1); color: var(--brand-teal-dark); }
}

/* "Play"-style lava-lamp pill button */
.action-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, #2DB4C8 0%, #35C0B5 50%, #3FC8AF 100%);
  background-size: 220% 220%;
  box-shadow:
    0 10px 28px -8px rgba(53, 192, 181, 0.55),
    0 4px 12px -4px rgba(45, 180, 200, 0.40),
    inset 0 0 0 0.9px rgba(255, 255, 255, 0.22);
  overflow: hidden;
  isolation: isolate;
  animation: actionUndulate 4s ease-in-out infinite;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.action-button:hover {
  color: #fff;
  transform: translateY(-1px);
}
.action-button:active { transform: translateY(0) scale(0.97); }

.action-button::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(255,255,255,0.35), transparent 65%),
    radial-gradient(closest-side at 75% 70%, rgba(63, 200, 175, 0.55), transparent 70%),
    radial-gradient(closest-side at 50% 50%, rgba(53, 192, 181, 0.45), transparent 70%);
  z-index: -1;
  animation: actionLava 6s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes actionUndulate {
  0%, 100% { background-position:   0%  50%; }
  50%      { background-position: 100%  50%; }
}

@keyframes actionLava {
  0%, 100% { transform: translate(0%,   0%) scale(1); }
  33%      { transform: translate(-6%, -3%) scale(1.05); }
  66%      { transform: translate(5%,   2%) scale(0.97); }
}

/* ─────────────────────────────────────────────────────────
   Homepage — brand-moment hero + screenshot trio + features
   ───────────────────────────────────────────────────────── */

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 0;
  position: relative;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 -10% 30% -10%;
  background:
    radial-gradient(1000px 480px at 50% 25%, rgba(63, 200, 175, 0.20), transparent 65%),
    radial-gradient(800px 420px at 20% 70%, rgba(154, 224, 170, 0.13), transparent 70%),
    radial-gradient(800px 420px at 80% 70%, rgba(45, 180, 200, 0.13), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-teal-dark);
  background: var(--surface-tint);
  border: 1px solid var(--border-soft);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  margin-bottom: 28px;

  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.8s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.home-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--action-gradient);
  box-shadow: 0 0 10px var(--brand-glow);
}

.home-lead {
  margin-top: 36px;
  font-size: 1.12rem;
  color: var(--fg-muted);
  max-width: 36em;
  line-height: 1.6;

  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.home-lead strong {
  background: var(--wordmark-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Phone fan */
.home-phones {
  margin: 56px auto 80px;
  max-width: 1080px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  position: relative;
}
.home-phone {
  width: 220px;
  flex: 0 0 auto;
  border-radius: 32px;
  background: linear-gradient(160deg, #2a2f33 0%, #0e1112 60%, #1a1d20 100%);
  padding: 6px;
  box-shadow:
    0 24px 60px -20px rgba(11, 95, 89, 0.30),
    0 12px 32px -16px rgba(15, 42, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);

  opacity: 0;
  filter: blur(10px) saturate(0.7);
  animation: phoneMaterialize 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes phoneMaterialize {
  from {
    opacity: 0;
    filter: blur(10px) saturate(0.7);
  }
  to {
    opacity: 1;
    filter: blur(0) saturate(1);
  }
}
.home-phone img {
  display: block;
  width: 100%;
  height: 446px;
  object-fit: cover;
  object-position: top center;
  border-radius: 26px;
  background: #fff;
}
.home-phone.left  { transform: translateX(28px) rotate(-7deg) translateY(20px); z-index: 1; animation-delay: 1.15s; }
.home-phone.mid   {
  transform: translateY(-12px) scale(1.05); z-index: 2;
  box-shadow:
    0 32px 80px -24px rgba(11, 95, 89, 0.40),
    0 16px 36px -16px rgba(15, 42, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation-delay: 1s;
}
.home-phone.right { transform: translateX(-28px) rotate(7deg) translateY(20px); z-index: 1; animation-delay: 1.25s; }

.home-phone.left:hover  { transform: translateX(28px) rotate(-7deg) translateY(8px); }
.home-phone.mid:hover   { transform: translateY(-20px) scale(1.07); }
.home-phone.right:hover { transform: translateX(-28px) rotate(7deg) translateY(8px); }

@media (max-width: 880px) {
  /* Keep the fan layout on mobile, just scale it down so all 3 phones
     fit comfortably side-by-side on a narrow viewport. */
  .home-phones {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    margin: 32px auto 48px;
    padding: 0 8px;
  }
  .home-phone {
    width: clamp(90px, 28vw, 180px);
    padding: clamp(3px, 0.7vw, 5px);
    border-radius: clamp(16px, 4.5vw, 26px);
    box-shadow:
      0 14px 30px -12px rgba(11, 95, 89, 0.28),
      0 6px 16px -8px rgba(15, 42, 42, 0.16);
  }
  .home-phone img {
    height: auto;
    aspect-ratio: 380 / 824;
    border-radius: clamp(12px, 3.5vw, 22px);
  }
  .home-phone.left  { transform: translateX(clamp(8px, 2.2vw, 18px)) rotate(-7deg) translateY(10px); }
  .home-phone.mid   {
    transform: translateY(-6px) scale(1.05);
    box-shadow:
      0 18px 36px -12px rgba(11, 95, 89, 0.36),
      0 8px 18px -8px rgba(15, 42, 42, 0.20);
  }
  .home-phone.right { transform: translateX(calc(-1 * clamp(8px, 2.2vw, 18px))) rotate(7deg) translateY(10px); }

  /* Disable hover lift on touch — keeps the still layout */
  .home-phone:hover, .home-phone.left:hover, .home-phone.mid:hover, .home-phone.right:hover {
    transform: none;
  }
  .home-phone.left:hover  { transform: translateX(clamp(8px, 2.2vw, 18px)) rotate(-7deg) translateY(10px); }
  .home-phone.mid:hover   { transform: translateY(-6px) scale(1.05); }
  .home-phone.right:hover { transform: translateX(calc(-1 * clamp(8px, 2.2vw, 18px))) rotate(7deg) translateY(10px); }
}

/* Feature trio */
.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 64px;
}
@media (max-width: 720px) {
  .home-features { grid-template-columns: 1fr; }
}
.home-feature {
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);

  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.home-feature:nth-child(1) { animation-delay: 1.45s; }
.home-feature:nth-child(2) { animation-delay: 1.55s; }
.home-feature:nth-child(3) { animation-delay: 1.65s; }
.home-feature h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.home-feature h3 .accent {
  background: var(--wordmark-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-feature p {
  font-size: 0.93rem;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.55;
}

/* ───────── Reduced motion ───────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-copy > *,
  .hero-visual,
  .eyebrow,
  .hero h1,
  .hero .lead,
  .hero-cta,
  .hero-meta,
  .brand-tagline { opacity: 1 !important; transform: none !important; }
}
