/* AOTMAN public site: warm paper, ink text, one orange-red accent. Hairlines instead of cards,
   no shadows, glows or gradients. Motion only carries hierarchy and is off under reduced motion. */
:root {
  --bg: #f6f4ef;
  --bg-2: #efede6;
  --ink: #151515;
  --ink-2: #3a3936;
  --muted: #6b6862;
  --line: rgba(21, 21, 21, .10);
  --line-2: rgba(21, 21, 21, .18);
  --accent: #c2410c;
  --accent-soft: #ffedd5;
  --danger: #b42318;
  --radius: 10px;
  --sans: "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.site {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
code, pre { font-family: var(--mono); }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.nw { white-space: nowrap; }

/* ---- buttons & links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font: 500 15px/1 var(--sans); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { border-color: var(--line-2); }

.link { display: inline-flex; gap: 6px; color: var(--accent); font-weight: 500; }
.link::after { content: "→"; transition: transform .2s var(--ease); }
.link:hover::after { transform: translateX(3px); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 244, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .06em; }
.brand .logo { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
.menu-panel {
  position: absolute; right: 0; top: 48px; min-width: 180px; padding: 8px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.menu-panel a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 15px; }
.menu-panel a:hover { background: var(--bg-2); }

/* ---- type ---- */
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.eyebrow span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.display {
  margin: 28px 0 0; font-size: clamp(40px, 7.2vw, 88px); line-height: 1.08;
  font-weight: 650; letter-spacing: -.035em;
}
.display .dim { color: var(--muted); }
.lead { margin: 0; max-width: 560px; font-size: 18px; color: var(--ink-2); }
.h-xl { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
.sub { margin: 16px 0 0; max-width: 560px; color: var(--muted); font-size: 17px; }
.note { margin-top: 20px; color: var(--muted); font-size: 13px; }

/* ---- home ---- */
.hero { padding: 104px 0 96px; }
.hero-foot { margin-top: 40px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; gap: 16px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.sec-head .idx { font-family: var(--mono); color: var(--accent); }

.abilities { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.abilities li { padding: 32px 32px 8px 0; }
.abilities li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.abilities h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.abilities p { margin: 0; color: var(--muted); font-size: 15px; }
.abilities .tag { display: block; margin-bottom: 20px; font: 500 13px/1 var(--mono); color: var(--muted); }

.split { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pane { padding: 36px 40px 8px 0; }
.pane + .pane { padding-left: 40px; border-left: 1px solid var(--line); }
.pane-label { margin: 0 0 12px; font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: .04em; }
.pane h3 { margin: 0 0 20px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.list { margin: 0 0 28px; padding: 0; list-style: none; }
.list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--accent); }

.price-list { margin: 48px 0 32px; border-top: 1px solid var(--ink); }
.price-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-list dt { font-size: 17px; }
.price-list dd { margin: 0; font: 600 clamp(20px, 2.6vw, 28px)/1 var(--sans); letter-spacing: -.02em; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-list dd small { margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -6px 0 22px; color: var(--muted); font-size: 15px; }
.faq code { font-size: 13px; }
.faq a { color: var(--accent); }

.closing { padding: 120px 0 128px; border-top: 1px solid var(--line); text-align: center; }
.closing .h-xl { font-size: clamp(32px, 5vw, 56px); }
.closing .cta { justify-content: center; margin-top: 36px; }

/* ---- inner pages ---- */
.page-head { padding: 88px 0 48px; }
.page-head h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-weight: 650; letter-spacing: -.03em; }
.page-head p { margin: 18px 0 0; max-width: 620px; color: var(--muted); font-size: 17px; }
.page-main { padding-bottom: 112px; }

.price-group { margin-top: 56px; }
.price-group h2 { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.table th:nth-child(1) { width: 42%; }
.table th:nth-child(2) { width: 22%; }
@media (max-width: 560px) { .table th:nth-child(1) { width: 58%; } .table th:nth-child(2) { width: auto; } }
.table th { padding: 12px 16px 12px 0; text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--ink); }
.table td { padding: 18px 16px 18px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.table .name { font-weight: 500; }
.table .name code { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.table .price { white-space: nowrap; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.table .desc { color: var(--muted); font-size: 14px; }
.facts { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.facts b { font-weight: 600; color: var(--ink); }

.doc-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.toc a { padding: 4px 0 4px 12px; border-left: 1px solid var(--line); color: var(--muted); transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--accent); }
.doc { font-size: 16px; color: var(--ink-2); }
.doc h2 { margin: 56px 0 16px; padding-top: 8px; font-size: 24px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); scroll-margin-top: 88px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 32px 0 12px; font-size: 17px; font-weight: 600; color: var(--ink); }
.doc p, .doc li { line-height: 1.8; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc b { color: var(--ink); font-weight: 600; }
.doc :not(pre) > code { padding: 1px 6px; border-radius: 4px; background: var(--bg-2); font-size: .88em; color: var(--ink); }
.code { position: relative; margin: 16px 0 20px; }
.code pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  background: #161513; color: #ecebe6; border-radius: var(--radius);
  font-size: 13px; line-height: 1.7;
}
.copy {
  position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; background: transparent;
  color: #b9b7b0; font: 500 12px/1 var(--sans); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.copy:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.meta { color: var(--muted); font-size: 14px; }

/* ---- footer ---- */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 14px 0 0; }
.footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--ink); }
.footer-grid > div > a:not(.brand) { display: block; padding: 4px 0; transition: color .2s var(--ease); }
.footer-grid > div > a:hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---- auth ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; background: var(--ink); color: #f1efe9; }
.auth-aside .brand { color: #fff; }
.auth-aside-title { margin: 0; max-width: 420px; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
.auth-aside-list { margin: 28px 0 0; padding: 0; list-style: none; color: #b9b7b0; font-size: 15px; }
.auth-aside-list li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.auth-aside-list b { color: #fdba74; font-weight: 600; }
.auth-aside-foot { margin: 0; color: #8d8a83; font-size: 13px; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 24px; }
.auth-mobile-brand { display: none; margin-bottom: 40px; }
.auth-box { width: 100%; max-width: 360px; }
.auth-box h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.auth-box .hint { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.auth-box .hint b { color: var(--ink); font-weight: 500; }
.form { margin-top: 32px; display: grid; gap: 18px; }
.field label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field label a { color: var(--muted); font-weight: 400; }
.field label a:hover { color: var(--ink); }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
  color: var(--ink); font: 400 15px/1 var(--sans); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, .14); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.alert { margin-top: 24px; padding: 12px 14px; border: 1px solid rgba(180, 35, 24, .25); border-radius: var(--radius); background: #fdf0ee; color: var(--danger); font-size: 14px; }
.form .btn { margin-top: 6px; }
.auth-alt { margin-top: 12px; }
.auth-switch { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--ink); font-weight: 500; }
.auth-note { margin-top: 20px; color: var(--muted); font-size: 13px; }
.secret { margin-top: 24px; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.secret code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 14px; }
.secret button { flex-shrink: 0; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; font: 500 12px/1 var(--sans); cursor: pointer; }

/* ---- reveal (only once site.js confirms it can show the content again) ---- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: 72px 0 72px; }
  .hero-foot { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .abilities, .split { grid-template-columns: 1fr; }
  .abilities li, .abilities li + li { padding: 28px 0 20px; border-left: 0; }
  .abilities li + li { border-top: 1px solid var(--line); }
  .pane, .pane + .pane { padding: 32px 0 8px; border-left: 0; }
  .pane + .pane { border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: inline-flex; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 16px; }
  .lead { font-size: 17px; }
  .price-list div { flex-direction: column; align-items: flex-start; gap: 8px; }
  .table .hide-sm { display: none; }
  .closing { padding: 88px 0 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}
