:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --line: #d2d2d7;
  --line-dark: #d2d2d7;
  --text: #1d1d1f;
  --soft: #3a3a3c;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-deep: #0058b0;
  --blue-deeper: #004a96;
  --blue-soft: #e8f2fc;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 56px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (min-width: 480px) {
  body {
    display: grid;
    place-items: center;
    padding: 24px 16px;
    min-height: 100vh;
  }
  .app {
    max-height: min(844px, calc(100vh - 48px));
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.08),
      0 0 0 1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
  }
  .content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: calc(var(--nav-h) + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
/* Button tiers: assets/button-guide.html */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 88, 176, 0.16);
  background: var(--blue-soft);
  color: var(--blue-deep);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pill:active {
  transform: scale(0.98);
}
.pill-primary {
  min-height: 32px;
  width: 100%;
  border: 0;
  background: var(--blue-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.pill-primary:hover {
  background: var(--blue-deeper);
}
.pill-secondary {
  border: 0;
  background: var(--blue);
  color: #fff;
}
.pill-secondary:hover {
  background: var(--blue-deep);
}
.pill-subtle {
  border: 1px solid rgba(0, 88, 176, 0.16);
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.pill-subtle:hover {
  background: #d6e9f8;
}
.pill-ghost {
  border: 1px solid rgba(0, 88, 176, 0.16);
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.pill-ghost:hover {
  background: #d6e9f8;
}
.nav-back {
  justify-self: start;
}
.nav-end {
  justify-self: end;
  min-width: 0;
}
.nav-center {
  text-align: center;
  min-width: 0;
  justify-self: center;
}
.nav-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-sub {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 18px 18px;
}
.hero {
  text-align: center;
  padding: 8px 0 4px;
}
.eyebrow {
  margin: 0;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lede {
  margin: 8px auto 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-wrap: balance;
}
.stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.card p,
.card li {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.4;
}
.card p + p {
  margin-top: 8px;
}
.card ul {
  margin: 0;
  padding-left: 18px;
}
.card li {
  margin: 5px 0;
}
.row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.row:first-child {
  border-top: 0;
  padding-top: 0;
}
.num {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  border: 0;
  padding: 0;
}
.row h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.row p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.tile {
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
}
.tile strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.tile span {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}
.prompt {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
details.card {
  padding: 0;
  overflow: hidden;
}
details.card summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.card summary::-webkit-details-marker {
  display: none;
}
details.card summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}
details.card[open] summary::after {
  content: "-";
}
.card-body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.field {
  margin: 10px 0 0;
}
.field label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field-help {
  margin: 0 0 6px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.field textarea {
  min-height: 72px;
}
.dock {
  position: sticky;
  bottom: 0;
  z-index: 20;
  flex-shrink: 0;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.dock[hidden] {
  display: none;
}
/* Sibling pills: equal width = widest label, centered as a group */
.dock-split {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  justify-content: center;
  max-width: 100%;
}
.dock .pill {
  width: auto;
  min-width: 0;
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
  text-align: center;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.dock .pill-primary {
  min-height: 32px;
  font-size: 13px;
  width: auto;
}
.dock .pill-secondary {
  min-height: 30px;
}
.dock-split .pill {
  width: 100%;
}

.dock .pill {
  min-height: 48px;
  padding: 12px 18px;
  white-space: normal;
  line-height: 1.4;
  width: 100%;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
