/* Grablet — grablet.app
   No build step, no external assets, no fonts to fetch: deploys anywhere as-is.
   system-ui resolves to SF Pro on Apple devices, Segoe UI on Windows. */

:root {
  --brand-1: #6d5df6;
  --brand-2: #9b4df0;

  --light-bg: #ffffff;
  --light-bg-alt: #f5f5f7;
  --light-fg: #1d1d1f;
  --light-muted: #86868b;
  --light-line: #d2d2d7;

  --dark-bg: #000000;
  --dark-bg-alt: #101014;
  --dark-fg: #f5f5f7;
  --dark-muted: #a1a1a6;
  --dark-line: #2a2a2e;

  --maxw: 1000px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--light-bg);
  color: var(--light-fg);
  font-family: system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.narrow {
  max-width: 760px;
}

/* ---------- panels: full-bleed, alternating ---------- */

.panel {
  padding: clamp(72px, 12vw, 128px) 0;
  overflow: hidden;
}

.panel-alt {
  background: var(--light-bg-alt);
}

.panel-dark {
  background: var(--dark-bg);
  color: var(--dark-fg);
}

.panel-dark .muted {
  color: var(--dark-muted);
}

.muted {
  color: var(--light-muted);
}

.center {
  text-align: center;
}

/* ---------- type ---------- */

.display {
  margin: 0;
  font-size: clamp(44px, 9vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h2.headline {
  margin: 0 0 18px;
  font-size: clamp(32px, 5.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: -0.015em;
  font-weight: 650;
}

.sub {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  font-weight: 400;
}

.body {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.grad {
  background: linear-gradient(96deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-2);
}

.panel-dark .eyebrow {
  color: #b39bff;
}

/* ---------- nav ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 48px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--light-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
}

.nav-links a {
  color: var(--light-fg);
  opacity: 0.82;
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 1;
}

/* ---------- buttons ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(96deg, var(--brand-1), var(--brand-2));
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

.btn-primary[aria-disabled="true"]:hover {
  transform: none;
}

.link-arrow {
  font-size: 16px;
  text-decoration: none;
  color: var(--brand-1);
}

.panel-dark .link-arrow {
  color: #a99bff;
}

.link-arrow:hover {
  text-decoration: underline;
}

.fineprint {
  margin-top: 22px;
  font-size: 13px;
}

/* ---------- product mockup ---------- */

.stage {
  margin: clamp(48px, 7vw, 76px) auto 0;
  max-width: 860px;
  position: relative;
}

.window {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--light-line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.06);
}

.panel-dark .window {
  border-color: #33333a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #f6f6f8;
  border-bottom: 1px solid var(--light-line);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dcdce1;
}

.omni {
  flex: 1;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e3e3e8;
  margin-left: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: #9b9ba3;
}

.viewport {
  position: relative;
  min-height: 330px;
  background: #fafafc;
  display: grid;
  grid-template-columns: 1fr 300px;
}

/* faux page content */
.page {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ph {
  border-radius: 7px;
  background: #e9e9ef;
}

.ph.media {
  flex: 1;
  min-height: 150px;
  background: linear-gradient(135deg, #ddd9fb, #ebd9fb);
  display: grid;
  place-items: center;
  font-size: 30px;
}

.ph.l1 {
  height: 11px;
  width: 62%;
}

.ph.l2 {
  height: 11px;
  width: 84%;
}

.ph.l3 {
  height: 11px;
  width: 44%;
}

/* the popup */
.popup {
  border-left: 1px solid var(--light-line);
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.popup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 15px;
  border-bottom: 1px solid #eeeef2;
  font-weight: 650;
  font-size: 14px;
  color: var(--light-fg);
}

.popup-head img {
  width: 17px;
  height: 17px;
  border-radius: 5px;
}

.group {
  padding: 12px 15px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9b9ba3;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
}

.row .thumb {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: #f1f0fb;
  flex: none;
}

.row .meta {
  flex: 1;
  min-width: 0;
}

.row .t {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--light-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row .s {
  font-size: 11.5px;
  color: #9b9ba3;
}

.save {
  flex: none;
  font-size: 11.5px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(96deg, var(--brand-1), var(--brand-2));
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- feature rows ---------- */

.rows {
  display: grid;
  gap: clamp(28px, 5vw, 54px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: clamp(40px, 6vw, 68px);
  text-align: left;
}

.rows p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.mark {
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(44px, 6vw, 72px);
}

.stat .n {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(96deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat p {
  margin: 12px 0 0;
  font-size: 16px;
}

/* ---------- site marks ---------- */

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
  margin-top: 40px;
}

.mark-pill {
  padding: 10px 22px;
  border-radius: 980px;
  border: 1px solid var(--dark-line);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.panel:not(.panel-dark) .mark-pill {
  border-color: var(--light-line);
}

.mark-pill.soon {
  opacity: 0.5;
  border-style: dashed;
}

/* ---------- prose pages ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) 22px clamp(64px, 10vw, 104px);
}

.prose h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-weight: 700;
}

.prose .updated {
  margin: 0 0 44px;
  font-size: 15px;
  color: var(--light-muted);
}

.prose h2 {
  margin: 52px 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.018em;
  font-weight: 650;
}

.prose h3 {
  margin: 30px 0 8px;
  font-size: 18px;
}

.prose p,
.prose li {
  color: #43434a;
  font-size: 17px;
  line-height: 1.65;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--light-fg);
  font-weight: 600;
}

.lead-box {
  background: var(--light-bg-alt);
  border-radius: 16px;
  padding: 26px 28px;
  margin: 0 0 8px;
}

.lead-box p {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--light-fg);
}

details {
  border-bottom: 1px solid var(--light-line);
  padding: 18px 2px;
}

details summary {
  cursor: pointer;
  font-weight: 550;
  font-size: 17px;
  color: var(--light-fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  color: var(--light-muted);
  font-weight: 400;
  font-size: 21px;
  line-height: 1;
}

details[open] summary::after {
  content: "\2013";
}

details p {
  margin: 14px 0 2px;
  font-size: 16px;
}

/* ---------- footer ---------- */

footer {
  background: var(--light-bg-alt);
  padding: 42px 0;
  font-size: 12px;
  color: var(--light-muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--light-line);
  padding-top: 22px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.foot a {
  color: var(--light-muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--light-fg);
}

/* ---------- scroll reveal (progressive: only active with JS) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
}

@media (max-width: 720px) {
  .viewport {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .page {
    display: none;
  }
  .popup {
    border-left: 0;
  }
  .nav-links {
    gap: 18px;
  }
}
