/* ==========================================================================
   Yarnplayer marketing site styles
   Indigo-purple palette taken from the app icon.
   ========================================================================== */

:root {
  --bg-gradient-start: #221750;
  --bg-gradient-mid:   #432c8c;
  --text-color:  #ffffff;
  --text-muted:  rgba(255,255,255,0.58);
  --card-bg:        rgba(255,255,255,0.055);
  --card-bg-hover:  rgba(255,255,255,0.10);
  --card-border:    rgba(255,255,255,0.08);
  --accent:       #b9a5ff;   /* lavender, the rope highlight */
  --accent-soft:  rgba(185,165,255,0.13);
  --accent-line:  rgba(185,165,255,0.22);
  --accent-warm:  #f1d066;   /* warm gold, "new / coming soon" */

  --page-width: 1100px;
  --radius:    18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg-gradient-start); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-start) 100%);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Nav ---- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.nav-brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
}

.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-color); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 52px;
  padding: 52px 0 60px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.9px;
  margin-bottom: 20px;
}
.hero-text h1 em { font-style: normal; color: var(--accent); }

.hero-text p {
  font-size: 17.5px;
  line-height: 1.62;
  opacity: 0.72;
  max-width: 540px;
  margin-bottom: 26px;
}

.hero-icon-wrap { flex-shrink: 0; }
.hero-icon {
  width: 190px;
  height: auto;
  border-radius: 42px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.42);
}

/* Coming-soon pill (app not yet on the App Store) */
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #1c1147;
  font-weight: 650;
  font-size: 14.5px;
  text-decoration: none;
  cursor: default;
}
.coming-soon svg { width: 17px; height: 17px; }

.cta-note { font-size: 13px; color: var(--text-muted); }

/* ---- Fact strip ---- */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.fact-cell { background: rgba(255,255,255,0.04); padding: 18px 20px; }

.fact-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--accent);
  margin-bottom: 6px;
}

.fact-value { font-size: 14px; font-weight: 500; color: var(--text-color); line-height: 1.4; }
.fact-value .fact-sub { display: block; font-size: 12px; font-weight: 400; opacity: 0.6; margin-top: 3px; }

/* ---- Section heads ---- */
.section-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--accent);
  margin: 8px 0 6px;
}
.section-sub {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  max-width: 640px;
}
.section-sub.tight { margin-bottom: 16px; }

/* ==========================================================================
   Bento: the differentiators lead
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, auto);
  grid-auto-flow: row dense;
  gap: 14px;
  margin-bottom: 44px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.bento-card:hover { background: var(--card-bg-hover); }

.bento-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.bento-icon svg { width: 21px; height: 21px; }

.bento-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 11px;
}
.bento-card h2 { font-size: 20px; font-weight: 650; line-height: 1.25; margin-bottom: 10px; }
.bento-card p { font-size: 14.5px; line-height: 1.6; opacity: 0.66; }
.bento-card p + p { margin-top: 10px; }

/* Sizes (work with auto-flow: dense) */
.b-xl {
  grid-column: 1 / -1;            /* full-width lead banner */
  flex-direction: row;
  align-items: center;
  gap: 30px;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.b-xl .bento-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 0; flex-shrink: 0; background: rgba(185,165,255,0.18); }
.b-xl .bento-icon svg { width: 28px; height: 28px; }
.b-xl-body { min-width: 0; }
.b-xl h2 { font-size: 26px; line-height: 1.18; letter-spacing: -0.5px; margin-bottom: 8px; }
.b-xl p  { font-size: 15.5px; max-width: 760px; opacity: 0.78; }

/* Subtle warm highlight for the standout cards (Ad Analysis, transcripts) */
.bento-card.featured {
  border-color: rgba(241,208,102,0.30);
  background: linear-gradient(180deg, rgba(241,208,102,0.07), rgba(241,208,102,0.02));
}
.bento-card.featured:hover {
  border-color: rgba(241,208,102,0.42);
  background: linear-gradient(180deg, rgba(241,208,102,0.11), rgba(241,208,102,0.04));
}
.bento-card.featured .bento-icon {
  background: rgba(241,208,102,0.16);
  color: var(--accent-warm);
}

/* Inline "Pro" tag */
.pro-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--accent-warm);
  border: 1px solid rgba(241,208,102,0.4);
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ==========================================================================
   Comprehensive feature groups ("Everything else it does")
   ========================================================================== */
.groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 44px;
}

.group {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.group h3 {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.group ul { list-style: none; }
.group li {
  font-size: 13.5px;
  line-height: 1.55;
  opacity: 0.72;
  padding-left: 16px;
  position: relative;
  margin-bottom: 12px;
}
.group li:last-child { margin-bottom: 0; }
.group li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.group li strong { opacity: 1; color: #fff; font-weight: 600; display: block; margin-bottom: 1px; }

/* ---- Two-up callout cards (privacy / pricing) ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 44px; }

.callout {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.callout .kicker {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.callout h2 { font-size: 21px; font-weight: 650; margin-bottom: 12px; line-height: 1.25; }
.callout p { font-size: 14.5px; line-height: 1.62; opacity: 0.7; }
.callout p + p { margin-top: 10px; }
.callout ul.feature-list { list-style: none; margin-top: 14px; }
.callout ul.feature-list li {
  font-size: 13.5px; line-height: 1.55; opacity: 0.72;
  padding-left: 17px; position: relative; margin-bottom: 8px;
}
.callout ul.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.callout ul.feature-list li strong { color: #fff; opacity: 1; font-weight: 600; }

/* ---- Content pages (Privacy / Terms / Contact) ---- */
.content { max-width: 720px; text-align: left; padding: 28px 0 70px; }
.content h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; }
.content .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }
.content h2 { font-size: 20px; font-weight: 650; margin-top: 32px; margin-bottom: 12px; }
.content p { font-size: 15.5px; line-height: 1.7; opacity: 0.82; margin-bottom: 14px; }
.content ul { list-style: none; margin-bottom: 14px; }
.content ul li {
  font-size: 15.5px; line-height: 1.7; opacity: 0.82;
  padding-left: 20px; position: relative; margin-bottom: 8px;
}
.content ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.content a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
.content a:hover { text-decoration: underline; }
.content strong { color: #fff; }

.contact-photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 38px 20px;
  background: rgba(0,0,0,0.22);
  font-size: 0.85rem;
  margin-top: 28px;
}
.footer-links {
  display: flex; justify-content: center; align-items: center;
  gap: 9px; flex-wrap: wrap; margin-bottom: 16px;
}
.footer-links a {
  color: var(--text-color); text-decoration: none;
  font-size: 13px; font-weight: 500; opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
}
.footer-links a:hover { opacity: 1; border-color: rgba(255,255,255,0.35); }
.footer-copy { font-size: 12px; opacity: 0.32; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-xl   { grid-column: 1 / -1; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 32px 0 40px; text-align: center; }
  .hero-text { order: 2; }
  .hero-text h1 { font-size: 34px; }
  .hero-text p { max-width: none; }
  .cta-row { justify-content: center; }
  .hero-icon-wrap { order: 1; }
  .hero-icon { width: 124px; border-radius: 28px; }
  .fact-strip { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .b-xl { grid-column: 1 / -1; grid-row: auto; }
  .b-xl { flex-direction: column; align-items: flex-start; gap: 0; }
  .b-xl .bento-icon { margin-bottom: 16px; }
  .b-xl h2 { font-size: 23px; }
  .groups { grid-template-columns: 1fr; }
  .nav-brand { font-size: 0.92rem; gap: 8px; }
  .nav-brand img { width: 27px; height: 27px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 0.8rem; }
  .content h1 { font-size: 32px; }
}
