/* ═══════════════════════════════════════════════════════════════════════════
   Cabinote — Shared Stylesheet
   Used by: faq.html, features.html, compare.html, changelog.html
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── Tokens: Light ── */
:root {
  --brand:         #FF8C42;
  --brand-dark:    #e6702a;
  --brand-light:   #fff0e6;
  --accent:        #E84855;
  --accent2:       #6C63FF;

  --bg:            #FDFAF7;
  --bg-alt:        #F5EFE8;
  --bg-card:       #FFFFFF;
  --bg-card2:      #F9F4EF;
  --surface:       #FFFFFF;
  --border:        rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.13);

  --text:          #1C1208;
  --text-muted:    #6B5744;
  --text-dim:      #A8927D;

  --navbar-bg:     rgba(253,250,247,0.93);
  --navbar-border: rgba(0,0,0,0.06);
  --ghost-bg:      rgba(0,0,0,0.05);
  --ghost-hover:   rgba(0,0,0,0.09);

  --shadow-card:   0 2px 16px rgba(232,72,85,0.05), 0 1px 5px rgba(0,0,0,0.05);
  --code-bg:       rgba(255,140,66,0.09);
  --code-color:    #c0571a;

  --radius:    18px;
  --radius-sm: 10px;
  --radius-xs: 7px;

  --yes-color: #16a34a;
  --yes-bg:    rgba(22,163,74,0.09);
  --no-color:  #dc2626;
  --no-bg:     rgba(220,38,38,0.08);
  --part-color:#d97706;
  --part-bg:   rgba(217,119,6,0.09);

  --logo-filter: none;
}

/* ── Tokens: Dark ── */
[data-theme="dark"] {
  --brand:         #FF9E58;
  --brand-dark:    #FF8C42;
  --brand-light:   rgba(255,140,66,0.12);
  --accent:        #FF6B75;

  --bg:            #110C08;
  --bg-alt:        #1C1510;
  --bg-card:       #1A1208;
  --bg-card2:      #231810;
  --surface:       #1A1208;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);

  --text:          #F5EDE0;
  --text-muted:    #C4A882;
  --text-dim:      #7A6048;

  --navbar-bg:     rgba(17,12,8,0.90);
  --navbar-border: rgba(255,255,255,0.06);
  --ghost-bg:      rgba(255,255,255,0.06);
  --ghost-hover:   rgba(255,255,255,0.11);

  --shadow-card:   0 4px 28px rgba(0,0,0,0.5);
  --code-bg:       rgba(255,158,88,0.12);
  --code-color:    #ffb87a;

  --yes-color: #4ade80;  --yes-bg: rgba(74,222,128,0.08);
  --no-color:  #f87171;  --no-bg:  rgba(248,113,113,0.08);
  --part-color:#fbbf24;  --part-bg:rgba(251,191,36,0.08);

  --logo-filter: brightness(0) invert(1);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: var(--brand); }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }
strong { color: var(--text); }
code {
  background: var(--code-bg); color: var(--code-color);
  border-radius: 4px; padding: 1px 6px;
  font-size: 0.87em; font-family: ui-monospace, 'SF Mono', monospace;
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 14px; height: 60px;
}
.nav-brand img { height: 38px; filter: var(--logo-filter); transition: filter 0.25s; display: block; }
.nav-sep { width: 1px; height: 28px; background: var(--border-strong); flex-shrink: 0; }
.nav-app-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-app-icon { width: 38px; height: 38px; border-radius: 9px; }
.nav-app-name { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 6px 11px; border-radius: var(--radius-xs); font-size: 13.5px;
  font-weight: 500; color: var(--text-muted); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--ghost-bg); color: var(--text); }
.nav-links .nav-cta {
  background: var(--brand); color: #fff !important; border-radius: 8px;
  padding: 6px 14px; font-weight: 600; margin-left: 4px;
}
.nav-links .nav-cta:hover { background: var(--brand-dark); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
  background: none; border: none; cursor: pointer; font-size: 17px;
  padding: 5px 7px; border-radius: var(--radius-xs); transition: background 0.15s;
}
.theme-toggle:hover { background: var(--ghost-bg); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--text); padding: 4px 6px;
}
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; background: var(--navbar-bg);
    padding: 12px 16px 16px; border-bottom: 1px solid var(--navbar-border); gap: 2px;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links .nav-cta { width: 100%; text-align: center; margin: 4px 0 0; }
  .nav-toggle { display: block; }
}

/* ── Page Header ── */
.page-header {
  padding: 96px 0 52px; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--text-dim); }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px;
}
.page-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 580px; }

/* ── Section ── */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-label {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--brand);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 560px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); font-size: 14.5px;
  font-weight: 600; cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; opacity: 0.9; }
.btn-primary {
  background: linear-gradient(135deg, #FF8C42, #E84855); color: #fff;
  box-shadow: 0 5px 18px rgba(255,140,66,0.3);
}
.btn-primary:hover { opacity: 1; box-shadow: 0 8px 26px rgba(255,140,66,0.4); }
.btn-ghost {
  background: var(--ghost-bg); color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--ghost-hover); opacity: 1; }

/* ── FAQ ── */
.faq-container { max-width: 760px; margin: 0 auto; }
.faq-group { margin-bottom: 48px; }
.faq-group-title {
  font-size: 1rem; font-weight: 800; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 18px 0; font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--brand); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--text-dim); flex-shrink: 0; line-height: 1; transition: transform 0.2s, color 0.15s; }
.faq-q[aria-expanded="true"]::after { content: '−'; color: var(--brand); }
.faq-a { display: none; padding-bottom: 18px; }
.faq-a.open { display: block; }
.faq-a p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.7; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { padding-left: 20px; font-size: 0.93rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 5px; margin: 8px 0; }
.faq-a li::marker { color: var(--brand); }

/* ── Features Detail ── */
.feat-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.feat-block.visible { opacity: 1; transform: none; }
.feat-block-header { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.feat-icon {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.feat-icon--orange { background: rgba(255,140,66,0.12); }
.feat-icon--red    { background: rgba(232,72,85,0.1); }
.feat-icon--purple { background: rgba(108,99,255,0.1); }
.feat-icon--green  { background: rgba(72,187,120,0.1); }
.feat-icon--blue   { background: rgba(59,130,246,0.1); }
.feat-icon--yellow { background: rgba(251,191,36,0.1); }
.feat-icon--teal   { background: rgba(20,184,166,0.1); }
.feat-icon--pink   { background: rgba(244,114,182,0.1); }
.feat-icon--gray   { background: rgba(100,116,139,0.1); }
.feat-block-header h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.feat-subtitle { font-size: 0.88rem; color: var(--text-dim); }
.feat-body p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.7; }
.feat-body p:last-child { margin-bottom: 0; }
.feat-list { padding-left: 20px; font-size: 0.9rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.feat-list li::marker { color: var(--brand); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 700px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
.feat-chip {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  font-size: 0.83rem; color: var(--text-muted); text-align: center;
}

/* ── Compare Table ── */
.compare-wrap { overflow-x: auto; margin-top: 32px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bg-card); min-width: 680px; }
.compare-table th {
  padding: 14px 16px; text-align: center; font-size: 13px; font-weight: 700;
  background: var(--bg-alt); border-bottom: 2px solid var(--border-strong);
  white-space: nowrap; color: var(--text-muted);
}
.compare-table th:first-child { text-align: left; min-width: 180px; }
.compare-table .col-us { background: rgba(255,140,66,0.06); color: var(--brand) !important; border-left: 2px solid rgba(255,140,66,0.3); border-right: 2px solid rgba(255,140,66,0.3); }
.compare-table td {
  padding: 11px 16px; text-align: center; border-bottom: 1px solid var(--border);
  color: var(--text-muted); vertical-align: middle; line-height: 1.4;
}
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text); }
.compare-table .col-us { background: rgba(255,140,66,0.04); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-alt); }
.compare-table .row-cat td {
  background: var(--bg-alt); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim);
  text-align: left; padding: 8px 16px;
}
.yes  { color: var(--yes-color);  font-weight: 700; background: var(--yes-bg); border-radius: 5px; padding: 2px 8px; white-space: nowrap; display: inline-block; }
.no   { color: var(--no-color);   font-weight: 700; background: var(--no-bg);  border-radius: 5px; padding: 2px 8px; white-space: nowrap; display: inline-block; }
.part { color: var(--part-color); font-weight: 700; background: var(--part-bg);border-radius: 5px; padding: 2px 8px; white-space: nowrap; display: inline-block; }
.tag-free { color: var(--yes-color); font-weight: 700; }
.winner-badge {
  display: inline-block; background: linear-gradient(135deg,#FF8C42,#E84855);
  color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; margin-left: 6px; vertical-align: middle;
}

/* ── Changelog ── */
.timeline { position: relative; padding-left: 32px; margin-top: 16px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border-strong); border-radius: 2px;
}
.tl-entry { position: relative; margin-bottom: 44px; }
.tl-dot {
  position: absolute; left: -28px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--brand);
}
.tl-dot.minor { background: var(--text-dim); box-shadow: 0 0 0 2px var(--text-dim); }
.tl-version {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
  flex-wrap: wrap;
}
.tl-version .v-badge {
  font-size: 11px; font-weight: 700; border-radius: 99px;
  padding: 2px 9px; background: linear-gradient(135deg,#FF8C42,#E84855); color: #fff;
}
.tl-version .v-date { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.tl-changes { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.tl-change {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted);
}
.tl-change-tag {
  flex-shrink: 0; font-size: 10px; font-weight: 700; border-radius: 4px;
  padding: 2px 6px; text-transform: uppercase; margin-top: 2px;
}
.tag-new   { background: rgba(72,187,120,0.12); color: #16a34a; }
.tag-fix   { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.tag-impr  { background: rgba(251,191,36,0.12); color: #d97706; }
.tag-perf  { background: rgba(108,99,255,0.12); color: #6d28d9; }
[data-theme="dark"] .tag-new  { color: #4ade80; }
[data-theme="dark"] .tag-fix  { color: #93c5fd; }
[data-theme="dark"] .tag-impr { color: #fbbf24; }
[data-theme="dark"] .tag-perf { color: #c4b5fd; }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, rgba(255,140,66,0.08), rgba(232,72,85,0.06));
  border-top: 1px solid rgba(255,140,66,0.15);
  border-bottom: 1px solid rgba(255,140,66,0.15);
  padding: 52px 0; text-align: center;
}
.cta-band h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; }
.cta-band p { color: var(--text-muted); margin-bottom: 24px; }
.cta-band-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Footer ── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 52px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand img { height: 28px; filter: var(--logo-filter); margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.87rem; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand); opacity: 1; }
.footer-bottom { margin-top: 44px; border-top: 1px solid var(--border); padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom span { font-size: 0.82rem; color: var(--text-dim); }

/* ── Shared anim ── */
.anim { opacity: 0; transform: translateY(14px); }
.anim.visible { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.4s ease; }

/* ── Shared nav/footer JS (inline) ── */
