/* Weke Chat marketing site — shared styles.
   Palette from the app (lib/weke/weke_colors.dart): teal #075E54,
   leaf #25D366, canvas #F0F2F5 / #111B21. Direction: quiet privacy,
   warm editorial — ink-teal panels on warm paper, chat-bubble motif. */

:root {
  --ink: #06322e;
  --ink-2: #075e54;
  --ink-3: #0b4a43;
  --leaf: #25d366;
  --leaf-dark: #128c4a;
  --paper: #f7f4ec;
  --paper-2: #efe9db;
  --card: #ffffff;
  --text: #1c2a28;
  --text-dim: #56675f;
  --text-on-ink: #e9f2ee;
  --text-on-ink-dim: #9dbcae;
  --line: #dcd4c2;
  --radius: 18px;
  --radius-lg: 28px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Albert Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* faint dotted texture on the paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(7, 94, 84, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 0;
}

main, header.site, footer.site { position: relative; z-index: 1; }

a { color: var(--ink-2); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */

header.site {
  position: sticky;
  top: 0;
  background: rgba(247, 244, 236, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand svg { display: block; }

.beta-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-dark);
  border: 1px solid var(--leaf-dark);
  border-radius: 99px;
  padding: 2px 8px;
  transform: translateY(-6px);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--ink-2); }

.nav-links a.current { color: var(--ink); font-weight: 700; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-leaf {
  background: var(--leaf);
  color: #04241c;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-leaf:hover { background: #3adf77; transform: translateY(-2px); }

.btn-ink {
  background: var(--ink-2);
  color: var(--text-on-ink);
  box-shadow: 0 6px 18px rgba(7, 94, 84, 0.28);
}

.btn-ink:hover { background: #0a6e62; transform: translateY(-2px); }

.btn-ghost {
  border-color: rgba(233, 242, 238, 0.4);
  color: var(--text-on-ink);
}

.btn-ghost:hover { border-color: var(--text-on-ink); }

.btn-ghost-dark {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost-dark:hover { border-color: var(--ink-2); }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(37, 211, 102, 0.16), transparent 60%),
    radial-gradient(900px 450px at -10% 110%, rgba(37, 211, 102, 0.10), transparent 55%),
    linear-gradient(160deg, #06322e 0%, #075e54 78%, #0a6a5e 100%);
  color: var(--text-on-ink);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 96px;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 18px;
  animation: rise 0.6s ease both;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: rise 0.6s 0.08s ease both;
}

h1 .accent {
  font-style: italic;
  color: var(--leaf);
}

.hero-sub {
  margin: 22px 0 32px;
  font-size: 1.13rem;
  max-width: 34em;
  color: var(--text-on-ink-dim);
  animation: rise 0.6s 0.16s ease both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.6s 0.24s ease both;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-on-ink-dim);
  animation: rise 0.6s 0.3s ease both;
}

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

/* ---------- hero chat mock ---------- */

.chat-demo {
  background: rgba(4, 36, 30, 0.55);
  border: 1px solid rgba(233, 242, 238, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.7s 0.2s ease both;
}

.bubble {
  max-width: 82%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  position: relative;
}

.bubble .meta {
  display: block;
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 4px;
}

.bubble.in {
  background: #f2f7f5;
  color: #10241f;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.bubble.out {
  background: #005c4b;
  color: #dcfae9;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.bubble.vanish {
  animation: vanish 7s ease-in-out infinite;
}

@keyframes vanish {
  0%, 55% { opacity: 1; filter: blur(0); transform: none; }
  70%, 82% { opacity: 0; filter: blur(6px); transform: scale(0.96); }
  95%, 100% { opacity: 1; filter: blur(0); transform: none; }
}

.timer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-on-ink-dim);
  border: 1px dashed rgba(233, 242, 238, 0.3);
  padding: 5px 12px;
  border-radius: 99px;
}

/* ---------- trust strip ---------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  padding: 26px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust span { display: inline-flex; align-items: center; gap: 8px; }

.trust svg { flex: none; }

/* ---------- sections ---------- */

section { padding: 64px 0; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 44em;
  margin-bottom: 40px;
}

/* feature cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(7, 94, 84, 0.12);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(7, 94, 84, 0.08);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.card p { font-size: 0.95rem; color: var(--text-dim); }

.new-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #04241c;
  background: var(--leaf);
  border-radius: 99px;
  padding: 3px 9px;
}

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  border-top: 3px solid var(--ink-2);
  padding-top: 18px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--leaf-dark);
  display: block;
  margin-bottom: 8px;
}

.step h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* FAQ */

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::after { content: "+"; font-size: 1.3rem; color: var(--leaf-dark); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--text-dim); max-width: 54em; }

/* final CTA panel */

.cta-panel {
  background: linear-gradient(150deg, #06322e, #075e54);
  color: var(--text-on-ink);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.cta-panel h2 { color: #fff; margin: 0 0 6px; }
.cta-panel p { color: var(--text-on-ink-dim); }

/* ---------- download page ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dl-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-meta { font-size: 0.85rem; color: var(--text-dim); }

.dl-card .btn { align-self: flex-start; }

.dl-card.soon { opacity: 0.75; }

.soon-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 9px;
}

.hint {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

code {
  background: var(--paper-2);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.85em;
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 760px;
}

.legal h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 48px 0 8px;
  animation: none;
}

.legal .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 32px; }

.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }

.legal p, .legal li { color: var(--text); margin-bottom: 12px; }

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

.notice {
  border-left: 4px solid var(--leaf-dark);
  background: rgba(37, 211, 102, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text);
  margin: 24px 0;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 36px 0 48px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}

.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--ink-2); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .chat-demo { max-width: 440px; }
  .cards, .steps, .dl-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links .btn { padding: 10px 16px; font-size: 0.9rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-panel { padding: 40px 28px; }
}
