/* Stift website
   Subtle page in the style of the blueprint logo. No external fonts, scripts or trackers. */

:root {
  --blueprint: #1b5aa6;
  --blueprint-deep: #0d3366;
  --line: #eaf3ff;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c1d21;
  --muted: #5c6270;
  --border: rgba(16, 24, 40, 0.1);
  --accent: #1b5aa6;
  --shadow: 0 24px 60px -24px rgba(13, 51, 102, 0.35), 0 2px 6px rgba(13, 51, 102, 0.08);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --text: #eceef2;
    --muted: #9aa1ae;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #7fb0ec;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

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

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- Blueprint header ---------- */

.blueprint {
  position: relative;
  color: var(--line);
  background-color: var(--blueprint-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, var(--blueprint), var(--blueprint-deep));
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px, 100% 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--line);
  font: 700 15px/1 var(--mono);
  letter-spacing: 0.18em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }

.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { color: rgba(234, 243, 255, 0.8); }

.hero { padding: 48px 0 220px; text-align: center; }

.label {
  display: inline-block;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* A dimension line like on the logo: |←— label —→| */
.dimension {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 28px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.2em;
  color: rgba(234, 243, 255, 0.75);
}
.dimension::before, .dimension::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 20px;
  color: rgba(234, 243, 255, 0.85);
}

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }

/* Placeholder until the app is live — replace with Apple's official
   "Download on the Mac App Store" badge (Apple Marketing Resources) and the real link. */

.facts { font: 500 13px/1 var(--mono); letter-spacing: 0.08em; color: rgba(234, 243, 255, 0.75); }

/* ---------- Window frame around screenshots ---------- */

.window {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar strong { margin-left: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }

.showcase { margin-top: -180px; position: relative; }

/* Show the screenshot that matches the reader's appearance. */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .only-light { display: none; }
  .only-dark { display: block; }
}

/* ---------- Sections ---------- */

section { padding: 88px 0 0; }
section:last-of-type { padding-bottom: 96px; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .label { color: var(--accent); opacity: 1; margin-bottom: 12px; }
.section-head h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.feature .number { font: 500 12px/1 var(--mono); letter-spacing: 0.15em; color: var(--accent); }
.feature h3 { margin: 10px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature kbd, .shortcuts kbd {
  font: 500 13px/1 var(--mono);
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  white-space: nowrap;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split figure { margin: 0; }
.split figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }

.onboarding { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.onboarding img { max-width: 420px; margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow); }

.shortcuts { width: 100%; border-collapse: collapse; font-size: 16px; }
.shortcuts td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.shortcuts td:last-child { text-align: right; }

.privacy-box {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.privacy-box strong { display: block; margin-bottom: 4px; }
.privacy-box span { color: var(--muted); font-size: 15px; }

/* ---------- Legal and support pages ---------- */

.page-header { padding: 0 0 56px; }
.page-header h1 { margin: 24px 0 0; font-size: 40px; letter-spacing: -0.01em; }

.prose { max-width: 720px; padding-top: 56px; padding-bottom: 96px; }
.prose h2 { margin: 40px 0 8px; font-size: 22px; }
.prose h3 { margin: 28px 0 6px; font-size: 18px; }
.prose p, .prose li { color: var(--text); }
.prose .muted { color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 56px 0; }
.placeholder { background: rgba(254, 188, 46, 0.25); border-radius: 4px; padding: 0 4px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero { padding: 24px 0 140px; }
  .showcase { margin-top: -110px; }
  .split, .onboarding { grid-template-columns: minmax(0, 1fr); }
  .onboarding img { width: 100%; height: auto; }
  section { padding-top: 64px; }
  .section-head h2 { font-size: 28px; }
}
