/* ──────────────────────────────────────────────────────────────────
   cmdSave — Linear-style editorial minimalism (light).
   Ref: rohitg00/awesome-claude-design /design-md/editorial/linear.md

   Rules:
   - Inter only (no serif, no italics for emphasis — use weight)
   - One accent: Linear purple #5e6ad2, used as PUNCTUATION
   - Flat. Border-based depth. No shadows on cards.
   - 4px base unit, 8px max radius
   - Type scale: 11/13/14/16/18/22/28/36/48/64
   ────────────────────────────────────────────────────────────────── */

:root {
  --bg:            #ffffff;
  --bg-alt:        #fafafa;
  --surface:       #f4f4f5;
  --text:          #0f0f14;
  --text-muted:    #6b6b76;
  --text-dim:      #a0a0ab;
  --border:        #e4e4e7;
  --border-strong: #d4d4d8;
  --accent:        #5e6ad2;
  --accent-hover:  #4e5acb;

  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", "Berkeley Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --wrap:        1200px;
  --wrap-narrow: 720px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";  /* Inter v3 alt glyphs */
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
code, kbd, samp { font-family: var(--ff-mono); font-size: 0.92em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

::selection { background: var(--accent); color: #fff; }

/* Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: hsl(0 0% 100% / 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__row {
  display: flex; align-items: center; gap: 32px;
  height: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand__glyph {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  position: relative;
  top: 0;
}
.nav__links { display: flex; gap: 24px; }
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }

.link-cta {
  margin-left: auto;
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transition: border-color .15s, background .15s;
}
.link-cta:hover { border-color: var(--border-strong); background: var(--bg-alt); }
.arr { display: inline-block; transition: transform .15s; }
.btn:hover .arr,
.link-cta:hover .arr { transform: translateX(2px); }

.burger {
  display: none;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
  width: 32px; padding: 8px;
}
.burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text);
  margin: 4px auto;
}

/* Hero ────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
}

.kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.display {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(40px, 6.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 22ch;
}
.display em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  display: block;
}

.lede {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero__cta { margin: 0 0 16px; }
.hero__foot {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: #fff;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Section ─────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section--rule { border-top: 1px solid var(--border); }

.head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: baseline;
  margin: 0 0 48px;
}
.head .kicker { margin: 0; }
.h2 {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  max-width: 28ch;
}
a.ext {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .15s;
}
a.ext:hover { color: var(--accent-hover); }

/* Features ────────────────────────────────────────────────────── */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.feat {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.feat:nth-child(3n) { border-right: 0; padding-right: 0; }
.feat:nth-child(3n+1) { padding-left: 0; }
.feat:nth-child(3n+2) { padding-inline: 24px; }
.feat:nth-last-child(-n+3) { border-bottom: 0; }

.feat__name {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
}
.feat__formats {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.feat__text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  max-width: 36ch;
  line-height: 1.55;
}

/* Steps ───────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.steps li {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--border);
}
.steps li:nth-child(3) { border-right: 0; padding-right: 0; }
.steps li:nth-child(1) { padding-left: 0; }
.steps li:nth-child(2) { padding-inline: 24px; }

.steps__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
}
.steps__head {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 6px;
}
.steps__text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  max-width: 32ch;
}

/* Pricing table ───────────────────────────────────────────────── */
.plans {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.plans thead th {
  text-align: left;
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border-strong);
}
.plans thead th:first-child { padding-left: 0; }
.plans thead th:last-child { padding-right: 0; }
.plans tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: baseline;
}
.plans tbody td:first-child { padding-left: 0; }
.plans tbody td:last-child { padding-right: 0; }
.plans tbody tr:last-child td { border-bottom: 0; }
.plans__name {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.012em;
  color: var(--text);
}
.plans .num {
  text-align: right;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.plans .big {
  font-family: var(--ff-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
  letter-spacing: -0.02em;
}

.packs {
  margin: 48px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: baseline;
}
.packs span {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.packs strong {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-right: 2px;
}

.note {
  margin: 32px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 68ch;
}
.note code {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--text);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Trust / prose ───────────────────────────────────────────────── */
.prose {
  display: grid; grid-template-columns: 1fr;
  gap: 14px;
  max-width: 64ch;
}
.prose p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}
.prose strong { color: var(--text); font-weight: 600; }

/* Payment methods row — small badges, compact */
.pays {
  margin: 28px 0 0;
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
}
.pays__chip {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--bg);
}

/* FAQ ─────────────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dim);
  transition: color .15s;
}
.faq[open] summary::after { content: "−"; color: var(--accent); }
.faq p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 64ch;
}
.faq a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.faq code {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Footer ──────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  background: var(--bg);
}
.foot__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.foot__desc {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 10px 0 0;
  line-height: 1.55;
}
.foot__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  font-size: 13px;
}
.foot__nav a { color: var(--text-muted); }
.foot__nav a:hover { color: var(--text); }
.foot__bot {
  padding-top: 20px;
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.foot__bot a { color: var(--text-muted); }
.foot__bot a:hover { color: var(--accent); }

/* Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links, .link-cta { display: none; }
  .burger { display: block; }
  .hero { padding: 64px 0 56px; }
  .display { font-size: clamp(36px, 9vw, 52px); }
  .section { padding: 56px 0; }
  .head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }

  .feats, .steps { grid-template-columns: 1fr; border-top: 0; }
  .feat,
  .feats .feat:nth-child(3n),
  .feats .feat:nth-child(3n+1),
  .feats .feat:nth-child(3n+2) {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .feats .feat:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .feats .feat:last-child { border-bottom: 0; }
  .steps li,
  .steps li:nth-child(1),
  .steps li:nth-child(2),
  .steps li:nth-child(3) {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .steps li:last-child { border-bottom: 0; }

  .plans thead { display: none; }
  .plans, .plans tbody, .plans tr, .plans td { display: block; width: 100%; }
  .plans tr {
    border-bottom: 1px solid var(--border);
    padding: 14px 0 18px;
  }
  .plans tbody td { padding: 3px 0 !important; border: 0; }
  .plans__name { font-size: 18px; padding-bottom: 4px !important; }
  .plans .num { text-align: left; padding-top: 6px !important; }

  .foot__row { grid-template-columns: 1fr; gap: 28px; }
  .foot__nav { grid-template-columns: 1fr; gap: 6px; }
  .foot__bot { flex-direction: column; gap: 8px; }
}

/* Mobile menu open */
body.menu-open { overflow: hidden; }
body.menu-open .nav__links {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px;
  gap: 4px;
  z-index: 40;
}
body.menu-open .nav__links a {
  font-size: 22px;
  font-weight: 500;
  padding: 8px 0;
  color: var(--text);
}
body.menu-open .link-cta {
  display: inline-flex !important;
  position: fixed;
  inset: auto 24px 24px auto;
  z-index: 41;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
