:root {
  --accent: #2f6f6a;
  --accent-soft: #e3efed;
  --warm: #c98a4b;
  --paper: #f6f1e9;
  --surface: #fffdf9;
  --surface-2: #f0e9df;
  --ink: #2d2a26;
  --muted: #8a8378;
  --line: #e2dcd2;
  --sidebar: #24231f;
  --sidebar-text: #f8f2e9;
  --sidebar-muted: #a79c8d;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 18px;
}

[data-theme="dark"] {
  --surface: #221e19;
  --surface-2: #2a241d;
  --sidebar: #0f0d0a;
  --sidebar-text: #f5ead8;
  --sidebar-muted: #b6a58c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-small {
  padding: 8px 12px;
  font-size: 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}

/* ---------- gallery ---------- */

.gallery-page {
  background:
    radial-gradient(circle at 85% -10%, rgba(47, 111, 106, 0.12), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(201, 138, 75, 0.1), transparent 30%),
    #f2ede5;
  color: #2b2a26;
}

.gallery-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 40px) 60px;
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 68px;
}

.gallery-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.gallery-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #2f6f6a;
  color: #fff;
  font-family: var(--font-display);
  font-size: 23px;
}

.gallery-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}

.gallery-brand small {
  display: block;
  margin-top: 3px;
  color: #8a8378;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-hero {
  max-width: 840px;
  margin-bottom: 36px;
}

.gallery-hero h1 {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.gallery-lede {
  max-width: 650px;
  color: #70695f;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
}

.gallery-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 730px;
  margin-top: 24px;
  padding: 13px 16px;
  border: 1px solid rgba(45, 42, 38, 0.12);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.56);
  color: #70695f;
  font-size: 12px;
}

.gallery-note strong {
  color: #2b2a26;
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(45, 42, 38, 0.13);
  border-radius: 22px;
  background: var(--card-paper);
  color: var(--card-ink);
  box-shadow: 0 14px 34px rgba(45, 42, 38, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(45, 42, 38, 0.1);
}

.app-card-preview {
  padding: 18px;
  background:
    radial-gradient(circle at 85% 0%, var(--card-accent) 0, transparent 52%),
    var(--card-soft);
}

.preview-window {
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: var(--card-paper);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--card-line);
  color: var(--card-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-bar i {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--card-accent);
}

.preview-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: var(--card-accent);
  color: var(--card-paper);
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: none;
}

.preview-body {
  padding: 13px;
}

.preview-hero span {
  color: var(--card-accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.preview-hero strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.preview-stats {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}

.preview-stat {
  flex: 1;
  min-width: 0;
  padding: 7px;
  border-radius: 8px;
  background: var(--card-soft);
}

.preview-stat strong {
  display: block;
  font-size: 12px;
}

.preview-stat small {
  display: block;
  margin-top: 2px;
  color: var(--card-muted);
  font-size: 7px;
  line-height: 1.2;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-top: 5px;
  border-top: 1px solid var(--card-line);
  color: var(--card-ink);
  font-size: 9px;
}

.preview-row i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--card-warm);
}

.preview-row em {
  margin-left: auto;
  color: var(--card-muted);
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}

.app-card-body {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
}

.app-card-index {
  color: var(--card-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding-top: 2px;
}

.app-card-copy {
  min-width: 0;
}

.app-card-copy h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.app-card-copy h2 span {
  color: var(--card-muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-card-copy p {
  margin-top: 5px;
  color: var(--card-muted);
  font-size: 12px;
  line-height: 1.4;
}

.app-card-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.app-card-modules span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--card-muted);
  font-size: 8px;
  font-weight: 700;
}

.app-card-arrow {
  margin-left: auto;
  color: var(--card-accent);
  font-size: 18px;
  line-height: 1;
}

.gallery-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 42, 38, 0.12);
  color: #8a8378;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- app shell ---------- */

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 22px 14px 18px;
  overflow-y: auto;
  background: var(--sidebar);
  color: var(--sidebar-text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent);
  color: var(--sidebar);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 17px;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--sidebar-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(248, 242, 233, 0.68);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.nav-item .icon {
  width: 16px;
  height: 16px;
  opacity: 0.65;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
}

.nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-item.is-active .icon {
  opacity: 1;
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: var(--sidebar-muted);
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

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

.sidebar-link .icon {
  width: 13px;
  height: 13px;
}

.main {
  min-width: 0;
  padding: 0 clamp(18px, 4vw, 40px) 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 0 13px;
  background: linear-gradient(var(--paper) 76%, transparent);
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
}

.topbar-copy {
  min-width: 0;
}

.topbar-copy span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-copy strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.topbar-link {
  margin-left: auto;
}

.mobile-nav {
  display: none;
}

.view {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 22px;
  outline: none;
}

.view-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 4px;
}

.view-head h1 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.view-sub {
  max-width: 560px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.module-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.module-tag .icon {
  width: 13px;
  height: 13px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 70%),
    var(--surface);
  box-shadow: 0 12px 30px rgba(45, 42, 38, 0.06);
}

.hero::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -30px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--warm);
  opacity: 0.12;
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-note {
  color: var(--muted);
  font-size: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.stat-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-card strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-sub {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.panel {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.item-list {
  display: flex;
  flex-direction: column;
}

.item-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.item-row:last-child {
  border-bottom: 0;
}

.index {
  width: 20px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.item-copy {
  flex: 1;
  min-width: 0;
}

.item-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.item-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.item-row.is-done .item-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--surface);
  cursor: pointer;
}

.check .icon {
  width: 13px;
  height: 13px;
}

.check.is-checked {
  border-color: var(--accent);
  background: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pill.good {
  background: rgba(79, 128, 91, 0.14);
  color: #4f805b;
}

.pill.warn {
  background: rgba(201, 138, 75, 0.16);
  color: #a86b2b;
}

.quick-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.quick-card:hover {
  border-color: var(--accent);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.quick-icon .icon {
  width: 14px;
  height: 14px;
}

.quick-card strong {
  display: block;
  font-size: 11px;
}

.quick-card small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.quick-card > .icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.add-row {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.input:focus {
  border-color: var(--accent);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 9px;
}

.day-panel {
  padding: 13px;
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.day-head strong {
  font-size: 11px;
  text-transform: uppercase;
}

.day-head span {
  color: var(--muted);
  font-size: 8px;
}

.schedule-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-item:last-child {
  border-bottom: 0;
}

.schedule-item > span {
  width: 36px;
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.schedule-item strong {
  display: block;
  font-size: 10px;
}

.schedule-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.timeline {
  padding: 20px;
}

.stage {
  display: grid;
  grid-template-columns: 80px 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stage:last-child {
  border-bottom: 0;
}

.stage-date {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-line {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.stage-copy strong {
  display: block;
  font-size: 12px;
}

.stage-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.tracker-table td {
  text-align: center;
}

.tracker-table td:first-child {
  text-align: left;
}

.tracker-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 3px 5px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card-panel {
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
}

.card-top .icon {
  width: 14px;
  height: 14px;
}

.card-panel h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.card-panel p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.progress {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.card-meta strong {
  color: var(--ink);
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.meal-day {
  padding: 13px;
}

.meal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.meal-head strong {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meal-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-line {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: 9px;
}

.meal-line span {
  width: 48px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.budget-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.budget-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.budget-stat span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.budget-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.budget-row {
  margin: 10px 0;
}

.budget-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
}

.budget-row-head span {
  color: var(--muted);
}

.notes-panel {
  padding: 20px;
}

.notes-area {
  width: 100%;
  min-height: 360px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.8;
  outline: none;
  resize: vertical;
}

.notes-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.timer-panel {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 26px;
}

.timer-ring {
  --p: 0%;
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--p), var(--accent-soft) 0);
}

.timer-ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--surface);
}

.timer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.timer-inner span:first-child {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.04em;
}

.timer-inner span:last-child {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timer-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-2);
}

.segment {
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.segment.is-active {
  background: var(--surface);
  color: var(--ink);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  padding: 15px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.contact-card strong {
  display: block;
  font-size: 11px;
}

.contact-card span,
.contact-card p,
.contact-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.contact-card p {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
}

.contact-card small {
  grid-column: 1 / -1;
  font-style: italic;
}

.log-list {
  padding: 18px;
}

.log-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.log-row:last-child {
  border-bottom: 0;
}

.log-time {
  width: 68px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.log-copy {
  flex: 1;
}

.log-copy strong {
  display: block;
  font-size: 11px;
}

.log-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.log-dot {
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.log-dot.good {
  background: #4f805b;
}

.log-dot.warn {
  background: var(--warm);
}

.counter-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px;
}

.counter-panel > strong {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.counter-panel .progress {
  width: 100%;
  max-width: 460px;
  margin: 6px 0 10px;
}

.combatant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.combatant:last-child {
  border-bottom: 0;
}

.init {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.combatant strong {
  flex: 1;
  font-size: 11px;
}

.hp {
  color: var(--muted);
  font-size: 10px;
}

.app-foot {
  max-width: 1160px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .schedule-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

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

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

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 0 16px 38px;
  }

  .topbar {
    padding-top: 10px;
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-brand strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
  }

  .topbar-copy {
    margin-left: auto;
    text-align: right;
  }

  .topbar-copy span {
    max-width: 180px;
  }

  .topbar-link {
    display: none;
  }

  .mobile-nav {
    display: flex;
    gap: 4px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav .nav-item {
    width: auto;
    flex: 0 0 auto;
    padding: 7px 10px;
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: 10px;
    white-space: nowrap;
  }

  .mobile-nav .nav-item.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
  }

  .view {
    padding-top: 14px;
  }

  .view-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-head h1 {
    font-size: 42px;
  }

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

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

  .schedule-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

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

@media (max-width: 620px) {
  .gallery-shell {
    padding-top: 18px;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 42px;
  }

  .gallery-hero h1 {
    font-size: 48px;
  }

  .gallery-note {
    flex-direction: column;
    gap: 4px;
  }

  .gallery-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-card-preview {
    padding: 12px;
  }

  .preview-hero strong {
    font-size: 18px;
  }

  .app-card-body {
    padding: 15px;
  }

  .app-card-copy h2 {
    font-size: 20px;
  }

  .hero {
    padding: 20px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 37px;
  }

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

  .stat-card {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 11px 13px;
  }

  .stat-card strong {
    margin-left: auto;
    font-size: 22px;
  }

  .stat-sub {
    display: none;
  }

  .panel {
    padding: 15px;
  }

  .view-head h1 {
    font-size: 37px;
  }

  .schedule-grid,
  .cards-grid,
  .contact-grid,
  .meal-grid {
    grid-template-columns: 1fr;
  }

  .budget-summary {
    grid-template-columns: 1fr;
  }

  .stage {
    grid-template-columns: 62px 10px minmax(0, 1fr);
  }

  .stage .pill {
    display: none;
  }

  .timer-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .timer-ring {
    width: 140px;
    height: 140px;
  }

  .timer-inner span:first-child {
    font-size: 28px;
  }

  .notes-area {
    min-height: 300px;
    font-size: 17px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }
}

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

/* ---------- store ---------- */

.store-shell {
  max-width: 1220px;
}

.store-head {
  align-items: center;
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-hero {
  max-width: 900px;
}

.store-note {
  max-width: 760px;
}

.store-notice {
  margin: 24px 0 8px;
  padding: 12px 15px;
  border: 1px solid rgba(201, 138, 75, 0.28);
  border-radius: 12px;
  background: rgba(255, 248, 235, 0.76);
  color: #6d5a42;
  font-size: 12px;
}

.store-notice code,
.setup-box code,
.store-faq-card code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(45, 42, 38, 0.08);
  font-size: 0.92em;
}

.store-section {
  margin-top: 44px;
}

.store-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.store-section-head h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.store-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--card-line);
  border-radius: 17px;
  background: var(--card-paper);
  color: var(--card-ink);
  box-shadow: 0 10px 24px rgba(45, 42, 38, 0.05);
}

.store-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
}

.store-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--card-accent);
  color: var(--card-paper);
  font-family: var(--font-display);
  font-size: 17px;
}

.store-eyebrow {
  color: var(--card-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-price {
  margin-left: auto;
  color: var(--card-ink);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.store-card h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.store-card p {
  margin-top: 6px;
  color: var(--card-muted);
  font-size: 11px;
  line-height: 1.45;
}

.store-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 15px;
}

.btn-buy {
  border-color: var(--card-accent);
  background: var(--card-accent);
  color: var(--card-paper);
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bundle-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(45, 42, 38, 0.14);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(45, 42, 38, 0.05);
}

.bundle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bundle-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.bundle-card p {
  margin-top: 6px;
  color: #70695f;
  font-size: 12px;
  line-height: 1.45;
}

.bundle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}

.bundle-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f0e9df;
  color: #70695f;
  font-size: 8px;
  font-weight: 700;
}

.store-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.store-faq-card {
  background: rgba(255, 253, 249, 0.7);
}

.store-faq-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #70695f;
  font-size: 12px;
  line-height: 1.7;
}

.store-faq-card p {
  margin-top: 9px;
  color: #70695f;
  font-size: 12px;
  line-height: 1.6;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 23, 0.46);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 18px;
  background: #fffdf9;
  color: #2d2a26;
  box-shadow: 0 24px 70px rgba(20, 18, 15, 0.28);
}

.modal-card h2 {
  margin: 4px 0 7px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.modal-card p {
  color: #70695f;
  font-size: 12px;
  line-height: 1.55;
}

.modal-card .btn {
  margin-top: 16px;
}

.setup-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
  padding: 11px;
  border-radius: 10px;
  background: #f0e9df;
  color: #70695f;
  font-size: 11px;
}

.setup-box code {
  display: block;
  color: #2d2a26;
  font-size: 11px;
  overflow-wrap: anywhere;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .store-grid,
  .bundle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .store-grid,
  .bundle-grid,
  .store-faq {
    grid-template-columns: 1fr;
  }

  .store-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-nav {
    width: 100%;
  }

  .store-card,
  .bundle-card {
    padding: 15px;
  }
}

.gallery-head-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .gallery-head-links {
    width: 100%;
  }
}

.success-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.success-card {
  margin-top: 54px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(45, 42, 38, 0.14);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 18px 44px rgba(45, 42, 38, 0.08);
}

.success-card h1 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.success-card .gallery-lede {
  max-width: 560px;
}

.success-note {
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3eee6;
  color: #70695f;
  font-size: 12px;
  line-height: 1.55;
}

.success-note strong {
  display: block;
  margin-bottom: 3px;
  color: #2d2a26;
}

/* ---------- shop redesign ---------- */

.shop-page {
  --shop-paper: #f3ede3;
  --shop-paper-2: #e9e0d2;
  --shop-surface: #fbf7ef;
  --shop-ink: #24211c;
  --shop-muted: #7b7166;
  --shop-line: #d9cdbc;
  --shop-rust: #b84f37;
  --shop-sage: #526b56;
  background: var(--shop-paper);
  color: var(--shop-ink);
}

.shop-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(36, 33, 28, 0.055) 0.55px, transparent 0.55px),
    radial-gradient(rgba(184, 79, 55, 0.035) 0.55px, transparent 0.55px);
  background-position: 0 0, 11px 13px;
  background-size: 17px 17px, 23px 23px;
}

.shop-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 50px;
}

.shop-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 22px;
  padding: 24px 0 17px;
  border-bottom: 1px solid var(--shop-ink);
}

.shop-wordmark {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.shop-wordmark span {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.shop-wordmark small {
  color: var(--shop-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--shop-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.shop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--shop-rust);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.shop-nav a:hover::after {
  transform: scaleX(1);
}

.shop-header-cta {
  justify-self: end;
  padding: 8px 0;
  border-bottom: 1px solid var(--shop-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-header-cta span {
  color: var(--shop-rust);
  font-size: 15px;
  margin-left: 6px;
}

.shop-ticker {
  display: flex;
  gap: 26px;
  padding: 9px 0;
  border-bottom: 1px solid var(--shop-line);
  overflow: hidden;
  color: var(--shop-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-ticker span::before {
  content: "✳";
  margin-right: 25px;
  color: var(--shop-rust);
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 54px;
  align-items: center;
  min-height: 600px;
  padding: 66px 0 58px;
}

.shop-hero-copy {
  max-width: 720px;
}

.shop-edition,
.shop-eyebrow {
  color: var(--shop-rust);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.shop-hero h1 {
  max-width: 760px;
  margin: 18px 0 23px;
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 112px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.shop-hero h1 em {
  color: var(--shop-rust);
  font-style: italic;
}

.shop-lede {
  max-width: 500px;
  color: var(--shop-muted);
  font-size: 16px;
  line-height: 1.55;
}

.shop-hero-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  flex-wrap: wrap;
  margin-top: 29px;
}

.shop-btn,
.shop-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 18px;
  border: 1px solid var(--shop-ink);
  border-radius: 2px;
  background: var(--shop-ink);
  color: var(--shop-paper);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.shop-btn:hover,
.shop-buy:hover {
  background: var(--shop-rust);
  border-color: var(--shop-rust);
  transform: translateY(-1px);
}

.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--shop-ink);
  color: var(--shop-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-link span {
  color: var(--shop-rust);
  font-size: 13px;
}

.shop-note {
  margin-top: 27px;
  color: var(--shop-muted);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.shop-feature-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--shop-ink);
  background: var(--feature-paper);
  color: var(--feature-ink);
  box-shadow: 12px 12px 0 var(--shop-paper-2), 13px 13px 0 var(--shop-ink);
  transform: rotate(-0.65deg);
}

.shop-feature-card::after {
  position: absolute;
  top: -8px;
  left: 34px;
  width: 86px;
  height: 15px;
  background: rgba(217, 205, 188, 0.8);
  content: "";
  transform: rotate(2deg);
}

.feature-tab {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--feature-line, var(--shop-line));
  color: var(--shop-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-kicker {
  margin-top: 20px;
  color: var(--feature-accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.shop-feature-card h2 {
  margin: 7px 0 7px;
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.feature-lede {
  max-width: 320px;
  color: var(--feature-muted, var(--shop-muted));
  font-size: 12px;
  line-height: 1.45;
}

.feature-preview {
  margin-top: 18px;
  padding: 11px;
  border: 1px solid var(--feature-line, var(--shop-line));
  background: rgba(255, 253, 249, 0.55);
}

.feature-preview-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--feature-line, var(--shop-line));
}

.feature-preview-bar span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: var(--feature-accent);
  color: var(--feature-paper);
  font-family: var(--font-display);
  font-size: 12px;
}

.feature-preview-bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--feature-line, var(--shop-line));
}

.feature-preview-bar i:first-of-type {
  margin-left: auto;
}

.feature-preview-title {
  margin: 9px 0 6px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.feature-preview-rows {
  display: flex;
  flex-direction: column;
}

.feature-preview-rows span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border-top: 1px solid var(--feature-line, var(--shop-line));
  color: var(--feature-muted, var(--shop-muted));
  font-size: 8px;
}

.feature-preview-rows i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--feature-accent);
}

.feature-preview-rows em {
  margin-left: auto;
  color: var(--feature-accent);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--feature-line, var(--shop-line));
}

.shop-price {
  color: var(--feature-ink, var(--shop-ink));
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.shop-price small {
  color: var(--feature-muted, var(--shop-muted));
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-status {
  margin: 0 0 50px;
  padding: 9px 12px;
  border: 1px dashed var(--shop-line);
  color: var(--shop-muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.shop-section {
  padding: 22px 0 58px;
  border-top: 1px solid var(--shop-ink);
}

.shop-section-head {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: end;
  margin-bottom: 33px;
}

.shop-section-index {
  padding-top: 5px;
  color: var(--shop-rust);
  font-family: var(--font-display);
  font-size: 19px;
}

.shop-section-head h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.shop-section-note {
  color: var(--shop-muted);
  font-size: 11px;
  line-height: 1.5;
}

.shop-categories {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.shop-category-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--shop-ink);
}

.shop-category-index {
  width: 25px;
  color: var(--shop-rust);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.shop-category-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.shop-category-count {
  margin-left: auto;
  color: var(--shop-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-list {
  display: flex;
  flex-direction: column;
}

.catalog-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 78px auto;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--shop-line);
  transition: background 0.16s ease, padding 0.16s ease;
}

.catalog-row:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: rgba(251, 247, 239, 0.72);
}

.catalog-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--row-accent);
  color: var(--row-soft);
  font-family: var(--font-display);
  font-size: 17px;
}

.catalog-copy h4 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.catalog-copy p {
  margin-top: 3px;
  color: var(--shop-muted);
  font-size: 10px;
}

.catalog-price {
  justify-self: end;
  color: var(--shop-ink);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.catalog-actions .shop-buy {
  padding: 9px 11px;
  font-size: 8px;
}

.shop-bundles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.shop-box {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 20px;
  border: 1px dashed var(--shop-ink);
  background: var(--shop-surface);
}

.shop-box::before {
  position: absolute;
  top: -7px;
  right: 17px;
  width: 45px;
  height: 13px;
  border: 1px solid var(--shop-line);
  background: var(--shop-paper-2);
  content: "";
  transform: rotate(1.5deg);
}

.box-tab {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--shop-line);
  color: var(--shop-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-box .shop-eyebrow {
  margin-top: 18px;
}

.shop-box h3 {
  margin: 7px 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.box-desc {
  color: var(--shop-muted);
  font-size: 11px;
  line-height: 1.45;
}

.box-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 15px;
}

.box-tags span {
  padding: 3px 6px;
  border: 1px solid var(--shop-line);
  color: var(--shop-muted);
  font-size: 8px;
  font-weight: 700;
}

.box-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.shop-manifesto {
  margin: 10px 0 58px;
  padding: 46px clamp(22px, 5vw, 64px);
  background: var(--shop-ink);
  color: var(--shop-paper);
}

.shop-manifesto .shop-eyebrow {
  color: #d6947c;
}

.shop-manifesto h2 {
  max-width: 850px;
  margin: 17px 0 32px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 51px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.shop-manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 237, 227, 0.24);
}

.shop-manifesto-grid p {
  color: rgba(243, 237, 227, 0.7);
  font-size: 11px;
  line-height: 1.55;
}

.shop-receipt {
  max-width: 650px;
  margin: 0 auto 60px;
  padding: 20px 24px;
  border: 1px dashed var(--shop-ink);
  background: var(--shop-surface);
  color: var(--shop-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  transform: rotate(0.35deg);
}

.receipt-head,
.receipt-line,
.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.receipt-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--shop-line);
  color: var(--shop-muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.receipt-line {
  padding: 8px 0;
  border-bottom: 1px dotted var(--shop-line);
}

.receipt-line span:last-child {
  color: var(--shop-muted);
}

.receipt-total {
  padding: 12px 0 8px;
  border-bottom: 0;
  font-weight: 800;
}

.receipt-foot {
  padding-top: 10px;
  border-top: 1px solid var(--shop-line);
  color: var(--shop-muted);
  font-size: 8px;
  text-align: center;
}

.shop-faq {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 50px;
  padding: 50px 0 60px;
  border-top: 1px solid var(--shop-ink);
}

.shop-faq h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.shop-faq-list {
  border-top: 1px solid var(--shop-line);
}

.shop-faq-list details {
  border-bottom: 1px solid var(--shop-line);
}

.shop-faq-list summary {
  position: relative;
  padding: 14px 28px 14px 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.shop-faq-list summary::-webkit-details-marker {
  display: none;
}

.shop-faq-list summary::after {
  position: absolute;
  top: 13px;
  right: 2px;
  color: var(--shop-rust);
  content: "+";
  font-size: 16px;
}

.shop-faq-list details[open] summary::after {
  content: "−";
}

.shop-faq-list p {
  max-width: 620px;
  padding: 0 0 16px;
  color: var(--shop-muted);
  font-size: 11px;
  line-height: 1.6;
}

.shop-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: end;
  padding: 28px 0 0;
  border-top: 1px solid var(--shop-ink);
}

.shop-footer-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-footer-mark strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.shop-footer-mark small {
  color: var(--shop-muted);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-dots {
  display: flex;
  gap: 3px;
  margin-bottom: 3px;
}

.shop-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shop-sage);
}

.shop-dots i:nth-child(2) {
  background: var(--shop-rust);
}

.shop-dots i:nth-child(3) {
  background: var(--shop-muted);
}

.shop-footer-links {
  display: flex;
  gap: 16px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-footer-note {
  justify-self: end;
  max-width: 300px;
  color: var(--shop-muted);
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
}

.shop-modal[hidden] {
  display: none;
}

.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.shop-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 33, 28, 0.5);
  backdrop-filter: blur(4px);
}

.shop-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 25px;
  border: 1px solid var(--shop-ink);
  background: var(--shop-surface);
  box-shadow: 10px 10px 0 var(--shop-rust);
}

.shop-modal-card h2 {
  margin: 8px 0 9px;
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.shop-modal-card p {
  color: var(--shop-muted);
  font-size: 12px;
  line-height: 1.55;
}

.shop-modal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .shop-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 45px;
  }

  .shop-feature-card {
    max-width: 540px;
  }

  .shop-section-head {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .shop-section-note {
    grid-column: 2;
    max-width: 480px;
  }

  .shop-bundles {
    grid-template-columns: 1fr;
  }

  .shop-box {
    min-height: 0;
  }

  .shop-manifesto-grid {
    grid-template-columns: 1fr;
  }

  .shop-faq {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 680px) {
  .shop-shell {
    padding: 0 16px 36px;
  }

  .shop-masthead {
    grid-template-columns: 1fr auto;
    gap: 13px;
    padding-top: 17px;
  }

  .shop-nav {
    display: none;
  }

  .shop-wordmark span {
    font-size: 25px;
  }

  .shop-header-cta {
    font-size: 9px;
  }

  .shop-ticker {
    gap: 18px;
    font-size: 7px;
  }

  .shop-ticker span:nth-child(n + 3) {
    display: none;
  }

  .shop-hero {
    min-height: 0;
    padding: 42px 0 50px;
  }

  .shop-hero h1 {
    font-size: 59px;
  }

  .shop-lede {
    font-size: 14px;
  }

  .shop-feature-card {
    padding: 16px;
    box-shadow: 7px 7px 0 var(--shop-paper-2), 8px 8px 0 var(--shop-ink);
  }

  .shop-feature-card h2 {
    font-size: 31px;
  }

  .shop-section {
    padding-bottom: 42px;
  }

  .shop-section-head h2 {
    font-size: 38px;
  }

  .catalog-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px 0;
  }

  .catalog-price {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    font-size: 16px;
  }

  .catalog-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
  }

  .catalog-actions .shop-link {
    font-size: 8px;
  }

  .catalog-mark {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .catalog-copy h4 {
    font-size: 19px;
  }

  .catalog-copy p {
    font-size: 9px;
  }

  .catalog-actions .shop-buy {
    padding: 7px 8px;
    font-size: 7px;
  }

  .shop-manifesto {
    padding: 32px 20px;
  }

  .shop-manifesto h2 {
    font-size: 31px;
  }

  .shop-receipt {
    padding: 17px;
    font-size: 9px;
  }

  .shop-faq h2 {
    font-size: 34px;
  }

  .shop-footer {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .shop-footer-note {
    justify-self: start;
    text-align: left;
  }
}
