/* Aeri — self-contained pastel website styles. */

:root {
  --cream: #fdf6ec;
  --cream2: #f8eede;
  --white: #fffaf7;
  --text: #5a4636;
  --text-soft: #8a7360;
  --peach: #ffcfa8;
  --peach-deep: #ffb787;
  --coral: #ffa694;
  --coral-deep: #ff8c7a;
  --sky: #cdeaf9;
  --sky-deep: #9fd8f2;
  --mint: #c3ead6;
  --border: rgba(90, 70, 54, 0.08);
  --shadow: 0 14px 34px rgba(120, 90, 60, 0.14);
  --radius-lg: 28px;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
}

:root[data-theme="dark"] {
  --cream: #2b2420;
  --cream2: #382d26;
  --white: #40332b;
  --text: #f5ead9;
  --text-soft: #cdb79f;
  --peach: #a8724a;
  --coral: #c97a68;
  --sky: #3c5566;
  --mint: #3a5548;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #2b2420;
    --cream2: #382d26;
    --white: #40332b;
    --text: #f5ead9;
    --text-soft: #cdb79f;
    --peach: #a8724a;
    --coral: #c97a68;
    --sky: #3c5566;
    --mint: #3a5548;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.heading { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent {
  background: linear-gradient(100deg, var(--coral-deep), var(--peach-deep), var(--sky-deep), var(--coral-deep));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: aeri-shine 5s linear infinite;
}

/* ---------- Animations ---------- */
@keyframes aeri-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes aeri-float-slow { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(16px) translateX(-12px); } }
@keyframes aeri-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes aeri-heart { 0%, 100% { transform: scale(1) rotate(-10deg); } 25% { transform: scale(1.18) rotate(-10deg); } 50% { transform: scale(1) rotate(-10deg); } }
@keyframes aeri-wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-2deg); } }
@keyframes aeri-bob { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes aeri-spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes aeri-shine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes aeri-pop { 0% { opacity: 0; transform: translateY(24px) scale(0.94); } 60% { transform: translateY(-4px) scale(1.01); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes aeri-pop-soft { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-brand img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 4px 10px rgba(120, 90, 60, 0.18);
  animation: aeri-float 6s ease-in-out infinite;
}
.nav-brand span { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--coral-deep); }
.nav-links a.active { color: var(--coral-deep); font-weight: 700; border-bottom: 2px solid var(--coral-deep); padding-bottom: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 38px;
  padding: 0 11px; border-radius: 999px; background: var(--white); color: var(--text);
  box-shadow: 0 4px 12px rgba(120, 90, 60, 0.1); text-decoration: none; font-size: 12px;
  font-weight: 800; letter-spacing: 0.04em; transition: transform 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover { color: var(--coral-deep); transform: translateY(-2px); }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--white);
  cursor: pointer; box-shadow: 0 4px 12px rgba(120, 90, 60, 0.1); font-size: 15px; color: var(--text);
  transition: transform 0.2s ease;
}
.icon-btn:hover { transform: rotate(-14deg) scale(1.08); }
.btn-invite {
  display: inline-block; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, var(--coral-deep), var(--peach-deep));
  color: #fff; font-weight: 700; font-size: 14.5px; padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 140, 122, 0.4); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-invite:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 22px rgba(255, 140, 122, 0.5); color: #fff; }
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--cream2); cursor: pointer;
}
.nav-burger span { display: block; width: 20px; height: 2.5px; background: var(--text); border-radius: 2px; margin: 4px 0; }
.mobile-menu {
  display: none; flex-direction: column; gap: 6px; padding: 8px 24px 22px;
  border-top: 1px solid var(--border); background: var(--cream);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 16px; padding: 10px 4px; }
.mobile-menu a.active { color: var(--coral-deep); font-weight: 700; }
.mobile-menu-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mobile-invite {
  text-align: center; margin-top: 4px; text-decoration: none;
  background: linear-gradient(135deg, var(--coral-deep), var(--peach-deep));
  color: #fff; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 999px;
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 600px) {
  .btn-invite { display: none; }
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 7px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; border: none; font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 999px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: linear-gradient(135deg, var(--coral-deep), var(--peach-deep)); color: #fff; box-shadow: 0 10px 24px rgba(255, 140, 122, 0.4); }
.btn-primary:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 30px rgba(255, 140, 122, 0.5); color: #fff; }
.btn-secondary { background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.btn-secondary:hover { transform: translateY(-3px) scale(1.04); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 44px; overflow: hidden; }
.hero-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(6px); }
.blob-1 { top: -70px; right: -40px; width: 300px; height: 300px; background: radial-gradient(circle, var(--sky) 0%, transparent 70%); animation: aeri-float-slow 9s ease-in-out infinite; }
.blob-2 { bottom: 0; left: -70px; width: 240px; height: 240px; background: radial-gradient(circle, var(--mint) 0%, transparent 70%); animation: aeri-float-slow 12s ease-in-out infinite reverse; }
.blob-3 { top: 34%; left: 44%; width: 150px; height: 150px; background: radial-gradient(circle, var(--peach) 0%, transparent 70%); animation: aeri-float-slow 8s ease-in-out infinite reverse; }
.twinkle { position: absolute; animation: aeri-twinkle 3s ease-in-out infinite; }
.hero-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 420px; min-width: 280px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--coral-deep);
  font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow);
  margin-bottom: 22px; animation: aeri-pop 0.6s ease-out both;
}
.hero-title { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 800; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.1; margin: 0 0 22px; animation: aeri-pop 0.6s ease-out 0.08s both; }
.hero-desc { font-size: 18px; line-height: 1.65; color: var(--text-soft); max-width: 520px; margin: 0 0 32px; animation: aeri-pop 0.6s ease-out 0.16s both; }
.hero-actions { animation: aeri-pop 0.6s ease-out 0.24s both; }
.hero-art { flex: 1 1 300px; min-width: 260px; display: flex; justify-content: center; position: relative; animation: aeri-pop 0.7s ease-out 0.1s both; }
.avatar-wrap { position: relative; width: min(340px, 80vw); aspect-ratio: 1 / 1; animation: aeri-float 7s ease-in-out infinite; }
.avatar-ring { position: absolute; inset: -26px; border-radius: 50%; border: 3px dashed var(--peach-deep); opacity: 0.55; animation: aeri-spin-slow 26s linear infinite; }
.avatar-glow { position: absolute; inset: -12px; border-radius: 50%; background: linear-gradient(135deg, var(--peach), var(--coral)); opacity: 0.6; filter: blur(2px); }
.avatar-img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: 0 24px 46px rgba(120, 90, 60, 0.24); }
.online-badge {
  position: absolute; bottom: 2%; right: -8%; display: flex; align-items: center; gap: 6px;
  background: var(--white); padding: 8px 14px 8px 10px; border-radius: 999px; box-shadow: var(--shadow);
  transform: rotate(-6deg); animation: aeri-wiggle 4s ease-in-out infinite; white-space: nowrap;
}
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fbf82; box-shadow: 0 0 0 3px rgba(95, 191, 130, 0.25); }
.online-badge span.label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.floating-tag {
  position: absolute; top: -4px; left: -24px; background: var(--white); padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; color: var(--coral-deep); white-space: nowrap;
  transform: rotate(8deg); animation: aeri-bob 5s ease-in-out infinite;
}

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding: 16px 0 0; }
.stat-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s ease; animation: aeri-pop-soft 0.6s ease-out both; }
.stat-card:hover { transform: translateY(-6px) rotate(-1deg); }
.stat-card.tone-peach { background: linear-gradient(160deg, var(--peach), var(--white) 60%); }
.stat-card.tone-sky { background: linear-gradient(160deg, var(--sky), var(--white) 60%); }
.stat-card.tone-mint { background: linear-gradient(160deg, var(--mint), var(--white) 60%); }
.stat-card.tone-coral { background: linear-gradient(160deg, var(--coral), var(--white) 60%); }
.stat-emoji { font-size: 24px; margin-bottom: 4px; }
.stat-num { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 800; font-size: 30px; }
.stat-card.tone-peach .stat-num { color: var(--coral-deep); }
.stat-card.tone-sky .stat-num { color: var(--sky-deep); }
.stat-card.tone-mint .stat-num { color: #5fa07a; }
.stat-card.tone-coral .stat-num { color: var(--peach-deep); }
.stat-label { font-size: 14px; color: var(--text-soft); margin-top: 4px; font-weight: 600; }

/* ---------- Explore tiles (home) ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.explore-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.explore-card:hover { transform: translateY(-5px); color: var(--text); }
.explore-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--cream2); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.explore-title { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: 15.5px; }
.explore-desc { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }

/* ---------- Section header (features/commands/guide/legal) ---------- */
.page-header { position: relative; padding: 56px 0 16px; overflow: hidden; }
.breadcrumb { font-size: 13.5px; color: var(--text-soft); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; color: var(--text-soft); }
.breadcrumb a:hover { color: var(--coral-deep); }
.page-title { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: clamp(28px, 3.8vw, 42px); margin: 0 0 12px; animation: aeri-pop 0.6s ease-out both; }
.page-title.center { text-align: center; }
.page-subtitle { font-size: 16px; color: var(--text-soft); max-width: 600px; margin: 0; }
.page-header.center-text { text-align: center; }
.page-header.center-text .page-subtitle { margin: 0 auto; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: 10px; }

/* ---------- Feature cards ---------- */
.section { padding: 24px 0 64px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform 0.2s ease; animation: aeri-pop-soft 0.6s ease-out both; }
.feature-card:hover { transform: translateY(-8px) rotate(-1deg) scale(1.02); }
.feature-icon { font-size: 34px; margin-bottom: 14px; }
.feature-card h3 { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-size: 19px; margin: 0 0 8px; }
.feature-card p { margin: 0; font-size: 15px; color: var(--text-soft); line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--peach), var(--sky)); border-radius: 32px; padding: 56px 32px; text-align: center; box-shadow: var(--shadow); margin: 0 0 64px; }
.cta-banner .blob { background: rgba(255, 255, 255, 0.32); }
.cta-banner .blob-1 { top: -40px; left: -40px; right: auto; width: 180px; height: 180px; }
.cta-banner .blob-2 { bottom: -50px; right: -30px; left: auto; width: 200px; height: 200px; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: clamp(26px, 3.8vw, 36px); margin: 0 0 12px; color: var(--text); }
.cta-inner p { font-size: 16.5px; color: var(--text); opacity: 0.85; margin: 0 0 28px; }
.cta-inner .btn-row { justify-content: center; }
.cta-inner .btn-primary { background: var(--white); color: var(--coral-deep); box-shadow: 0 10px 24px rgba(90, 70, 54, 0.16); }
.cta-inner .btn-primary:hover { color: var(--coral-deep); }
.cta-inner .btn-secondary { background: rgba(255, 255, 255, 0.5); box-shadow: 0 6px 16px rgba(90, 70, 54, 0.1); }

/* ---------- Footer ---------- */
.footer { background: var(--cream2); padding: 56px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 36px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(120, 90, 60, 0.14); }
.footer-brand-row span { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: 19px; }
.footer-desc { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin: 0; max-width: 260px; }
.footer-col h4 { font-weight: 700; font-size: 14px; margin: 0 0 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--text-soft); font-size: 14px; }
.footer-col a:hover { color: var(--coral-deep); }
.footer-col a.active { color: var(--coral-deep); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 13px; color: var(--text-soft); }

/* ---------- Commands page ---------- */
.cmd-header-extra { text-align: center; }
.cmd-count { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cmd-count strong { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--coral-deep); }
.cmd-count span { font-size: 13px; color: var(--text-soft); }
.search-wrap { max-width: 520px; margin: 24px auto 0; position: relative; }
.search-wrap .search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.search-input {
  width: 100%; box-sizing: border-box; padding: 14px 18px 14px 46px; border-radius: 999px; border: 2px solid transparent;
  background: var(--white); box-shadow: var(--shadow); font-size: 14.5px; color: var(--text);
  font-family: inherit; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input:focus { outline: none; border-color: var(--coral-deep); box-shadow: 0 0 0 4px rgba(255, 140, 122, 0.15); }

.cmd-groups { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.cmd-group { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cmd-group-head { cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.cmd-group-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--cream2); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; transition: transform 0.2s ease; }
.cmd-group-head:hover .cmd-group-icon { transform: rotate(-8deg) scale(1.08); }
.cmd-group-meta { flex: 1; min-width: 0; }
.cmd-group-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmd-group-name { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: 17px; }
.cmd-group-count { background: var(--cream2); font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.cmd-group-desc { margin: 2px 0 0; font-size: 13px; color: var(--text-soft); }
.chevron { font-size: 15px; color: var(--text-soft); transition: transform 0.25s ease; flex: none; }
.cmd-group.open > .cmd-group-head .chevron { transform: rotate(180deg); }
.cmd-group-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s ease; }
.cmd-group.open > .cmd-group-body { grid-template-rows: 1fr; }
.cmd-group-body-inner { overflow: hidden; }
.cmd-list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.cmd-item { background: var(--cream2); border-radius: 16px; overflow: hidden; }
.cmd-item-head { cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.cmd-item-code { background: var(--white); font-weight: 700; font-size: 13.5px; padding: 5px 12px; border-radius: 8px; white-space: nowrap; }
.cmd-item-desc { flex: 1; font-size: 13.5px; color: var(--text-soft); }
.cmd-item-chevron { font-size: 13px; }
.cmd-item.open > .cmd-item-head .chevron { transform: rotate(180deg); }
.cmd-item-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.cmd-item.open > .cmd-item-body { grid-template-rows: 1fr; }
.cmd-item-body-inner { overflow: hidden; }
.cmd-detail { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.cmd-detail-label { font-size: 11px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.cmd-alias-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cmd-alias-chip { background: var(--white); color: var(--text-soft); font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 7px; }
.cmd-code-row { display: flex; align-items: center; gap: 8px; background: var(--white); border-radius: 10px; padding: 10px 12px; }
.cmd-code-row code { flex: 1; font-size: 13px; }
.copy-btn { border: none; background: var(--cream2); cursor: pointer; width: 26px; height: 26px; border-radius: 7px; font-size: 12px; flex: none; }
.copy-btn:hover { background: var(--peach); }
.no-results { text-align: center; color: var(--text-soft); font-size: 14px; padding: 32px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.hidden { display: none !important; }

/* ---------- Guide page ---------- */
.guide-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.guide-categories { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.guide-cat { cursor: pointer; padding: 14px 16px; border-radius: 16px; background: transparent; transition: background 0.2s ease, transform 0.15s ease; border: none; text-align: left; width: 100%; font-family: inherit; }
.guide-cat:hover { transform: translateX(3px); }
.guide-cat.active { background: var(--cream2); }
.guide-cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.guide-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.guide-cat.active .guide-cat-dot { animation: aeri-pulse-ring 1.8s ease-out infinite; }
.guide-cat-name { font-weight: 700; font-size: 14px; color: var(--text-soft); }
.guide-cat.active .guide-cat-name { color: var(--text); }
.guide-cat-desc { margin: 0; font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
@keyframes aeri-pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 140, 122, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(255, 140, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 140, 122, 0); } }

.guide-articles { flex: 2 1 460px; min-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.guide-article { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.guide-article-head { cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.guide-article-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--cream2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; transition: transform 0.2s ease; }
.guide-article-head:hover .guide-article-icon { transform: rotate(-8deg) scale(1.08); }
.guide-article-meta { flex: 1; min-width: 0; }
.guide-article-top-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.guide-article-chip { background: var(--cream2); font-weight: 700; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.guide-article-date { font-size: 12px; color: var(--text-soft); }
.guide-article-title { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: 16.5px; }
.guide-article-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s ease; }
.guide-article.open > .guide-article-body { grid-template-rows: 1fr; }
.guide-article-body-inner { overflow: hidden; }
.guide-article-content { padding: 0 20px 20px 70px; }
.guide-article-content p { font-size: 14.5px; color: var(--text-soft); line-height: 1.7; margin: 0 0 14px; }
.guide-steps { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.guide-steps li { color: var(--text-soft); font-size: 14px; line-height: 1.65; padding-left: 4px; }
.guide-tip { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; padding: 11px 13px; border-radius: 12px; background: var(--cream2); color: var(--text-soft); font-size: 13.5px; line-height: 1.6; }
.guide-tip-icon { flex: none; }
.guide-cmd-row { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-cmd-chip { background: var(--cream2); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 8px; }

/* ---------- Leaderboard ---------- */
.leaderboard { background: var(--cream2); padding: 64px 0; }
.leaderboard h2 { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); text-align: center; margin: 0 0 8px; }
.leaderboard-sub { text-align: center; color: var(--text-soft); font-size: 15.5px; margin: 0 0 40px; }
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: end; max-width: 980px; margin: 0 auto; }
.podium-card { background: var(--white); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.podium-card:hover { transform: translateY(-6px) rotate(-1deg); }
.podium-card.first { background: linear-gradient(160deg, var(--white), var(--white)); border: 2px solid var(--peach); box-shadow: 0 18px 40px rgba(255, 140, 122, 0.25); padding: 34px 22px; transform: translateY(-10px); }
.podium-emoji { font-size: 32px; margin-bottom: 10px; }
.podium-card.first .podium-emoji { font-size: 38px; }
.podium-title { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-weight: 700; font-size: 16px; }
.podium-card.first .podium-title { font-size: 18px; }
.podium-sub { font-size: 13.5px; color: var(--text-soft); margin-top: 6px; }
.leaderboard-hint { text-align: center; margin-top: 28px; }
.leaderboard-hint span { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border-radius: 999px; padding: 10px 20px; font-size: 14px; color: var(--text-soft); box-shadow: var(--shadow); }
.leaderboard-hint code { background: var(--cream2); color: var(--coral-deep); font-weight: 700; padding: 4px 10px; border-radius: 8px; }

/* ---------- Legal pages ---------- */
.legal-header { max-width: 820px; }
.legal-body { max-width: 820px; margin: 0 auto; padding: 24px 0 56px; }
.legal-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); animation: aeri-pop-soft 0.6s ease-out both; }
.legal-callout { display: flex; align-items: flex-start; gap: 12px; background: var(--cream2); border-radius: 18px; padding: 18px 20px; margin-bottom: 32px; }
.legal-callout span { font-size: 20px; }
.legal-callout p { margin: 0; font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
.legal-sections { display: flex; flex-direction: column; gap: 32px; }
.legal-sections h2 { font-family: ui-rounded, "Segoe UI Rounded", system-ui, sans-serif; font-size: 20px; margin: 0 0 10px; }
.legal-sections p, .legal-sections li { margin: 0; font-size: 15px; color: var(--text-soft); line-height: 1.75; }
.legal-sections ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.legal-sections a { color: var(--coral-deep); text-decoration: none; font-weight: 600; }
.legal-cross-link { text-align: center; margin-top: 24px; }
.legal-cross-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; }
.legal-cross-link a { text-decoration: none; color: var(--text-soft); font-size: 14px; font-weight: 600; }
.legal-cross-link a:hover { color: var(--coral-deep); }
.legal-pill { display: inline-block; background: var(--white); font-weight: 700; font-size: 13px; padding: 7px 15px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 16px; }
.legal-pill.privacy { color: var(--sky-deep); }
.legal-pill.terms { color: var(--coral-deep); }
.legal-pill.refund { color: #5f8f72; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .guide-article-content { padding-left: 20px; }
  .hero { padding-top: 56px; }
}
