:root {
  --ink: #123033;
  --ink-soft: #436064;
  --paper: #fffaf3;
  --paper-deep: #f3e8d9;
  --teal: #075f67;
  --teal-deep: #063f46;
  --teal-soft: #d8f0ec;
  --aqua: #66c7c3;
  --pearl: #f6f6ea;
  --pearl-glow: #e8f9f2;
  --pink-gem: #cf6f96;
  --green-gem: #2c9f7c;
  --rose: #d987a0;
  --rose-deep: #a64972;
  --moss: #075f67;
  --sage: #d8eee9;
  --blue: #2d7284;
  --butter: #f3ca68;
  --plum: #47506e;
  --white: #ffffff;
  --shadow-soft: 0 22px 60px rgba(7, 63, 70, 0.18);
  --shadow-card: 0 16px 34px rgba(7, 63, 70, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

body {
  min-height: 100%;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 22px 18px, rgba(207, 111, 150, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 5px 8px, rgba(102, 199, 195, 0.14) 0 2px, transparent 3px),
    linear-gradient(rgba(7, 63, 70, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 63, 70, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.9;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 800 0.88rem/1.1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 48px;
  padding: 0 1.1rem;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(245, 202, 99, 0.95);
  outline-offset: 3px;
}

.app-shell {
  overflow: hidden;
}

.hero {
  min-height: 96svh;
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  transform: scale(1.02);
}

.hero__shade {
  z-index: -2;
  background:
    radial-gradient(circle at 22% 18%, rgba(232, 249, 242, 0.36), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(207, 111, 150, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(6, 63, 70, 0.5), rgba(6, 63, 70, 0.16) 36%, rgba(6, 63, 70, 0.32) 72%, rgba(255, 250, 243, 0.98) 100%);
}

.topbar {
  position: absolute;
  top: max(0.7rem, env(safe-area-inset-top));
  right: 0.8rem;
  left: 0.8rem;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand,
.topbar__button {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--white);
  background: rgba(27, 39, 36, 0.28);
  box-shadow: 0 12px 32px rgba(27, 39, 36, 0.16);
  text-decoration: none;
  backdrop-filter: blur(14px);
  font: 900 0.92rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand__mark,
.button-dot {
  width: 0.72rem;
  height: 0.72rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-gem), var(--green-gem));
  transform: rotate(45deg);
  border-radius: 3px 3px 0 3px;
  box-shadow: -4px 4px 0 rgba(246, 246, 234, 0.84), 3px -3px 0 rgba(102, 199, 195, 0.52);
}

.topbar__button {
  min-height: 42px;
  color: var(--teal-deep);
  background: rgba(246, 246, 234, 0.9);
  box-shadow: 0 12px 32px rgba(27, 39, 36, 0.14);
}

.hero__content {
  width: min(100%, 820px);
  padding: max(5.4rem, env(safe-area-inset-top)) 1.1rem 5.4rem;
  color: var(--white);
  text-align: center;
  justify-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.45rem;
  color: var(--butter);
  font: 900 0.76rem/1.1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.letter,
h1 {
  text-shadow: 0 2px 18px rgba(27, 39, 36, 0.48);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: none;
  margin: 0 auto 0.85rem;
  font-size: 4.35rem;
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
}

.letter {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  color: var(--teal-deep);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 247, 235, 0.88)),
    var(--paper);
  box-shadow: var(--shadow-soft);
  text-wrap: pretty;
  text-shadow: none;
}

.letter p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.46;
}

.hero__actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero__actions {
  justify-content: center;
  margin-top: 1.35rem;
}

.primary-action,
.ghost-action,
.filter-chip,
.envelope-button {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-action:active,
.ghost-action:active,
.filter-chip:active,
.envelope-button:active,
.pin:active {
  transform: translateY(1px) scale(0.99);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--pearl), var(--pearl-glow));
  color: var(--teal-deep);
  box-shadow: var(--shadow-soft);
}

.primary-action.dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--green-gem));
}

.ghost-action {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(27, 39, 36, 0.36);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.dock {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(7, 63, 70, 0.09);
  background: rgba(255, 250, 243, 0.88);
  backdrop-filter: blur(18px);
}

.dock a {
  flex: 1 0 auto;
  min-width: max-content;
  padding: 0.68rem 0.82rem;
  border-radius: 999px;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
  text-decoration: none;
  font: 900 0.78rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.intro-band,
.board-band,
.saved-band,
.streak-band,
.play-band,
.open-band,
.date-band,
.promise-band {
  padding: 3.5rem 1rem;
}

.intro-band {
  display: grid;
  gap: 1.2rem;
  background:
    linear-gradient(180deg, var(--paper), #f0fbf8),
    var(--paper);
}

.intro-band h2 {
  max-width: 900px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 760px;
}

.stat-strip div {
  min-height: 96px;
  padding: 0.9rem;
  border: 1px solid rgba(27, 39, 36, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.stat-strip strong,
.stat-strip span {
  display: block;
}

.stat-strip strong {
  color: var(--teal);
  font-size: 2.2rem;
  line-height: 0.9;
}

.stat-strip span {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font: 800 0.74rem/1.1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.gem {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 42% 58% 48% 52%;
  transform: rotate(45deg);
  box-shadow: 0 8px 18px rgba(7, 63, 70, 0.15);
}

.gem--pearl {
  background:
    radial-gradient(circle at 28% 28%, #ffffff, transparent 24%),
    linear-gradient(135deg, #fffdf5, #d9fff4 45%, #f4d6ea);
}

.gem--glint {
  background: linear-gradient(135deg, var(--pink-gem), var(--green-gem));
}

.gem--brick {
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.45) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.45) 0 4px, transparent 5px),
    linear-gradient(135deg, var(--aqua), var(--teal));
}

.board-band {
  background:
    radial-gradient(circle at 88% 8%, rgba(207, 111, 150, 0.14), transparent 22%),
    linear-gradient(180deg, var(--sage), #f8f1e8 70%, var(--paper));
}

.section-heading {
  display: grid;
  gap: 0.3rem;
  margin: 0 auto 1.25rem;
  max-width: 1080px;
}

.filter-row {
  max-width: 1080px;
  margin: 0 auto 1.2rem;
}

.filter-chip {
  min-height: 40px;
  padding: 0 0.86rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 20px rgba(27, 39, 36, 0.06);
}

.filter-chip.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}

.pin-board {
  column-count: 1;
  column-gap: 0.95rem;
  max-width: 1080px;
  margin: 0 auto;
}

.pin {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(27, 39, 36, 0.08);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  break-inside: avoid;
  vertical-align: top;
  cursor: pointer;
}

.pin::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 50%;
  width: 2.2rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 246, 234, 0.95), rgba(102, 199, 195, 0.62), rgba(207, 111, 150, 0.62));
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 5px 10px rgba(27, 39, 36, 0.08);
}

.pin__media {
  min-height: 170px;
  background: linear-gradient(135deg, var(--teal), var(--pink-gem));
}

.pin__media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 190px;
  object-fit: cover;
}

.pin__placeholder {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font: 900 1.1rem/1.05 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 24% 24%, rgba(246, 246, 234, 0.28), transparent 26%),
    linear-gradient(135deg, var(--teal), var(--blue));
}

.pin__body {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 1rem 1rem;
}

.pin__kicker {
  color: var(--rose-deep);
  font: 900 0.72rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.pin__title {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.04;
}

.pin__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.42;
}

.pin__save {
  position: absolute;
  right: 0.72rem;
  top: 0.7rem;
  z-index: 2;
  min-height: 36px;
  padding: 0 0.74rem;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(27, 39, 36, 0.12);
}

.pin__save.is-saved {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-deep), var(--teal));
}

.pin--letter {
  background: #fffdf8;
}

.pin--memory {
  background: #f9f8ef;
}

.pin--reason {
  background: #fff3f5;
}

.pin--date {
  background: #f0f6f7;
}

.pin--keepsake,
.pin--pearl,
.pin--glint,
.pin--brick,
.pin--castle {
  border-color: rgba(7, 95, 103, 0.16);
}

.pin--keepsake {
  background: linear-gradient(180deg, #fffdf7, #e9f9f5);
}

.pin--pearl {
  background: linear-gradient(135deg, #fffefa, #e7fff6 48%, #f7e0ef);
}

.pin--glint {
  background: linear-gradient(135deg, #fff5fa, #e8f8ef);
}

.pin--brick {
  background:
    radial-gradient(circle at 18% 18%, rgba(7, 95, 103, 0.08) 0 8px, transparent 9px),
    radial-gradient(circle at 68% 18%, rgba(207, 111, 150, 0.1) 0 8px, transparent 9px),
    #fffdf8;
}

.pin--castle {
  background: linear-gradient(180deg, #e9fbfb, #fffaf3);
}

.saved-band {
  background: var(--paper);
}

.saved-rail {
  display: grid;
  grid-auto-columns: minmax(230px, 0.8fr);
  grid-auto-flow: column;
  gap: 0.8rem;
  max-width: 1080px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.saved-chip {
  min-height: 120px;
  padding: 1rem;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.saved-chip strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  line-height: 1.05;
}

.saved-chip span {
  color: var(--ink-soft);
  font: 800 0.74rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.streak-band {
  background:
    radial-gradient(circle at 85% 16%, rgba(207, 111, 150, 0.12), transparent 24%),
    linear-gradient(180deg, var(--paper), #edf9f7);
}

.streak-grid {
  display: grid;
  gap: 0.8rem;
  max-width: 1080px;
  margin: 0 auto;
}

.streak-card {
  position: relative;
  min-height: 220px;
  padding: 1.1rem;
  border: 1px solid rgba(7, 63, 70, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 246, 234, 0.58), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(220, 247, 243, 0.84));
  box-shadow: var(--shadow-card);
}

.streak-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(7, 95, 103, 0.12);
  border-radius: 50%;
}

.streak-card h3 {
  margin-top: 0.3rem;
  color: var(--teal-deep);
  font-size: 4.35rem;
  line-height: 0.82;
}

.streak-card > p:not(.section-kicker) {
  max-width: 34rem;
  margin: 0.8rem 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.streak-card.is-checked {
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 246, 234, 0.72), transparent 22%),
    linear-gradient(135deg, rgba(236, 255, 249, 0.96), rgba(255, 247, 252, 0.86));
}

.streak-card.is-missed {
  border-color: rgba(207, 111, 150, 0.28);
}

.streak-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.streak-actions button:disabled {
  cursor: default;
  opacity: 0.72;
}

.streak-revive {
  border-color: rgba(7, 95, 103, 0.18);
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.72);
}

.play-band {
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 246, 234, 0.18), transparent 26%),
    linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: var(--white);
}

.jar-panel {
  display: grid;
  gap: 1.4rem;
  max-width: 980px;
  margin: 0 auto;
}

.jar-panel h2 {
  color: var(--white);
}

.jar-visual {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 22%, rgba(246, 246, 234, 0.38), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(207, 111, 150, 0.32), rgba(102, 199, 195, 0.3));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.jar-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 48%;
  height: 62%;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-top-width: 10px;
  border-radius: 18px 18px 36px 36px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
}

.jar-visual span {
  position: absolute;
  width: 3.6rem;
  height: 1.9rem;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(27, 39, 36, 0.14);
}

.jar-visual span:nth-child(1) {
  left: 29%;
  bottom: 4.2rem;
  transform: rotate(-16deg);
}

.jar-visual span:nth-child(2) {
  left: 45%;
  bottom: 5.3rem;
  background: #f9d5da;
  transform: rotate(10deg);
}

.jar-visual span:nth-child(3) {
  left: 36%;
  bottom: 7rem;
  background: #f7e0a0;
  transform: rotate(22deg);
}

.jar-visual span:nth-child(4) {
  left: 53%;
  bottom: 3.6rem;
  background: #d8e7f1;
  transform: rotate(-8deg);
}

.feature-text {
  margin: 1rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.48;
}

.open-band {
  background: linear-gradient(180deg, #f8f1e8, #f1fbf8 58%, var(--paper));
}

.envelope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 980px;
  margin: 0 auto 1rem;
}

.envelope-button {
  position: relative;
  min-height: 84px;
  padding: 1rem;
  border: 1px solid rgba(27, 39, 36, 0.09);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.envelope-button::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  border-radius: inherit;
  background: rgba(207, 125, 135, 0.08);
  pointer-events: none;
}

.envelope-button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--rose-deep));
}

.open-letter {
  max-width: 980px;
  min-height: 180px;
  margin: 0 auto;
  padding: 1.15rem;
  border-left: 5px solid var(--aqua);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.open-letter h3 {
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
}

.open-letter p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.52;
}

.date-band {
  display: grid;
  gap: 1rem;
  background:
    radial-gradient(circle at 15% 12%, rgba(207, 111, 150, 0.12), transparent 24%),
    #eef8f6;
}

.date-card {
  position: relative;
  min-height: 240px;
  padding: 1.2rem;
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 20%, rgba(246, 246, 234, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(6, 63, 70, 0.94), rgba(45, 114, 132, 0.9)),
    var(--teal);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.date-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.date-card h3 {
  max-width: 18ch;
  color: var(--white);
  font-size: 2.35rem;
  line-height: 0.9;
}

.date-card p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.48;
}

.promise-band {
  background:
    radial-gradient(circle at 86% 12%, rgba(207, 111, 150, 0.18), transparent 26%),
    linear-gradient(135deg, var(--teal-deep), var(--plum));
  color: var(--white);
}

.promise-band h2 {
  max-width: 820px;
  color: var(--white);
}

.promise-band p:last-child {
  max-width: 820px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.5;
}

.pin-modal {
  width: min(92vw, 680px);
  max-height: 86svh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(27, 39, 36, 0.35);
  overflow: auto;
}

.pin-modal::backdrop {
  background: rgba(27, 39, 36, 0.64);
  backdrop-filter: blur(5px);
}

.modal-close {
  position: sticky;
  top: 0.7rem;
  left: calc(100% - 3.6rem);
  z-index: 2;
  width: 42px;
  min-height: 42px;
  padding: 0;
  color: var(--moss);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.modal-media {
  min-height: 28px;
  margin-top: -42px;
}

.modal-media img,
.modal-media .pin__placeholder {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.pin-modal .section-kicker,
.pin-modal h2,
.pin-modal p,
.modal-save {
  margin-right: 1rem;
  margin-left: 1rem;
}

.pin-modal h2 {
  margin-top: 0.2rem;
  font-size: 2.15rem;
}

.pin-modal p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
  white-space: pre-line;
}

.modal-save {
  margin-bottom: 1rem;
  color: var(--white);
  background: var(--teal);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  z-index: 12;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  background: rgba(27, 39, 36, 0.95);
  color: var(--white);
  font: 800 0.88rem/1.25 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  transform: translateY(140%);
  transition: transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
}

.float-heart {
  position: fixed;
  z-index: 20;
  width: 12px;
  height: 12px;
  pointer-events: none;
  background: var(--pink-gem);
  border-radius: 3px 3px 0 3px;
  transform: rotate(45deg);
  animation: float-away 900ms ease forwards;
}

@keyframes float-away {
  to {
    opacity: 0;
    transform: translateY(-80px) rotate(45deg) scale(1.7);
  }
}

@media (min-width: 620px) {
  h1 {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .letter p {
    font-size: 1.22rem;
  }

  .stat-strip strong {
    font-size: 2.6rem;
  }

  .pin-board {
    column-count: 2;
  }

  .envelope-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero {
    min-height: 92vh;
  }

  h1 {
    font-size: 7.3rem;
  }

  h2 {
    font-size: 3.45rem;
  }

  .letter p {
    font-size: 1.35rem;
  }

  .stat-strip strong {
    font-size: 3rem;
  }

  .hero__content,
  .intro-band,
  .board-band,
  .saved-band,
  .streak-band,
  .play-band,
  .open-band,
  .date-band,
  .promise-band {
    padding-right: clamp(2rem, 7vw, 7rem);
    padding-left: clamp(2rem, 7vw, 7rem);
  }

  .hero__content {
    padding-bottom: 6.4rem;
  }

  .pin-board {
    column-count: 3;
  }

  .jar-panel,
  .date-band {
    grid-template-columns: 0.86fr 1.14fr;
    align-items: center;
  }

  .date-band {
    grid-template-columns: 0.72fr 1fr auto;
  }

  .streak-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streak-card h3 {
    font-size: 6.5rem;
  }

  .feature-text {
    font-size: 1.55rem;
  }

  .date-card h3 {
    font-size: 3.8rem;
  }

  .promise-band p:last-child {
    font-size: 1.45rem;
  }

  .pin-modal h2 {
    font-size: 3.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
