:root {
  --bg: #fcfaf7;
  --text: #1c0f0d;
  --muted: #687076;
  --card: #ffffff;
  --accent: #9c5c4a;
  --on-accent: #ffffff;
  --border: #e5e0db;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

img {
  max-width: 100%;
  height: auto;
}

main {
  width: min(100%, 420px);
  min-width: 0;
}

main.wide {
  width: min(100%, 720px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
}

.nav a,
.foot a {
  color: var(--accent);
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 7vw, 28px);
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

main.wide h1 {
  text-align: left;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.15;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.5;
}

main.wide .card {
  margin-bottom: 16px;
}

main.wide h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.features {
  margin: 0 0 12px;
  padding-left: 1.2em;
  line-height: 1.5;
  font-size: 16px;
}

.features li + li {
  margin-top: 10px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 12px;
}

.plan {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.plan h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.plan .price {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.plan p:last-child {
  margin-bottom: 0;
  font-size: 15px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.foot {
  margin-top: 28px;
  text-align: center;
}

.foot p {
  margin: 0 0 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tag {
  margin: 0 0 24px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

p {
  margin: 0 0 16px;
  line-height: 1.45;
  font-size: 16px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

a.button,
button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.steps {
  margin: 0 0 16px;
  padding-left: 1.2em;
  line-height: 1.5;
  font-size: 16px;
}

.steps li + li {
  margin-top: 8px;
}

.hint {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

details.help {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

details.help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

details.help ol {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

details.help li + li {
  margin-top: 6px;
}

.hidden {
  display: none;
}

@media (min-width: 640px) {
  body {
    padding: 40px 24px 56px;
  }

  .card {
    padding: 24px;
  }

  main.wide .card {
    margin-bottom: 20px;
  }

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

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  a.button,
  button {
    width: auto;
    min-width: 200px;
    flex: 1 1 200px;
  }
}

@media (min-width: 880px) {
  main.wide {
    width: min(100%, 880px);
  }

  .features {
    columns: 2;
    column-gap: 28px;
  }

  .features li {
    break-inside: avoid;
  }

  .features li + li {
    margin-top: 0;
    padding-top: 10px;
  }
}
