/* Stickify
   The page is the app's own sticker canvas: the dotted backing the editor and library draw
   behind every sticker (a 14pt dot grid). Brand colours come from the app:
   orange #FF6B35, amber #FFB83D, pink #FF5478 (App/Views/Components.swift, AccentColor).
   Every sticker image on this site was lifted out of the real screenshots, not drawn. */

@font-face {
  font-family: "Bagel Fat One";
  src: url("/assets/fonts/bagel-fat-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rethink Sans";
  src: url("/assets/fonts/rethink-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rethink Sans";
  src: url("/assets/fonts/rethink-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --liner: #F2F1F6;
  --sheet: #FFFFFF;
  --dot: #D6D3DE;
  --ink: #1A1424;
  --muted: #5B5368;
  --line: #E0DDE7;
  --link: #B0360B;
  --orange: #FF6B35;
  --amber: #FFB83D;
  --pink: #FF5478;
  --pro-ink: #B81E48;
  --pro-bg: #FFE3EA;
  --free-ink: #7A4A00;
  --free-bg: #FFEFD2;
  --bezel: #1A1424;
  --lift: 0 1px 2px rgba(26, 20, 36, .08), 0 10px 30px -12px rgba(26, 20, 36, .28);
  --focus: #2457F5;

  --display: "Bagel Fat One", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, 4vw);
  --wide: 1180px;
  --measure: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --liner: #0F0D13;
    --sheet: #1C1A22;
    --dot: #2F2B38;
    --ink: #F4F1F9;
    --muted: #B3ACC0;
    --line: #2F2B38;
    --link: #FF9C6B;
    --pro-ink: #FF9AB1;
    --pro-bg: #3A1824;
    --free-ink: #FFCB73;
    --free-bg: #33250E;
    --bezel: #000000;
    --lift: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 30px -12px rgba(0, 0, 0, .8);
    --focus: #8FB0FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--liner);
  background-image: radial-gradient(circle at center, var(--dot) 1.5px, transparent 2px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
p, ul, ol, dl { margin: 0 0 1rem; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
strong { font-weight: 700; }

.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--liner); padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

/* Header */
.site-head { padding-block: 1rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--ink); text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px rgba(26, 20, 36, .18); }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .45rem .75rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.site-nav a:hover { background: var(--sheet); }
.site-nav a[aria-current="page"] { background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Type */
.display {
  font-family: var(--display); font-weight: 400; letter-spacing: .005em; line-height: 1.02;
}
h2.display { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 750; letter-spacing: -.005em; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: var(--measure); }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .95rem; }

/* The die-cut headline: the type gets the same white border the Outline effect gives a sticker. */
.diecut {
  font-family: var(--display); font-weight: 400;
  color: #1A1424;
  -webkit-text-stroke: .2em #FFFFFF;
  paint-order: stroke fill;
  filter: drop-shadow(0 .05em .05em rgba(26, 20, 36, .22)) drop-shadow(0 .12em .3em rgba(26, 20, 36, .14));
}

/* Hero */
.hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 7vw, 6rem); overflow-x: clip; }
.hero .wrap {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "title pile" "body pile";
  grid-template-rows: auto 1fr; align-items: start; row-gap: 0;
}
.hero h1 { grid-area: title; align-self: end; }
.hero-body { grid-area: body; }
.hero .pile { grid-area: pile; align-self: center; }
.hero h1 {
  font-size: clamp(2.9rem, 1.6rem + 4.6vw, 5.6rem);
  line-height: 1.04; letter-spacing: .01em; margin: 0 0 1.5rem -.06em;
  max-width: 11ch;
}
.hero .lede { margin-bottom: 1.75rem; }
.status {
  display: inline-grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; align-items: center;
  margin: 0 0 1rem; padding: .8rem 1.2rem .8rem .8rem;
  background: var(--sheet); border-radius: 18px; box-shadow: var(--lift);
}
.status img { grid-row: span 2; width: 44px; height: 44px; border-radius: 11px; }
.status b { font-weight: 750; font-size: 1.05rem; line-height: 1.2; }
.status span { color: var(--muted); font-size: .92rem; line-height: 1.3; }
.facts { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li {
  padding: .3rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
  background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--line);
}

/* Sticker pile */
.pile { position: relative; aspect-ratio: 1 / .92; width: 100%; max-width: 620px; margin-inline: auto; }
.stk {
  position: absolute; margin: 0;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  filter: drop-shadow(0 2px 2px rgba(26, 20, 36, .16)) drop-shadow(0 10px 14px rgba(26, 20, 36, .14));
}
.stk img { width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
.p-cat { left: 24%; top: 4%; width: 50%; --r: -4deg; z-index: 3; }
.p-coffee { right: 1%; top: 7%; width: 32%; --r: 9deg; z-index: 2; }
.p-puppy { left: 8%; top: 42%; width: 22%; --r: -11deg; z-index: 4; }
.p-kittens { right: 4%; bottom: 11%; width: 38%; --r: 6deg; z-index: 5; }
.p-comic { left: 4%; top: 3%; width: 22%; --r: 8deg; z-index: 1; }

.pile.is-draggable .stk { cursor: grab; touch-action: none; }
.pile.is-draggable .stk.is-held {
  cursor: grabbing; z-index: 20; --s: 1.06;
  filter: drop-shadow(0 4px 4px rgba(26, 20, 36, .16)) drop-shadow(0 24px 28px rgba(26, 20, 36, .22));
}

@media (prefers-reduced-motion: no-preference) {
  .pile .stk { animation: slap .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  .pile .p-comic { animation-delay: .05s; }
  .pile .p-coffee { animation-delay: .15s; }
  .pile .p-cat { animation-delay: .3s; }
  .pile .p-puppy { animation-delay: .45s; }
  .pile .p-kittens { animation-delay: .6s; }
  .pile.is-draggable .stk { transition: filter .15s ease; }
}
@keyframes slap {
  from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) * 2.2)) scale(1.3); }
  to { opacity: 1; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: .9rem; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.paper { background: var(--sheet); }

/* Phones (a plain drawn frame around a real screenshot) */
.phone {
  display: block;
  margin: 0; width: 100%; max-width: 270px;
  padding: 7px; border-radius: 40px; background: var(--bezel);
  box-shadow: var(--lift);
}
.phone img { width: 100%; border-radius: 33px; background: #F2F2F7; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.step .phone { margin-inline: auto; margin-bottom: 1.6rem; }
.step h3 { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.num {
  flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--orange); color: #1A1424; font-family: var(--display); font-size: 1.05rem; line-height: 1;
  transform: translateY(.1rem);
}
.step p { color: var(--muted); max-width: 30rem; }

/* Effects: a sheet of real stickers */
.fx { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.sheet {
  background: var(--sheet); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--lift);
}
.sheet h3 { font-size: 1.05rem; margin-bottom: 1.25rem; }
.sheet h3 + .grid { margin-bottom: 2rem; }
.sheet .grid:last-child { margin-bottom: 0; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; }
.grid figure { margin: 0; display: contents; }
.grid .cut { height: 150px; display: flex; align-items: center; justify-content: center; width: 100%; }
.grid .cut img { max-height: 150px; width: auto; filter: drop-shadow(0 6px 8px rgba(26, 20, 36, .12)); }
.grid figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; font-weight: 700; }
.tag {
  display: inline-block; padding: .05rem .5rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .01em;
}
.tag.free { background: var(--free-bg); color: var(--free-ink); }
.tag.pro { background: var(--pro-bg); color: var(--pro-ink); }

.fx-text { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.fx-text h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.fx-text p { color: var(--muted); margin: 0; }
.fx-side .phone { margin-inline: auto; }
.fx-side figcaption, .caption { margin-top: .9rem; color: var(--muted); font-size: .92rem; text-align: center; }

/* Several subjects */
.subjects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.subjects .text p { max-width: var(--measure); }
.text h2 { margin-bottom: 1.1rem; }
.subjects .grid .cut { height: 170px; }
.subjects .grid .cut img { max-height: 170px; }
.subjects .grid figcaption { font-weight: 600; }

/* Drawer */
.drawer { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.drawer .phone { margin-inline: auto; }
.apps { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.apps li {
  padding: .45rem 1rem; border-radius: 999px; font-weight: 700;
  background: var(--liner); box-shadow: inset 0 0 0 1.5px var(--line);
}
.apps li.more { font-weight: 500; background: none; box-shadow: none; padding-inline: .25rem; color: var(--muted); }
.drawer .text p { max-width: var(--measure); }

/* Free and Pro */
.pro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.plans-wrap { background: var(--sheet); border-radius: 24px; box-shadow: var(--lift); overflow-x: auto; }
.plans { width: 100%; border-collapse: collapse; font-size: 1rem; }
.plans th, .plans td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.plans thead th { font-family: var(--display); font-weight: 400; font-size: 1.3rem; padding-top: 1.1rem; }
.plans tbody th { font-weight: 600; width: 40%; }
.plans small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.plans .pro-col { color: var(--ink); }
.plans thead .pro-col { color: var(--pro-ink); }
.prices { margin: 0; }
.prices .shot { margin: 0 0 1rem; border-radius: 22px; overflow: hidden; box-shadow: var(--lift); background: #F2F2F7; }
.prices ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.prices li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.prices li b { font-weight: 700; }
.prices li span { text-align: right; }

/* Privacy and later */
.closing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.card { background: var(--sheet); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--lift); }
.card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: .8rem; }
.card p:last-child { margin-bottom: 0; }

/* Footer */
.site-foot { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); background: var(--liner); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.site-foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .by { margin: 0; color: var(--muted); font-size: .92rem; }
.site-foot .by a { color: var(--muted); font-weight: 600; text-decoration: underline; text-decoration-thickness: .06em; }

/* Documents (support, legal, press) */
.doc { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); }
.doc .wrap { width: min(50rem, 100% - 2 * var(--gutter)); }
.doc-sheet { background: var(--sheet); border-radius: 28px; padding: clamp(1.4rem, 5vw, 3.5rem); box-shadow: var(--lift); }
.doc-head { margin-bottom: 2rem; }
.doc-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); line-height: 1.04; margin-bottom: .75rem; }
.doc-head p { color: var(--muted); margin: 0; }
.doc h2 { font-size: 1.4rem; line-height: 1.25; font-weight: 750; margin: 2.4rem 0 .7rem; scroll-margin-top: 1rem; }
.doc h3 { font-size: 1.12rem; margin: 1.6rem 0 .5rem; scroll-margin-top: 1rem; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .4rem; }
.doc li::marker { color: var(--orange); font-weight: 700; }
.summary { background: var(--liner); border-radius: 18px; padding: 1.1rem 1.3rem; margin-bottom: 1.75rem; }
.summary p:last-child { margin-bottom: 0; }
.contact-big { font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1.6vw, 1.9rem); line-height: 1.2; margin: .3rem 0 .8rem; overflow-wrap: anywhere; }
.contact-big a { text-decoration-thickness: .06em; }
.path { font-weight: 600; }
.toc { margin: 2rem 0 1rem; }
.toc h2 { margin-top: 0; }
.toc ol { columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }
.doc figure.inline { margin: 1rem 0 1.25rem; max-width: 30rem; }
.doc figure.inline img { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); border: 1px solid var(--line); }
.doc figure.inline figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

/* Press */
.facts-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1.5rem; }
.facts-list dt { font-weight: 700; }
.facts-list dd { margin: 0; overflow-wrap: anywhere; }
.downloads { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1.25rem 1rem; }
.downloads li { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; }
.downloads img { border-radius: 16px; border: 1px solid var(--line); }
.downloads .icon-dl img { border-radius: 26px; width: 120px; }
.swatches { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.swatches li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.swatches i { width: 2.2rem; height: 2.2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw-orange { background: #FF6B35; }
.sw-amber { background: #FFB83D; }
.sw-pink { background: #FF5478; }
.sw-peel { background: #FDE3C0; }
.credits { font-size: .95rem; }
.credits li { margin-bottom: .3rem; }

/* 404 */
.lost { padding-block: clamp(2rem, 8vw, 6rem); text-align: center; }
.lost .stk404 {
  width: 190px; margin: 0 auto 1.5rem; transform: rotate(-12deg);
  filter: drop-shadow(0 2px 2px rgba(26, 20, 36, .16)) drop-shadow(0 10px 14px rgba(26, 20, 36, .14));
}
.lost h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1.05; margin-bottom: 1rem; }
.lost p { color: var(--muted); font-size: 1.1rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "pile" "body"; row-gap: 1rem; }
  .hero h1 { margin-bottom: 0; margin-left: 0; }
  .pile { aspect-ratio: 1 / .86; }
  .hero h1 { max-width: 12ch; }
  .pile { max-width: 520px; }
  .fx { grid-template-columns: minmax(0, 1fr); }
  .fx-side { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: center; }
  .fx-side figcaption { text-align: left; }
  .subjects, .drawer, .pro-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer .phone { grid-row: 2; max-width: 230px; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .step { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.25rem; align-items: center; }
  .step .phone { margin: 0; padding: 5px; border-radius: 26px; }
  .step .phone img { border-radius: 21px; }
  .step p { margin: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid .cut { height: 120px; }
  .grid .cut img { max-height: 120px; }
  .subjects .grid .cut { height: 120px; }
  .subjects .grid .cut img { max-height: 120px; }
  .fx-text { grid-template-columns: minmax(0, 1fr); }
  .closing { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .site-head .wrap { gap: .5rem; }
  .site-nav a { padding: .4rem .55rem; font-size: .95rem; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 34px; height: 34px; }
  .step { grid-template-columns: 112px minmax(0, 1fr); gap: 1rem; }
  .fx-side { grid-template-columns: 150px minmax(0, 1fr); }
  .fx-side .phone { padding: 5px; border-radius: 26px; }
  .fx-side .phone img { border-radius: 21px; }
  .grid.three { gap: 1rem .5rem; }
  .grid.three .cut { height: 92px; }
  .grid.three .cut img { max-height: 92px; }
  .subjects .grid .cut { height: 92px; }
  .subjects .grid .cut img { max-height: 92px; }
  .grid figcaption { font-size: .92rem; }
  .plans th, .plans td { padding: .7rem .65rem; }
  .facts-list { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .facts-list dd { margin-bottom: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-head nav, .site-foot nav, .skip { display: none; }
  .doc-sheet, .card, .sheet { box-shadow: none; }
}
