/* Cringe Chat Analyzer — site styles. Brand green #23C667, warm off-white. */
:root {
  --brand: #23C667;
  --brand-dark: #1b9e52;
  --bg: #F2F1ED;
  --card: #ffffff;
  --ink: #0B0B0C;
  --ink-2: #6B7178;
  --hairline: #E3E2DD;
  --pink: #F0356E;
  --purple: #8A43E8;
  --radius: 22px;
  --maxw: 1080px;
  /* pastel feature tints (match the app cards) */
  --t-mint: #D6F3E2;
  --t-blush: #FBDDE6;
  --t-lavender: #EAE4FF;
  --t-peri: #E2E8FF;
  --t-peach: #FCE3D2;
  --t-butter: #FBEFC6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.grad {
  background: linear-gradient(90deg, var(--brand), var(--purple) 60%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242,241,237,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand-row { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-row img { width: 34px; height: 34px; border-radius: 9px; }
.brand-row .name { color: var(--brand-dark); }
.site-header nav { margin-left: auto; display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.site-header nav a { color: var(--ink-2); }
.site-header nav a:hover { color: var(--ink); text-decoration: none; }
.rainbow-line { height: 3px; background: linear-gradient(90deg,#3B5BFF,#9B43E8,#E8348C,#F0464A,#F5872E,#F4C53A); opacity: .85; }

/* Hero */
.hero { position: relative; padding: 70px 0 30px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; opacity: .5;
}
.hero::before { width: 520px; height: 520px; background: #9be7c0; top: -160px; left: -120px; }
.hero::after { width: 460px; height: 460px; background: #f7c9da; top: -120px; right: -120px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-dark); background: rgba(35,198,103,.12); padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.04; margin: 18px 0 14px; max-width: 100%; overflow-wrap: break-word; }
.hero .grad { white-space: nowrap; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 540px; }
.cta-row { margin-top: 26px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  font-weight: 700; padding: 15px 28px; border-radius: 999px; font-size: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.supported { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--hairline); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* Hero phones */
.hero-phones { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
.phone {
  background: #0c0c0d; border-radius: 40px; padding: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,.22); border: 1px solid rgba(0,0,0,.06);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.hero-phones .phone { position: absolute; width: 260px; }
.phone-front { transform: rotate(3deg) translateX(40px); z-index: 2; }
.phone-back { transform: rotate(-6deg) translateX(-70px) scale(.94); z-index: 1; opacity: .96; }

/* Showcase */
.showcase { padding: 56px 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.shot-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.shot-card .phone { width: 240px; }
.shot-card figcaption { margin-top: 18px; color: var(--ink-2); font-size: 15.5px; max-width: 260px; }
.shot-card figcaption strong { display: block; color: var(--ink); font-size: 19px; font-weight: 800; margin-bottom: 2px; }

/* Sections */
section { padding: 52px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
section .sub { color: var(--ink-2); margin-bottom: 28px; max-width: 640px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { border-radius: var(--radius); padding: 24px; border: 1px solid rgba(0,0,0,.05); transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.08); }
.feature .ic { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.feature h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.feature p { color: #3a3f45; font-size: 15.5px; }
.tint-mint { background: var(--t-mint); }
.tint-blush { background: var(--t-blush); }
.tint-lavender { background: var(--t-lavender); }
.tint-peri { background: var(--t-peri); }
.tint-peach { background: var(--t-peach); }
.tint-butter { background: var(--t-butter); }

.how .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.step .n { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 18px; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

.privacy-callout { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand), #16a34a); color: #fff; border-radius: 28px; padding: 48px 30px; text-align: center; box-shadow: 0 24px 60px rgba(35,198,103,.3); }
.privacy-callout h2 { color: #fff; }
.privacy-callout p { max-width: 640px; margin: 10px auto 0; opacity: 0.96; }
.privacy-callout a { color: #fff; text-decoration: underline; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 6px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-dark); font-size: 24px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 16px; font-size: 16px; }

/* Legal pages */
.legal { padding: 40px 0 70px; }
.legal .doc { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); }
.legal h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 900; margin-bottom: 6px; }
.legal .updated { color: var(--ink-2); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 30px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 800; margin: 18px 0 6px; }
.legal p, .legal li { color: #2a2d31; font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .back { display: inline-block; margin-bottom: 22px; font-weight: 700; }
.legal strong { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 34px 0; color: var(--ink-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer .copy { margin-left: auto; }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .supported { justify-content: center; }
  .hero-phones { height: 520px; margin-top: 20px; }
  .shots { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
}
@media (max-width: 560px) {
  .site-header nav { gap: 13px; font-size: 14px; }
  .site-header nav a[href="#how"] { display: none; }
  .hero h1 { font-size: clamp(34px, 11vw, 46px); }
  .hero-phones { height: 470px; }
  .hero-phones .phone { width: 220px; }
  .phone-back { transform: rotate(-6deg) translateX(-50px) scale(.92); }
  .phone-front { transform: rotate(3deg) translateX(30px); }
  .site-footer .copy { margin-left: 0; width: 100%; }
}
