/* ─── Coursion Studio landing ─── */

:root {
  --bg-top:    #07091A;
  --bg-mid:    #0B0E26;
  --bg-bottom: #140B30;

  --text-primary:   #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-tertiary:  rgba(255, 255, 255, 0.38);

  --card-fill:        rgba(255, 255, 255, 0.04);
  --card-fill-strong: rgba(255, 255, 255, 0.06);
  --card-stroke:      rgba(255, 255, 255, 0.09);

  --brand-pink:   #FF5189;
  --brand-purple: #C75CEB;
  --brand-blue:   #389EFF;

  --brand-gradient:
    linear-gradient(90deg, var(--brand-pink), var(--brand-purple), var(--brand-blue));
  --brand-gradient-diag:
    linear-gradient(135deg, var(--brand-pink), var(--brand-purple), var(--brand-blue));
  --brand-soft:
    linear-gradient(90deg, rgba(255, 82, 140, 0.22), rgba(56, 158, 255, 0.22));

  --radius-card: 14px;
  --radius-btn:  12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-top);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── background: gradient + soft colored blooms ─── */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 8% 6%,    rgba(168, 85, 247, 0.32), transparent 60%),
    radial-gradient(ellipse 45% 35% at 92% 14%,  rgba(56, 158, 255, 0.26), transparent 60%),
    radial-gradient(ellipse 55% 45% at 50% 48%,  rgba(199, 92, 235, 0.18), transparent 65%),
    radial-gradient(ellipse 60% 45% at 12% 90%,  rgba(255, 82, 140, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 40% at 95% 95%,  rgba(20, 184, 166, 0.16), transparent 60%),
    linear-gradient(160deg,
      var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
}

.bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.10), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(244, 114, 182, 0.10), transparent 40%);
  filter: blur(60px);
  opacity: 0.7;
  animation: bgDrift 28s ease-in-out infinite alternate;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes bgDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .bg::before { animation: none; }
}

/* ─── layout ─── */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}

nav.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

nav.top .brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

nav.top .links {
  display: flex;
  gap: 22px;
}

nav.top a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
nav.top a:hover { color: var(--text-primary); }

/* ─── hero ─── */

.hero {
  text-align: center;
  padding: 72px 0 40px;
}

.hero .app-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  margin-bottom: 28px;
  filter: drop-shadow(0 16px 40px rgba(199, 92, 235, 0.35))
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 22px;
}

.hero h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* ─── buttons ─── */

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn.primary {
  background: var(--brand-gradient-diag);
  box-shadow:
    0 8px 24px rgba(255, 82, 140, 0.32),
    0 8px 24px rgba(56, 158, 255, 0.22);
}

.btn.primary:hover { transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0) scale(0.98); }

.btn.outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}
.btn.outline:hover { background: rgba(255, 255, 255, 0.09); }

/* ─── section headers ─── */

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

section p.lede {
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 620px;
}

/* ─── card grids ─── */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, var(--tile-tint, transparent), transparent 60%),
    var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  padding: 22px;
  overflow: hidden;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease;
}

/* Soft glow overlay that fades in on hover, tinted by each tile's accent */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 0% 0%, var(--tile-glow, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.card > * { position: relative; z-index: 1; }

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px var(--tile-ring, rgba(255, 255, 255, 0.08));
}

.card:hover::before { opacity: 0.55; }

.card .tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
  box-shadow:
    0 6px 14px var(--tile-glow, rgba(199, 92, 235, 0.18)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card .tile svg {
  width: 22px;
  height: 22px;
  display: block;
}

.card:hover .tile {
  transform: translateY(-1px) scale(1.06) rotate(-3deg);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 26px var(--tile-glow, rgba(199, 92, 235, 0.45)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ─── tile color variants ─── */

.tile.c-cyan    { background: linear-gradient(135deg, #22D3EE, #3B82F6); }
.tile.c-green   { background: linear-gradient(135deg, #34D399, #10B981); }
.tile.c-red     { background: linear-gradient(135deg, #FB7185, #EF4444); }
.tile.c-amber   { background: linear-gradient(135deg, #FBBF24, #F97316); }
.tile.c-rainbow { background: linear-gradient(135deg, #F472B6 0%, #C084FC 35%, #60A5FA 70%, #34D399 100%); }
.tile.c-indigo  { background: linear-gradient(135deg, #818CF8, #6366F1); }
.tile.c-violet  { background: linear-gradient(135deg, #C084FC, #8B5CF6); }
.tile.c-pink    { background: linear-gradient(135deg, #F472B6, #EC4899); }
.tile.c-teal    { background: linear-gradient(135deg, #2DD4BF, #0EA5E9); }
.tile.c-blue    { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.tile.c-orange  { background: linear-gradient(135deg, #FDBA74, #EA580C); }
.tile.c-mint    { background: linear-gradient(135deg, #6EE7B7, #14B8A6); }
.tile.c-magenta { background: linear-gradient(135deg, #F0ABFC, #D946EF); }
.tile.c-coral   { background: linear-gradient(135deg, #FCA5A5, #F43F5E); }

.card .tile.brand {
  background: var(--brand-gradient-diag);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Per-card variables: subtle default top tint + glow color + hover ring */
.card:has(.tile.c-cyan)    { --tile-tint: rgba(59, 130, 246, 0.10);  --tile-glow: rgba(59, 130, 246, 0.45);  --tile-ring: rgba(59, 130, 246, 0.28); }
.card:has(.tile.c-green)   { --tile-tint: rgba(16, 185, 129, 0.10);  --tile-glow: rgba(16, 185, 129, 0.45);  --tile-ring: rgba(16, 185, 129, 0.26); }
.card:has(.tile.c-red)     { --tile-tint: rgba(239, 68, 68, 0.10);   --tile-glow: rgba(239, 68, 68, 0.45);   --tile-ring: rgba(239, 68, 68, 0.26); }
.card:has(.tile.c-amber)   { --tile-tint: rgba(249, 115, 22, 0.10);  --tile-glow: rgba(249, 115, 22, 0.45);  --tile-ring: rgba(249, 115, 22, 0.26); }
.card:has(.tile.c-rainbow) { --tile-tint: rgba(192, 132, 252, 0.10); --tile-glow: rgba(192, 132, 252, 0.45); --tile-ring: rgba(192, 132, 252, 0.26); }
.card:has(.tile.c-indigo)  { --tile-tint: rgba(99, 102, 241, 0.10);  --tile-glow: rgba(99, 102, 241, 0.45);  --tile-ring: rgba(99, 102, 241, 0.26); }
.card:has(.tile.c-violet)  { --tile-tint: rgba(139, 92, 246, 0.10);  --tile-glow: rgba(139, 92, 246, 0.45);  --tile-ring: rgba(139, 92, 246, 0.26); }
.card:has(.tile.c-pink)    { --tile-tint: rgba(236, 72, 153, 0.10);  --tile-glow: rgba(236, 72, 153, 0.45);  --tile-ring: rgba(236, 72, 153, 0.26); }
.card:has(.tile.c-teal)    { --tile-tint: rgba(14, 165, 233, 0.10);  --tile-glow: rgba(14, 165, 233, 0.45);  --tile-ring: rgba(14, 165, 233, 0.26); }
.card:has(.tile.c-blue)    { --tile-tint: rgba(37, 99, 235, 0.10);   --tile-glow: rgba(37, 99, 235, 0.45);   --tile-ring: rgba(37, 99, 235, 0.26); }
.card:has(.tile.c-orange)  { --tile-tint: rgba(234, 88, 12, 0.10);   --tile-glow: rgba(234, 88, 12, 0.45);   --tile-ring: rgba(234, 88, 12, 0.26); }
.card:has(.tile.c-mint)    { --tile-tint: rgba(20, 184, 166, 0.10);  --tile-glow: rgba(20, 184, 166, 0.45);  --tile-ring: rgba(20, 184, 166, 0.26); }
.card:has(.tile.c-magenta) { --tile-tint: rgba(217, 70, 239, 0.10);  --tile-glow: rgba(217, 70, 239, 0.45);  --tile-ring: rgba(217, 70, 239, 0.26); }
.card:has(.tile.c-coral)   { --tile-tint: rgba(244, 63, 94, 0.10);   --tile-glow: rgba(244, 63, 94, 0.45);   --tile-ring: rgba(244, 63, 94, 0.26); }
.card:has(.tile.brand)     { --tile-tint: rgba(199, 92, 235, 0.12);  --tile-glow: rgba(199, 92, 235, 0.5);   --tile-ring: rgba(199, 92, 235, 0.32); }

@media (prefers-reduced-motion: reduce) {
  .card, .card .tile, .card::before { transition: none !important; }
  .card:hover { transform: none; }
  .card:hover .tile { transform: none; }
}

.card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.card .pro-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-gradient);
  margin-left: 8px;
  vertical-align: middle;
}

/* ─── pricing ─── */

.price-wrap {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .price-wrap { grid-template-columns: 1fr; }
}

.price {
  background: var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  padding: 28px;
}

.price.pro {
  background:
    linear-gradient(180deg, rgba(255, 82, 140, 0.10), rgba(56, 158, 255, 0.08)),
    var(--card-fill-strong);
  border-color: rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
}

.price.pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  mask: linear-gradient(#000, transparent 70%);
  opacity: 0.05;
  pointer-events: none;
}

.price .tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.price.pro .tier {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price .amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}

.price .note {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 18px;
}

.price ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price li {
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex-shrink: 0;
}

/* ─── section spacing ─── */

section {
  padding: 64px 0;
}

section.tight { padding: 40px 0; }

hr.sep {
  border: 0;
  height: 1px;
  background: var(--card-stroke);
  margin: 0;
}

/* ─── footer ─── */

footer {
  padding: 48px 0 36px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

footer .links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
footer a:hover { color: var(--text-primary); }

/* ─── screenshots: macOS window chrome ───
 *
 * Source PNGs are 1779×1162. We let the browser do default high-quality
 * downscale — no image-rendering overrides (that crunches photos on retina).
 */
.window {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0B0E1F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease;
  isolation: isolate;
}

.window img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

/* Hero screenshot — the star of the page */
.hero-shot-wrap {
  position: relative;
  padding: 0 0 56px;
  margin-top: -4px;
}

.hero-shot-wrap::before {
  content: "";
  position: absolute;
  inset: -20% 0 -5% 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(199, 92, 235, 0.30), transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(255, 82, 140, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(56, 158, 255, 0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.shot-hero {
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.65),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 180px rgba(199, 92, 235, 0.26);
  transform: perspective(2400px) rotateX(1deg);
  border-radius: 20px;
}

.shot-hero:hover {
  transform: perspective(2400px) rotateX(0deg) translateY(-3px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 40px auto 0;
  max-width: 760px;
  padding: 18px 24px;
  background: var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-stats .stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats .stat strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats .stat span {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Showcase: alternating text / screenshot rows */
.showcase-intro {
  text-align: center;
  padding-bottom: 24px;
}

.showcase-intro h2,
.showcase-intro p.lede {
  margin-left: auto;
  margin-right: auto;
}

.showcase {
  padding: 8px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: center;
}

.showcase-row.reverse {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-row.reverse .window        { order: 1; }

.showcase-copy h3 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 14px 0 14px;
}

.showcase-copy p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.showcase-row .window {
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px var(--showcase-glow, rgba(199, 92, 235, 0.18));
}

.showcase-row:nth-child(1) .window { --showcase-glow: rgba(34, 211, 238, 0.22); }
.showcase-row:nth-child(2) .window { --showcase-glow: rgba(199, 92, 235, 0.26); }
.showcase-row:nth-child(3) .window { --showcase-glow: rgba(249, 115, 22, 0.22); }
.showcase-row:nth-child(4) .window { --showcase-glow: rgba(20, 184, 166, 0.22); }

/* Chips (small tool label above showcase heading) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.chip svg {
  width: 14px;
  height: 14px;
}

.chip .pro-pill {
  margin-left: 4px;
  font-size: 9px;
  padding: 2px 6px;
}

.chip.chip-cyan   { background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.14)); border-color: rgba(59, 130, 246, 0.30); }
.chip.chip-amber  { background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(249, 115, 22, 0.14)); border-color: rgba(249, 115, 22, 0.30); }
.chip.chip-teal   { background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(14, 165, 233, 0.14)); border-color: rgba(14, 165, 233, 0.30); }
.chip.chip-brand  { background: var(--brand-soft); border-color: rgba(199, 92, 235, 0.30); }

/* Pills (compact feature tags under copy) */
.pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pills li {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Pro badge corner treatment on the compact tools grid */
.card.pro {
  background:
    linear-gradient(180deg, rgba(199, 92, 235, 0.08), transparent 60%),
    var(--card-fill-strong);
}

.why-grid {
  /* Four tiles on desktop; auto-fit lets it fall to 2 on mid-sized
     windows and the 1-column rule in the mobile media query below
     handles the narrowest viewport. 220px min keeps each card wide
     enough for its heading + one-line description. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-footnote {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 24px auto 0;
  max-width: 560px;
}

@media (max-width: 860px) {
  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-row.reverse .showcase-copy { order: 1; }
  .showcase-row.reverse .window        { order: 2; }
  .showcase { gap: 56px; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .window { transition: none; }
  .shot-hero { transform: none; }
  .shot-hero:hover { transform: none; }
}

/* ─── prose (privacy page) ─── */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 24px;
}

.prose h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.prose .updated {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}

.prose p, .prose li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.65;
}

.prose strong { color: var(--text-primary); }

.prose a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(199, 92, 235, 0.6);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--brand-pink);
}

/* ─── Coursion: brand mark in nav ─── */
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(199, 92, 235, 0.45));
}

.hero-mark {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  border-radius: 28px;
  object-fit: cover;
  filter:
    drop-shadow(0 18px 44px rgba(199, 92, 235, 0.45))
    drop-shadow(0 6px 18px rgba(56, 158, 255, 0.32));
}

/* ─── Coursion: hero mosaic (visual replacement for product screenshot) ─── */
.hero-mosaic {
  margin: 56px auto 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  perspective: 1400px;
}

.hero-mosaic .m-tile {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: var(--m-bg, linear-gradient(135deg, #C084FC, #6366F1));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    0 14px 36px var(--m-glow, rgba(99, 102, 241, 0.45)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -10px 24px rgba(0, 0, 0, 0.18);
  transform: rotate(var(--m-rot, 0deg)) translateY(var(--m-y, 0));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  animation: floaty 8s ease-in-out infinite alternate;
  animation-delay: var(--m-delay, 0s);
}

.hero-mosaic .m-tile:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.04);
}

.hero-mosaic .m-tile svg {
  width: 44%;
  height: 44%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

@keyframes floaty {
  0%   { translate: 0 0; }
  100% { translate: 0 -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mosaic .m-tile { animation: none; }
}

@media (max-width: 640px) {
  .hero-mosaic { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ─── Coursion: product card refinements ─── */
.card.product {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
}

.card.product .platform {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.card.product .platform.mac { color: #C4B5FD; }
.card.product .platform.ios { color: #FBCFE8; }
.card.product .platform.web { color: #99F6E4; }

.card.product .status {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.55);
}

.card.product[data-soon="true"] .status::before {
  content: "•";
  color: #FBBF24;
  margin-right: 6px;
}

.card.product:not([data-soon="true"]) .status {
  color: rgba(255, 255, 255, 0.85);
}

.card.product:not([data-soon="true"]) .status::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s ease;
}

.card.product:not([data-soon="true"]):hover .status::after {
  transform: translateX(3px);
}

/* ─── Coursion: principles (numbered rows, not cards) ─── */
.principles {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  border-top: 1px solid var(--card-stroke);
}

.principle {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--card-stroke);
  transition: background 0.2s ease;
}

.principle:hover { background: rgba(255, 255, 255, 0.02); }

.principle .num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.principle .body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.principle .body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 640px;
}

@media (max-width: 640px) {
  .principle { grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 4px; }
  .principle .body h3 { font-size: 18px; }
}

/* ─── Coursion: showcase-row chips/tags ─── */
.chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.platform-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.04);
}
.platform-tag.mac { color: #C4B5FD; border-color: rgba(196,181,253,0.28); }
.platform-tag.ios { color: #FBCFE8; border-color: rgba(251,207,232,0.28); }
.platform-tag.web { color: #99F6E4; border-color: rgba(153,246,228,0.28); }

.soon-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #FCD34D;
}

/* ─── Coursion: product-hero panel (used when no real screenshot) ─── */
.window.product-hero {
  aspect-ratio: 16 / 10;
  background: var(--ph-grad, linear-gradient(135deg,#C084FC,#6366F1));
  position: relative;
  overflow: hidden;
}

.window.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.25), transparent 55%);
  pointer-events: none;
}

.window.product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}

.window.product-hero .ph-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  text-align: center;
  z-index: 1;
}

.window.product-hero .ph-inner img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.18);
}

.window.product-hero .ph-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

.window.product-hero .ph-icon svg {
  width: 60px;
  height: 60px;
}

.window.product-hero .ph-caption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.showcase { padding-top: 16px; }

/* ─── Coursion: big banner-style section heads (Part 01 / Part 02) ─── */
.section-head {
  padding: 96px 0 24px;
  position: relative;
}

.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
}

.section-head .head-inner {
  max-width: 760px;
}

.section-head .head-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-head .head-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(199, 92, 235, 0.35);
}

.section-head .head-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-tertiary);
}

.section-head .head-count::before {
  content: "·";
  margin-right: 12px;
  color: var(--text-tertiary);
}

.section-head .head-title {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 14px;
}

.section-head .head-title .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head .head-title .grad.ios-grad {
  background: linear-gradient(90deg, #2DD4BF, #0EA5E9, #6366F1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head .head-lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0;
}

/* ─── Coursion: iOS showcase rows — balanced compact column ─── */

/* iOS rows: make figure column smaller so it doesn't dominate copy */
.showcase-row.ios-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; }
.showcase-row.ios-row.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }

.ios-stage {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--ios-card-bg, linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)));
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px var(--ios-glow, rgba(140,90,240,0.18));
}

.ios-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ios-bg, radial-gradient(ellipse at 50% 50%, rgba(140,90,240,0.30), transparent 65%));
  z-index: 0;
}

.ios-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  z-index: 0;
}

.ios-stage .app-icon {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.10);
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ios-stage:hover .app-icon { transform: translateY(-4px) scale(1.04); }

.ios-stage .app-name {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.ios-stage .app-tag {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.2px;
  padding: 0 24px;
  text-align: center;
  margin-top: -8px;
}

@media (max-width: 860px) {
  .showcase-row.ios-row,
  .showcase-row.ios-row.reverse { grid-template-columns: 1fr; }
  .ios-stage { max-width: 280px; }
  .ios-stage .app-icon { width: 108px; height: 108px; }
}

/* ─── Coursion: App-Store-Today-style iOS card grid ─── */
.app-deck { padding: 16px 0 64px; }

.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.app-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 24px;
  min-height: 320px;
  border-radius: 22px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition:
    transform 0.4s cubic-bezier(0.2,0.8,0.2,1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.app-tile .tile-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 100% 70% at 20% 0%, var(--tile-from), transparent 60%),
    radial-gradient(ellipse 100% 70% at 100% 100%, var(--tile-to), transparent 65%),
    linear-gradient(160deg, rgba(0,0,0,0.45), rgba(0,0,0,0.7));
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.app-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

.app-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.45),
    0 0 60px color-mix(in srgb, var(--tile-to) 28%, transparent);
}

.app-tile:hover .tile-bg { opacity: 1; transform: scale(1.04); }

.app-tile[aria-disabled="true"] { cursor: default; }

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tile-plat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
}

.tile-icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.tile-icon-row img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    0 8px 22px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.14);
  flex-shrink: 0;
}

.tile-id { min-width: 0; }

.tile-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.tile-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  margin-top: 2px;
}

.tile-foot h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.tile-foot p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}

.tile-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.app-tile:hover .tile-cta {
  background: rgba(255,255,255,0.22);
  transform: translateX(2px);
}

.tile-cta.soon {
  background: rgba(251,191,36,0.18);
  border-color: rgba(251,191,36,0.4);
  color: #FCD34D;
}
.app-tile:hover .tile-cta.soon { background: rgba(251,191,36,0.18); transform: none; }
.app-tile[aria-disabled="true"] { cursor: default; }

@media (max-width: 640px) {
  .deck-grid { grid-template-columns: 1fr; }
  .app-tile { min-height: 280px; }
}

/* ─── Coursion: mobile lineup grid ─── */
.mobile-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 8px;
}

.mob-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, background 0.25s ease;
}

.mob-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  background: var(--card-fill-strong);
}

.mob-card img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  object-fit: cover;
}

.mob-card .mob-body { min-width: 0; }

.mob-card h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mob-card p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}
