/* PasteCollage : main landing page v2
   Visual language pulled directly from /docs/ads-assets/google
   - Pastel-mesh backgrounds (lavender + pink / mint / peach radial gradients on near-white)
   - Brand wordmark: pastecollage[.com] in #6d4fff / #1a1a1a
   - Massive black headlines (Helvetica 900, -0.035em tracking)
   - Clean sans labels and supporting copy
   - Pill CTAs: solid #6d4fff, white text, 100px radius
   - Iconic visual moments (⌘+V keycaps, infinity, etc.) */

:root {
  --ink: #1a1a1a;
  --ink-soft: #555;
  --ink-mute: #444;
  --paper: #ffffff;
  --paper-warm: #fff0f6;
  --paper-cool: #faf4ff;
  --accent: #6d4fff;
  --accent-deep: #5a3de6;
  --accent-soft: #9d8aff;

  /* Mesh palette : three variants, swapped by data-mesh */
  --mesh-pink: #ffd4e4;
  --mesh-lavender: #e3d4ff;
  --mesh-lavender-2: #e0d4ff;
  --mesh-mint: #d4f0e8;
  --mesh-peach: #ffe4d4;

  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: var(--font-sans);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper-cool);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* ---------- Mesh hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 28px 56px 56px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 85% 30%, var(--mesh-lavender) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, var(--mesh-pink) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper-cool) 0%, var(--paper-warm) 100%);
  transition: background 0.6s ease;
}
[data-mesh="unlimited"] .hero {
  background:
    radial-gradient(circle at 80% 20%, var(--mesh-lavender) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, var(--mesh-mint) 0%, transparent 55%),
    linear-gradient(180deg, #f4f8ff 0%, #f4fff8 100%);
}
[data-mesh="paste"] .hero {
  background:
    radial-gradient(circle at 20% 30%, var(--mesh-lavender-2) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, var(--mesh-mint) 0%, transparent 55%),
    linear-gradient(180deg, #f4efff 0%, #e8faf2 100%);
}
[data-mesh="peach"] .hero {
  background:
    radial-gradient(circle at 80% 30%, var(--mesh-peach) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, var(--mesh-lavender) 0%, transparent 55%),
    linear-gradient(180deg, #fff7f0 0%, #faf4ff 100%);
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand .dot { color: var(--accent); }
.top nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.top nav a { transition: color .15s; }
.top nav a:hover { color: var(--ink); }
.top nav a.cta:hover { color: #fff; }
.top nav .nav-premium { color: var(--accent); font-weight: 600; }
.top nav .nav-premium:hover { color: var(--accent-deep); }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(109,79,255,0.32);
  transition: transform .12s, box-shadow .15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(109,79,255,0.45); }
.cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.cta.lg { padding: 18px 34px; font-size: 17px; }
.cta-mid {
  background: #8c78f0;
  color: #fff;
  box-shadow: 0 3px 12px rgba(140, 120, 240, 0.34);
}
.cta-mid:hover {
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(109,79,255,0.4);
}
.cta.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-weight: 600;
}
.cta.ghost:hover { transform: none; box-shadow: none; color: var(--accent); }

/* Hero content layout: 2-col, headline left, visual right */
.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  padding: 40px 0 24px;
  z-index: 2;
}
.hero-text { max-width: 720px; }
.hero h1 {
  font-size: clamp(56px, 7.6vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.038em;
  font-weight: 900;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  max-width: 560px;
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.28;
  color: rgba(26,26,26,0.68);
  letter-spacing: 0;
  font-weight: 600;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; }
.hero-meta-item::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-deep);
}

/* Hero visual variants */
.hero-visual { display: flex; align-items: center; justify-content: center; min-height: 320px; }

/* Variant 1: ⌘+V keycombo */
.keycombo { display: flex; align-items: center; gap: 18px; }
.key {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 22px 38px;
  font-size: 92px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  box-shadow: 0 8px 0 var(--ink);
  font-family: var(--font-sans);
  line-height: 1;
}
.plus { font-size: 64px; font-weight: 900; color: var(--ink); }

/* Variant 2: infinity */
.infinity {
  font-size: 280px; line-height: 1;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: -0.06em;
  user-select: none;
}

/* Variant 5: real editor screenshot */
.editor-preview-link {
  display: block;
  width: min(660px, 100%);
  color: inherit;
  text-decoration: none;
}
.editor-preview-link:focus-visible {
  outline: none;
}
.editor-preview-link:focus-visible .editor-preview {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
.editor-preview {
  position: relative;
  width: min(660px, 100%);
  margin: 0;
  padding: 14px;
  border-radius: 34px;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,255,255,0.28)),
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.82), transparent 36%),
    rgba(255,255,255,0.26);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    inset 0 -18px 42px rgba(109,79,255,0.07),
    0 28px 72px rgba(54, 38, 120, 0.18),
    0 8px 22px rgba(26,26,26,0.08);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  transform: rotate(1deg);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}
.editor-preview:hover {
  border-color: rgba(255,255,255,0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -18px 42px rgba(109,79,255,0.09),
    0 38px 90px rgba(54, 38, 120, 0.24),
    0 16px 34px rgba(26,26,26,0.1);
  transform: translateY(-8px) rotate(0.35deg) scale(1.012);
}
.editor-preview:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
.editor-preview::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.66) 0%, rgba(255,255,255,0.18) 34%, transparent 35% 100%);
  mix-blend-mode: screen;
  opacity: 0.75;
  z-index: 1;
}
.editor-preview::after {
  content: "";
  position: absolute;
  inset: auto 34px 12px;
  height: 18px;
  border-radius: 999px;
  background: rgba(109,79,255,0.16);
  filter: blur(18px);
  pointer-events: none;
}
.editor-preview img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.78),
    0 18px 42px rgba(26,26,26,0.12);
  transition: filter 180ms ease;
  pointer-events: none;
}
.editor-preview:hover img {
  filter: saturate(1.04) contrast(1.015);
}

/* Variant 3: collage stack */
.stack {
  position: relative;
  width: 380px;
  height: 380px;
}
.stack .card {
  position: absolute;
  border-radius: 14px;
  background: #efe9e0;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  overflow: hidden;
}
.stack .card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stack .c1 { width: 200px; height: 240px; left: 10px; top: 30px; transform: rotate(-7deg); }
.stack .c2 { width: 220px; height: 200px; left: 130px; top: 8px; transform: rotate(5deg); background: linear-gradient(135deg, #e8dcc5, #d1b995); }
.stack .c3 { width: 180px; height: 180px; left: 60px; top: 180px; transform: rotate(-3deg); background: linear-gradient(135deg, #c8cdb4, #a8b094); }
.stack .c4 { width: 200px; height: 220px; right: 0; top: 140px; transform: rotate(8deg); }

/* Variant 4: paste-URL */
.paste-demo {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 18px 24px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-soft);
  box-shadow: 0 8px 0 var(--ink);
  width: 420px;
  display: flex; align-items: center; gap: 12px;
}
.paste-demo .caret {
  width: 2px; height: 20px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Respect users who've asked the OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cta:hover { transform: none; }
}

/* ---------- Account strip ---------- */
.account-strip {
  padding: 28px 56px;
  background: var(--ink);
  color: #fff;
}
.account-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 28px;
  align-items: center;
}
.strip-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.account-strip h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.strip-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.strip-benefits span {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}

/* ---------- Bento value grid ---------- */
.bento {
  padding: 96px 56px 32px;
  background: #fff;
}
.bento-head {
  text-align: center;
  margin-bottom: 56px;
}
.bento-head h2 {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0 0 16px;
  text-wrap: balance;
}
.bento-head p {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.tile {
  border-radius: 24px;
  padding: 28px;
  background: var(--paper-cool);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
}
.tile h3 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 0 0 8px;
  text-wrap: balance;
}
.tile p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.tile .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.tile .tag-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -3px;
  margin-right: 4px;
}
/* Tile spans */
.t-paste { grid-column: span 4; background: linear-gradient(135deg, #f4efff 0%, #e8faf2 100%); }
.t-paste .visual {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
}
.t-paste .key-sm {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--ink);
  line-height: 1;
}
.t-paste .plus-sm { font-size: 24px; font-weight: 900; }

.t-unlim { grid-column: span 2; background: linear-gradient(180deg, #f4f8ff 0%, #faf4ff 100%); align-items: center; text-align: center; justify-content: center; }
.t-unlim .infinity-sm {
  font-size: 96px;
  color: var(--accent);
  line-height: 1;
  font-weight: 900;
  margin-bottom: 8px;
}

.t-export {
  grid-column: span 6;
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.t-export h3 { color: #fff; }
.t-export p { color: rgba(255,255,255,0.65); }
.t-export .tag { color: var(--accent-soft); }
.t-export .formats {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 0;
  align-self: center;
}
.t-export .fmt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 6px 14px;
}

.t-templates {
  grid-column: span 3;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.78), transparent 36%),
    linear-gradient(135deg, #fff5f8 0%, #f4f1ff 100%);
}
.t-templates .template-preview {
  width: 100%;
  height: 300px;
  margin-top: 18px;
  padding: 10px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.42)),
    rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 16px 34px rgba(72, 52, 130, 0.1);
  align-self: end;
}
@media (min-width: 961px) {
  .t-templates .template-preview {
    height: 362px;
  }
}
.template-piece {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.72), 0 7px 16px rgba(42, 34, 88, 0.1);
  background-size: cover;
  background-position: center;
}
.template-piece::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 22%, rgba(255,255,255,0.38), transparent 28%),
    linear-gradient(180deg, transparent 55%, rgba(26,26,26,0.12));
  pointer-events: none;
}
.piece-1 {
  grid-column: 1 / span 2;
  grid-row: 1;
  background-image: url("/landing-assets/editor/templates/cherry-template-1.jpg");
}
.piece-2 {
  grid-column: 3;
  grid-row: 1;
  background-image: url("/landing-assets/editor/templates/cherry-template-2.jpg");
}
.piece-3 {
  grid-column: 1;
  grid-row: 2;
  background-image: url("/landing-assets/editor/templates/cherry-template-3.jpg");
}
.piece-4 {
  grid-column: 2 / span 2;
  grid-row: 2;
  background-image: url("/landing-assets/editor/templates/cherry-template-4.jpg");
}
.piece-5 {
  grid-column: 1 / span 2;
  grid-row: 3;
  background-image: url("/landing-assets/editor/templates/cherry-template-5.jpg");
}
.piece-6 {
  grid-column: 3;
  grid-row: 3;
  display: block;
  background-image: url("/landing-assets/editor/templates/cherry-template-6.jpg");
}


.t-drag {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff7f0 0%, #f4efff 100%);
}
.t-drag .drag-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.t-drag .drag-photo {
  width: 48px;
  aspect-ratio: 4/3;
  border-radius: 6px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.t-drag .drag-photo svg {
  width: 70%;
  height: 70%;
}
.t-drag .drag-arrow {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.t-drag .drag-canvas {
  width: 72px;
  aspect-ratio: 4/3;
  border-radius: 6px;
  border: 2px dashed var(--ink);
  background: #fff;
  position: relative;
  flex-shrink: 0;
}
.t-drag .drag-photo-dest {
  position: absolute;
  width: 42px;
  aspect-ratio: 4/3;
  border-radius: 4px;
  background: #fff;
  border: 1.5px solid var(--ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.t-drag .drag-photo-dest svg {
  width: 70%;
  height: 70%;
}

.t-bg {
  grid-column: span 6;
  background: linear-gradient(135deg, #f4efff 0%, #fff0f6 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.t-bg .bg-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 0;
}
.t-bg .bg-swatch {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
.t-bg .bg-after {
  /* Image has transparent areas where the background was removed.
     The checkerboard CSS background shows through the alpha channel. */
  background-image:
    linear-gradient(45deg, #d4d4d8 25%, transparent 25%),
    linear-gradient(-45deg, #d4d4d8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d4d4d8 75%),
    linear-gradient(-45deg, transparent 75%, #d4d4d8 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  background-color: #fff;
}
.t-bg .bg-arrow {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.t-textures {
  grid-column: span 3;
  background:
    radial-gradient(circle at 84% 18%, rgba(212,240,232,0.7), transparent 34%),
    linear-gradient(135deg, #fff7f0 0%, #faf4ff 100%);
}
.t-textures .swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.34)),
    rgba(255,255,255,0.26);
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 16px 34px rgba(72, 52, 130, 0.1);
}
.t-textures .sw {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 0 rgba(255,255,255,0.72), 0 7px 16px rgba(42, 34, 88, 0.11);
}
@media (min-width: 961px) {
  .t-textures .swatches {
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
  }
}

/* ---------- How section ---------- */
.how {
  padding: 96px 56px;
  background: var(--paper-cool);
}
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-head { text-align: center; margin-bottom: 64px; }
.how-head h2 {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0 0 16px;
}
.how-head p {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.05);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.step h3 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.step p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Tiers ---------- */
.tiers {
  padding: 96px 56px;
  background: #fff;
}
.tiers-head { text-align: center; margin-bottom: 56px; }
.tiers-head h2 {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0 0 16px;
  text-wrap: balance;
}
.tiers-head p {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}
.tier {
  background: var(--paper-cool);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.tier-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tier-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: -8px;
}
.tier-recommended { background: linear-gradient(180deg, #f8f4ff 0%, var(--paper-cool) 100%); }
.tier-recommended .tier-tag {
  background: #8c78f0;
  box-shadow: 0 2px 8px rgba(140, 120, 240, 0.3);
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.tier-amount {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}
.tier-currency {
  letter-spacing: 0.02em;
}
.tier-price-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  flex: 1;
}
.tier-list .check {
  color: var(--accent);
  font-weight: 900;
  margin-right: 6px;
}
.tier-list .tier-prev {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.tier-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.tier-cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}
.tier-cta-ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: none;
  box-shadow: none;
}
/* Tinted: between ghost and solid for the middle "Sign in" tier
   so the upgrade ladder reads ghost > tinted > solid. */
.tier-cta-tinted {
  background: #8c78f0;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(140, 120, 240, 0.36);
}
.tier-cta-tinted:hover {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(109, 79, 255, 0.36);
}

/* Premium tile : accent treatment */
.tier-premium {
  background: linear-gradient(180deg, #f4efff 0%, #faf4ff 100%);
  border: 2px solid var(--accent);
}
.tier-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(109, 79, 255, 0.3);
}

/* ---------- Big CTA ---------- */
.big-cta {
  padding: 120px 56px;
  text-align: center;
  background:
    radial-gradient(circle at 85% 30%, var(--mesh-lavender) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, var(--mesh-pink) 0%, transparent 55%),
    var(--paper-cool);
}
.big-cta h2 {
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 900;
  letter-spacing: -0.038em;
  line-height: 0.96;
  margin: 0 0 24px;
  text-wrap: balance;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.big-cta h2 .accent { color: var(--accent); }
.big-cta p {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 36px;
}
.big-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 56px;
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer .brand { color: var(--accent-soft); font-size: 16px; }
.footer .brand .dot { color: #fff; }
.footer-links { display: flex; gap: 28px; }
.footer-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1100px) {
  .hero { padding: 28px 32px 48px; }
  .hero h1 { font-size: clamp(48px, 6vw, 92px); }
  .infinity { font-size: 220px; }
  .editor-preview { transform: none; }
  .bento, .how, .tiers, .account-strip { padding-left: 32px; padding-right: 32px; }
  .bento-grid { gap: 12px; }
  .bento-head h2, .how-head h2, .tiers-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
  .account-strip-inner { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero { padding: 24px 24px 48px; min-height: auto; }
  .hero-body { grid-template-columns: 1fr; padding: 24px 0; gap: 32px; }
  .hero-visual { min-height: 0; }
  .hero-visual .editor-preview-link,
  .hero-visual .editor-preview { width: min(520px, 100%); margin-left: auto; margin-right: auto; }
  .hero-meta { flex-direction: column; gap: 10px; align-items: flex-start; }
  .top nav { gap: 14px; }
  .top nav a:not(.cta):not(.nav-premium) { display: none; }
  .brand .dot { display: none; }
  .top nav .nav-premium { font-size: 13px; }
  .top nav .cta { padding: 10px 18px; font-size: 13px; }
  .bento, .how, .tiers, .footer, .account-strip { padding-left: 24px; padding-right: 24px; }
  .account-strip { padding-top: 32px; padding-bottom: 32px; }
  .account-strip h2 { font-size: 28px; }
  .bento { padding-top: 64px; }
  .how { padding: 64px 24px; }
  .tiers { padding: 64px 24px; }
  .big-cta { padding: 80px 24px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .t-paste, .t-export, .t-templates, .t-textures, .t-bg, .t-drag { grid-column: span 2; }
  .t-export, .t-bg { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .key { font-size: 56px; padding: 16px 28px; box-shadow: 0 6px 0 var(--ink); border-radius: 16px; }
  .infinity { font-size: 140px; }
  .stack { transform: scale(0.7); transform-origin: top left; }
  .paste-demo { width: 100%; font-size: 14px; }

  /* Footer: stack vertically + wrap link row to prevent horizontal overflow */
  .footer { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px 20px; }

  /* BG-removal swatches: shrink to fit narrow tile content area (~286px) */
  .t-bg .bg-demo { gap: clamp(6px, 2.5vw, 24px); }
  .t-bg .bg-swatch { width: clamp(96px, 30vw, 180px); height: auto; aspect-ratio: 1; }
  .t-bg .bg-arrow { font-size: 24px; }
}
