/* Bargello — getbargello.com
   Palette and type mirror the app (src/components/theme.ts). */

:root {
  --paper: #fbf5ee;
  --surface: #fffcf8;
  --surface-muted: #f6eae2;
  --border: #eeddd3;
  --ink: #4a3b36;
  --ink-soft: #75605a; /* muted text, 5.4:1 on paper */
  --berry: #b4566e; /* buttons / fills (white text 4.7:1) */
  --berry-ink: #9c4760; /* berry text on paper, 5.6:1 */
  --berry-deep: #7f3a50;
  --terracotta: #d9735e;
  --sage: #6e8f6a;
  --sage-ink: #4f6e4c;
  --butter: #fbe8b5;
  --blush: #f8d9df;
  --lavender: #e6ddf4;
  --sky: #d9e8f3;
  --peach: #fadcc8;
  --sage-soft: #d5e5cf;
  --wood: #d9b48a;

  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Nunito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 22px;
  --shadow: 0 1px 2px rgb(122 90 79 / 0.08), 0 14px 34px -12px rgb(160 112 95 / 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 560;
  font-variation-settings: 'SOFT' 60;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--berry-ink);
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--berry-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--berry-deep);
}

:focus-visible {
  outline: 3px solid var(--berry-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 10px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
  color: var(--surface);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Brand: swap the logo here. The mark is /favicon.svg; the wordmark is text. ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  flex: none;
  width: 32px; /* the mark is drawn on a 32px pixel grid */
  height: 32px;
  background: url('/favicon.svg') center / contain no-repeat;
}

.brand-word {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  font-variation-settings:
    'SOFT' 100,
    'opsz' 48;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---- Header ---- */

.site-header {
  padding-block: 22px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(var(--berry), var(--berry)) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--ease);
}

.site-nav a:not(.btn):hover {
  background-size: 100% 1.5px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--berry);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 22px -12px rgb(156 71 96 / 0.7);
  transition:
    background-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  background: var(--berry-ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgb(156 71 96 / 0.75);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.btn-cream {
  background: var(--surface);
  color: var(--berry-deep);
  box-shadow: 0 12px 26px -14px rgb(40 10 20 / 0.6);
}

.btn-cream:hover {
  background: #fff;
  color: var(--berry-deep);
}

.text-link {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.text-link span {
  border-bottom: 1.5px dashed rgb(180 86 110 / 0.55);
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--berry-ink);
}

/* ---- Shared section bits ---- */

.eyebrow {
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--berry-ink);
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section-head {
  max-width: 640px;
  display: grid;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 3.2vw + 1rem, 3.4rem);
}

.section-head p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* Bargello flame-stitch band (artwork generated by scripts/make-art.py). */
.flame-band {
  height: clamp(64px, 7vw, 92px);
  background: #ebdccf url('/img/flame-band.svg') left center / auto 100% repeat-x;
  box-shadow:
    inset 0 1px 0 rgb(122 90 79 / 0.12),
    inset 0 -1px 0 rgb(122 90 79 / 0.12);
}

.flame-band.thin {
  height: clamp(40px, 4vw, 52px);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(24px, 4vw, 56px) clamp(64px, 8vw, 104px);
}

/* Faint canvas mesh behind the hero. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(160 112 95 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(160 112 95 / 0.07) 1px, transparent 1px);
  background-size: 9px 9px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1.5px dashed rgb(180 86 110 / 0.45);
  border-radius: 999px;
  background: rgb(255 252 248 / 0.8);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--terracotta);
  transform: rotate(45deg);
}

.hero h1 {
  font-size: clamp(2.9rem, 4.6vw + 1.2rem, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 540;
}

.hero h1 em {
  display: inline-block;
}

.lede {
  font-size: clamp(1.1rem, 0.35vw + 1rem, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 6px;
}

.fine {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---- Hero art: hoop, phone, floating card ---- */

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}

.hoop {
  position: absolute;
  width: min(560px, 118%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-items: center;
}

.hoop::before {
  content: '';
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffbf4;
  border: 16px solid var(--wood);
  box-shadow:
    inset 0 0 0 6px #fffbf4,
    inset 0 0 0 8px #e8c9b4,
    0 2px 0 rgb(122 90 79 / 0.08);
  background-image:
    linear-gradient(rgb(160 112 95 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(160 112 95 / 0.08) 1px, transparent 1px);
  background-size: 9px 9px;
}

.hoop::after {
  /* the hoop's brass screw */
  content: '';
  position: absolute;
  top: 7.5%;
  width: 34px;
  height: 18px;
  border-radius: 5px;
  background: #c49a6c;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.08);
}

.phone {
  --pw: 31em;
  position: relative;
  z-index: 1;
  margin: 0;
  width: var(--pw);
  font-size: clamp(8.6px, 2.7vw, 10px);
  padding: 0.9em;
  border-radius: 4.8em;
  background: linear-gradient(145deg, #4b3a35, #2c211e);
  box-shadow:
    inset 0 0 0 0.15em rgb(255 255 255 / 0.08),
    0 3em 5em -2.4em rgb(74 59 54 / 0.55),
    0 1em 2em -1em rgb(74 59 54 / 0.35);
  transform: rotate(2deg);
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 3.9em;
  background: var(--paper);
  height: 62em;
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}

.island {
  position: absolute;
  top: 1em;
  left: 50%;
  translate: -50% 0;
  width: 9.2em;
  height: 2.7em;
  border-radius: 2em;
  background: #1f1715;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.55em 2.6em 0 3em;
  font-weight: 800;
  font-size: 1.4em;
  height: 3.2em;
}

.statusbar i {
  display: inline-block;
  width: 1.7em;
  height: 0.8em;
  border-radius: 0.25em;
  border: 0.12em solid var(--ink);
  position: relative;
}

.statusbar i::after {
  content: '';
  position: absolute;
  inset: 0.12em 0.4em 0.12em 0.12em;
  background: var(--ink);
  border-radius: 0.1em;
}

.app {
  flex: 1;
  padding: 1em 1.6em 0;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.app-label {
  font-weight: 800;
  font-size: 1.15em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry-ink);
}

.app-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.9em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.avatar {
  width: 3.8em;
  height: 3.8em;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-items: center;
}

.avatar::before {
  content: '';
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: 0 1.5em 0 0.55em var(--berry);
  clip-path: inset(-1em -1em -1.05em -1em);
  translate: 0 -0.45em;
}

.card {
  background: var(--surface);
  border-radius: 1.8em;
  padding: 1.3em 1.4em;
  box-shadow:
    0 0 0 0.1em var(--border),
    0 0.6em 1.4em -0.8em rgb(160 112 95 / 0.35);
}

.timer {
  display: flex;
  align-items: center;
  gap: 1em;
}

.live-dot {
  flex: none;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  border: 0.2em solid var(--terracotta);
  display: grid;
  place-items: center;
}

.live-dot::after {
  content: '';
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--terracotta);
}

.small-label {
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.strong {
  font-weight: 700;
  font-size: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timer > div {
  min-width: 0;
}

.timer-time {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.1em;
  font-variant-numeric: tabular-nums;
}

.app-section {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.9em;
  margin-top: 0.2em;
}

.project {
  display: grid;
  gap: 1.1em;
}

.project-row {
  display: flex;
  gap: 1.2em;
  align-items: center;
}

.thumb {
  flex: none;
  width: 6.8em;
  height: 6.8em;
  border-radius: 1.3em;
  background: var(--lavender) url('/img/motif-hydrangea.svg') center / 68% no-repeat;
}

.meta {
  display: grid;
  gap: 0.25em;
  min-width: 0;
}

.caption {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.caption.berry {
  color: var(--berry-ink);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.progress {
  display: flex;
  align-items: center;
  gap: 1em;
}

.bar {
  flex: 1;
  height: 0.9em;
  border-radius: 1em;
  background: var(--surface-muted);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: inherit;
  background: linear-gradient(90deg, #e7a6b6, var(--berry));
}

.pct {
  font-weight: 800;
  font-size: 1.2em;
}

.supplies {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2em;
}

.supplies-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5em;
}

.supply {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.75em 0;
  border-top: 0.1em solid var(--border);
}

.check {
  flex: none;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: 0.2em solid #d5c3b9;
  display: grid;
  place-items: center;
}

.check.done {
  background: var(--sage);
  border-color: var(--sage);
}

.check.done::after {
  content: '';
  width: 0.5em;
  height: 0.9em;
  border: solid #fff;
  border-width: 0 0.22em 0.22em 0;
  transform: translateY(-0.1em) rotate(45deg);
}

.swatch {
  flex: none;
  width: 1.3em;
  height: 2.6em;
  border-radius: 0.65em;
  background: var(--c);
  box-shadow:
    inset -0.3em 0 0 rgb(0 0 0 / 0.08),
    inset 0.25em 0 0 rgb(255 255 255 / 0.3);
}

.supply .name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 1.3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supply .name small {
  display: block;
  font-weight: 600;
  font-size: 0.88em;
  color: var(--ink-soft);
}

.tag {
  flex: none;
  font-weight: 800;
  font-size: 1.05em;
  padding: 0.35em 0.8em;
  border-radius: 1em;
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.tag.have {
  background: var(--sage-soft);
  color: var(--sage-ink);
}

.tag.ordered {
  background: var(--butter);
  color: #7a5a2a;
}

.tag.need {
  background: var(--blush);
  color: var(--berry-ink);
}

.tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 1.1em 1em 2.4em;
  background: var(--surface);
  border-top: 0.1em solid var(--border);
  font-weight: 800;
  font-size: 1.1em;
  color: var(--ink-soft);
}

.tabbar span {
  display: grid;
  justify-items: center;
  gap: 0.35em;
}

.tabbar span::before {
  content: '';
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.6em;
  border: 0.2em solid currentColor;
}

.tabbar .on {
  color: var(--berry-ink);
}

.tabbar .on::before {
  background: var(--blush);
}

/* Floating "this week" card */
.week {
  position: absolute;
  z-index: 2;
  left: -12%;
  bottom: 2%;
  width: 21em;
  font-size: clamp(8.6px, 2.7vw, 10px);
  background: var(--surface);
  border-radius: 2em;
  padding: 1.6em 1.8em;
  box-shadow:
    var(--shadow),
    0 0 0 0.1em var(--border);
  display: grid;
  gap: 0.6em;
  transform: rotate(-3deg);
}

.week-total {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.6em;
  line-height: 1.1;
}

.week-total small {
  font-family: var(--body);
  font-size: 0.5em;
  font-weight: 600;
  color: var(--ink-soft);
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6em;
  align-items: end;
  height: 6em;
  margin-top: 0.4em;
}

.bars span {
  display: grid;
  gap: 0.4em;
  height: 100%;
  grid-template-rows: 1fr auto;
  text-align: center;
  font-weight: 700;
  font-size: 1.05em;
  color: var(--ink-soft);
}

.bars span::before {
  content: '';
  align-self: end;
  height: var(--h);
  min-height: 0.4em;
  border-radius: 0.5em;
  background: #e7a6b6;
}

.bars .today::before {
  background: var(--berry);
}

.streak {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 0.5em;
  padding: 0.7em 1em;
  border-radius: 1.2em;
  background: var(--butter);
  color: #6d5130;
  font-weight: 700;
  font-size: 1.2em;
}

.streak img {
  width: 2em;
  height: 2em;
}

.streak b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35em;
  color: var(--ink);
}

/* ---- Features ---- */

.features .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.features .section-head {
  position: sticky;
  top: 40px;
}

.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: clamp(40px, 5vw, 60px);
}

.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 28px;
  border-top: 1.5px dashed rgb(160 112 95 / 0.32);
}

.feature-art {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--tint);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  transition: transform 0.45s var(--ease);
}

.feature-art img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.feature:hover .feature-art {
  transform: rotate(-6deg) scale(1.04);
}

.feature h3 {
  font-size: clamp(1.4rem, 0.6vw + 1.15rem, 1.65rem);
}

.feature p {
  color: var(--ink-soft);
}

.feature .aside {
  font-size: 0.9rem;
  font-style: italic;
}

/* ---- About the name ---- */

.about {
  background: var(--surface-muted);
  position: relative;
}

.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}

.sampler {
  margin: 0;
  display: grid;
  gap: 16px;
}

.sampler img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 0 0 10px var(--surface),
    0 0 0 11px var(--border),
    0 30px 60px -30px rgb(122 90 79 / 0.55);
  transform: rotate(-1.5deg);
}

.sampler figcaption {
  margin-top: 18px;
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  text-align: center;
}

.about-copy {
  display: grid;
  gap: 20px;
}

.about-copy h2 {
  font-size: clamp(2.1rem, 3.2vw + 1rem, 3.4rem);
}

.about-copy p:not(.eyebrow) {
  font-size: 1.125rem;
}

.about-copy .pull {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  padding-left: 22px;
  border-left: 3px solid var(--berry);
}

.pronounce {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.98rem;
}

/* ---- Premium ---- */

.premium .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.premium .section-head h2 {
  font-size: clamp(2.1rem, 2.2vw + 1rem, 3rem);
}

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--border),
    var(--shadow);
  overflow: hidden;
}

.tier {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  align-content: start;
  gap: 14px;
}

.tier + .tier {
  background: linear-gradient(180deg, rgb(248 217 223 / 0.55), rgb(248 217 223 / 0.2));
  border-left: 1.5px dashed rgb(180 86 110 / 0.3);
}

.tier h3 {
  font-size: 1.7rem;
}

.tier h3 em {
  color: var(--berry-ink);
  font-style: italic;
}

.tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tier li {
  position: relative;
  padding-left: 28px;
}

/* a tiny cross stitch for bullets */
.tier li::before,
.tier li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.78em;
  width: 13px;
  height: 3px;
  border-radius: 2px;
  background: var(--sage);
  transform: rotate(45deg);
}

.tier li::after {
  transform: rotate(-45deg);
}

.tier + .tier li::before,
.tier + .tier li::after {
  background: var(--berry);
}

.tier .fine {
  margin-top: 4px;
}

/* ---- Notify CTA ---- */

.notify {
  background: var(--berry-deep);
  color: #fff7f2;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.notify::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 9px 9px;
  pointer-events: none;
}

.notify .wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-block: clamp(80px, 10vw, 128px);
}

.notify .eyebrow {
  color: var(--butter);
}

.notify h2 {
  font-size: clamp(2.3rem, 3.8vw + 1rem, 4rem);
  max-width: 15em;
}

.notify h2 em {
  color: var(--butter);
}

.notify p:not(.eyebrow) {
  max-width: 34em;
  font-size: 1.15rem;
  color: #f6e3e2;
}

.notify .btn {
  margin-top: 10px;
}

.notify .fine {
  color: #efd3d6;
}

.notify .fine a {
  color: inherit;
}

/* Launch-list form: pill input + button, stacked on narrow screens. */
.signup {
  display: flex;
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
}

.signup input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
}

.signup input::placeholder {
  color: #e8c4ca;
}

.signup input:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 0;
}

.notify .signup .btn {
  margin-top: 0;
  flex-shrink: 0;
}

.signup-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 520px) {
  .signup {
    flex-direction: column;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .signup input {
    background: rgb(255 255 255 / 0.12);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
    text-align: center;
  }
}

.notify :focus-visible {
  outline-color: var(--butter);
}

/* ---- Footer ---- */

.site-footer {
  padding-block: 44px 52px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.site-footer .tagline {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---- Prose pages (privacy, 404) ---- */

.prose-page {
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px);
}

.prose {
  max-width: 44rem;
  margin-inline: auto;
}

.prose h1 {
  font-size: clamp(2.6rem, 4vw + 1rem, 4rem);
  margin: 12px 0 14px;
}

.prose .updated {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.prose .summary {
  margin: 36px 0 12px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  border-left: 5px solid var(--berry);
}

.prose .summary p + p {
  margin-top: 10px;
}

.prose h2 {
  font-size: clamp(1.55rem, 1vw + 1.2rem, 1.9rem);
  margin: 52px 0 14px;
}

.prose h3 {
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 26px 0 8px;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}

.prose ul {
  margin: 0;
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--berry);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.98rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-top: 1px solid var(--border);
}

.prose th {
  font-weight: 800;
  width: 32%;
}

.lost {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 56px 96px;
}

.lost .wrap {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.lost img {
  width: 120px;
  margin-bottom: 8px;
}

.lost h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.8rem);
}

.lost p {
  color: var(--ink-soft);
  max-width: 30em;
  font-size: 1.125rem;
}

/* ---- Responsive ---- */

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

  .features .section-head {
    position: static;
  }

  .premium .wrap {
    grid-template-columns: 1fr;
  }
}

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

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .actions {
    justify-content: center;
  }

  .hero-art {
    min-height: 0;
    padding-block: 40px 20px;
  }

  .hoop {
    width: min(560px, 112vw);
  }

  .about .wrap {
    grid-template-columns: 1fr;
  }

  .sampler {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .nav-section {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .premium .section-head h2 {
    font-size: clamp(2.1rem, 2.2vw + 1rem, 3rem);
  }

  .tiers {
    grid-template-columns: 1fr;
  }

  .tier + .tier {
    border-left: 0;
    border-top: 1.5px dashed rgb(180 86 110 / 0.3);
  }

  .week {
    left: -2px;
    bottom: 2%;
    width: 19.5em;
  }

  .week .streak {
    display: none;
  }

  .sampler img {
    transform: none;
  }

  .phone {
    transform: none;
  }

  .actions .btn {
    width: 100%;
  }

  .brand-word {
    font-size: 1.35rem;
  }
}

@media (max-width: 400px) {
  .site-nav .btn-small {
    padding: 0 14px;
  }
}

/* ---- Motion: gentle, and only when welcome ---- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s var(--ease) both;
    animation-delay: calc(var(--d, 0) * 110ms + 80ms);
  }

  .phone {
    animation: settle 1.2s var(--ease) 0.3s both;
  }

  .week {
    animation: rise 1s var(--ease) both;
    animation-delay: 0.9s;
  }

  .bar span {
    animation: fill 1.6s var(--ease) 0.9s both;
  }

  .live-dot::after {
    animation: breathe 2.6s ease-in-out infinite;
  }

  @supports (animation-timeline: view()) {
    .flame-band {
      animation: drift linear both;
      animation-timeline: view();
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    translate: 0 36px;
    rotate: 4deg;
  }
}

@keyframes fill {
  from {
    width: 0;
  }
}

@keyframes breathe {
  50% {
    opacity: 0.35;
    scale: 0.7;
  }
}

/* The flames drift sideways a little as the band scrolls past. */
@keyframes drift {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -180px;
  }
}

/* Website analytics controls, available on every measured page. */
.analytics-settings { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; padding: .5rem .8rem; border: 1px solid currentColor; border-radius: .5rem; background: #fff; color: #243a3b; font: inherit; font-size: .8rem; cursor: pointer; }
.analytics-consent { position: fixed; bottom: 4rem; left: 1rem; right: 1rem; max-width: 36rem; z-index: 100; padding: 1rem; border: 1px solid #243a3b; border-radius: .7rem; background: #fff; color: #243a3b; box-shadow: 0 4px 24px #0002; font-size: .9rem; }
.analytics-consent[hidden] { display: none; }
.analytics-consent p { margin: 0 0 .8rem; }
.analytics-consent a { display: inline-block; color: inherit; margin: .4rem .8rem .4rem 0; text-decoration: underline; }
.analytics-consent button { padding: .6rem .8rem; margin: .3rem; border: 1px solid currentColor; border-radius: .4rem; background: #fff; color: #243a3b; font: inherit; cursor: pointer; }
.analytics-consent button:focus-visible, .analytics-settings:focus-visible { outline: 3px solid #007b73; outline-offset: 3px; }
