/* Frame — framecollageapp.com */

@font-face { font-family: "Britney"; src: url("fonts/Britney-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Rosaline"; src: url("fonts/Rosaline-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/Kalam-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Paquito"; src: url("fonts/Paquito-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Boxing"; src: url("fonts/Boxing-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Zina"; src: url("fonts/Zina-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Sharpie"; src: url("fonts/Sharpie-Light.otf") format("opentype"); font-display: swap; }

:root {
  --pink: #f21865;
  --pink-deep: #b80c4a;
  --blush: #ffe4ed;
  --peach: #ff8a5c;
  --ink: #1c1a20;
  --ink-soft: #57505e;
  --paper: #ffffff;
  --slot: #f7f3ef;
  --tint: #f6f4f7;
  --line: #ece6ea;

  --display: "Panchang", "General Sans", system-ui, sans-serif;
  --body: "General Sans", system-ui, -apple-system, sans-serif;
  --hand: "Kalam", "General Sans", cursive;

  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.65, 0, 0.25, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }

::selection { background: var(--pink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-pink :focus-visible, .on-ink :focus-visible { outline-color: var(--paper); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem); }
h3 { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); max-width: 34ch; color: var(--ink-soft); }
.on-pink .lede, .on-ink .lede { color: inherit; opacity: 0.92; }

.hand {
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.1;
}

/* ───────── nav ───────── */

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding-block: 26px;
}
.ticker .count { font-variant-numeric: tabular-nums; }
.ticker .count + .count::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 30px; border-radius: 3px; background: var(--pink); transform: translateY(-4px) rotate(12deg); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 6px 16px rgba(28, 26, 32, 0.22); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.2s;
}
.nav-links a:hover { background: rgba(28, 26, 32, 0.06); }
.nav-cta { background: var(--ink); color: var(--paper); }
.nav-links a.nav-cta:hover { background: var(--pink); }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } .brand { font-size: 1.1rem; gap: 10px; } .brand img { width: 34px; height: 34px; } }

/* ───────── store buttons ───────── */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 22px 10px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  line-height: 1.1;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: 0 10px 24px rgba(28, 26, 32, 0.22);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(28, 26, 32, 0.28); }
.store:active { transform: translateY(0); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.75; }
.store strong { font-size: 1.1rem; font-weight: 600; }
.store.light { background: var(--paper); color: var(--ink); }

/* ───────── hero ───────── */

.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 120px 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.hero h1 { font-size: clamp(2rem, 0.8rem + 5vw, 5rem); }
.hero .lede { margin: 26px 0 34px; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); max-width: 30ch; }
.hero-meta { margin-top: 22px; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.squiggle { position: relative; display: inline-block; white-space: nowrap; }
.squiggle svg { position: absolute; left: -2%; right: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--pink); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s 0.9s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float {
  position: absolute;
  z-index: 0;
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(28, 26, 32, 0.18);
  will-change: transform;
}
.float.f3 { width: 24%; left: -13%; bottom: -8%; box-shadow: none; filter: drop-shadow(0 10px 14px rgba(28, 26, 32, 0.2)); z-index: 4; }


.stage { position: relative; justify-self: center; width: min(100%, 440px); }
.canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(28, 26, 32, 0.2), 0 8px 18px rgba(28, 26, 32, 0.1);
  z-index: 1;
  transition: aspect-ratio 0.8s var(--ease-move), background-color 0.5s ease;
}
.tile {
  position: absolute;
  overflow: hidden;
  background: var(--slot);
  transition:
    left 0.85s var(--ease-move),
    top 0.85s var(--ease-move),
    width 0.85s var(--ease-move),
    height 0.85s var(--ease-move),
    opacity 0.5s ease,
    transform 0.6s var(--ease-out),
    border-radius 0.4s ease;
  will-change: left, top, width, height;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.gone { opacity: 0; transform: scale(0.6); }

.sticker {
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  pointer-events: none;
  transform: scale(0) rotate(-40deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  filter: drop-shadow(0 6px 10px rgba(28, 26, 32, 0.25));
  z-index: 3;
}
.sticker.on { transform: scale(1) rotate(var(--r, 0deg)); }

.note {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
  z-index: 4;
}
.note svg { width: 54px; height: 46px; flex: none; }
.hero .note { left: 34%; top: 103%; transform: rotate(-5deg); flex-direction: row-reverse; }
.hero .note svg { transform: scaleX(-1) rotate(8deg); }
.layout-count {
  position: absolute;
  right: -10px;
  top: -16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  z-index: 5;
  box-shadow: 0 8px 18px rgba(28, 26, 32, 0.3);
}

@media (max-width: 860px) {
  .hero { padding-top: 104px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { width: min(84%, 380px); margin-top: 8px; }
}
@media (max-width: 520px) { .hero .note { display: none; } }

/* ───────── ticker ───────── */

.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 22px;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 30px;
  align-items: center;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.ticker .count {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  padding-inline: 12px;
  white-space: nowrap;
}
.ticker .count span { color: var(--pink); }

/* ───────── feature sections ───────── */

.feature { padding-block: clamp(80px, 11vw, 150px); }
.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.feature.flip .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature.flip .copy { order: 2; }
.feature .copy p.lede { margin-top: 22px; }
.feature ul.facts {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 12px;
  font-weight: 600;
}
.feature ul.facts li { display: flex; gap: 12px; align-items: baseline; }
.feature ul.facts li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--pink);
  transform: translateY(-1px) rotate(12deg);
}
.feature.blush { background: var(--blush); }
.tint { background: var(--tint); }
@media (max-width: 860px) {
  .feature .wrap, .feature.flip .wrap { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
}

/* chips (font / ratio / layout pickers) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.control-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }

/* story demo */
.story { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; }
.story-frame {
  position: relative;
  width: clamp(230px, 26vw, 320px);
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(28, 26, 32, 0.22), 0 6px 14px rgba(28, 26, 32, 0.12);
  background: var(--slot);
}
.story-frame > img.bg { width: 100%; height: 100%; object-fit: cover; }
.story-slot {
  position: absolute;
  background: var(--slot);
  border: 3px solid #fff;
  transition: clip-path 0.7s var(--ease-move);
  clip-path: inset(0 0 0 0);
}
.story-slot.filled { clip-path: inset(0 0 100% 0); }
.story-sticker { position: absolute; width: 16.7%; aspect-ratio: 1; transform: scale(0) rotate(-50deg); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.story-sticker.on { transform: scale(1) rotate(0); }
.story-caption {
  position: absolute;
  left: 6.3%;
  top: 46.4%;
  width: 35%;
  height: 7.2%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(28, 26, 32, 0.3);
  font-family: var(--body);
}
.story-caption .caret { display: inline-block; width: 2px; height: 1.1em; background: #fff; margin-left: 2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.story-controls { display: grid; gap: 18px; padding-bottom: 6px; }
.font-chip { font-size: 1.15rem; padding: 8px 16px; }
.replay {
  justify-self: start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 0;
  background: none;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  color: var(--ink-soft);
}
.replay:hover { color: var(--ink); }
.replay svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .story { grid-template-columns: 1fr; justify-items: center; }
  .story-controls { justify-items: center; text-align: center; }
  .story-controls .chips { justify-content: center; }
  .replay { justify-self: center; }
}

/* carousel demo */
.carousel-demo { display: grid; gap: 26px; justify-items: center; }
.panorama { position: relative; width: min(100%, 560px); }
.panorama-img {
  display: block;
  aspect-ratio: 12 / 5;
  border-radius: 4px;
  background: url("art/no_13.webp") 0 50% / 125% 100% no-repeat;
  box-shadow: 0 10px 24px rgba(28, 26, 32, 0.14);
}
.panorama .cut {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 0;
  border-left: 2px dashed var(--pink);
}
.panorama .window {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: calc(100% / 3);
  border: 3px solid var(--ink);
  border-radius: 6px;
  transition: left 0.5s var(--ease-move);
}
.post {
  width: min(100%, 330px);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(28, 26, 32, 0.18), 0 6px 14px rgba(28, 26, 32, 0.1);
  overflow: hidden;
}
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-head .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--peach)); }
.post-head .name { font-weight: 600; font-size: 0.95rem; }
.post-head .counter { margin-left: auto; font-size: 0.8rem; font-weight: 600; background: rgba(28, 26, 32, 0.72); color: #fff; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.post-view { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; }
.post-view:active { cursor: grabbing; }
.post-track { display: flex; height: 100%; width: 300%; transition: transform 0.5s var(--ease-move); }
.post-track.dragging { transition: none; }
.post-track .slide { flex: 1 0 calc(100% / 3); height: 100%; background: url("art/no_13.webp") 0 50% / 375% 100% no-repeat; }
.post-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; }
.post-dots { display: flex; gap: 6px; margin-inline: auto; }
.post-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color 0.3s; }
.post-dots span.on { background: var(--pink); }
.arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}
.arrow:hover { border-color: var(--ink); }
.arrow:disabled { opacity: 0.35; cursor: default; }
.arrow svg { width: 16px; height: 16px; }

/* layout lab */
.lab { display: grid; gap: 28px; }
.lab-canvas-wrap { display: grid; place-items: center; min-height: clamp(360px, 44vw, 560px); }
.lab .canvas { width: auto; height: clamp(340px, 42vw, 540px); max-width: 100%; box-shadow: 0 30px 60px rgba(28, 26, 32, 0.2), 0 6px 14px rgba(28, 26, 32, 0.1); }
.lab .canvas.wide { width: min(100%, 560px); height: auto; }
.lab-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(28, 26, 32, 0.18);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--pink); }
.range { width: 100%; accent-color: var(--pink); }
.layout-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.layout-pick {
  width: 42px;
  aspect-ratio: 4 / 5;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s;
}
.layout-pick:hover { border-color: var(--ink); }
.layout-pick[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 1.5px var(--pink); }
.layout-pick svg { width: 100%; height: 100%; display: block; }

/* playground */

.playground h2, .playground .lede { color: var(--ink); }
.play-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.play-photo {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 700 / 851;
  justify-self: center;
  touch-action: none;
}
.play-photo .pic { position: absolute; overflow: hidden; background: var(--slot); }
.play-photo .pic img { width: 100%; height: 100%; object-fit: cover; }
.play-photo .frame-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.play-photo .drag {
  position: absolute;
  width: 23%;
  aspect-ratio: 1;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 8px 12px rgba(28, 26, 32, 0.3));
  transition: filter 0.2s, transform 0.2s var(--ease-out);
  z-index: 3;
}
.play-photo .drag:active { cursor: grabbing; filter: drop-shadow(0 16px 20px rgba(28, 26, 32, 0.35)); transform: scale(1.08); }
.play-photo .drag img { width: 100%; height: 100%; pointer-events: none; }
.play-text {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  text-align: center;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  z-index: 2;
  overflow-wrap: anywhere;
}
.play-controls { display: grid; gap: 22px; }
.text-input {
  width: 100%;
  font: inherit;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(28, 26, 32, 0.2);
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--pink);
}
.text-input:focus { outline: none; border-color: var(--ink); }
.frame-picks { display: flex; gap: 10px; flex-wrap: wrap; }
.frame-pick {
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 12px;
  border: 1.5px solid rgba(28, 26, 32, 0.14);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.frame-pick:hover { transform: translateY(-2px); }
.frame-pick[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.frame-pick img { width: 100%; height: 100%; object-fit: contain; }
.playground .chip { background: var(--paper); }
.playground .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.playground .note, .carousel-note { position: static; margin-top: 6px; }
.carousel-note { margin-top: -6px; }
@media (max-width: 860px) { .play-area { grid-template-columns: 1fr; } }

/* more tools grid */
.tools {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.tool { padding: 22px 22px 26px 0; border-bottom: 2px solid var(--ink); }
.tool h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tool p { font-size: 0.98rem; }

/* privacy band */
.on-ink { background: var(--ink); color: var(--paper); }
.privacy-band { padding-block: clamp(80px, 10vw, 140px); position: relative; overflow: hidden; }
.privacy-band .wrap { position: relative; z-index: 1; }
.privacy-band h2 { max-width: 14ch; }
.roll {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2));
  top: 50%;
  width: clamp(220px, 28vw, 380px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  transform: translateY(-50%) rotate(7deg);
  padding: 4px;
  background: #2c2931;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.roll img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.roll img:first-child { border-top-left-radius: 14px; }
.roll img:nth-child(3) { border-top-right-radius: 14px; }
.roll img:nth-child(7) { border-bottom-left-radius: 14px; }
.roll img:last-child { border-bottom-right-radius: 14px; }
@media (max-width: 860px) { .roll { position: relative; right: auto; top: auto; transform: rotate(5deg); margin: 48px auto 0; } }
.privacy-band .lede { margin-top: 24px; max-width: 44ch; }


/* pricing */
.pricing { background: var(--paper); padding-block: clamp(80px, 10vw, 140px); }
.pricing .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 44px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan {
  border-radius: 22px;
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan.free { background: var(--tint); }
.plan.pro { background: var(--ink); color: var(--paper); box-shadow: 0 30px 60px rgba(28, 26, 32, 0.25); }
.plan .tick { color: var(--pink); }
.plan h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.plan .price { font-weight: 600; font-size: 1.05rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.plan .fine { font-size: 0.9rem; opacity: 0.85; margin-top: auto; }
.trial-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--pink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
}
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { padding-block: clamp(80px, 10vw, 130px); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.12rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 0.3s var(--ease-out); margin-top: 4px; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; } }

/* footer */
.footer { padding: clamp(70px, 9vw, 120px) 0 36px; }
.footer .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.5rem, 2rem + 16vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--pink);
  margin: 0 0 40px;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-end; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer small { display: block; margin-top: 36px; opacity: 0.65; font-size: 0.85rem; }

/* legal pages */
.doc-head { background: var(--tint); color: var(--ink); padding: 130px 0 60px; }
.doc-head h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem); }
.doc-head p { margin-top: 16px; font-weight: 600; color: var(--ink-soft); }
.doc { padding-block: clamp(50px, 7vw, 90px); }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin: 48px 0 14px; }
.doc h3 { font-family: var(--body); font-weight: 600; font-size: 1.1rem; margin: 26px 0 8px; letter-spacing: 0; }
.doc p, .doc li { color: #3b3640; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc a { color: var(--pink-deep); }
.doc .card-link { display: inline-block; margin-top: 8px; }

/* reveal */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .canvas, .sticker, .story-slot, .story-sticker, .post-track, .panorama .window { transition: none !important; }
  .story-caption .caret { animation: none; }
}

/* hand-font preview switcher (only with ?hand) */
.hand-switch {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--paper);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 40px rgba(28, 26, 32, 0.25);
  display: grid;
  gap: 8px;
  max-width: calc(100vw - 32px);
}
.hand-switch .chips { max-width: 360px; }

/* galleries */
.gallery { margin-top: clamp(56px, 8vw, 100px); display: grid; gap: 16px; overflow: hidden; }
.marquee {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee var(--dur, 60s) linear infinite;
}
.marquee.reverse { animation-direction: reverse; }
.gallery:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee img {
  height: clamp(220px, 24vw, 320px);
  width: auto;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(28, 26, 32, 0.12);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.marquee img:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 22px 40px rgba(28, 26, 32, 0.2); }
.gallery.strips .marquee img { height: clamp(130px, 13vw, 180px); }

.split .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.1em; vertical-align: top; padding-bottom: 0.06em; }
.split .w > span { display: inline-block; }
.js .split:not(.in) .w > span { transform: translateY(105%); }
.js .split .w > span { transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  .squiggle path { animation: none; stroke-dashoffset: 0; }
  .js .split .w > span { transform: none !important; transition: none; }
}
