/* Emoji Autocomplete — landing page styles.
   Palette anchored on emoji "default" yellow as the accent, warm ink for text. */
:root {
  --ink: #1d1b16;
  --ink-soft: #5c574c;
  --bg: #fffdf7;
  --bg-alt: #fff6e0;
  --card: #ffffff;
  --accent: #ffb703;
  --accent-deep: #f48c06;
  --line: #efe7d4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(61, 47, 12, 0.08);
  --shadow-lg: 0 24px 60px rgba(61, 47, 12, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }
.container--narrow { width: min(760px, 92vw); }

a { color: inherit; }

code {
  font-family: var(--mono);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  font-size: 0.9em;
  color: var(--accent-deep);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 0.7em 1.3em; border: 2px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.98rem;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 18px rgba(244, 140, 6, 0.35); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--lg { font-size: 1.05rem; padding: 0.85em 1.6em; }
.btn--block { display: flex; width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { font-weight: 800; font-size: 1.1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.brand__emoji { font-size: 1.2rem; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: 0.4rem; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 2rem; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--accent-deep); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.8rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.lede { font-size: 1.2rem; color: var(--ink-soft); margin: 1.2rem 0 1.8rem; max-width: 34ch; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__note { margin-top: 1rem; color: var(--ink-soft); font-size: 0.9rem; }

/* Hero demo mock */
.hero__demo { display: flex; justify-content: center; }
.mock-window {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(-1.5deg);
}
.mock-bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #e2d6b8; }
.mock-bar span:first-child { background: #ff6b6b; }
.mock-bar span:nth-child(2) { background: #ffd166; }
.mock-bar span:nth-child(3) { background: #06d6a0; }
.mock-body { padding: 22px; position: relative; }
.mock-field { font-size: 1.05rem; padding: 14px 16px; border: 2px solid var(--accent); border-radius: 12px; background: #fff; }
.mock-typed { color: var(--accent-deep); font-family: var(--mono); }
.mock-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: text-bottom; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-dropdown { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.mock-option { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 1.05rem; }
.mock-option span { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-soft); }
.mock-option--active { background: var(--bg-alt); }

/* Logo strip */
.logos { margin-top: 3.5rem; text-align: center; }
.logos__label { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 1rem; }
.logos__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem; }
.logos__list li { font-weight: 700; color: #b8ab8c; font-size: 1.05rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); text-align: center; letter-spacing: -0.02em; font-weight: 800; }
.section__sub { text-align: center; color: var(--ink-soft); font-size: 1.1rem; margin-top: 0.6rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.8rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.feature__icon { font-size: 2rem; }
.feature h3 { margin: 0.7rem 0 0.4rem; font-size: 1.15rem; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.8rem; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-align: center; }
.step__num { width: 44px; height: 44px; margin: 0 auto 0.9rem; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 800; border-radius: 50%; font-size: 1.2rem; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* Pricing */
.billing-toggle { display: inline-flex; gap: 4px; margin: 1.8rem auto 0; padding: 5px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; }
.section .billing-toggle { display: flex; width: fit-content; }
.billing-toggle__btn { border: none; background: transparent; padding: 0.5em 1.1em; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-soft); font-size: 0.95rem; }
.billing-toggle__btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.save { color: var(--accent-deep); font-size: 0.8rem; }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 1.6rem; justify-content: center; margin-top: 2.4rem; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--ink); font-weight: 700; font-size: 0.78rem; padding: 0.3em 0.9em; border-radius: 999px; }
.plan__name { font-size: 1.3rem; }
.plan__price { margin: 0.6rem 0; }
.plan__amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.plan__per { color: var(--ink-soft); font-weight: 600; }
.plan__tagline { color: var(--ink-soft); margin-bottom: 1.2rem; }
.plan__features { list-style: none; margin-bottom: 1.6rem; display: grid; gap: 0.6rem; }
.plan__features li { padding-left: 1.6rem; position: relative; }
.plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-deep); font-weight: 800; }
.plan__finenote { text-align: center; color: var(--ink-soft); font-size: 0.82rem; margin-top: 0.7rem; }
.pricing__legacy { text-align: center; color: var(--ink-soft); margin-top: 2rem; font-size: 0.98rem; }

/* FAQ */
.faq { margin-top: 2.4rem; display: grid; gap: 0.8rem; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem 1.2rem; }
.faq__item summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::after { content: "+"; color: var(--accent-deep); font-weight: 800; font-size: 1.3rem; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--ink-soft); padding-bottom: 1rem; }

/* CTA */
.cta { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta__inner { text-align: center; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--ink); border-radius: 28px; padding: clamp(2.5rem, 6vw, 4rem); box-shadow: var(--shadow-lg); }
.cta__inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta__inner p { margin: 0.6rem 0 1.6rem; font-size: 1.1rem; }
.cta .btn--primary { background: var(--ink); color: #fff; }
.cta .btn--primary:hover { background: #000; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.2rem; margin: 0 auto; }
.footer__links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer__links a:hover { color: var(--ink); }
.footer__credit { color: var(--ink-soft); font-size: 0.9rem; }
.footer__credit a { color: var(--accent-deep); }

/* Responsive */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { order: -1; }
  .nav__links { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .lede { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; }
}
