/*
 * AskClaude website. Palette, type, radii and buttons follow the app (web/src/styles/tokens.css, base.css):
 * warm paper neutrals, ink text, one restrained clay accent; light and dark follow the system.
 */
@font-face {
  font-family: 'AC Serif';
  src: url('/fonts/heading-sc.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+2E80-2FFF, U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
}
@font-face {
  font-family: 'AC Serif';
  src: url('/fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'AC Mono';
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --font-serif: 'AC Serif', 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', Georgia, serif;
  --font-mono: 'AC Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --top-h: 64px;

  --bg: #f7f6f2;
  --bg-alt: #efede7;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --border: #e3dfd5;
  --border-strong: #d2cdc0;
  --text: #1f1e1c;
  --text-body: #3d3a35;
  --text-2: #5f5b53;
  --text-3: #8f8a7f;
  --accent: #c8643f;
  --accent-hover: #b4562f;
  --accent-soft: #f6e6dd;
  --accent-text: #ffffff;
  --success: #3f7d4e;
  --code-bg: #f3f1eb;
  --scrim: rgba(28, 27, 25, 0.32);
  --shadow-sm: 0 1px 2px rgba(31, 30, 28, 0.06);
  --shadow-md: 0 1px 2px rgba(31, 30, 28, 0.05), 0 4px 16px rgba(31, 30, 28, 0.07);
  --shadow-lg: 0 2px 6px rgba(31, 30, 28, 0.06), 0 16px 40px rgba(31, 30, 28, 0.12);
  --shadow-window: 0 2px 6px rgba(31, 30, 28, 0.05), 0 24px 64px rgba(31, 30, 28, 0.13);
  --focus-ring: 0 0 0 3px rgba(200, 100, 63, 0.22);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b19;
    --bg-alt: #171614;
    --surface: #252422;
    --surface-2: #2c2a27;
    --border: #34322e;
    --border-strong: #46433d;
    --text: #ece9e2;
    --text-body: #d3cfc6;
    --text-2: #aaa59a;
    --text-3: #7c776d;
    --accent: #d9774f;
    --accent-hover: #e48a63;
    --accent-soft: #3a2a22;
    --accent-text: #1c1b19;
    --success: #7cb48a;
    --code-bg: #211f1d;
    --scrim: rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-window: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 64px rgba(0, 0, 0, 0.5);
    --focus-ring: 0 0 0 3px rgba(217, 119, 79, 0.3);
    color-scheme: dark;
  }
  .logo {
    filter: invert(1);
  }
}

/* ── base ── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
/* Chinese headings break at spaces and punctuation, not inside a word */
h1,
h2,
h3,
.hero-sub,
.page-sub,
.sec-head p {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
ul,
ol {
  padding: 0;
}
img,
svg,
picture {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent-soft);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}
.icon {
  flex: none;
}
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--code-bg);
  white-space: nowrap;
}
kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8em;
  line-height: 1.5;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 808px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.skip:focus {
  left: 16px;
}

/* ── buttons (the app's .btn) ── */

.btn {
  --btn-h: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.btn:hover {
  background: var(--surface-2);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-sm {
  --btn-h: 28px;
  padding: 0 10px;
  font-size: 13px;
  gap: 6px;
}
.btn-lg {
  --btn-h: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.btn-xl {
  --btn-h: 50px;
  padding: 0 26px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}
.btn.is-disabled {
  color: var(--text-3);
  background: var(--surface-2);
  border-color: var(--border);
  cursor: default;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ── header ── */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.top[data-scrolled] {
  border-bottom-color: var(--border);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--top-h);
}
.brand {
  display: flex;
  align-items: center;
  height: 40px;
  flex: none;
}
.logo {
  height: 19px;
  width: auto;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 6px 12px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 14.5px;
  transition:
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}
.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav a[aria-current] {
  color: var(--text);
  font-weight: 500;
}
.top-act {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  cursor: pointer;
}
.menu-btn:hover {
  background: var(--surface-2);
}
.sheet {
  display: grid;
  padding: 8px 16px 20px;
  border-top: 1px solid var(--border);
}
.sheet[hidden] {
  display: none;
}
.sheet a {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
}
.sheet a:last-child {
  border-bottom: 0;
}

/* ── hero ── */

.hero {
  padding-top: 104px;
  text-align: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.hero-title span {
  display: block;
}
.hero-en {
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-sub {
  max-width: 640px;
  margin: 30px auto 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.85;
}
.hero .actions {
  margin-top: 40px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 30px;
  list-style: none;
  color: var(--text-3);
  font-size: 14px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-points li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-shot {
  margin-top: 72px;
}
.window {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-window);
}
.hero .wrap:first-child > * {
  animation: rise 700ms var(--ease) both;
}
.hero .wrap:first-child > :nth-child(2) {
  animation-delay: 80ms;
}
.hero .wrap:first-child > :nth-child(3) {
  animation-delay: 160ms;
}
.hero .wrap:first-child > :nth-child(4) {
  animation-delay: 220ms;
}
.hero-shot .window {
  animation: rise 900ms 260ms var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ── sections ── */

.sec {
  padding: 128px 0;
}
.sec-alt {
  background: var(--bg-alt);
}
.sec-tight {
  padding-top: 16px;
}
.sec-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.sec-head h2,
.cta h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sec-head p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 17px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  padding: 30px 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.card h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}

/* ── features ── */

.features {
  display: grid;
  gap: 112px;
}
.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 64px;
}
.feature.is-flip {
  grid-template-columns: 7fr 5fr;
}
.feature.is-flip .feature-text {
  order: 2;
}
.feature-text h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.3;
}
.feature-text p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.85;
}
.feature-shot .shot img {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.minis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 112px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.mini {
  display: flex;
  gap: 14px;
}
.mini > .icon {
  margin-top: 3px;
  color: var(--accent);
}
.mini h3 {
  font-size: 16px;
  font-weight: 600;
}
.mini p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

/* ── plans ── */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 34px 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.plan.is-featured {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    var(--shadow-lg);
}
.plan-tag {
  position: absolute;
  top: -12px;
  left: 34px;
  padding: 3px 12px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
}
.plan-who {
  color: var(--text-3);
  font-size: 13.5px;
}
.plan-name {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 18px;
}
.plan-price .cur {
  color: var(--text-2);
  font-size: 18px;
}
.plan-price .num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.plan-price .num.is-masked {
  position: relative;
  top: 0.34em;
  letter-spacing: 0.1em;
}
.plan-price .per {
  color: var(--text-3);
  font-size: 15px;
}
.plan-ask {
  align-self: flex-start;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
}
.plan-ask:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plan-lead {
  margin: 22px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}
.ticks {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
}
.ticks li {
  display: flex;
  gap: 10px;
}
.ticks .icon {
  margin-top: 3px;
  color: var(--accent);
}
.plan > .btn {
  margin-top: auto;
}

/* ── faq ── */

.faq {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-chev {
  color: var(--text-3);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] .faq-chev {
  transform: rotate(90deg);
}
.faq-a {
  padding: 0 4px 24px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
}
.faq-a p + p,
.faq-a p + ul,
.faq-a p + ol,
.faq-a ul + p,
.faq-a ol + p {
  margin-top: 10px;
}
.faq-a ul,
.faq-a ol {
  padding-left: 1.4em;
}
.faq-a a {
  color: var(--accent);
}
.more-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 36px;
  font-size: 15px;
}
.more-links a {
  color: var(--accent);
}
.more-links a:hover {
  color: var(--accent-hover);
}

/* ── call to action ── */

.cta {
  padding: 128px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta .actions {
  margin-top: 36px;
}

/* ── page heads, tables, steps ── */

.page-hero {
  padding: 96px 0 56px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.page-sub {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 18px;
}
.lost {
  padding: 160px 0;
}
.lost .actions {
  margin-top: 32px;
}
.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.table th,
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.table thead th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.table tbody th {
  color: var(--text);
  font-weight: 500;
}
.table td {
  color: var(--text-2);
}
.table tbody tr:last-child > * {
  border-bottom: 0;
}
.table .hl,
.table tr.hl > * {
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
  color: var(--text);
}
.table thead .hl {
  background: var(--accent-soft);
  color: var(--accent);
}
.yes {
  color: var(--success);
}
.no {
  color: var(--text-3);
}
.yes .icon,
.no .icon {
  display: inline-block;
  vertical-align: -3px;
}
.steps {
  margin: 28px 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 28px 56px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}
.steps h3 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.8;
}
.steps p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}
.steps a {
  color: var(--accent);
}

/* ── docs ── */

.doc {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  justify-content: center;
  gap: 64px;
}
.toc {
  position: sticky;
  top: calc(var(--top-h) + 32px);
  align-self: start;
}
.toc nav {
  display: grid;
  border-left: 1px solid var(--border);
}
.toc a {
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  color: var(--text-3);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease);
}
.toc a:hover {
  color: var(--text);
}
.toc a.is-active {
  border-left-color: var(--accent);
  color: var(--text);
}
.prose {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.85;
}
.prose > h2 {
  margin: 72px 0 18px;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
}
.prose > h2:first-child {
  margin-top: 0;
}
.prose > h3 {
  margin: 32px 0 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}
.prose > p {
  margin: 12px 0;
}
.prose > ul,
.prose > ol {
  margin: 14px 0;
  padding-left: 1.4em;
}
.prose li {
  margin: 8px 0;
}
.prose li::marker {
  color: var(--accent);
}
.prose b {
  color: var(--text);
  font-weight: 600;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose .table-wrap {
  margin: 20px 0;
}
.prose .faq {
  margin-top: 20px;
}
.how {
  margin: 20px 0;
  list-style: none;
  padding: 0 !important;
}
.how li {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.how li:first-child {
  border-top: 1px solid var(--border);
}
.how .icon {
  margin-top: 4px;
  color: var(--accent);
}
.how h3 {
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
}
.how p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 15px;
}

/* ── download ── */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 32px 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  text-align: center;
}
.dl-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
}
.dl-name {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
}
.dl-meta {
  margin-top: 8px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.dl-act {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ── footer, contact ── */

.foot {
  padding: 72px 0 36px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.foot-in {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-brand {
  align-self: start;
  padding-top: 2px;
}
.foot-col h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}
.foot-col a,
.foot-link {
  display: block;
  margin: 9px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
}
.foot-col a:hover,
.foot-link:hover {
  color: var(--text);
}
.foot-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition:
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.float-contact:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.contact {
  width: min(360px, calc(100vw - 32px));
  padding: 36px 32px 32px;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.contact[open] {
  animation: pop 220ms var(--ease);
}
.contact::backdrop {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.contact-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.contact-x:hover {
  background: var(--surface-2);
  color: var(--text);
}
.contact-title {
  margin-bottom: 22px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
}
.contact-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}
.contact-qr.is-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 14px;
}
.contact-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.contact-id span {
  color: var(--text-3);
  font-size: 14px;
}
.contact-id b {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
}

/* ── small screens ── */

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .top-act {
    margin-left: auto;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .feature,
  .feature.is-flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature.is-flip .feature-text {
    order: 0;
  }
  .minis {
    grid-template-columns: repeat(2, 1fr);
  }
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .foot-in {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  .wrap {
    padding: 0 20px;
  }
  .hero {
    padding-top: 64px;
  }
  .hero-shot {
    margin-top: 48px;
  }
  .window {
    border-radius: var(--r-md);
  }
  .sec,
  .cta {
    padding: 88px 0;
  }
  .sec-tight {
    padding-top: 8px;
  }
  .sec-head {
    margin-bottom: 40px;
  }
  .sec-head p {
    font-size: 16px;
  }
  .page-hero {
    padding: 64px 0 40px;
  }
  .page-sub {
    font-size: 16px;
  }
  .features {
    gap: 72px;
  }
  .minis {
    grid-template-columns: 1fr;
    margin-top: 72px;
    padding-top: 40px;
    gap: 24px;
  }
  .plans,
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .plan {
    padding: 34px 26px 28px;
  }
  .prose > h2 {
    margin-top: 56px;
    font-size: 26px;
  }
  .table th,
  .table td {
    padding: 12px 14px;
  }
  .table-stack thead {
    display: none;
  }
  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack th,
  .table-stack td {
    display: block;
  }
  .table-stack tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  .table-stack tbody tr:last-child {
    border-bottom: 0;
  }
  .table-stack tbody th,
  .table-stack td {
    padding: 0;
    border: 0;
  }
  .table-stack tbody th {
    margin-bottom: 6px;
    font-weight: 600;
  }
  .table-stack td {
    display: grid;
    grid-template-columns: 5em 1fr;
    gap: 12px;
    padding: 2px 0;
    font-size: 14px;
  }
  .table-stack td::before {
    content: attr(data-label);
    color: var(--text-3);
  }
  .table-stack tr.hl {
    background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
  }
  .table-stack tr.hl > * {
    background: none;
  }
  .page-hero h1 .sep {
    display: block;
    height: 0;
    overflow: hidden;
  }
  .foot-in {
    grid-template-columns: repeat(2, 1fr);
  }
  .float-contact {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  .btn-xl {
    --btn-h: 48px;
    padding: 0 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
