/* Bezelry — bezelry.app
   One stylesheet for every page. No frameworks, no web fonts: the system font stack renders SF Pro on Apple devices. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #5f5f66;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);

  --brand: #2f6bff;
  --brand-hover: #1f5af0;
  --link: #1f5ae6;
  --brand-soft: rgba(47, 107, 255, 0.09);
  --glow-1: rgba(47, 107, 255, 0.28);
  --glow-2: rgba(132, 94, 255, 0.2);

  --header-bg: rgba(255, 255, 255, 0.76);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, 0.06), 0 18px 40px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 4px 10px rgba(15, 23, 42, 0.06), 0 40px 80px -20px rgba(15, 23, 42, 0.34);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --wrap: 1180px;
  --gutter: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #101012;
    --surface: #161618;
    --surface-2: #1c1c1f;
    --text: #f5f5f7;
    --text-2: #a8a8ae;
    --text-3: #8a8a90;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --link: #6e9bff;
    --brand-soft: rgba(47, 107, 255, 0.16);
    --glow-1: rgba(47, 107, 255, 0.36);
    --glow-2: rgba(132, 94, 255, 0.24);
    --header-bg: rgba(0, 0, 0, 0.72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 90px -20px rgba(0, 0, 0, 0.85);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.lede { text-wrap: pretty; }
p { margin: 0; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.36em;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow { max-width: calc(760px + var(--gutter) * 2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus { top: 10px; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--text-2); font-size: 14px; }
.site-nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 760px) {
  .site-nav { gap: 18px; }
  .site-nav .nav-optional { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47, 107, 255, 0.65);
}
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-secondary {
  color: var(--link);
  background: var(--brand-soft);
}
.btn-secondary:hover { background: rgba(47, 107, 255, 0.15); }

.btn-small { min-height: 32px; padding: 0 15px; font-size: 14px; }
.btn-small.btn-primary { box-shadow: none; }

.btn .chev { width: 9px; height: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand);
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: #6e9bff; } }

.display {
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.title {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.title-sm {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lede {
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.42;
  color: var(--text-2);
  letter-spacing: -0.015em;
}

.gradient-text {
  background: linear-gradient(100deg, #2f6bff 0%, #6a5cff 55%, #b04dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .gradient-text { background-image: linear-gradient(100deg, #5b8cff 0%, #8f7bff 55%, #c77dff 100%); }
}

.muted { color: var(--text-2); }
.small { font-size: 14px; }
.center { text-align: center; }

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(64px, 8vw, 110px) 0; }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 820px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-head .lede { margin-top: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 0;
  text-align: center;
  overflow: hidden;
}

.hero-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 26px;
  border-radius: 24px;
  box-shadow: 0 16px 36px -10px rgba(47, 107, 255, 0.55), 0 2px 6px rgba(15, 23, 42, 0.12);
}

.hero .display { max-width: 980px; margin: 0 auto; }
.hero .lede { max-width: 700px; margin: 24px auto 0; }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.pill-link:hover { text-decoration: none; color: var(--text); border-color: var(--line-strong); }
.pill-link .tag {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
}

/* The stage: the Mac app, with the iPad and iPhone apps in front. */
.stage {
  position: relative;
  max-width: 1080px;
  margin: clamp(56px, 7vw, 88px) auto 0;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 8% -10% 0;
  background:
    radial-gradient(50% 55% at 30% 45%, var(--glow-1), transparent 70%),
    radial-gradient(45% 50% at 72% 55%, var(--glow-2), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

.mac-window {
  position: relative;
  border-radius: clamp(10px, 1.6vw, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.12);
  background: #1b1b1d;
}
.mac-window img { width: 100%; }
@media (prefers-color-scheme: dark) {
  .mac-window { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.12); }
}

.device {
  position: absolute;
  background: #0b0b0c;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.device img { width: 100%; }

.device-ipad {
  left: -3.5%;
  bottom: 0;
  width: 27%;
  padding: 1.05%;
  border-radius: clamp(14px, 2.4vw, 28px);
}
.device-ipad img { border-radius: clamp(8px, 1.5vw, 18px); }

.device-iphone {
  right: -2%;
  bottom: 3%;
  width: 17.5%;
  padding: 0.75%;
  border-radius: clamp(18px, 3vw, 38px);
}
.device-iphone img { border-radius: clamp(13px, 2.4vw, 31px); }

@media (max-width: 720px) {
  .device-ipad { display: none; }
  .device-iphone { width: 29%; right: -1%; bottom: 0; padding: 1.2%; }
  .stage { padding-bottom: 64px; }
}

/* ---------- Facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: clamp(40px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.fact strong {
  display: block;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fact span { display: block; margin-top: 10px; color: var(--text-2); font-size: 15px; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}
.step-copy { padding: 32px 32px 26px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--text-2); }

.step-visual {
  margin-top: auto;
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.step-visual img { position: absolute; }

.drop-zone {
  position: absolute;
  inset: 26px 26px 0;
  border: 2px dashed rgba(47, 107, 255, 0.45);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--brand-soft);
}
.drop-zone img {
  width: 44%;
  left: 50%;
  top: 32px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.drop-zone img:nth-child(1) { transform: translateX(-88%) rotate(-7deg); }
.drop-zone img:nth-child(2) { transform: translateX(-50%); z-index: 1; }
.drop-zone img:nth-child(3) { transform: translateX(-12%) rotate(7deg); }

.step-visual .crop {
  left: 26px;
  top: 26px;
  width: calc(100% - 26px);
  border-radius: 14px 0 0 0;
  box-shadow: var(--shadow-md);
}
.step-visual .crop-center {
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  border-radius: 14px 14px 0 0;
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ---------- Gallery of results ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  max-width: 1040px;
  margin: 0 auto;
}
.gallery img {
  width: 100%;
  border-radius: clamp(10px, 1.6vw, 20px);
  box-shadow: var(--shadow-md);
}
.gallery figure { margin: 0; }
.gallery figure:nth-child(even) { transform: translateY(clamp(16px, 3vw, 36px)); }
.gallery-note { margin-top: clamp(48px, 6vw, 72px); text-align: center; color: var(--text-3); font-size: 14px; }

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 58%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) 40px;
    margin: 0 calc(var(--gutter) * -1);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { scroll-snap-align: center; }
  .gallery-note { margin-top: 8px; }
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature.flip .feature-copy { order: 2; }

.feature-copy .title-sm { margin-bottom: 18px; }
.feature-copy > p:not(.eyebrow) { color: var(--text-2); font-size: 19px; line-height: 1.5; }

.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--text); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232f6bff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.feature-visual { position: relative; }
.feature-visual .shot {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  max-width: 520px;
  margin: 0 auto;
}
.pair figure { margin: 0; }
.pair img { width: 100%; border-radius: clamp(12px, 1.8vw, 20px); box-shadow: var(--shadow-md); }
.pair figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.pair figure:nth-child(2) { transform: translateY(36px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.section-alt .chip { background: var(--surface); }
.chip-label { width: 100%; font-size: 13px; font-weight: 600; color: var(--text-3); margin: 10px 0 0; text-transform: uppercase; letter-spacing: 0.04em; }
.chip-label:first-child { margin-top: 0; }

.swatches { display: flex; gap: 8px; margin-top: 18px; align-items: center; }
.swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.swatches span:last-child { margin-left: 6px; font-size: 14px; color: var(--text-2); }
.sw-1 { background: #2b2b2e; }
.sw-2 { background: #e3e1dc; }
.sw-3 { background: #c8b49a; }
.sw-4 { background: #a9c6e4; }
.sw-5 { background: #5c6b5a; }
.sw-6 { background: conic-gradient(#ff5f6d, #ffc371, #47e891, #4facfe, #a17fe0, #ff5f6d); }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: 620px; }
}

/* ---------- Caption demo ---------- */

.caption-demo {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  background: radial-gradient(120% 120% at 0% 0%, #3d7bff 0%, #2448d8 45%, #5b2fd6 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.caption-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}
.caption-field .label { font-family: var(--font); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); flex: none; }
.caption-field + .caption-field { margin-top: 10px; }
.caption-out { margin-top: 30px; text-align: center; }
.caption-out .cap {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.caption-out .cap em { font-style: normal; color: #ffd84d; }
.caption-out .sub { margin-top: 8px; font-size: 17px; color: rgba(255, 255, 255, 0.82); }
.caption-out .fit {
  display: inline-block;
  margin-top: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
}
.caption-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.caption-langs div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.caption-langs div em { font-style: normal; color: #ffd84d; }
.caption-langs small { display: block; margin-bottom: 4px; font-weight: 600; font-size: 11px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.04em; }
@media (max-width: 420px) { .caption-langs { grid-template-columns: 1fr; } }

/* ---------- Store page preview showcase ---------- */

.showcase {
  position: relative;
  overflow: hidden;
  color: #f5f5f7;
  background: #04060f;
  padding: clamp(96px, 12vw, 170px) 0;
  isolation: isolate;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(47, 107, 255, 0.5), transparent 70%),
    radial-gradient(40% 40% at 85% 70%, rgba(132, 94, 255, 0.32), transparent 70%),
    radial-gradient(40% 40% at 10% 80%, rgba(0, 170, 255, 0.18), transparent 70%);
}
.showcase .eyebrow { color: #8db0ff; }
.showcase .lede { color: rgba(245, 245, 247, 0.74); }
.showcase .section-head { margin-bottom: 40px; }
.showcase .badge-free {
  display: inline-block;
  margin-top: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.preview-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.segmented button {
  appearance: none;
  border: 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.segmented button:hover { color: #fff; }
.segmented button[aria-pressed="true"] { background: #fff; color: #0b0d14; }
.segmented button:focus-visible { outline-color: #8db0ff; }

.preview-frame {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.preview-frame::before {
  content: "";
  position: absolute;
  inset: 10% -20% -6%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(47, 107, 255, 0.55), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.preview-window {
  border-radius: 16px;
  overflow: hidden;
  background: #1e1e20;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.preview-window .titlebar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #2a2a2d;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}
.preview-window.is-light .titlebar { background: #ececee; border-bottom-color: rgba(0, 0, 0, 0.1); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.preview-crop { overflow: hidden; }
.preview-window img { width: 100%; aspect-ratio: 1280 / 1640; }
.preview-caption { margin-top: 26px; text-align: center; font-size: 14px; color: rgba(245, 245, 247, 0.55); }

/* Callouts beside the preview on wide screens. */
.annot { display: none; }
@media (min-width: 1120px) {
  .preview-frame { max-width: 680px; }
  .annot {
    display: block;
    position: absolute;
    width: 190px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
  }
  /* A short line from the label to a dot on the window's edge, level with what it describes. */
  .annot::before {
    content: "";
    position: absolute;
    top: 10px;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, rgba(141, 176, 255, 0), #8db0ff);
  }
  .annot::after {
    content: "";
    position: absolute;
    top: 6px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #8db0ff;
    box-shadow: 0 0 0 5px rgba(141, 176, 255, 0.2);
  }
  .annot-1 { left: -250px; top: calc(40% - 10px); text-align: right; }
  .annot-1::before { right: -56px; }
  .annot-1::after { right: -64.5px; }
  .annot-2, .annot-3 { right: -250px; }
  .annot-2 { top: calc(76% - 10px); }
  .annot-3 { top: calc(17% - 10px); }
  .annot-2::before, .annot-3::before { left: -56px; transform: scaleX(-1); }
  .annot-2::after, .annot-3::after { left: -64.5px; }
}

/* On phones, zoom in on the product page itself. */
@media (max-width: 600px) {
  .preview-window .titlebar { display: none; }
  .preview-crop { aspect-ratio: 780 / 1180; }
  .preview-window img { width: 164.1%; max-width: none; margin: -41% 0 0 -32.05%; }
}

.showcase-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: clamp(56px, 7vw, 88px) auto 0;
}
.showcase-points div {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.showcase-points h3 { font-size: 19px; margin: 14px 0 6px; color: #fff; }
.showcase-points p { color: rgba(245, 245, 247, 0.7); font-size: 16px; }
.showcase-points svg { width: 28px; height: 28px; color: #8db0ff; }
@media (max-width: 820px) { .showcase-points { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 20px; margin: 16px 0 8px; letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: 16px; line-height: 1.5; }
.card .icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
@media (prefers-color-scheme: dark) { .card .icon { color: #7ea6ff; } }
.card .icon svg { width: 24px; height: 24px; }
.card .pro {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: 3px;
  color: var(--brand);
  background: var(--brand-soft);
}
@media (prefers-color-scheme: dark) { .card .pro { color: #7ea6ff; } }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

/* ---------- Platforms ---------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.platform {
  text-align: center;
  padding: 40px 28px 34px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.platform svg { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--text); }
.platform h3 { font-size: 24px; margin-bottom: 10px; }
.platform p { color: var(--text-2); font-size: 16px; }
.sync-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--text-2);
  text-align: center;
}
.sync-note svg { width: 28px; height: 28px; color: var(--brand); flex: none; }
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Privacy ---------- */

.privacy-band { text-align: center; }
.privacy-band .shield {
  width: 64px; height: 64px;
  margin: 0 auto 26px;
  color: var(--brand);
}
.privacy-band .title { max-width: 900px; margin: 0 auto; }
.privacy-band .lede { max-width: 680px; margin: 22px auto 0; }
.privacy-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 34px;
  list-style: none;
  padding: 0;
  color: var(--text-2);
  font-size: 16px;
}
.privacy-points li { display: inline-flex; align-items: center; gap: 8px; }
.privacy-points svg { width: 18px; height: 18px; color: #1fa35c; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.plan-pro {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-md), 0 0 0 6px var(--brand-soft);
}
.plan-flag {
  position: absolute;
  top: -14px;
  left: 38px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.plan h3 { font-size: 24px; }
.plan .tagline { color: var(--text-2); margin-top: 6px; }
.price { margin: 26px 0 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 52px; letter-spacing: -0.045em; line-height: 1; }
.price span { color: var(--text-2); font-size: 17px; }
.price-note { color: var(--text-3); font-size: 14px; min-height: 21px; }
.plan .checks { margin: 26px 0 30px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-options { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line); }
.plan-options li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.plan-options li span:last-child { color: var(--text-2); text-align: right; }
.pricing-fine { max-width: 720px; margin: 36px auto 0; text-align: center; color: var(--text-3); font-size: 14px; line-height: 1.6; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; max-width: 520px; } .plan { padding: 30px 26px; } .plan-flag { left: 26px; } }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px; height: 11px;
  margin-top: -8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin-top 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--link); }
.faq .answer { padding: 0 0 24px; color: var(--text-2); }
.faq .answer p + p, .faq .answer p + ol, .faq .answer p + ul, .faq .answer ol + p, .faq .answer ul + p { margin-top: 12px; }
.faq .answer ol, .faq .answer ul { padding-left: 22px; margin: 0; }
.faq .answer li { margin: 6px 0; }
.faq .answer strong { color: var(--text); }
.faq-more { margin-top: 36px; text-align: center; }

/* ---------- Final CTA ---------- */

.final-cta { text-align: center; }
.final-cta img { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 20px; box-shadow: 0 16px 36px -10px rgba(47, 107, 255, 0.55); }
.final-cta .lede { max-width: 620px; margin: 20px auto 34px; }

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

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 44px;
  font-size: 14px;
  color: var(--text-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-top .brand { font-size: 17px; }
.footer-top .brand img { width: 26px; height: 26px; }
.footer-blurb { margin-top: 12px; max-width: 300px; line-height: 1.5; }
.footer-col h2 { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; display: grid; gap: 8px; color: var(--text-3); font-size: 12.5px; line-height: 1.55; }
@media (max-width: 820px) {
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: clamp(64px, 9vw, 112px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}
.page-hero .title { margin: 0 auto; max-width: 820px; }
.page-hero .lede { max-width: 640px; margin: 18px auto 0; }
.page-hero .meta { margin-top: 14px; color: var(--text-3); font-size: 15px; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.contact-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.contact-card .icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card h2 { font-size: 21px; letter-spacing: -0.02em; }
.contact-card p { color: var(--text-2); font-size: 16px; margin-top: 6px; }
.contact-card .go { margin-top: 18px; color: var(--link); font-weight: 600; font-size: 15px; }
.contact-hint { max-width: 820px; margin: 22px auto 0; text-align: center; color: var(--text-3); font-size: 14px; }
@media (max-width: 680px) { .contact-cards { grid-template-columns: 1fr; } }

.faq-group { margin-top: clamp(56px, 7vw, 80px); }
.faq-group > h2 {
  max-width: 820px;
  margin: 0 auto 8px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* Legal and long-form text */
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose .summary {
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.prose .summary ul { margin: 10px 0 0; }
.prose .summary p:last-child, .prose .summary ul:last-child { margin-bottom: 0; }

/* Changelog */
.release {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.release-meta { position: relative; }
.release-meta h2 { font-size: 30px; letter-spacing: -0.03em; }
.release-meta p { margin-top: 6px; color: var(--text-3); font-size: 15px; }
.release-meta .status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
  background: var(--brand-soft);
}
.release-body > p.lede { margin-bottom: 26px; font-size: 20px; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.changes li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.changes .icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}
@media (prefers-color-scheme: dark) { .changes .icon, .contact-card .icon { color: #7ea6ff; } }
.changes .icon svg { width: 22px; height: 22px; }
.changes h3 { font-size: 18px; letter-spacing: -0.015em; margin: 2px 0 4px; }
.changes p { color: var(--text-2); font-size: 16px; }
@media (max-width: 760px) {
  .release { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
}

/* 404 */
.not-found { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.not-found .code { font-size: clamp(96px, 18vw, 180px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; }
.not-found .lede { max-width: 520px; margin: 18px auto 32px; }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero .rise { animation: rise 0.9s var(--ease) both; }
.hero .rise-2 { animation-delay: 0.08s; }
.hero .rise-3 { animation-delay: 0.16s; }
.hero .rise-4 { animation-delay: 0.24s; }
.hero .stage.rise { animation-duration: 1.2s; animation-delay: 0.3s; }

.js [data-reveal].is-pending { opacity: 0; transform: translateY(28px); }
.js [data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal].is-pending { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .btn { display: none; }
  body { background: #fff; color: #000; }
}
