@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #faf5ef;
  --surface: #ffffff;
  --surface-warm: #fdfaf6;
  --ink: #16171f;
  --ink-muted: #8a8496;
  --hairline: rgba(0, 0, 0, 0.08);
  --primary: #8b7ae8;
  --primary-soft: #ede8fc;
  --on-primary: #ffffff;
  --cta: #16171f;
  --on-cta: #ffffff;
  --pink-strong: #fe7e93;
  --pink: #f79bb8;
  --pink-soft: #fdeef3;
  --peach-strong: #f7a96b;
  --peach-soft: #fdf0e4;
  --yellow-strong: #ffb72b;
  --yellow-soft: #fff6dc;
  --mint-strong: #67c5b6;
  --mint-soft: #e7f5f0;
  --sky-strong: #6ebee4;
  --sky-soft: #e8f4fb;
  --danger: #e5484d;
  --shadow: rgba(160, 139, 122, 0.22);
  --shadow-soft: rgba(160, 139, 122, 0.14);
  --bezel: linear-gradient(160deg, #3a3340, #17141c);
  /* Photo frames and paper scraps stay light in both themes — a polaroid
     border only reads as a polaroid when it is paper-coloured. */
  --paper: #ffffff;
  --paper-ink: #16171f;
  --radius-md: 18px;
  --radius-lg: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #231d18;
    --surface-warm: #2b241e;
    --ink: #f6f1ea;
    --ink-muted: #a79e95;
    --hairline: rgba(255, 255, 255, 0.10);
    --primary: #a898f5;
    --primary-soft: #2e2745;
    --on-primary: #1b1622;
    --cta: #f6f1ea;
    --on-cta: #17130f;
    --pink-strong: #ff93a6;
    --pink: #e08aa3;
    --pink-soft: #3a262c;
    --peach-strong: #f7b47d;
    --peach-soft: #3a2c22;
    --yellow-strong: #ffc94d;
    --yellow-soft: #3a3120;
    --mint-strong: #7fd6c6;
    --mint-soft: #1f332e;
    --sky-strong: #84ccee;
    --sky-soft: #1e2e38;
    --danger: #ff6369;
    --shadow: rgba(0, 0, 0, 0.45);
    --shadow-soft: rgba(0, 0, 0, 0.32);
    --bezel: linear-gradient(160deg, #4a4250, #0f0d12);
    --paper: #efe6da;
    --paper-ink: #211b16;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* A soft wash of the brand colours behind everything, so the warm paper
   background is not completely flat. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 40% at 12% -6%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(52% 36% at 96% 4%, color-mix(in srgb, var(--pink) 20%, transparent), transparent 70%),
    radial-gradient(60% 34% at 50% 102%, color-mix(in srgb, var(--mint-strong) 14%, transparent), transparent 72%);
}

.wrap { max-width: 760px; margin: 0 auto; }

/* ---------- chrome ---------- */

header.site {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 36px 0 4px;
}

a.brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand-heart { width: 26px; height: 26px; vertical-align: -4px; margin-left: 2px; }

nav.site {
  margin: 22px 0 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav.site a {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

nav.site a:hover { transform: translateY(-1px); box-shadow: 0 5px 14px var(--shadow-soft); }

nav.site a[aria-current="page"] {
  background: var(--primary);
  color: var(--on-primary);
}

footer.site {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-muted);
}

footer.site a { color: var(--primary); }

/* ---------- type ---------- */

h1 {
  font-size: clamp(34px, 8.4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 14px 0 10px;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 10px;
  scroll-margin-top: 20px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 4px;
}

.hl { color: var(--primary); }

/* Hand-drawn looking highlight under a word. Painted as a background so it
   never fights with a stacking context. */
/* Two loose pink strokes, the same double pass the app draws under a
   highlighted word. Stretched to whatever the word is wide. */
.underlined {
  white-space: nowrap;
  padding-bottom: 0.16em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M1 6 Q50 14 99 4.2' fill='none' stroke='%23f79bb8' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M7 10.6 Q55 16.4 93 8.6' fill='none' stroke='%23f79bb8' stroke-opacity='.45' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 0.34em;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

@media (prefers-color-scheme: dark) {
  .underlined {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M1 6 Q50 14 99 4.2' fill='none' stroke='%23e08aa3' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M7 10.6 Q55 16.4 93 8.6' fill='none' stroke='%23e08aa3' stroke-opacity='.45' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

.eyebrow {
  display: inline-block;
  margin: 26px 0 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 12px var(--shadow-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.lede {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

.section-lede {
  margin: 0 0 20px;
  color: var(--ink-muted);
  font-size: 15px;
}

.updated {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 28px;
}

.hand {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

a { color: var(--primary); }

/* Primary call to action. Black in light mode, cream in dark, the way the app
   draws it — purple stays a secondary accent. */
.btn {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--on-cta);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 9px 22px var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--shadow);
}

.btn:active { transform: scale(0.97); }

ul, ol { padding-left: 22px; }
li { margin: 7px 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--primary-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 24px 0;
  box-shadow: 0 9px 22px var(--shadow);
}

.card h2 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.card.lavender { background: var(--primary-soft); }
.card.lavender h2, .card.lavender strong { color: var(--primary); }

/* ---------- hero collage ---------- */

.hero { margin-bottom: 8px; }

.stage {
  position: relative;
  margin: 30px 0 34px;
  padding: 6px 0 4px;
}

/* fit-content so the stickers below can be placed as a percentage of the
   photos, not of the whole column. */
.fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin-inline: auto;
}

.pola {
  position: relative;
  margin: 0;
  flex: none;
  width: clamp(126px, 27vw, 178px);
  padding: 9px 9px 9px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 16px 34px var(--shadow);
}

.pola img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 9px;
}

.pola.p1 { transform: rotate(-8deg) translateY(16px); z-index: 1; }
.pola.p2 { transform: rotate(1.5deg); z-index: 3; margin: 0 -22px; }
.pola.p3 { transform: rotate(8deg) translateY(20px); z-index: 2; }

/* washi tape across the top of the middle photo */
.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 62%;
  height: 26px;
  transform: translateX(-50%) rotate(-2.5deg);
  border-radius: 2px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.5) 0 3px, transparent 3px 9px),
    color-mix(in srgb, var(--primary) 55%, white);
  box-shadow: 0 2px 6px var(--shadow-soft);
  opacity: 0.92;
}

.stk { position: absolute; display: block; z-index: 4; }

.s-clip   { width: clamp(24px, 5.5vw, 34px); left: 4%; top: 22px; transform: rotate(-16deg); }
.s-heart  { width: clamp(38px, 9vw, 54px); left: 50%; bottom: -18px; transform: translateX(-50%) rotate(-6deg); }
.s-flower { width: clamp(30px, 7vw, 44px); right: 5%; bottom: -4px; transform: rotate(12deg); }

.note {
  position: absolute;
  right: -13%;
  top: -14px;
  width: clamp(92px, 22vw, 118px);
  padding: 12px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 10px 22px var(--shadow);
  transform: rotate(5deg);
  color: var(--paper-ink);
  text-align: center;
  z-index: 5;
}

/* The fan already fills a narrow viewport — the sticky note only has room
   to sit beside it once the page is wider than the photos. */
@media (max-width: 620px) {
  .note { display: none; }
}

@media (max-width: 420px) {
  .pola.p2 { margin: 0 -16px; }
}

/* ---------- screenshot showcase ---------- */

.shots {
  display: flex;
  gap: 18px;
  margin: 22px -20px 8px;
  padding: 8px 20px 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: transparent; }

.shots::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 35%, transparent);
}

.shot {
  flex: none;
  width: 232px;
  margin: 0;
  scroll-snap-align: center;
}

.phone {
  padding: 7px;
  border-radius: 34px;
  background: var(--bezel);
  box-shadow: 0 16px 32px var(--shadow);
  transition: transform 0.2s ease;
}

.shot:hover .phone { transform: translateY(-4px); }

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}

.shot figcaption {
  margin-top: 14px;
  padding: 0 4px;
}

.shot figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.shot figcaption span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ---------- feature grid ---------- */

.features {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0;
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 9px 22px var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px var(--shadow);
}

.feature .disc {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--surface);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px var(--shadow-soft);
}

.feature .disc img { width: 26px; height: 26px; }

.feature strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature span {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.feature em {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature em.live { color: var(--on-primary); background: var(--mint-strong); }

.f-mint   { background: var(--mint-soft); }   .f-mint em   { color: var(--mint-strong); }
.f-peach  { background: var(--peach-soft); }  .f-peach em  { color: var(--peach-strong); }
.f-lav    { background: var(--primary-soft); } .f-lav em   { color: var(--primary); }
.f-sky    { background: var(--sky-soft); }    .f-sky em    { color: var(--sky-strong); }
.f-pink   { background: var(--pink-soft); }   .f-pink em   { color: var(--pink-strong); }
.f-yellow { background: var(--yellow-soft); } .f-yellow em { color: var(--yellow-strong); }

/* ---------- link tiles ---------- */

.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 26px 0; }

@media (min-width: 620px) { .tiles { grid-template-columns: 1fr 1fr 1fr; } }

.tile {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 9px 22px var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px var(--shadow);
}

.tile-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--primary-soft);
}

.tile-mark img { width: 28px; height: 28px; object-fit: contain; }

.tile strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.tile span.tile-text { color: var(--ink-muted); font-size: 14px; }

/* ---------- promises ---------- */

.promises { position: relative; overflow: hidden; }

.promises-art {
  float: right;
  width: 132px;
  margin: -4px -6px 6px 18px;
}

.promises-art img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(4deg);
}

.promises-body { overflow: hidden; }

@media (max-width: 560px) {
  .promises-art { float: none; width: 116px; margin: 0 auto 6px; }
}

.promise {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 18px 0;
}

.promise img { width: 44px; height: 44px; flex: none; }
.promise div { flex: 1; }
.promise strong { display: block; font-weight: 700; }
.promise span { color: var(--ink-muted); font-size: 15px; }

/* ---------- tables ---------- */

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th { font-weight: 700; }
tr:last-child td { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
