/* pokeagent.si — palette carried over from the old portal (portal/src/app/globals.css). */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #16181d;
  --surface: #f5f6f8;
  --line: #e1e4e8;
  --muted: #5f6672;
  --faint: #8a909a;
  --accent: #3d7bff;
  --accent-hover: #2f6bf0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --fg: #f2f2f2;
    --surface: #1f1f1f;
    --line: #2f2f2f;
    --muted: #9a9a9a;
    --faint: #777777;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1.25rem, calc((100vw - 72rem) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }

.button, .quiet {
  display: inline-block;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.button { background: var(--accent); color: #fff; }
.button:hover { background: var(--accent-hover); }
.quiet { color: var(--muted); }
.quiet:hover { color: var(--fg); background: var(--surface); }
.big { padding: 0.75rem 1.6rem; font-size: 1.05rem; }
.block { display: block; text-align: center; margin-top: 1.2rem; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5.5rem 1.25rem 5rem;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.badge.small { font-size: 0.75rem; padding: 0.2rem 0.7rem; margin-bottom: 0.6rem; }
h1 {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15em 0.3em;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.mascot { display: inline-flex; width: 0.95em; height: 0.95em; }
.mascot svg { width: 100%; height: 100%; }
.tagline { margin: 1.4rem 0 0; font-size: clamp(1.6rem, 4.5vw, 3rem); font-weight: 550; letter-spacing: -0.025em; line-height: 1.2; color: color-mix(in srgb, var(--fg) 85%, transparent); }
.subhead { margin: 1.6rem 0 0; max-width: 40rem; font-size: 1.15rem; color: var(--muted); }
.cta { margin-top: 2.6rem; display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }

.cards {
  margin-top: 5rem;
  width: 100%;
  max-width: 64rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  text-align: left;
}
.card { border: 1px solid var(--line); background: var(--surface); border-radius: 1.4rem; padding: 1.5rem; }
.card h3 { margin: 0 0 0.45rem; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Home: how it works + what makes it different. */
.section {
  margin-top: 6rem;
  width: 100%;
  max-width: 64rem;
  text-align: left;
}
.section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.025em;
  font-weight: 600;
  text-align: center;
}
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.how li { display: flex; gap: 1.1rem; align-items: flex-start; }
.how .num {
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.how h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.how p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.section .cards { margin-top: 0; }

/* Pricing. */
.legal { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem; }
.legal.wide { max-width: 64rem; }
.legal h1 { display: block; margin: 0 0 1rem; font-size: 2.4rem; }
.legal h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.legal section { margin-bottom: 1.7rem; }
.legal p { margin: 0; color: var(--muted); }
.legal .updated { margin-top: 2.5rem; font-size: 0.88rem; color: var(--faint); }
.lead { margin: 0 0 2.5rem !important; font-size: 1.1rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; align-items: start; }
.plan {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.4rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.plan.highlight { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.plan h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.plan .price { margin: 0 0 1rem; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--fg) !important; }
.plan .price .unit { display: block; font-size: 0.85rem; font-weight: 450; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.93rem; }
.plan li { margin-bottom: 0.45rem; }
.note { margin-top: 2rem !important; font-size: 0.9rem; color: var(--faint) !important; }

/* FAQ: native disclosure, no script. */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary {
  cursor: pointer;
  font-weight: 550;
  font-size: 1.03rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.7rem 0 0; color: var(--muted); }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  padding: 1.6rem max(1.25rem, calc((100vw - 72rem) / 2));
  border-top: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: 0.88rem;
  color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* Phones: the hero already carries both actions, so keep the bar on one line. */
@media (max-width: 480px) {
  nav .quiet[href$="/sign-in"] { display: none; }
}
