/* Glaso site — self-contained, no external requests (fonts/scripts/CDNs),
   so pages load fine behind restrictive networks. */

:root {
  --bg: #fafafa;
  --bg-raised: #ffffff;
  --text: #1d1d21;
  --text-soft: #55555e;
  --text-faint: #8a8a94;
  --accent: #5b6cff;
  --accent-soft: rgba(91, 108, 255, 0.1);
  --edge: rgba(29, 29, 33, 0.1);
  --edge-soft: rgba(29, 29, 33, 0.06);
  --glass-a: #7fb1f5;
  --glass-b: #b9a8f5;
  --mock-editor: #23242c;
  --mock-editor-bar: #2c2d36;
  --mock-line: #3a3b46;
  --mock-line-dim: #31323c;
  --panel-fill: rgba(255, 255, 255, 0.94);
  --panel-inner: #f1f2f6;
  --kbd-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e12;
    --bg-raised: #16171d;
    --text: #f0f0f4;
    --text-soft: #a7a8b3;
    --text-faint: #6d6e78;
    --accent: #8fa0ff;
    --accent-soft: rgba(143, 160, 255, 0.12);
    --edge: rgba(240, 240, 244, 0.12);
    --edge-soft: rgba(240, 240, 244, 0.07);
    --mock-editor: #1a1b22;
    --mock-editor-bar: #22232c;
    --mock-line: #34353f;
    --mock-line-dim: #2a2b34;
    --panel-fill: rgba(38, 39, 48, 0.96);
    --panel-inner: #1f2028;
    --kbd-bg: #22232c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }

nav.site { display: flex; gap: 22px; font-size: 14.5px; }
nav.site a { color: var(--text-soft); }
nav.site a:hover { color: var(--text); text-decoration: none; }

/* Hero */

.hero {
  padding: 56px 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  max-width: 17ch;
  font-weight: 700;
}

.hero h1 .tint {
  background: linear-gradient(100deg, var(--glass-a), var(--glass-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  font-size: 18.5px;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 auto 26px;
}

.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.store-badge {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
}
.store-badge:hover { text-decoration: none; opacity: 0.85; }

.meta-line {
  font-size: 13.5px;
  color: var(--text-faint);
}

kbd {
  font-family: inherit;
  font-size: 12.5px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--edge);
  border-bottom-width: 2px;
  background: var(--kbd-bg);
  color: var(--text-soft);
  white-space: nowrap;
}

/* Hero mock */

.mock {
  margin: 40px auto 0;
  max-width: 760px;
  position: relative;
}
.mock::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  background: radial-gradient(closest-side, rgba(127, 177, 245, 0.22), rgba(185, 168, 245, 0.1) 55%, transparent 75%);
  z-index: -1;
}
.mock svg { width: 100%; height: auto; display: block; }

/* Sections */

section { padding: 56px 0; }

section h2 {
  font-size: 30px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  text-align: center;
}

section p.lede {
  text-align: center;
  color: var(--text-soft);
  max-width: 58ch;
  margin: 0 auto 40px;
}

/* Feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--edge-soft);
  border-radius: 16px;
  padding: 22px 22px 20px;
}

.card .glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card .glyph svg { width: 20px; height: 20px; stroke: var(--accent); }

.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-soft); }
.card .pro-tag {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* Demo showcase — mac-style window frames that hold tutorial GIFs.
   Until a GIF exists, each frame shows an inline SVG placeholder; swap in
   <img src="/demos/<name>.gif"> (or <video>) without touching the layout. */

.demo-rows { display: flex; flex-direction: column; gap: 72px; margin-top: 48px; }

.demo-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 44px;
  align-items: center;
}
.demo-row.flip .demo-copy { order: 2; }

.demo-copy h3 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 8px; }
.demo-copy p { color: var(--text-soft); font-size: 15.5px; margin: 0 0 12px; }
.demo-copy .hint { font-size: 13.5px; color: var(--text-faint); }

.window-frame {
  border-radius: 14px;
  border: 1px solid var(--edge-soft);
  background: var(--bg-raised);
  box-shadow: 0 18px 44px rgba(11, 16, 32, 0.16);
  overflow: hidden;
}
.window-frame .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--edge-soft);
}
.window-frame .bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.window-frame .bar i:nth-child(1) { background: #ff5f57; }
.window-frame .bar i:nth-child(2) { background: #febc2e; }
.window-frame .bar i:nth-child(3) { background: #28c840; }
.window-frame .bar span { margin-left: 8px; font-size: 12px; color: var(--text-faint); }
.window-frame .screen { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--panel-inner); }
.window-frame .screen img,
.window-frame .screen video,
.window-frame .screen svg { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 760px) {
  .demo-row { grid-template-columns: 1fr; gap: 20px; }
  .demo-row.flip .demo-copy { order: 0; }
  .demo-rows { gap: 52px; }
}

/* Privacy strip */

.strip {
  background: var(--bg-raised);
  border: 1px solid var(--edge-soft);
  border-radius: 20px;
  padding: 34px 30px;
  text-align: center;
}
.strip h2 { font-size: 24px; }
.strip p { color: var(--text-soft); max-width: 60ch; margin: 6px auto 0; }

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 780px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
}

.plan {
  background: var(--bg-raised);
  border: 1px solid var(--edge-soft);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.plan h3 { margin: 0; font-size: 15px; color: var(--text-soft); font-weight: 600; }
.plan .price { font-size: 26px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -0.01em; }
.plan .term { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }
.plan ul { margin: 0; padding: 0 0 0 18px; font-size: 14.5px; color: var(--text-soft); }
.plan li { margin-bottom: 7px; }

.price-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  margin-top: 22px;
}

/* Inner pages */

article.page { padding: 40px 0 64px; max-width: 720px; margin: 0 auto; }
article.page h1 { font-size: 34px; letter-spacing: -0.02em; margin-bottom: 4px; }
article.page .updated { color: var(--text-faint); font-size: 13.5px; margin-bottom: 34px; }
article.page h2 { font-size: 21px; margin: 36px 0 10px; }
article.page p, article.page li { color: var(--text-soft); font-size: 15.5px; }
article.page ul { padding-left: 22px; }
article.page li { margin-bottom: 8px; }
article.page strong { color: var(--text); }

table.shortcuts {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.shortcuts td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--edge-soft);
  color: var(--text-soft);
}
table.shortcuts td:first-child { white-space: nowrap; width: 1%; padding-right: 24px; }

details {
  border: 1px solid var(--edge-soft);
  border-radius: 12px;
  background: var(--bg-raised);
  padding: 14px 18px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}
details p { margin: 10px 0 2px; }

/* Footer */

footer.site {
  border-top: 1px solid var(--edge-soft);
  padding: 30px 0 44px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer.site a { color: var(--text-soft); margin-right: 18px; }

@media (max-width: 560px) {
  nav.site { gap: 14px; }
  .hero { padding-top: 36px; }
  section { padding: 40px 0; }
}
