/* ==========================================================================
   KeepNest · site.css
   Layout + components. All colours / spacing / radii come from tokens.css,
   which was exported straight out of the design canvas.
   Breakpoints mirror the canvas recipes:
     desktop 1440 (gutter 120) · tablet 768 (gutter 40) · phone 390 (gutter 20)
   ========================================================================== */

:root {
  --font-sans: "Geist", "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page-max: 1440px;
  --gutter: clamp(40px, 8.3333vw, 120px);
  --sec-pad: 92px;
  --brand-deep-2: #7A2210;
  --footer-ink: #1C1A17;
  --footer-muted: #B4AEA4;
  --footer-link: #D6D1C4;
  --footer-faint: #8A8578;
}

html[lang="zh-CN"] {
  --font-sans: "Geist", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--Color-bg-page);
  color: var(--Color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--Color-brand-strong);
  outline-offset: 2px;
  border-radius: var(--Radius-r-sm);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; border-radius: var(--Radius-r-md);
  background: var(--Color-surface); border: 1px solid var(--Color-border-strong);
  font-size: 14px; font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- layout primitives ---------- */

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

.section { padding-block: var(--sec-pad); }
.section--surface { background: var(--Color-surface); }
.section--subtle { background: var(--Color-bg-subtle); }
.section--flush-top { padding-block: 0 var(--sec-pad); }

.sec-head {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
}
.sec-head--left { align-items: flex-start; text-align: left; }

.eyebrow {
  font-size: 13px; font-weight: 600;
  color: var(--Color-brand-strong);
  letter-spacing: .01em;
}
.sec-h2 {
  font-size: 38px; line-height: 46px; font-weight: 700;
  letter-spacing: -.02em; max-width: 900px;
}
.sec-sub {
  font-size: 17px; line-height: 27px;
  color: var(--Color-text-secondary); max-width: 660px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--Radius-r-md);
  font-size: 15px; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  text-align: center; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--Color-brand-strong); color: var(--Color-text-inverse); }
.btn--primary:hover { background: var(--Color-brand-deep); }
.btn--primary:active { background: var(--brand-deep-2); }
.btn--secondary {
  background: var(--Color-surface);
  border-color: var(--Color-border-strong);
  color: var(--Color-text-primary);
}
.btn--secondary:hover { border-color: var(--Color-text-tertiary); }
.btn--ghost { color: var(--Color-text-secondary); padding: 0 8px; }
.btn--ghost:hover { color: var(--Color-text-primary); }
.btn--lg { height: 50px; padding: 0 26px; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 9px; }
.btn--block { width: 100%; }

/* placeholder / pending markers ------------------------------------------- */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: var(--Radius-r-pill);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.tag--warn { background: var(--Color-warning-soft); color: var(--Color-warning); }
.tag--flat { background: var(--Color-bg-subtle); color: var(--Color-text-tertiary); height: 22px; font-size: 11px; }
.tag--brand { background: var(--Color-brand-strong); color: var(--Color-text-inverse); height: 24px; font-size: 11px; letter-spacing: .06em; }
.tag__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex: none; }

.store-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px 9px 13px;
  border-radius: var(--Radius-r-md);
  background: var(--Color-warning-soft);
  color: var(--Color-warning);
  font-size: 12.5px;
}
.store-note .tag { background: rgba(150, 105, 15, .14); }
.store-note--sm { padding: 7px 14px 7px 12px; border-radius: 9px; font-size: 12px; }

[data-pending] { position: relative; cursor: pointer; }
a[data-pending]:not(.btn) {
  border-bottom: 1px dashed rgba(150, 105, 15, .5);
}
a[data-pending]:not(.btn):hover { border-bottom-color: var(--Color-warning); }
.btn[data-pending]::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit; border: 1px dashed rgba(150, 105, 15, .55);
  pointer-events: none;
}
.btn--primary[data-pending]::after { border-color: rgba(255, 255, 255, .6); }

/* ---------- header / navigation ---------- */

.site-head { background: var(--Color-bg-page); }
.site-head .wrap { padding-block: 0; }

.nav-desktop {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-lockup { display: flex; align-items: center; gap: 10px; }
.nav-lockup img { width: 30px; height: 30px; }
.nav-lockup span { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--Color-text-secondary); }
.nav-link:hover { color: var(--Color-text-primary); }
.nav-link.is-active { color: var(--Color-text-primary); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--Color-text-secondary);
}
.lang-btn:hover { background: var(--Color-bg-subtle); color: var(--Color-text-primary); }
.lang-btn svg { width: 16px; height: 16px; flex: none; }

.nav-mobile { display: none; }
.mobile-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 60px;
}
.mobile-bar .nav-lockup img { width: 26px; height: 26px; }
.mobile-bar .nav-lockup span { font-size: 17px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  color: var(--Color-text-primary);
}
.icon-btn:hover { background: var(--Color-bg-subtle); }

.mobile-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: var(--Radius-r-xl);
  margin-bottom: 16px;
}
.mobile-panel[hidden] { display: none; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-links { display: flex; flex-direction: column; gap: 2px; padding: 26px 0 22px; }
.panel-link {
  display: flex; align-items: center; height: 48px; padding: 0 12px;
  border-radius: 10px; font-size: 17px; font-weight: 500;
}
.panel-link.is-active { background: var(--Color-brand-soft); color: var(--Color-brand-deep); font-weight: 600; }
.panel-lang {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 0;
}
.panel-lang__label { font-size: 14px; font-weight: 500; color: var(--Color-text-secondary); }
.segmented {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--Color-bg-subtle); border-radius: var(--Radius-r-pill);
  height: 36px;
}
.segmented button {
  height: 28px; padding: 0 14px; border-radius: var(--Radius-r-pill);
  font-size: 13px; font-weight: 500; color: var(--Color-text-tertiary);
}
.segmented button[aria-pressed="true"] {
  background: var(--Color-surface); color: var(--Color-text-primary); font-weight: 600;
}
.panel-cta { height: 50px; border-radius: 12px; font-size: 16px; }

/* ---------- hero ---------- */

.hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 26px; padding-block: 76px 40px; text-align: center;
}
.hero-top { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 15px 0 13px;
  border-radius: var(--Radius-r-pill);
  background: var(--Color-brand-softer);
  border: 1px solid var(--Color-brand-border);
  color: var(--Color-brand-deep);
  font-size: 13px; font-weight: 500;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 999px; background: var(--Color-brand); flex: none; }
.hero h1 {
  font-size: 60px; line-height: 66px; font-weight: 700;
  letter-spacing: -.03em; max-width: 100%;
}
.hero-sub {
  font-size: 19px; line-height: 30px;
  color: var(--Color-text-secondary); max-width: 780px;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: 13.5px; color: var(--Color-text-tertiary); }
.hero .store-note { font-size: 11.5px; }

/* ---------- extension mockup ---------- */

.mockup-wrap { display: flex; justify-content: center; }
.mockup-section { padding-block: 0 26px; }
.mockup {
  --mk-row: 64px;
  display: flex;
  width: 100%; max-width: 1120px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: var(--Radius-r-xl);
  overflow: hidden;
}
.mk-side {
  display: flex; flex-direction: column; gap: 0;
  width: 246px; flex: none;
  padding: 16px 12px;
  background: var(--Color-surface);
}
.mk-lockup { display: flex; align-items: center; gap: 9px; padding: 0 6px 18px; }
.mk-lockup img { width: 26px; height: 26px; }
.mk-lockup span { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mk-group {
  padding: 0 6px; font-size: 10px; line-height: 16px; font-weight: 600;
  letter-spacing: .09em; color: var(--Color-text-tertiary);
}
.mk-group + .mk-nav, .mk-nav + .mk-group { }
.mk-nav {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 8px; border-radius: 9px;
  color: var(--Color-text-secondary);
}
.mk-nav svg { width: 18px; height: 18px; flex: none; }
.mk-nav__label { flex: 1; font-size: 14px; }
.mk-nav__count { font-size: 12px; color: var(--Color-text-tertiary); }
.mk-nav.is-active { background: var(--Color-brand-soft); color: var(--Color-brand-deep); }
.mk-nav.is-active .mk-nav__label { font-weight: 600; }
.mk-nav.is-active .mk-nav__count { color: var(--Color-brand-strong); font-weight: 500; }
.mk-nav--alert .mk-nav__count { color: var(--Color-brand); font-weight: 600; }
.mk-group--spaced { padding-top: 18px; }

.mk-main {
  display: flex; flex-direction: column; gap: 14px;
  flex: 1; min-width: 0;
  padding: 16px 22px;
  background: var(--Color-bg-page);
}
.mk-top { display: flex; align-items: center; gap: 12px; }
.mk-search {
  display: flex; align-items: center; gap: 8px;
  flex: 1; max-width: 300px; height: 36px; padding: 0 12px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: 9px;
  font-size: 13px; color: var(--Color-text-tertiary);
}
.mk-search svg { width: 15px; height: 15px; flex: none; color: var(--Color-text-tertiary); }
.mk-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-icons { display: flex; align-items: center; gap: 14px; color: var(--Color-text-tertiary); }
.mk-icons svg { width: 17px; height: 17px; }

.mk-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mk-title { font-size: 23px; line-height: 30px; font-weight: 700; letter-spacing: -.02em; }
.mk-sub { margin-top: 3px; font-size: 13px; color: var(--Color-text-tertiary); }
.mk-new {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: 9px; background: var(--Color-brand-strong); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap; flex: none;
}
.mk-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-tab {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--Radius-r-pill);
  background: var(--Color-surface); border: 1px solid var(--Color-border);
  font-size: 12px; font-weight: 500; color: var(--Color-text-secondary);
}
.mk-tab.is-active {
  background: #F2E3DA; border-color: transparent;
  color: var(--Color-brand-deep); font-weight: 600;
}
.mk-list { display: flex; flex-direction: column; gap: 8px; }
.mk-row {
  display: flex; align-items: center; gap: 14px;
  height: var(--mk-row); padding: 0 16px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: 12px;
}
.mk-thumb {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px; border: 1px solid var(--Color-border);
  object-fit: cover; background: var(--Color-bg-subtle);
}
.mk-row__text { flex: 1; min-width: 0; }
.mk-row__title {
  font-size: 14px; line-height: 20px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mk-row__meta { margin-top: 3px; font-size: 12px; color: var(--Color-text-tertiary); }
.mk-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--Radius-r-pill); flex: none;
  background: var(--Color-bg-subtle); color: var(--Color-text-secondary);
  font-size: 11px; font-weight: 500;
}
.mk-foot { display: flex; align-items: center; gap: 12px; }
.mk-foot__count { font-size: 12px; color: var(--Color-text-tertiary); }
.mk-more {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 8px; background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  font-size: 12px; font-weight: 500; color: var(--Color-text-secondary);
}

/* ---------- how it works / steps ---------- */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 52px;
}
.step {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  background: var(--Color-bg-page);
  border: 1px solid var(--Color-border);
  border-radius: 16px;
}
.step__num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--Color-brand-strong); }
.step__title { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.step__body { font-size: 14.5px; line-height: 23px; color: var(--Color-text-secondary); }
.section--surface .step { background: var(--Color-bg-page); }
.step--featured {
  background: var(--Color-brand-softer);
  border-color: var(--Color-brand-border);
  box-shadow: 0 14px 34px rgba(156, 41, 18, .09);
  transform: translateY(-6px);
}
.section--surface .step--featured { background: var(--Color-brand-softer); }

/* ---------- capability cards ---------- */

.cap-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; padding-top: 52px;
}
.cap-card {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 236px; padding: 28px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: 16px;
}
.cap-card--wide { grid-column: span 3; }
.cap-card__icon { width: 42px; height: 42px; color: var(--Color-brand-strong); }
.cap-card__title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.cap-card__body { font-size: 14.5px; line-height: 23px; color: var(--Color-text-secondary); }

/* ---------- platform ---------- */

.plat-chips { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 44px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 18px 0 16px;
  border-radius: var(--Radius-r-pill);
  font-size: 14.5px; font-weight: 500;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border-strong);
  color: var(--Color-text-primary);
}
.chip--planned {
  background: var(--Color-bg-subtle); border-color: transparent;
  color: var(--Color-text-secondary);
}
.chip svg { width: 16px; height: 16px; flex: none; }
.chip--now svg { color: var(--Color-success); }
.plat-note {
  padding-top: 26px; font-size: 13.5px; line-height: 22px;
  color: var(--Color-text-tertiary); max-width: 620px;
}
.plat-body { display: flex; flex-direction: column; align-items: center; text-align: center; }
.plat-body .plat-note { margin-inline: auto; }

/* ---------- privacy grid ---------- */

.priv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 52px;
}
.priv-item {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 190px; padding: 26px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: 14px;
}
.priv-item svg { width: 20px; height: 20px; color: var(--Color-brand-strong); }
.priv-item__title { font-size: 16.5px; font-weight: 600; }
.priv-item__body { font-size: 14px; line-height: 22px; color: var(--Color-text-secondary); }

/* ---------- final CTA panel ---------- */

.cta-panel {
  display: flex; flex-direction: column; align-items: center;
  gap: 22px; padding: 72px 80px;
  background: var(--Color-brand-softer);
  border: 1px solid var(--Color-brand-border);
  border-radius: var(--Radius-r-2xl);
  text-align: center;
}
.cta-panel h2 { font-size: 34px; line-height: 42px; font-weight: 700; letter-spacing: -.02em; }
.cta-panel p { font-size: 17px; line-height: 27px; color: var(--Color-text-secondary); max-width: 660px; }
.cta-panel .hero-ctas { margin: 0; }
.cta-note { font-size: 13px; color: var(--Color-text-tertiary); }

/* ---------- footer ---------- */

.site-foot { padding-block: 0 96px; }
.footer {
  display: flex; flex-direction: column; gap: 44px;
  padding: 64px;
  background: var(--footer-ink);
  border-radius: 24px;
  color: #fff;
}
.footer-top { display: flex; justify-content: space-between; gap: 64px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; width: 300px; flex: none; }
.footer-lockup { display: flex; align-items: center; gap: 10px; }
.footer-lockup img { width: 26px; height: 26px; }
.footer-lockup span { font-size: 18px; font-weight: 700; }
.footer-tagline { font-size: 14px; line-height: 22px; color: var(--footer-muted); }
.footer-note { font-size: 13px; line-height: 21px; color: var(--footer-faint); }
.footer-cols { display: flex; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--footer-faint); letter-spacing: .04em; }
.footer-col a, .footer-col > span { font-size: 14px; color: var(--footer-link); }
.footer-col > span { max-width: 190px; line-height: 21px; color: var(--footer-muted); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 13px; color: var(--footer-faint);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- page header (inner pages) ---------- */

.page-head {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding-block: 72px 0; text-align: center;
}
.page-head h1 {
  font-size: 56px; line-height: 64px; font-weight: 700;
  letter-spacing: -.03em; max-width: 900px;
}
.page-head .sec-sub { max-width: 760px; font-size: 18px; line-height: 30px; }
.page-head__note {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  padding: 9px 16px 9px 12px; border-radius: var(--Radius-r-md);
  background: var(--Color-warning-soft); color: var(--Color-warning);
  font-size: 12.5px; max-width: 760px;
}
.page-head__note .tag { background: rgba(150, 105, 15, .14); }
.page-head__meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--Color-text-tertiary);
}

/* ---------- plans ---------- */

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-block: 0; }
.plan {
  display: flex; flex-direction: column; gap: 20px;
  padding: 36px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: 24px;
}
.plan--pro { background: var(--Color-brand-softer); border-color: var(--Color-brand-border); }
.plan__badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--Radius-r-pill);
  background: var(--Color-bg-subtle); color: var(--Color-text-tertiary);
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
}
.plan--pro .plan__badge { background: var(--Color-brand-strong); color: #fff; }
.plan__name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.plan__price-row { display: flex; align-items: baseline; gap: 10px; }
.plan__price { font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -.03em; }
.plan__period { font-size: 15px; color: var(--Color-text-tertiary); }
.pro-price-options { display: flex; flex-direction: column; gap: 10px; }
.pro-price-option { padding: 13px 15px; border: 1px solid var(--Color-border); border-radius: 12px; background: var(--Color-surface); }
.pro-price-option--yearly { border-color: var(--Color-brand-border); }
.pro-price-option__label { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; color: var(--Color-text-secondary); }
.pro-price-option .plan__price { font-size: 28px; line-height: 34px; }
.pro-price-option .plan__period { font-size: 13px; }
.pro-price-option__detail, .pro-cancel-note { font-size: 12px; line-height: 18px; color: var(--Color-text-secondary); }
.pro-price-option__detail + .pro-price-option__detail { margin-top: 2px; }
.pro-cancel-note { color: var(--Color-text-tertiary); }
.plan button:disabled { cursor: not-allowed; opacity: .58; }
.plan__desc { font-size: 15px; line-height: 24px; color: var(--Color-text-secondary); }
.plan__divider { height: 1px; background: var(--Color-border); }
.plan--pro .plan__divider { background: var(--Color-brand-border); }
.plan__features { display: flex; flex-direction: column; gap: 14px; }
.plan__feature { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 23px; }
.plan__feature svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.plan__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 999px; flex: none; margin-top: 2px;
  background: var(--Color-bg-subtle); color: var(--Color-text-secondary);
}
.plan--pro .plan__check { background: var(--Color-brand-soft); color: var(--Color-brand-deep); }
.plan__check svg { width: 11px; height: 11px; margin: 0; }
.plan__note { font-size: 13px; line-height: 21px; color: var(--Color-text-tertiary); }

/* ---------- comparison table ---------- */

.cmp-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--Color-border);
  border-radius: 18px; overflow: hidden;
  background: var(--Color-surface);
  font-size: 15px;
}
.cmp-table th, .cmp-table td {
  padding: 17px 24px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--Color-border);
}
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table thead th {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--Color-text-tertiary); background: var(--Color-bg-page);
}
.cmp-table tbody tr:nth-child(odd) td { background: var(--Color-bg-page); }
.cmp-table th:first-child, .cmp-table td:first-child { width: 38%; }
.cmp-table th:not(:first-child), .cmp-table td:not(:first-child) { width: 31%; }
.cmp-table td:first-child { font-weight: 500; }
.cmp-feature-note { display: block; margin-top: 2px; font-size: 11px; line-height: 15px; font-weight: 400; color: var(--Color-text-tertiary); }
.cmp-table .is-pro { color: var(--Color-brand-strong); font-weight: 500; }
.cmp-table .m-label { display: none; }
.cmp-caption { padding-top: 16px; font-size: 13px; color: var(--Color-text-tertiary); }

/* ---------- quota cards ---------- */

.quota-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 52px; }
.quota-card {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px; padding: 28px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: 18px;
}
.quota-card svg { width: 36px; height: 36px; color: var(--Color-brand-strong); }
.quota-card__title { font-size: 18px; font-weight: 600; }
.quota-card__body { font-size: 15px; line-height: 23px; color: var(--Color-text-secondary); }

/* ---------- obsidian band ---------- */

.band {
  display: flex; align-items: center; gap: 24px;
  padding: 40px 36px;
  background: var(--Color-brand-softer);
  border-radius: var(--Radius-r-xl);
}
.band svg { width: 32px; height: 32px; flex: none; color: var(--Color-brand-strong); }
.band__text { display: flex; flex-direction: column; gap: 8px; }
.band__lead { font-size: 16px; font-weight: 600; }
.band__body { font-size: 15px; line-height: 24px; color: var(--Color-text-secondary); }

/* ---------- FAQ ---------- */

.faq-label {
  padding-bottom: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--Color-text-tertiary);
}
.faq-list {
  border: 1px solid var(--Color-border);
  border-radius: 18px; overflow: hidden;
  background: var(--Color-surface);
}
.faq-item + .faq-item { border-top: 1px solid var(--Color-border); }
.faq-item[open] { background: var(--Color-surface-muted); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 24px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; line-height: 26px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: none; border-radius: 999px;
  background: var(--Color-bg-subtle); color: var(--Color-text-secondary);
  transition: transform .18s ease, background-color .18s ease;
}
.faq-toggle svg { width: 12px; height: 12px; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--Color-brand-soft); color: var(--Color-brand-deep); }
.faq-answer {
  padding: 0 24px 24px; font-size: 16px; line-height: 26px;
  color: var(--Color-text-secondary);
}
.faq-pending { padding-top: 16px; font-size: 13px; color: var(--Color-text-tertiary); }

/* ---------- legal / long-form ---------- */

.legal-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px; padding-top: 56px; align-items: start;
}
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.toc h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--Color-text-tertiary); }
.toc a { font-size: 13.5px; line-height: 20px; color: var(--Color-text-secondary); }
.toc a:hover { color: var(--Color-brand-strong); }

.legal-body { display: flex; flex-direction: column; gap: 36px; max-width: 760px; }
.legal-block { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.legal-block h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.legal-block p { font-size: 15.5px; line-height: 26px; color: var(--Color-text-secondary); }
.legal-summary {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; text-align: left;
  padding: 28px 32px; margin-top: 40px;
  background: var(--Color-brand-softer);
  border: 1px solid var(--Color-brand-border);
  border-radius: var(--Radius-r-xl);
}
.legal-summary h2 { font-size: 16px; font-weight: 600; }
.legal-summary p { font-size: 15px; line-height: 25px; color: var(--Color-text-secondary); }
.legal-notice {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; text-align: left;
  padding: 28px 32px; margin-top: 40px;
  background: var(--Color-warning-soft);
  border-radius: var(--Radius-r-xl);
  color: var(--Color-warning);
}
.legal-notice h2 { font-size: 16px; font-weight: 600; }
.legal-notice p { font-size: 15px; line-height: 25px; }
.legal-back { padding-top: 8px; }
.legal-block .tag, .note-card .tag { align-self: flex-start; }

/* ---------- help page ---------- */

.help-group { padding-top: 56px; display: flex; flex-direction: column; gap: 18px; }
.help-group h2 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.help-contact {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 48px 40px; margin-top: 72px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: var(--Radius-r-2xl);
  text-align: center;
}
.help-contact h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.help-contact p { font-size: 15px; line-height: 25px; color: var(--Color-text-secondary); max-width: 520px; }

/* ---------- extension page ---------- */

.note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 24px; }
.note-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: 16px;
}
.note-card h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.note-card p { font-size: 15px; line-height: 24px; color: var(--Color-text-secondary); }

/* ---------- states sheet ---------- */

.specimen {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: var(--Radius-r-xl);
}
.specimen__label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--Color-text-tertiary);
}
.specimen__hint { font-size: 14px; line-height: 22px; color: var(--Color-text-secondary); }
.specimen-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.specimen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.device {
  width: 390px; max-width: 100%;
  padding: 20px;
  background: var(--Color-bg-page);
  border: 1px solid var(--Color-border-strong);
  border-radius: 28px;
}
.loading-card {
  display: flex; flex-direction: column; gap: 12px;
  width: 420px; max-width: 100%; padding: 22px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border);
  border-radius: 18px;
}
.skeleton {
  height: 16px; border-radius: 6px; background: #F0ECE3;
  background-image: linear-gradient(90deg, #F0ECE3 0%, #F7F4EE 40%, #F0ECE3 80%);
  background-size: 220% 100%;
  animation: kn-shimmer 1.6s linear infinite;
}
.skeleton--w1 { width: 100%; }
.skeleton--w2 { width: 300px; max-width: 72%; }
.skeleton--w3 { width: 200px; max-width: 48%; }
@keyframes kn-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

.error-state {
  display: flex; align-items: flex-start; gap: 14px;
  max-width: 520px; padding: 20px;
  background: var(--Color-danger-soft);
  border-radius: 16px;
  color: #8A301A;
}
.error-state svg { width: 20px; height: 20px; flex: none; color: #B2301A; margin-top: 1px; }
.error-state__copy { display: flex; flex-direction: column; gap: 6px; }
.error-state__title { font-size: 16px; font-weight: 600; }
.error-state__body { font-size: 14px; line-height: 22px; }
.error-state .btn {
  flex: none; margin-left: auto; align-self: center;
  height: 36px; padding: 0 16px; font-size: 14px;
  background: var(--Color-surface); border-color: #E0B5AB; color: #8A301A;
}
.error-state--sm { max-width: none; width: 100%; }

.placeholder-state {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 520px; padding: 22px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border-strong);
  border-radius: 18px;
}
.placeholder-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.placeholder-btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px;
  background: var(--Color-border); border-radius: 10px;
  color: var(--Color-text-secondary); font-size: 15px; font-weight: 600;
}
.placeholder-note { font-size: 13px; line-height: 21px; color: var(--Color-text-tertiary); }

.swatch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.swatch {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  background: var(--Color-brand-strong); color: #fff;
}
.swatch--hover { background: var(--Color-brand-deep); }
.swatch--pressed { background: var(--brand-deep-2); }
.swatch--focus { background: var(--Color-brand-strong); outline: 2px solid var(--Color-brand-deep); outline-offset: 2px; }
.swatch--disabled { background: var(--Color-border-strong); color: var(--Color-text-tertiary); cursor: not-allowed; }

/* ---------- 404 ---------- */

.notfound {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding-block: 96px 40px; text-align: center;
}
.notfound__code {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; color: var(--Color-brand-strong);
}
.notfound h1 { font-size: 52px; line-height: 60px; font-weight: 700; letter-spacing: -.03em; max-width: 20ch; }
.notfound p { font-size: 18px; line-height: 30px; color: var(--Color-text-secondary); max-width: 640px; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 460px; height: 50px; padding: 0 16px;
  background: var(--Color-surface);
  border: 1px solid var(--Color-border-strong);
  border-radius: var(--Radius-r-md);
  color: var(--Color-text-tertiary); font-size: 15px;
}
.search-field svg { width: 18px; height: 18px; flex: none; }

/* ---------- responsive: tablet ---------- */

@media (max-width: 1100px) {
  :root { --gutter: 40px; --sec-pad: 72px; }

  .nav-links { gap: 24px; }

  .hero { padding-block: 56px 32px; gap: 22px; }
  .hero h1 { font-size: 44px; line-height: 52px; }
  .hero-sub { font-size: 17px; line-height: 28px; max-width: 620px; }

  .mockup { max-width: 100%; }
  .mk-side { width: 196px; }

  .steps { grid-template-columns: 1fr; padding-top: 40px; }
  .step--featured { transform: none; }

  .cap-grid { padding-top: 40px; }
  .cap-card, .cap-card--wide { grid-column: span 3; min-height: 0; }
  .cap-card:last-child { grid-column: span 6; }

  .priv-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 40px; }
  .priv-item { min-height: 0; }

  .plat-chips { padding-top: 36px; }
  .plat-body { align-items: flex-start; text-align: left; }
  .plat-body .plat-note { margin-inline: 0; }

  .sec-h2 { font-size: 32px; line-height: 40px; }
  .cta-panel { padding: 56px 48px; }
  .cta-panel h2 { font-size: 30px; line-height: 38px; }

  .page-head { padding-block: 56px 0; }
  .page-head h1 { font-size: 44px; line-height: 52px; }
  .page-head .sec-sub { font-size: 17px; line-height: 28px; }

  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 32px; }

  .cmp-table th, .cmp-table td { padding: 15px 18px; }
  .cmp-table th:first-child, .cmp-table td:first-child { width: 36%; }
  .cmp-table th:not(:first-child), .cmp-table td:not(:first-child) { width: 32%; }

  .quota-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 40px; }
  .quota-card { min-height: 0; }

  .note-grid { grid-template-columns: 1fr; }

  .footer { padding: 40px; gap: 32px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-brand { width: 100%; }
  .footer-cols { flex-wrap: wrap; gap: 40px; }

  .legal-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: baseline; }
  .toc h2 { width: 100%; }

  .specimen-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .site-head { padding-block: 12px; }
}

/* ---------- responsive: phone ---------- */

@media (max-width: 640px) {
  :root { --gutter: 20px; --sec-pad: 56px; }

  .hero { padding-block: 40px 24px; gap: 20px; }
  .hero h1 { font-size: 34px; line-height: 40px; }
  .hero-sub { font-size: 16px; line-height: 26px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .hero-ctas .btn { width: 100%; }
  .hero .store-note { width: 100%; justify-content: flex-start; }
  .hero-note { font-size: 13px; }

  .mockup { --mk-row: 80px; }
  .mk-side { display: none; }
  .mk-main { padding: 16px; gap: 12px; }
  .mk-search { max-width: none; }
  .mk-icons { display: none; }
  .mk-title { font-size: 20px; line-height: 27px; }
  .mk-title-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .mk-new { align-self: flex-start; }
  .mk-badge { display: none; }
  .mk-row__title { white-space: normal; overflow: visible; }
  .mk-thumb { width: 36px; height: 36px; }

  .sec-h2 { font-size: 26px; line-height: 34px; }
  .sec-sub { font-size: 16px; line-height: 26px; }

  .cap-grid { gap: 16px; padding-top: 32px; }
  .cap-card, .cap-card--wide, .cap-card:last-child { grid-column: span 6; padding: 24px; }

  .step { padding: 24px; }
  .step__title { font-size: 19px; }

  .plat-chips { flex-direction: column; align-items: stretch; gap: 12px; }
  .chip { justify-content: flex-start; }
  .plat-note { font-size: 13px; }

  .cta-panel { padding: 40px 24px; border-radius: var(--Radius-r-xl); gap: 18px; }
  .cta-panel h2 { font-size: 26px; line-height: 34px; }
  .cta-panel p { font-size: 16px; line-height: 26px; }
  .cta-panel .store-note { width: 100%; justify-content: center; }

  .site-foot { padding-block: 0 24px; }
  .footer { padding: 32px 24px; gap: 32px; border-radius: var(--Radius-r-xl); }
  .footer-top { gap: 32px; }
  .footer-cols { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .page-head { padding-block: 40px 0; gap: 14px; text-align: left; align-items: flex-start; }
  .page-head h1 { font-size: 34px; line-height: 40px; }
  .page-head .sec-sub { font-size: 16px; line-height: 26px; }
  .page-head__note { justify-content: flex-start; text-align: left; }

  .plan { padding: 26px; gap: 18px; }
  .plan__price { font-size: 40px; line-height: 44px; }
  .plan__name { font-size: 22px; }

  /* table → card stack (matches the phone canvas: a compressed 3-column
     table is unreadable at 390px, so each row becomes a block) */
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table td { display: block; width: auto; }
  .cmp-table thead { display: none; }
  .cmp-table tr { padding: 18px 20px; border-bottom: 1px solid var(--Color-border); }
  .cmp-table tr:last-child { border-bottom: 0; }
  .cmp-table tbody tr:nth-child(odd) td, .cmp-table tbody tr:nth-child(even) td { background: transparent; }
  .cmp-table td { padding: 2px 0; border: 0; width: auto !important; background: transparent !important; }
  .cmp-table td:first-child { font-size: 15px; font-weight: 600; padding-bottom: 6px; }
  .cmp-table .m-label { display: inline; color: var(--Color-text-tertiary); font-weight: 400; }
  .cmp-table .m-label::after { content: " · "; color: var(--Color-text-tertiary); }
  .cmp-table td.cmp-free { font-size: 14px; color: var(--Color-text-secondary); }
  .cmp-table td.cmp-pro { font-size: 14px; color: var(--Color-brand-strong); }

  .quota-card { padding: 24px; gap: 12px; }
  .quota-card svg { width: 30px; height: 30px; }

  .band { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 28px; border-radius: var(--Radius-r-lg); }

  .faq-item > summary { padding: 18px 20px; font-size: 16px; gap: 16px; }
  .faq-answer { padding: 0 20px 20px; font-size: 15px; line-height: 25px; }

  .legal-summary, .legal-notice { padding: 24px; margin-top: 28px; }
  .legal-body { gap: 28px; }
  .legal-block h2 { font-size: 18px; }
  .legal-block p { font-size: 15px; line-height: 25px; }

  .help-group { padding-top: 40px; gap: 14px; }
  .help-group h2 { font-size: 20px; line-height: 28px; }
  .help-contact { padding: 32px 24px; margin-top: 48px; border-radius: var(--Radius-r-xl); }

  .notfound { padding-block: 56px 32px; gap: 16px; }
  .notfound h1 { font-size: 32px; line-height: 40px; }
  .notfound p { font-size: 16px; line-height: 26px; }

  .specimen { padding: 24px; }
  .device { padding: 16px; border-radius: 24px; }

  .error-state { flex-wrap: wrap; }
  .error-state .btn { margin-left: 34px; align-self: flex-start; }
}
