/* Yapp marketing site — warm editorial-modern.
   Cream paper canvas, warm ink, indigo accent. Bricolage Grotesque display +
   Hanken Grotesk body. Chat-bubble motif throughout. */
:root {
  --paper: #F5F1E8;
  --paper-2: #EFE9DB;
  --card: #FFFFFF;
  --ink: #17181C;
  --ink-2: #51545E;
  --accent: #4F46E5;
  --accent-2: #3730A3;
  --gold: #FFB020;
  --line: rgba(23, 24, 28, 0.10);
  --shadow: 0 18px 50px -18px rgba(23, 24, 28, 0.28);
  --shadow-sm: 0 6px 20px -10px rgba(23, 24, 28, 0.25);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* atmosphere: indigo glow + fine grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(79, 70, 229, 0.16), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 176, 32, 0.10), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(23,24,28,.04); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }

/* ── header ── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--wrap); margin: 0 auto; padding: 16px 24px;
  backdrop-filter: blur(8px);
}
.site-head::before { content:""; position:absolute; inset:0; background:rgba(245,241,232,.72); border-bottom:1px solid var(--line); z-index:-1; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 24px; margin-left: 14px; }
.nav a { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.head-cta { margin-left: auto; display: flex; gap: 10px; }

/* ── layout ── */
main { display: block; }
.section { max-width: var(--wrap); margin: 0 auto; padding: 84px 24px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }

/* ── hero ── */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); background: rgba(255,255,255,.6); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(79,70,229,.18); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.035em; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 22px 0 28px; max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.micro { font-size: 13.5px; color: var(--ink-2); margin-top: 16px; }

/* hero art: phone + float cards */
.hero-art { position: relative; }
.phone {
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 16px;
  box-shadow: var(--shadow); max-width: 360px; margin: 0 auto; transform: rotate(1.4deg);
}
.phone-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.online { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.thread { display: flex; flex-direction: column; gap: 9px; padding: 14px 4px 6px; }
.b { font-size: 14px; line-height: 1.4; padding: 9px 13px; border-radius: 16px; max-width: 84%; }
.b.in { background: var(--paper-2); border-bottom-left-radius: 5px; align-self: flex-start; }
.b.out { background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; align-self: flex-end; }
.b.sys { background: rgba(79,70,229,.10); color: var(--accent-2); align-self: center; text-align: center; font-size: 13px; border-radius: 12px; }
.b .tick { opacity: .6; font-size: 11px; margin-left: 6px; }
.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.float-card b { color: var(--accent); }
.float-card.f1 { top: 6%; left: -6%; animation: bob 5s ease-in-out infinite; }
.float-card.f2 { bottom: 8%; right: -4%; animation: bob 6s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* ── trust strip ── */
.strip {
  max-width: var(--wrap); margin: 8px auto 0; padding: 26px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip div { display: flex; flex-direction: column; }
.strip b { font-family: var(--display); font-size: 30px; line-height: 1; }
.strip span { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* ── feature grid ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  border-bottom-left-radius: 6px; /* chat-bubble tail */
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; background: var(--paper-2); border-radius: 13px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

/* ── how it works ── */
.how { background: linear-gradient(180deg, transparent, rgba(255,255,255,.4)); border-radius: 32px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { position: relative; padding-top: 8px; }
.steps .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* ── pricing ── */
.price-card {
  background: var(--ink); color: var(--paper); border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow);
}
.price-main { padding: 40px; border-right: 1px solid rgba(255,255,255,.10); }
.plan-name { font-family: var(--display); font-weight: 700; letter-spacing: .02em; opacity: .8; }
.price { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; margin: 8px 0; }
.price .cur { font-size: 30px; vertical-align: super; opacity: .8; }
.price .per { font-family: var(--body); font-size: 17px; font-weight: 500; opacity: .7; margin-left: 4px; }
.plan-sub { opacity: .75; margin-bottom: 22px; font-size: 15px; }
.price-main .btn-solid { background: var(--accent); color: #fff; }
.price-main .micro { color: rgba(245,241,232,.6); }
.plan-list { list-style: none; padding: 40px; display: flex; flex-direction: column; gap: 13px; }
.plan-list li { position: relative; padding-left: 30px; font-size: 15.5px; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 800; }
.footnote { color: var(--ink-2); font-size: 13px; margin-top: 18px; max-width: 60ch; }

/* ── faq ── */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding: 0 0 18px; font-size: 15.5px; }

/* ── cta band ── */
.cta-band {
  max-width: var(--wrap); margin: 40px auto 90px; padding: 64px 24px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 32px;
  background-image: radial-gradient(60% 90% at 50% 0%, rgba(255,255,255,.16), transparent 70%);
}
.cta-band h2 { font-size: clamp(28px, 4.5vw, 44px); }
.cta-band p { opacity: .9; margin: 14px 0 26px; font-size: 18px; }

/* ── footer ── */
.site-foot { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.foot-brand p { color: var(--ink-2); margin-top: 12px; max-width: 30ch; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-cols h4 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 12px; }
.foot-cols a { display: block; color: var(--ink); font-size: 15px; margin-bottom: 9px; }
.foot-cols a:hover { color: var(--accent); }
.copy { grid-column: 1 / -1; color: var(--ink-2); font-size: 13.5px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ── reveal animation (progressive enhancement — only hidden when JS is on) ── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.grid .card:nth-child(2) { transition-delay: .06s; }
.grid .card:nth-child(3) { transition-delay: .12s; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { margin-top: 24px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .price-card { grid-template-columns: 1fr; }
  .price-main { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-foot { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 520px) {
  .head-cta .btn-ghost { display: none; }
  .float-card { display: none; }
  .section { padding: 60px 20px; }
}
