/* SatMac website — one stylesheet, dark+light via prefers-color-scheme. */

:root {
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-soft: #e0f2fe;
  --accent-ring: #0ea5e94d;

  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-subtle: #f1f5f9;

  --fg: #0f172a;
  --fg-muted: #475569;
  --fg-faint: #94a3b8;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --success: #22c55e;
  --warn: #eab308;
  --danger: #ef4444;
  --danger-bg: #fee2e2;

  --shadow-sm: 0 1px 2px #0f172a0d;
  --shadow-md: 0 4px 12px #0f172a14;
  --shadow-lg: 0 20px 48px -12px #0f172a29;

  --radius: 12px;
  --radius-sm: 8px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono",
    Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-card: #131a2b;
    --bg-input: #0f172a;
    --bg-subtle: #172036;

    --fg: #e2e8f0;
    --fg-muted: #94a3b8;
    --fg-faint: #64748b;

    --border: #1f2a44;
    --border-strong: #334155;

    --accent-soft: #0c4a6e33;

    --shadow-md: 0 4px 12px #00000066;
    --shadow-lg: 0 20px 48px -12px #00000099;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--fg);
}

h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h2 {
  font-size: 28px;
  font-weight: 700;
}
h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  color: var(--fg-muted);
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

/* ── Layout ──────────────────────────────────────────────────────── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--fg);
  text-decoration: none;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-subtle);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: transparent;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-bg);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}

/* ── Cards ──────────────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-padded {
  padding: 32px;
}

/* ── Forms ──────────────────────────────────────────────────────── */

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.field small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-faint);
}

/* ── Status messages ────────────────────────────────────────────── */

.status {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin: 12px 0;
}
.status-ok {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
}
.status-err {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
}
.status-info {
  background: var(--bg-subtle);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  max-width: 860px;
  margin: 0 auto 18px;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: var(--fg-muted);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-shot {
  margin: 56px auto 0;
  max-width: 1080px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Feature grid ───────────────────────────────────────────────── */

.section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head p {
  font-size: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 840px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding: 28px;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Screenshots section ────────────────────────────────────────── */

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 840px) {
  .screenshots {
    grid-template-columns: 1fr;
  }
}
.screenshot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot-caption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

/* ── Pricing ────────────────────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 840px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}
.plan {
  position: relative;
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-ring), var(--shadow-lg);
  transform: translateY(-4px);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.plan-price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-per {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 6px 0 24px;
}

/* ── Account dashboard bits ─────────────────────────────────────── */

.dash {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 48px 0;
}
@media (max-width: 840px) {
  .dash {
    grid-template-columns: 1fr;
  }
}
.dash-nav {
  position: sticky;
  top: 88px;
  align-self: start;
}
.dash-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--fg-muted);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}
.dash-nav a:hover {
  background: var(--bg-subtle);
  color: var(--fg);
  text-decoration: none;
}
.dash-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.dash-section {
  padding: 24px 0;
}
.dash-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.dash-kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 20px;
  font-size: 14px;
  align-items: center;
}
.dash-kv dt {
  color: var(--fg-muted);
}
.dash-kv dd {
  margin: 0;
  color: var(--fg);
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill-ok {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}
.pill-warn {
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--warn);
}
.pill-off {
  background: var(--bg-subtle);
  color: var(--fg-muted);
}

.list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 16px;
}
.list-row + .list-row {
  border-top: 1px solid var(--border);
}
.list-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.list-row-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.list-row-sub {
  font-size: 12px;
  color: var(--fg-faint);
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* ── Footer ─────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--fg-faint);
  font-size: 13px;
}

/* ── Utility ────────────────────────────────────────────────────── */

.center {
  text-align: center;
}
.muted {
  color: var(--fg-muted);
}
.faint {
  color: var(--fg-faint);
}
.mt-0 { margin-top: 0 }
.mt-8 { margin-top: 8px }
.mt-16 { margin-top: 16px }
.mt-24 { margin-top: 24px }
.mt-32 { margin-top: 32px }
.hidden {
  display: none !important;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
