/* PurrFans: warm marmalade + plum on cream. Mobile-first. */
:root {
  --cream: #fff4e6;
  --cream-2: #ffe9d2;
  --paper: #fffdf9;
  --ink: #2b1a12;
  --muted: #7b6255;
  --line: #f0dcc6;
  --marmalade: #ee6a2c;
  --marmalade-dark: #c94f17;
  --plum: #6a2b5a;
  --plum-dark: #521f45;
  --butter: #ffcf5c;
  --blush: #f7b7a3;
  --sage: #3d8f6c;
  --danger: #b4372b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 26, 18, 0.06), 0 8px 24px rgba(43, 26, 18, 0.08);
  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

button {
  font: inherit;
  cursor: pointer;
}

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

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--marmalade-dark);
}
.accent {
  color: var(--marmalade);
}

.main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease;
  background: var(--paper);
  color: var(--ink);
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--marmalade);
  color: #fff;
}
.btn.primary:hover {
  background: var(--marmalade-dark);
}
.btn.plum {
  background: var(--plum);
  color: #fff;
}
.btn.plum:hover {
  background: var(--plum-dark);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--cream-2);
}
.btn.danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.btn.sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.9rem;
}
.btn.block {
  width: 100%;
}
.btn:focus-visible,
.chip:focus-visible,
.card:focus-visible,
input:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 244, 230, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand pill"
    "links links";
  align-items: center;
  row-gap: 4px;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-name b {
  color: var(--marmalade);
  font-weight: 700;
}
.nav-links {
  grid-area: links;
  display: flex;
  gap: 4px;
  margin: 0 -8px;
}
.nav-links a {
  padding: 10px 10px 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--marmalade);
}
.pass-pill {
  grid-area: pill;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--marmalade);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}
.pass-pill.active {
  background: #e4f3ec;
  color: var(--sage);
}
.pass-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(61, 143, 108, 0.2);
}

@media (min-width: 720px) {
  .nav-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand links pill";
    padding: 0 16px;
    column-gap: 24px;
  }
  .nav-links {
    margin: 0;
  }
  .nav-links a {
    padding: 20px 10px 17px;
  }
}

/* ------------------------------------------------------------ hero */
.hero {
  display: grid;
  gap: 24px;
  padding: 28px 0 8px;
}
.hero h1 {
  font-size: clamp(2.5rem, 11vw, 4.4rem);
  font-weight: 700;
}
.lede {
  font-size: 1.08rem;
  color: #4f392e;
  margin: 14px 0 0;
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
}
.hero-stats b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.hero-art {
  position: relative;
  height: 200px;
}
.hero-bubble {
  position: absolute;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow);
  background: var(--cream-2);
}
.hero-bubble.b0 { width: 150px; height: 150px; left: 50%; top: 18px; transform: translateX(-50%); z-index: 2; }
.hero-bubble.b1 { width: 92px; height: 92px; left: 6%; top: 8px; }
.hero-bubble.b2 { width: 104px; height: 104px; right: 4%; top: 2px; }
.hero-bubble.b3 { width: 76px; height: 76px; left: 16%; bottom: 0; }
.hero-bubble.b4 { width: 84px; height: 84px; right: 14%; bottom: 0; }

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    padding: 56px 0 24px;
  }
  .hero-art {
    height: 340px;
  }
  .hero-bubble.b0 { width: 230px; height: 230px; top: 56px; }
  .hero-bubble.b1 { width: 130px; height: 130px; left: 0; top: 20px; }
  .hero-bubble.b2 { width: 150px; height: 150px; right: 0; top: 0; }
  .hero-bubble.b3 { width: 110px; height: 110px; left: 8%; bottom: 0; }
  .hero-bubble.b4 { width: 120px; height: 120px; right: 6%; bottom: 6px; }
}

/* ------------------------------------------------------------ discover */
.discover {
  padding-top: 28px;
}
.discover-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.discover-head h2 {
  font-size: 1.6rem;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
}
.search:focus-within {
  border-color: var(--marmalade);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  padding: 11px 0;
  color: var(--ink);
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px 6px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 15px;
  font-weight: 700;
  font-size: 0.92rem;
}
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
@media (min-width: 720px) {
  .discover-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .search {
    width: 340px;
  }
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(43, 26, 18, 0.08), 0 14px 32px rgba(43, 26, 18, 0.12);
}
.card-banner {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--cream-2);
}
.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--plum);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.card-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  margin-top: -36px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  background: var(--cream-2);
}
.card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.card-name .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.2;
}
.card-handle {
  color: var(--muted);
  font-size: 0.9rem;
}
.card-bio {
  margin: 8px 0 12px;
  font-size: 0.95rem;
  flex: 1;
}
.card-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.86rem;
  color: var(--muted);
}
.card-stats b {
  color: var(--ink);
}
.card-stats .price {
  margin-left: auto;
  color: var(--plum);
  font-weight: 800;
}
.verified {
  display: inline-flex;
  flex: none;
  vertical-align: middle;
}
.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

/* ------------------------------------------------------------ profile */
.profile {
  max-width: 680px;
  margin: 0 auto;
}
.profile-banner {
  margin: 0 -16px;
  aspect-ratio: 5 / 2;
  background: var(--cream-2);
  overflow: hidden;
}
.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 712px) {
  .profile-banner {
    margin: 16px 0 0;
    border-radius: var(--radius);
  }
}
.profile-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -44px;
  padding: 0 4px;
}
.profile-avatar {
  position: relative;
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--cream);
  background: var(--cream-2);
}
.profile-id {
  min-width: 0;
  /* Start below the banner (head is pulled up 44px) so long names wrap downward, never over the photo. */
  align-self: flex-start;
  padding-top: 52px;
}
.profile-id h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-id p {
  margin: 2px 0 0;
}
.profile-bio {
  margin: 14px 4px 0;
  font-size: 1.05rem;
}
.profile-stats {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0 4px;
  margin: 14px 0 0;
}
.profile-stats b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
}
.profile-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 4px 0;
}
.tag {
  background: var(--cream-2);
  color: var(--marmalade-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.tiers {
  display: grid;
  gap: 10px;
  margin: 22px 0 8px;
}
@media (min-width: 600px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tier {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tier.fan {
  border-color: #f6c3a6;
}
.tier.premium {
  border-color: #d8b2cd;
  background: linear-gradient(180deg, #fbf1f8, var(--paper) 60%);
}
.tier-name {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}
.tier-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}
.tier-price small,
.plan-price small,
.modal-total small {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-body);
}
.tier-desc {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.tier .btn {
  align-self: flex-start;
}
.tier-state {
  align-self: flex-start;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 7px 0;
}
.tier-state.ok {
  color: var(--sage);
}
.tier-state.big {
  display: block;
  text-align: center;
  align-self: stretch;
  background: #e4f3ec;
  border-radius: 999px;
  padding: 11px;
}

/* ------------------------------------------------------------ posts */
.feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.post {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-2);
}
.post-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.post-meta .name {
  font-weight: 800;
}
.post-meta .muted {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vis {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vis.public {
  background: #eef1ea;
  color: #4d6b48;
}
.vis.fan {
  background: #ffe6d6;
  color: var(--marmalade-dark);
}
.vis.premium {
  background: #f3e1ee;
  color: var(--plum);
}
.post-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  overflow: hidden;
}
.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-media.locked img {
  filter: blur(22px) saturate(1.2);
  transform: scale(1.2);
}
.play {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(43, 26, 18, 0.62);
  color: #fff;
  z-index: 2;
}
.play svg {
  margin-left: 3px;
}
.lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(43, 26, 18, 0.18), rgba(43, 26, 18, 0.55));
}
.lock p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.lock .btn {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}
.post-body {
  padding: 12px 14px 14px;
}
.caption {
  margin: 0 0 10px;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--cream);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
}
.like.liked {
  color: #e0475c;
  background: #fde7ea;
}

/* ------------------------------------------------------------ pricing */
.page-head {
  padding: 32px 0 8px;
  max-width: 680px;
}
.page-head h1 {
  font-size: clamp(2rem, 8vw, 3rem);
}
.page-head.center {
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 0;
}
.plans {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 720px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 6px solid var(--marmalade);
}
.plan.premium-plan {
  border-top-color: var(--plum);
}
.plan-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.plan-top h2 {
  font-size: 1.4rem;
}
.plan-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: var(--butter);
  font-size: 1.3rem;
}
.plan-price {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}
.perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.perks li {
  position: relative;
  padding-left: 26px;
}
.perks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.compare,
.faq {
  margin-top: 36px;
  max-width: 760px;
}
.compare h2,
.faq h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  text-align: left;
  padding-left: 16px;
}
tr:last-child td {
  border-bottom: 0;
}
th {
  font-family: var(--font-display);
  font-weight: 600;
}
details {
  background: var(--paper);
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
  list-style-position: outside;
}
details p {
  margin: 0 0 14px;
  color: #4f392e;
}

/* ------------------------------------------------------------ my subs */
.me-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 16px;
  max-width: 680px;
}
.me-card h2 {
  font-size: 1.25rem;
}
.me-card > h2 {
  margin-bottom: 10px;
}
.me-card p {
  margin: 2px 0 0;
}
.me-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.me-grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.me-grow .name {
  font-weight: 800;
}
.me-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.me-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-2);
}
.me-reset {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* ------------------------------------------------------------ modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(43, 26, 18, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.15s ease;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  animation: rise 0.2s ease;
}
@media (min-width: 560px) {
  .modal-backdrop {
    align-items: center;
  }
  .modal {
    border-radius: 24px;
    padding: 28px;
  }
}
.modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 36px;
}
.modal-head h2 {
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.modal-head p.muted {
  margin: 2px 0 0;
}
.modal-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
  font-weight: 700;
}
.modal-total strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}
.demo-note {
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--cream);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 0 0 16px;
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .btn {
  flex: 1;
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}
.modal-actions .btn.primary {
  flex: 1.6;
}
@keyframes fade {
  from { opacity: 0; }
}
@keyframes rise {
  from { transform: translateY(24px); opacity: 0; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  width: max-content;
  max-width: calc(100vw - 32px);
  animation: rise 0.2s ease;
}

/* ------------------------------------------------------------ footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--cream-2);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px calc(28px + env(safe-area-inset-bottom));
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.footer-ai {
  margin: 10px 0 4px;
  font-weight: 800;
}
.footer-small {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

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