/* SatMac website — one stylesheet, light theme only. */

: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: #cbd5e1;
  --border-strong: #94a3b8;

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

  --shadow-sm: 0 1px 2px #0f172a1f;
  --shadow-md: 0 4px 14px #0f172a26, 0 1px 2px #0f172a14;
  --shadow-lg: 0 24px 56px -12px #0f172a3d, 0 2px 6px #0f172a1f;

  --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;
}

* {
  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: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dc2626;
  background: #fee2e2;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .hero-tag { font-size: 13px; padding: 6px 12px; }
}
.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: 28px;
  align-items: start;
}
@media (max-width: 760px) {
  .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;
  cursor: zoom-in;
  transition: opacity .15s ease;
}
.screenshot img:hover { opacity: .92; }
.screenshot-caption {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}
.screenshot-caption .caption-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  max-height: calc(1.55em * 4);
}
.screenshot-caption.expanded .caption-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  max-height: none;
}
.caption-toggle {
  display: none;
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent, #5b8cff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.caption-toggle:hover { text-decoration: underline; }
.screenshot-caption .caption-toggle { display: inline-block; }

/* ── Lightbox ───────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  cursor: zoom-out;
  animation: lb-fade .15s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
@keyframes lb-fade { from { opacity: 0 } to { opacity: 1 } }

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

.pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.pricing > .plan {
  flex: 0 1 320px;
  max-width: 360px;
}
@media (max-width: 840px) {
  .pricing > .plan { flex-basis: 100%; }
}
.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);
  }
}
