:root {
  color-scheme: dark;
  --bg: #0e0d12;
  --surface: #17151d;
  --surface-2: #1f1c27;
  --line: #2b2834;
  --line-2: #433f50;
  --tx: #f4f2f8;
  --tx-2: #b3aec0;
  --tx-3: #8a8599;
  --acc: #7c3aed;
  --acc-hover: #8b5cf6;
  --acc-text: #b197fc;
  --on-acc: #ffffff;
  --sig: #c6f54a;
  --sig-ink: #c6f54a;
  --on-sig: #14170b;
  --g5: #3ccf7c;
  --g4: #6b9bff;
  --g3: #f0a530;
  --g2: #f2646a;
  --focus: #c6f54a;
  --phone-ring: #34303f;
  --phone-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.9);
  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f4ef;
    --surface: #ffffff;
    --surface-2: #efece5;
    --line: #e2ded4;
    --line-2: #c8c3b7;
    --tx: #17151d;
    --tx-2: #4d4959;
    --tx-3: #6f6a7c;
    --acc: #7c3aed;
    --acc-hover: #6527d4;
    --acc-text: #6527d4;
    --sig-ink: #4b7a0b;
    --g5: #198c4b;
    --g4: #2e68d8;
    --g3: #b56d00;
    --g2: #cc3339;
    --focus: #6527d4;
    --phone-ring: #0a090d;
    --phone-shadow: 0 50px 70px -40px rgba(23, 21, 29, 0.55);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
s { text-decoration-thickness: 1.5px; }

::selection { background: var(--acc); color: var(--on-acc); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.tp-skip {
  position: fixed; left: 16px; top: -60px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--r-m);
  background: var(--acc); color: var(--on-acc); font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.tp-skip:focus { top: 12px; }

.tp-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: var(--r-m);
  border: 1.5px solid transparent;
  font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease);
}
.tp-btn:active { transform: translateY(1px); }
.tp-btn--primary { background: var(--acc); color: var(--on-acc); }
.tp-btn--primary:hover { background: var(--acc-hover); }
.tp-btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }

.tp-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.tp-nav.is-scrolled { border-bottom-color: var(--line); }
.tp-nav-in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 40px;
}
.tp-logo { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; text-decoration: none; font-weight: 800; }
.tp-logo-word { font-size: 26px; line-height: 1; letter-spacing: -0.04em; }
.tp-logo-product { font-size: 16px; line-height: 1; letter-spacing: 0.02em; color: var(--acc-text); }
.tp-nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--tx-2); }
.tp-nav-links a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color 0.15s, border-color 0.15s; }
.tp-nav-links a:hover { color: var(--tx); border-bottom-color: var(--acc); }
.tp-nav-account { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tp-nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: var(--r-m);
  border: 1.5px solid var(--line-2);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.tp-nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--tx); transition: transform 0.2s var(--ease); }
.tp-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.tp-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-user-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 40px;
  padding: 0 14px 0 4px; border-radius: 20px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: border-color 0.18s;
}
.nav-user-chip:hover { border-color: var(--acc); }
.nav-user-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-user-avatar-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--acc); color: var(--on-acc); font-size: 14px; font-weight: 700;
}
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-chip .avatar-ears-wrap { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; overflow: visible; }
.nav-avatar-core { position: relative; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.nav-avatar-core.kodari-connected { overflow: visible; }
.nav-avatar-core.kodari-connected::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px dashed var(--acc); pointer-events: none; z-index: 1;
}
.nav-user-chip .avatar-ears-wrap.has-cat-ears::before,
.nav-user-chip .avatar-ears-wrap.has-cat-ears::after { width: 34%; height: 42%; top: -14%; z-index: 2; }
.nav-user-chip .avatar-ears-wrap.has-cat-ears::before { left: 1%; }
.nav-user-chip .avatar-ears-wrap.has-cat-ears::after { right: 1%; }
.nav-user-chip .mem67-hands { inset: 0; transform: scale(0.82); transform-origin: center; }
.nav-user-chip .mem67-hand { width: 44%; height: 58%; bottom: -8%; }
.nav-user-chip .mem67-palm { font-size: 16px; }
.nav-user-chip .mem67-num { margin-bottom: 0; font-size: 11px; -webkit-text-stroke-width: 0.4px; }
.is-planned b { color: var(--tx-2); }
.tp-faq-lede a, .tp-faq-a a { color: var(--acc-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--acc-text) 40%, transparent); }
.tp-faq-lede a:hover, .tp-faq-a a:hover { text-decoration-color: currentColor; }
.tp-faq-list details { border-top: 1px solid var(--line); }
.tp-faq-list details:first-child { border-top: 0; }
.tp-faq-list details:first-child summary { padding-top: 4px; }
.tp-faq-list details:last-child { border-bottom: 1px solid var(--line); }
.tp-faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-size: 19px; font-weight: 500; line-height: 1.35;
  transition: color 0.15s;
}
.tp-faq-list summary::-webkit-details-marker { display: none; }
.tp-faq-list summary::after {
  content: ''; flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--r-s);
  border: 1.5px solid var(--line-2);
  background:
    linear-gradient(var(--tx), var(--tx)) center / 12px 2px no-repeat,
    linear-gradient(var(--tx), var(--tx)) center / 2px 12px no-repeat;
  transition: border-color 0.15s;
}
.tp-faq-list summary:hover { color: var(--acc-text); }
.tp-faq-list summary:hover::after { border-color: var(--tx); }
.tp-faq-list details[open] summary::after { background: linear-gradient(var(--tx), var(--tx)) center / 12px 2px no-repeat; border-color: var(--tx); }
.tp-faq-a { padding: 0 56px 26px 0; color: var(--tx-2); }
.tp-faq-a p { max-width: 40em; }
.tp-faq-a > a { display: inline-block; margin-top: 10px; font-weight: 600; }

.tp-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 15px; color: var(--tx-2); }
.tp-footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.tp-logo--small { color: var(--tx); }
.tp-logo--small .tp-logo-word { font-size: 20px; }
.tp-logo--small .tp-logo-product { font-size: 13px; }
.tp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.tp-footer nav a { text-decoration: none; padding: 4px 0; }
.tp-footer nav a:hover { color: var(--tx); text-decoration: underline; text-underline-offset: 4px; }
.tp-copy { margin-left: auto; font-size: 14px; color: var(--tx-3); }

@media (max-width: 960px) {
  body { font-size: 16px; }
  .tp-nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); font-size: 17px; color: var(--tx);
  }
  .tp-nav-links.is-open { display: flex; }
  .tp-nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tp-nav-links a:last-child { border-bottom: 0; }
  .tp-nav-links a:hover { border-bottom-color: var(--line); color: var(--acc-text); }
  .tp-nav-toggle { display: inline-flex; }
  .tp-nav-in { height: 60px; }
  .tp-faq-list details:first-child { border-top: 1px solid var(--line); }
  .tp-faq-list details:first-child summary { padding-top: 22px; }
  .tp-copy { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 640px) {

  .tp-faq-list summary { font-size: 17px; padding: 18px 0; gap: 16px; }
  .tp-faq-list details:first-child summary { padding-top: 18px; }
  .tp-faq-list summary::after { width: 28px; height: 28px; }
  .tp-faq-a { padding: 0 0 22px; font-size: 16px; }
  .tp-footer-in { flex-direction: column; align-items: flex-start; }
  .nav-user-name { max-width: 84px; }
}

@media (max-width: 380px) {
  .tp-nav-account { gap: 8px; }
  .tp-logo-word { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
