/* Warm Editorial token contract */
:root {
  --bg: #fbf6ee;
  --surface: #fffdf8;
  --surface-warm: #f1e3cf;
  --fg: #201914;
  --fg-2: #4c4037;
  --muted: #7a6d63;
  --meta: #9b5b32;
  --border: #ded2c3;
  --border-soft: #eee4d7;
  --accent: #9b5b32;
  --accent-on: #ffffff;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --success: #4f8a4f;
  --warn: #c9822f;
  --danger: #b33a3a;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 17px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 42px;
  --text-3xl: 64px;
  --text-4xl: 88px;
  --leading-body: 1.62;
  --leading-tight: 1;
  --tracking-display: -0.025em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --section-y-desktop: 112px;
  --section-y-tablet: 80px;
  --section-y-phone: 56px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 20px 52px color-mix(in oklab, var(--fg) 12%, transparent);
  --focus-ring: 0 0 0 4px color-mix(in oklab, var(--accent) 24%, transparent);
  --motion-fast: 150ms;
  --motion-base: 240ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1180px;
  --container-gutter-desktop: 36px;
  --container-gutter-tablet: 24px;
  --container-gutter-phone: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

body {
  padding: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.launcher-shell,
.phone-shell {
  min-height: 100vh;
  padding: 20px 16px;
}

.launcher-wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.launcher-hero,
.launcher-card,
.launcher-grid,
.phone-frame,
.screen-stack,
.topbar,
.hero-card,
.card,
.section,
.section-header,
.button-row,
.choice-grid,
.pill-row,
.mini-stack,
.list-card,
.tabbar,
.form-grid,
.resource-list,
.profile-strip,
.sheet-card,
.timeline-tabs {
  display: grid;
  gap: 16px;
}

.launcher-card,
.phone-frame,
.card,
.list-card,
.sheet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.launcher-card,
.card,
.list-card,
.sheet-card {
  padding: 20px;
}

.launcher-hero {
  padding: 32px;
}

.launcher-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.eyebrow,
.meta-note,
.helper,
.kicker {
  color: var(--meta);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launcher-title,
.screen-title,
.card-title,
.hero-verse {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.launcher-title {
  font-size: clamp(44px, 7vw, 76px);
}

.screen-title {
  font-size: clamp(30px, 8vw, 44px);
}

.card-title {
  font-size: 22px;
}

.hero-verse {
  font-size: 26px;
  line-height: 1.06;
}

.lead,
.muted,
.copy,
.field-note,
.nav-copy {
  margin: 0;
  color: var(--fg-2);
  overflow-wrap: anywhere;
}

.phone-shell {
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(100%, 430px);
  min-height: calc(100vh - 32px);
  padding: 14px;
  gap: 0;
  background: color-mix(in oklab, var(--fg) 88%, var(--surface));
  box-shadow: var(--elev-raised);
}

.phone-surface {
  position: relative;
  min-height: calc(100vh - 60px);
  border-radius: 34px;
  background: var(--surface);
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--border) 84%, var(--surface));
}

.phone-surface::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 124px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: color-mix(in oklab, var(--fg) 72%, transparent);
  z-index: 3;
}

.screen-stack {
  min-height: calc(100vh - 60px);
  padding: 18px 18px 120px;
  background: color-mix(in oklab, var(--surface) 90%, var(--bg));
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  color: var(--fg-2);
  font-size: var(--text-xs);
}

.topbar {
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
}

.logo-mark,
.pill,
.trust-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-size: var(--text-sm);
}

.logo-mark,
.pill {
  background: color-mix(in oklab, var(--surface-warm) 72%, var(--surface));
  color: var(--fg-2);
}

.pill[data-tone="accent"],
.trust-chip {
  background: color-mix(in oklab, var(--accent) 14%, var(--surface));
  color: var(--accent);
}

.pill[data-tone="good"] {
  background: color-mix(in oklab, var(--success) 16%, var(--surface));
  color: var(--success);
}

.pill[data-tone="warn"] {
  background: color-mix(in oklab, var(--warn) 18%, var(--surface));
  color: var(--warn);
}

.pill[data-tone="danger"] {
  background: color-mix(in oklab, var(--danger) 12%, var(--surface));
  color: var(--danger);
}

.hero-card {
  padding: 24px;
  background: color-mix(in oklab, var(--surface-warm) 78%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--meta) 14%, var(--surface));
  border-radius: var(--radius-lg);
}

.card {
  gap: 12px;
}

.section {
  gap: 14px;
}

.section-header {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.button,
.ghost-button,
.icon-button,
.tab-link,
.choice-chip {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}

.button,
.ghost-button,
.choice-chip {
  min-height: 48px;
  padding: 13px 16px;
}

.button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
}

.button:hover,
.ghost-button:hover,
.icon-button:hover,
.tab-link:hover,
.choice-chip:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.ghost-button:focus-visible,
.icon-button:focus-visible,
.tab-link:focus-visible,
.choice-chip:focus-visible,
.field-input:focus-visible,
.field-select:focus-visible,
.field-textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.ghost-button,
.choice-chip,
.icon-button {
  background: var(--surface);
}

.ghost-button.is-active,
.choice-chip.is-active,
.icon-button.is-active {
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  border-color: color-mix(in oklab, var(--accent) 28%, var(--surface));
  color: var(--accent);
}

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

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

.form-grid {
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--fg-2);
  font-size: var(--text-sm);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--fg);
  padding: 14px 15px;
}

.field-textarea {
  min-height: 108px;
  resize: vertical;
}

.checkbox-row,
.radio-row {
  display: grid;
  gap: 12px;
}

.checkbox-card,
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.checkbox-card input,
.radio-card input {
  margin-top: 3px;
}

.progress {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
  overflow: hidden;
}

.progress > span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--accent);
}

.list-card {
  gap: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.timeline-panels [data-panel] {
  display: none;
}

.timeline-panels [data-panel].is-visible {
  display: grid;
  gap: 14px;
}

.meter {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
  overflow: hidden;
}

.meter > span {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  background: var(--accent);
}

.resource-list {
  gap: 12px;
}

.profile-strip {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: color-mix(in oklab, var(--surface-warm) 75%, var(--surface));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
}

.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 94%, var(--bg));
  box-shadow: 0 12px 28px color-mix(in oklab, var(--fg) 10%, transparent);
}

.tab-link {
  min-height: 52px;
  padding: 8px 4px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1.1;
  color: var(--muted);
}

.tab-link.is-current {
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 24%, var(--surface));
}

.sheet {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--fg) 16%, transparent);
  display: none;
  align-items: end;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.sheet.is-open {
  display: flex;
}

.sheet-card {
  width: min(100%, 430px);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.divider {
  height: 1px;
  background: var(--border-soft);
}

.launch-link {
  text-decoration: none;
}

.footer-copy {
  color: var(--muted);
  font-size: var(--text-sm);
}

.hidden {
  display: none !important;
}

@media (min-width: 760px) {
  .launcher-shell {
    padding: 32px;
  }

  .phone-frame {
    min-height: 860px;
  }

  .phone-surface,
  .screen-stack {
    min-height: 832px;
  }
}

@media (max-width: 420px) {
  .launcher-shell,
  .phone-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    border-radius: 0;
  }

  .phone-surface {
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .screen-stack {
    min-height: 100vh;
    padding-inline: 16px;
  }

  .phone-surface::before {
    top: 8px;
  }

  .button-row {
    grid-template-columns: 1fr;
  }
}
