:root {
  --ink: #17140f;
  --ink-2: #2b251d;
  --ink-3: #443a2d;
  --paper: #f4eee1;
  --paper-2: #fbf8f1;
  --paper-3: #ebe1cf;
  --vermilion: #b7341f;
  --vermilion-dark: #8e2414;
  --jade: #1f6b59;
  --gold: #c9932e;
  --line: #d7cab5;
  --line-strong: #b9a98f;
  --muted: #6d6252;
  --white: #fffdf8;
  --merchant: #b7341f;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 42px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(40, 29, 16, 0.13);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(183, 52, 31, 0.06), transparent 30%),
    radial-gradient(circle at 50% 110%, rgba(31, 107, 89, 0.06), transparent 40%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

a {
  color: var(--vermilion);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--vermilion-dark);
}

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

svg {
  display: block;
}

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

button {
  cursor: pointer;
}

code,
pre,
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
}

::selection {
  background: rgba(183, 52, 31, 0.2);
}

:focus-visible {
  outline: 3px solid rgba(183, 52, 31, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper-2);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper-2);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vermilion);
}

.req {
  color: var(--vermilion);
}

.mono {
  font-family: var(--mono);
  word-break: break-word;
}

.break {
  word-break: break-all;
}

.nowrap {
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  overflow-x: auto;
  overflow-y: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 26%),
    var(--ink);
  border-bottom: 3px solid var(--gold);
  color: var(--paper-2);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.header-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  min-width: 100%;
  padding: 10px max(var(--gutter), calc((100% - var(--container)) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 46px;
  color: var(--paper-2);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--paper-2);
}

.brand-seal {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--vermilion);
  color: var(--paper-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.brand-seal svg {
  width: 30px;
  height: 30px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 3px;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 241, 0.58);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(251, 248, 241, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.nav-link:hover {
  background: rgba(251, 248, 241, 0.08);
  color: var(--white);
}

.nav-link.is-active {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-admin,
.header-help {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(251, 248, 241, 0.22);
  border-radius: 999px;
  color: var(--paper-2);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.header-admin {
  border-color: transparent;
  background: var(--paper-2);
  color: var(--ink);
}

.header-admin:hover {
  background: var(--gold);
  color: var(--ink);
}

.header-help:hover {
  background: rgba(251, 248, 241, 0.1);
  border-color: rgba(251, 248, 241, 0.5);
  color: var(--white);
}

/* Layout */

.home-shell,
.checkout-shell,
.status-shell,
.simple-shell,
.receipt-shell {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 100%, transparent 0 17%, rgba(23, 20, 15, 0.045) 17% 18%, transparent 18% 34%, rgba(23, 20, 15, 0.035) 34% 35%, transparent 35% 51%, rgba(23, 20, 15, 0.028) 51% 52%, transparent 52%),
    linear-gradient(90deg, transparent 49.8%, rgba(23, 20, 15, 0.04) 49.8% 50.2%, transparent 50.2%);
  background-size: 220px 110px, 100% 100%;
  opacity: 0.8;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 85%, transparent);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-block: clamp(48px, 8vw, 104px) clamp(42px, 7vw, 88px);
}

.hero-copy {
  animation: rise 700ms var(--ease) both;
}

.hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 6.6vw, 6rem);
  line-height: 0.98;
}

.hero-copy h1 em {
  color: var(--vermilion);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  margin-top: 26px;
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions,
.paid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31, 107, 89, 0.12);
  color: var(--jade);
  font-size: 0.7rem;
}

.hero-visual {
  position: relative;
  animation: rise 800ms 80ms var(--ease) both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -24px -18px auto auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.22;
  filter: blur(2px);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto auto -26px -24px;
  width: 130px;
  height: 130px;
  border: 1px solid var(--vermilion);
  border-radius: 50%;
  opacity: 0.35;
}

.hero-note {
  position: relative;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.hero-ticket {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 147, 46, 0.22), transparent 30%),
    var(--ink);
  color: var(--paper-2);
  border-radius: 26px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.ticket-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.ticket-lock svg {
  width: 24px;
  height: 24px;
  color: rgba(251, 248, 241, 0.62);
}

.ticket-main {
  padding: 22px 24px 24px;
}

.ticket-merchant {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 248, 241, 0.58);
}

.ticket-main h3 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
}

.ticket-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(251, 248, 241, 0.72);
}

.ticket-list li {
  position: relative;
  padding-left: 18px;
}

.ticket-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.ticket-cut {
  position: relative;
  display: flex;
  align-items: center;
  height: 20px;
}

.ticket-cut::before,
.ticket-cut::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
}

.ticket-cut::before {
  left: -11px;
}

.ticket-cut::after {
  right: -11px;
}

.ticket-cut span {
  width: 100%;
  margin-inline: 22px;
  border-top: 1px dashed rgba(251, 248, 241, 0.24);
}

.ticket-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 24px;
}

.ticket-foot small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 241, 0.5);
}

.ticket-foot strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--gold);
}

.ticket-badge {
  padding: 7px 12px;
  border: 1px solid rgba(251, 248, 241, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(251, 248, 241, 0.76);
  white-space: nowrap;
}

.trust-strip {
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}

.trust-strip-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-block: 16px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.trust-strip p strong {
  color: var(--ink);
}

.trust-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade);
}

.trust-seal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(31, 107, 89, 0.14);
}

/* Sections */

.section {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-block: clamp(58px, 8vw, 104px);
}

.section-heading {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading h2 {
  margin-top: 10px;
}

.section-lead {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--muted);
}

.services-section {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

.product-card {
  min-width: 0;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(23, 20, 15, 0.03);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.product-card-link:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: 0 18px 34px rgba(40, 29, 16, 0.12);
  color: var(--ink);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-3);
}

.product-card-pattern {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--vermilion);
  color: rgba(255, 253, 248, 0.92);
}

.product-card:nth-child(3n + 2) .product-card-pattern {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--jade);
}

.product-card:nth-child(3n + 3) .product-card-pattern {
  background:
    linear-gradient(135deg, rgba(23, 20, 15, 0.08) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--gold);
}

.product-card-pattern span {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 20px;
}

.product-card-merchant {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-card-body h3 {
  margin-top: 8px;
  font-size: 1.5rem;
}

.product-card-tagline {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

.product-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}

.product-card-price {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.product-card-terms {
  display: block;
  margin-top: 1px;
  font-size: 0.76rem;
  color: var(--muted);
}

.product-card-arrow {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.product-card-link:hover .product-card-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.quiet-card {
  padding: 28px;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.quiet-card h3 {
  color: var(--ink);
}

.quiet-card p {
  margin-top: 8px;
}

/* Steps */

.how-section {
  border-top: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.step-card {
  padding: 26px 24px 8px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.step-card:last-child {
  border-right: 0;
}

.step-card:not(:first-child) {
  padding-left: 24px;
}

.step-number {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--vermilion);
  opacity: 0.5;
}

.step-card h3 {
  margin-top: 12px;
}

.step-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Values */

.values-section {
  padding-top: 0;
}

.values-shell {
  padding: clamp(28px, 4vw, 54px);
  background: var(--ink);
  color: var(--paper-2);
  border-radius: 28px;
  background-image:
    radial-gradient(circle at 90% 0%, rgba(201, 147, 46, 0.18), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(31, 107, 89, 0.16), transparent 40%);
}

.values-shell .section-heading h2 {
  color: var(--white);
}

.values-shell .eyebrow {
  color: var(--gold);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(251, 248, 241, 0.14);
  border: 1px solid rgba(251, 248, 241, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.values-grid article {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(23, 20, 15, 0.55);
}

.values-grid h3 {
  color: var(--white);
  font-size: 1.3rem;
}

.values-grid p {
  margin-top: 9px;
  font-size: 0.94rem;
  color: rgba(251, 248, 241, 0.66);
}

/* FAQ */

.faq-section {
  padding-top: 0;
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.faq-shell .section-heading {
  margin-bottom: 0;
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--vermilion);
  transition: transform 180ms var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 22px;
  color: var(--muted);
}

/* Closing */

.closing-band {
  background: var(--vermilion);
  color: var(--paper-2);
}

.closing-shell {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-block: clamp(46px, 7vw, 84px);
}

.closing-shell .eyebrow {
  color: rgba(255, 253, 248, 0.66);
}

.closing-shell h2 {
  margin-top: 10px;
  color: var(--white);
}

.closing-shell .button {
  margin-top: 26px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
  box-shadow: 4px 4px 0 var(--vermilion);
}

.button-primary:hover {
  background: var(--ink-2);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--vermilion);
}

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

.button-ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  color: var(--ink);
}

.button-light {
  background: var(--paper-2);
  border-color: var(--paper-2);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 20, 15, 0.28);
}

.button-light:hover {
  background: var(--white);
  color: var(--ink);
  transform: translate(-2px, -2px);
}

.button-wide {
  width: 100%;
}

.button-small {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.84rem;
}

.button-price {
  padding-left: 12px;
  border-left: 1px solid rgba(251, 248, 241, 0.24);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vermilion);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.link-button:hover {
  color: var(--vermilion-dark);
}

.link-button.danger,
.danger {
  color: #9e2617;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 241, 0.7);
  border-top: 3px solid var(--gold);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-block: clamp(38px, 6vw, 64px);
}

.footer-logo {
  display: inline-block;
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-logo span {
  color: var(--gold);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(251, 248, 241, 0.6);
}

.footer-mail {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links a {
  color: rgba(251, 248, 241, 0.76);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-legal {
  grid-column: 3;
  align-self: end;
  font-size: 0.78rem;
  color: rgba(251, 248, 241, 0.46);
}

.footer-legal p + p {
  margin-top: 6px;
}

/* Checkout */

.checkout-page,
.status-page {
  min-height: 60vh;
}

.checkout-page,
.status-page {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-block: clamp(26px, 4vw, 46px) clamp(56px, 8vw, 96px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--vermilion);
}

.progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.progress li > span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.66rem;
}

.progress .is-current {
  color: var(--ink);
}

.progress .is-current > span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.progress .is-done {
  color: var(--jade);
}

.progress .is-done > span {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--paper-2);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 42px);
}

.order-summary,
.checkout-form-card,
.status-main,
.status-summary {
  min-width: 0;
}

.order-summary {
  position: sticky;
  top: 96px;
  padding: clamp(24px, 3.4vw, 36px);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 147, 46, 0.18), transparent 34%),
    var(--ink);
  color: var(--paper-2);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.summary-merchant {
  display: flex;
  align-items: center;
  gap: 13px;
}

.merchant-monogram {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--merchant);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.summary-kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 241, 0.46);
}

.summary-merchant-name {
  margin-top: 2px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--paper-2);
}

.order-summary h1,
.order-summary h2 {
  margin-top: 26px;
  color: var(--white);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.summary-tagline {
  margin-top: 10px;
  color: rgba(251, 248, 241, 0.66);
  font-size: 0.94rem;
}

.summary-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 248, 241, 0.16);
}

.summary-price strong {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--gold);
}

.summary-price span {
  font-size: 0.76rem;
  color: rgba(251, 248, 241, 0.5);
}

.summary-description {
  margin-top: 18px;
  font-size: 0.92rem;
  color: rgba(251, 248, 241, 0.66);
}

.summary-benefits {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 248, 241, 0.16);
}

.summary-benefits li {
  display: flex;
  gap: 9px;
  font-size: 0.9rem;
  color: rgba(251, 248, 241, 0.78);
}

.summary-benefits span {
  color: var(--gold);
}

.summary-next {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 248, 241, 0.16);
}

.summary-next ol {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  counter-reset: step;
}

.summary-next li {
  display: flex;
  gap: 9px;
  font-size: 0.88rem;
  color: rgba(251, 248, 241, 0.62);
  counter-increment: step;
}

.summary-next li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--gold);
  padding-top: 2px;
}

.summary-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 248, 241, 0.16);
  font-size: 0.82rem;
  color: rgba(251, 248, 241, 0.5);
}

.summary-support a {
  color: var(--paper-2);
  text-decoration: none;
  font-weight: 600;
}

.summary-support a:hover {
  color: var(--gold);
}

.summary-support .link-button {
  color: var(--gold);
  font-size: 0.82rem;
}

.checkout-form-card {
  padding: clamp(24px, 3.6vw, 42px);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(40, 29, 16, 0.07);
}

.form-context {
  display: none;
}

.form-head h2 {
  margin-top: 8px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.form-head > p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.checkout-form {
  margin-top: 26px;
}

.form-section {
  min-width: 0;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}

.form-section legend {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
}

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

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field > label,
.builder-cell > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea,
.login-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #a39682;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.login-form input:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(183, 52, 31, 0.12);
  outline: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--vermilion);
  background: #fff7f5;
}

.field-help {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.field-error {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vermilion-dark);
}

.field-check {
  justify-content: flex-end;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-2);
  cursor: pointer;
}

.checkline input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--vermilion);
}

.consent-section {
  padding-top: 6px;
}

.consent-line {
  font-size: 0.84rem;
  color: var(--muted);
}

.consent-line a {
  color: var(--vermilion);
}

.pay-options {
  display: grid;
  gap: 10px;
}

.pay-option {
  display: block;
  cursor: pointer;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option-body {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}

.pay-option:hover .pay-option-body {
  border-color: var(--line-strong);
}

.pay-option input:focus-visible + .pay-option-body {
  outline: 3px solid rgba(183, 52, 31, 0.4);
  outline-offset: 2px;
}

.pay-option input:checked + .pay-option-body {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(23, 20, 15, 0.08);
}

.pay-option-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--paper-3);
  color: var(--ink);
}

.pay-option-icon.pix {
  background: rgba(31, 107, 89, 0.13);
  color: var(--jade);
}

.pay-option-icon.stripe {
  background: rgba(86, 79, 214, 0.13);
  color: #4a43b8;
}

.pay-option-icon.mercadopago {
  background: rgba(0, 149, 233, 0.13);
  color: #0079bd;
}

.pay-option-icon svg {
  width: 27px;
  height: 27px;
}

.pay-option-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.pay-option-copy strong {
  font-size: 0.96rem;
}

.pay-option-copy small {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.pay-option-check {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}

.pay-option input:checked + .pay-option-body .pay-option-check {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--white);
}

.form-footnote {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.form-privacy-note {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.85;
}

.form-alert {
  margin: 18px 0;
  padding: 13px 15px;
  border: 1px solid rgba(31, 107, 89, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(31, 107, 89, 0.08);
  color: #165a4a;
  font-size: 0.88rem;
}

.form-alert-error {
  border-color: rgba(183, 52, 31, 0.35);
  background: rgba(183, 52, 31, 0.07);
  color: var(--vermilion-dark);
}

.draft-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 18px 0;
  padding: 11px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.82rem;
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Status / payment */

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 42px);
}

.status-main {
  padding: clamp(24px, 3.6vw, 40px);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
}

.status-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.status-hero h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.status-hero > p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--muted);
}

.status-hero.ok h1 {
  color: var(--jade);
}

.status-hero.bad h1 {
  color: var(--vermilion-dark);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade);
}

.status-live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  animation: pulse 1.8s infinite;
}

.redirect-box,
.pix-box,
.delivery-box,
.status-help {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.status-hero + .redirect-box,
.status-hero + .pix-box,
.status-hero + .delivery-box,
.status-hero + .status-help {
  margin-top: 0;
  padding-top: 24px;
  border-top: 0;
}

.redirect-box > p:first-child {
  margin-bottom: 14px;
  color: var(--muted);
}

.pix-box {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.pix-qr {
  display: grid;
  place-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pix-qr svg {
  width: 100%;
  height: auto;
}

.qr-fallback {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.pix-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
}

.copy-field code {
  flex: 1;
  min-width: 0;
  max-height: 104px;
  overflow: auto;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.72rem;
  line-height: 1.5;
  word-break: break-all;
}

.copy-button {
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

.copy-button:hover {
  border-color: var(--ink);
}

.pix-hint,
.pix-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.claim-form {
  margin-top: 16px;
}

.delivery-box h3,
.status-help h3 {
  font-size: 1.18rem;
}

.delivery-box > p,
.status-help p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.delivery-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.delivery-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.delivery-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--line-strong);
}

.delivery-dot.ok {
  background: var(--jade);
}

.delivery-dot.wait {
  background: var(--gold);
}

.delivery-dot.bad {
  background: var(--vermilion);
}

.delivery-list strong {
  display: block;
  font-size: 0.9rem;
}

.delivery-list small {
  display: block;
  margin-top: 1px;
  font-size: 0.76rem;
  color: var(--muted);
}

.delivery-alert {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(183, 52, 31, 0.07);
  color: var(--vermilion-dark);
  font-size: 0.82rem;
}

.status-summary {
  position: sticky;
  top: 96px;
}

.summary-facts {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid rgba(251, 248, 241, 0.16);
}

.summary-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(251, 248, 241, 0.1);
  font-size: 0.8rem;
}

.summary-facts dt {
  color: rgba(251, 248, 241, 0.48);
}

.summary-facts dd {
  text-align: right;
  color: rgba(251, 248, 241, 0.82);
}

.summary-facts .mono {
  font-size: 0.68rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.ok {
  background: rgba(31, 107, 89, 0.14);
  color: #165a4a;
}

.badge.wait {
  background: rgba(201, 147, 46, 0.18);
  color: #7a560e;
}

.badge.bad {
  background: rgba(183, 52, 31, 0.12);
  color: var(--vermilion-dark);
}

.badge.neutral {
  background: rgba(23, 20, 15, 0.08);
  color: var(--ink-3);
}

.status-summary .badge.ok {
  background: rgba(100, 214, 181, 0.15);
  color: #93e5cd;
}

.status-summary .badge.wait {
  background: rgba(201, 147, 46, 0.18);
  color: #f0c56b;
}

.status-summary .badge.bad {
  background: rgba(255, 138, 117, 0.15);
  color: #ffad9f;
}

.status-summary .badge.neutral {
  background: rgba(251, 248, 241, 0.12);
  color: rgba(251, 248, 241, 0.7);
}

.paid-actions {
  margin-top: 26px;
}

/* Simple/errors */

.simple-page {
  width: min(100% - 2 * var(--gutter), 760px);
  margin-inline: auto;
  padding-block: clamp(70px, 12vw, 150px);
}

.simple-page h1 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.simple-page > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
}

/* Receipt */

.receipt-page {
  width: min(100% - 2 * var(--gutter), 880px);
  margin-inline: auto;
  padding-block: clamp(30px, 5vw, 60px);
}

.receipt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.receipt-card {
  padding: clamp(26px, 4vw, 48px);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(40, 29, 16, 0.08);
}

.receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.receipt-head h1 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.receipt-merchant {
  margin-top: 6px;
  color: var(--muted);
}

.receipt-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.receipt-amount span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.receipt-amount strong {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ink);
}

.receipt-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  padding-top: 14px;
}

.receipt-facts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.receipt-facts dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.receipt-facts dd {
  font-size: 0.9rem;
  color: var(--ink);
}

.receipt-note {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.receipt-note p + p {
  margin-top: 6px;
}

/* Login */

.admin-login-body {
  background: var(--ink);
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--gutter);
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(26px, 4vw, 42px);
  background: var(--paper-2);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.login-brand {
  display: inline-block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.login-brand span {
  color: var(--vermilion);
}

.login-card h1 {
  margin-top: 10px;
  font-size: 2.2rem;
}

.login-card > p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-form {
  margin-top: 22px;
}

.login-form .button {
  margin-top: 16px;
}

.login-foot {
  margin-top: 20px;
  font-size: 0.82rem;
}

/* Admin */

.admin-body {
  background: #f1ebdf;
  background-image: none;
}

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

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 147, 46, 0.15), transparent 35%),
    var(--ink);
  color: var(--paper-2);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px;
  color: var(--paper-2);
  text-decoration: none;
}

.admin-brand .brand-seal {
  width: 38px;
  height: 38px;
}

.admin-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-brand small {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 241, 0.48);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  color: rgba(251, 248, 241, 0.65);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.admin-nav-link:hover {
  background: rgba(251, 248, 241, 0.08);
  color: var(--white);
}

.admin-nav-link.is-active {
  background: var(--vermilion);
  color: var(--white);
}

.admin-sidebar-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 18px 12px 0;
  border-top: 1px solid rgba(251, 248, 241, 0.14);
  font-size: 0.82rem;
}

.admin-sidebar-foot a {
  color: rgba(251, 248, 241, 0.62);
  text-decoration: none;
}

.admin-sidebar-foot a:hover {
  color: var(--gold);
}

.admin-sidebar-foot .link-button {
  color: rgba(251, 248, 241, 0.62);
  font-size: 0.82rem;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 3.4vw, 42px) 18px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar-kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-topbar h1 {
  margin-top: 4px;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.admin-content {
  padding: 22px clamp(18px, 3.4vw, 42px) 60px;
}

.admin-flash {
  margin-bottom: 18px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-flash-ok {
  background: rgba(31, 107, 89, 0.12);
  color: #165a4a;
}

.admin-flash-error {
  background: rgba(183, 52, 31, 0.1);
  color: var(--vermilion-dark);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px 18px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stat-card p {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.stat-card strong.stat-small {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.stat-card small {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--muted);
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.admin-side {
  display: grid;
  gap: 18px;
}

.admin-panel {
  padding: 20px;
  margin-bottom: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}

.admin-columns .admin-panel {
  margin-bottom: 0;
}

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

.panel-head h2 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-head p {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.admin-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-table th {
  padding: 10px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e9e0d1;
  vertical-align: top;
}

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

.admin-table td small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-table td a.mono {
  font-size: 0.72rem;
  white-space: nowrap;
  word-break: normal;
}

.admin-table td:first-child {
  white-space: nowrap;
}

.admin-table a {
  color: var(--ink);
}

.admin-table a:hover {
  color: var(--vermilion);
}

.admin-empty-cell,
.admin-count {
  padding: 18px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.admin-count {
  display: block;
  padding: 10px 2px 0;
  text-align: left;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-pagination a {
  font-weight: 700;
  color: var(--vermilion);
  text-decoration: none;
}

.admin-pagination a:hover {
  text-decoration: underline;
}

.admin-empty {
  padding: 30px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
}

.admin-empty h2 {
  font-family: var(--sans);
  font-size: 1rem;
}

.admin-empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-empty .button {
  margin-top: 14px;
}

.setup-warning {
  padding: 12px 14px;
  border: 1px solid rgba(201, 147, 46, 0.4);
  border-radius: 10px;
  background: rgba(201, 147, 46, 0.1);
  font-size: 0.8rem;
}

.setup-warning strong {
  display: block;
  color: #6e4b06;
}

.setup-warning p {
  margin-top: 4px;
  color: #7a5a19;
}

.gateway-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.gateway-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.gateway-list li > div {
  flex: 1;
  min-width: 0;
}

.gateway-list strong {
  display: block;
  font-size: 0.84rem;
}

.gateway-list small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.gateway-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.gateway-dot.stripe {
  background: #635bff;
}

.gateway-dot.mercadopago {
  background: #009ee3;
}

.gateway-dot.pix {
  background: var(--jade);
}

.checklist {
  display: grid;
  gap: 9px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--muted);
}

.checklist li.is-done {
  color: var(--ink-2);
}

.checklist-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.6rem;
  color: var(--jade);
}

.checklist li.is-done .checklist-mark {
  background: rgba(31, 107, 89, 0.12);
  border-color: rgba(31, 107, 89, 0.4);
}

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

.checklist a:hover {
  color: var(--vermilion);
  text-decoration: underline;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checklist-item strong {
  display: block;
  font-size: 0.84rem;
}

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

/* Admin forms */

.admin-form-head {
  margin-bottom: 18px;
}

.admin-form-head h2 {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-form-head > p {
  margin-top: 5px;
  font-size: 0.84rem;
  color: var(--muted);
}

.detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.detail-title h2 {
  margin-top: 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.admin-form {
  margin-bottom: 18px;
}

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

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 14px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
}

.admin-form-actions .button-primary {
  min-width: 190px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.inline-form .field {
  flex: 1 1 220px;
}

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

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  cursor: pointer;
}

.check-card input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--vermilion);
}

.check-card strong {
  display: block;
  font-size: 0.86rem;
}

.check-card small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.builder {
  display: grid;
  gap: 9px;
}

.builder:empty::before {
  content: "Nenhum item. Use o botão acima para adicionar.";
  display: block;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.builder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.builder-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.builder-cell.grow {
  flex: 1 1 150px;
}

.builder-cell input,
.builder-cell select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 0.8rem;
}

.builder-cell.check {
  flex: 0 0 auto;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.builder-cell.check label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.74rem;
  white-space: nowrap;
}

.builder-actions {
  display: flex;
  gap: 4px;
  padding-bottom: 1px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  font-size: 0.9rem;
  color: var(--ink-3);
}

.icon-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.icon-button.danger:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

.target-tests {
  display: grid;
  gap: 8px;
}

.target-tests li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.target-tests strong {
  display: block;
  font-size: 0.84rem;
}

.target-tests small {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}

.key-created h2 {
  margin-top: 8px;
  font-size: 1.8rem;
}

.key-created > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.key-created .copy-field {
  margin-top: 18px;
}

.key-notes {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.key-notes p + p {
  margin-top: 6px;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.admin-filter .field {
  flex: 0 1 180px;
}

.admin-filter .field.grow {
  flex: 1 1 240px;
}

.admin-filter .field label {
  font-size: 0.72rem;
}

.admin-filter .field input,
.admin-filter .field select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.detail-list {
  display: grid;
  gap: 0;
}

.detail-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #e9e0d1;
  font-size: 0.84rem;
}

.detail-list dt {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
}

.detail-list dd {
  min-width: 0;
  text-align: right;
}

.detail-list.compact > div {
  padding: 7px 0;
  font-size: 0.78rem;
}

.detail-subtitle {
  margin: 24px 0 10px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-table {
  min-width: 0;
}

.detail-table th {
  width: 38%;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-2);
}

.detail-table td {
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.admin-rule {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.stack-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.stack-form:last-child {
  margin-bottom: 0;
}

.link-stack {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
}

.link-stack a {
  color: var(--ink);
  text-decoration: none;
}

.link-stack a:hover {
  color: var(--vermilion);
  text-decoration: underline;
}

.timeline {
  display: grid;
  gap: 0;
  padding-left: 3px;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 18px 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child::before {
  display: none;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.timeline-dot.ok {
  background: var(--jade);
}

.timeline-dot.bad {
  background: var(--vermilion);
}

.timeline strong {
  display: block;
  font-size: 0.84rem;
}

.timeline small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.event-payload {
  margin-top: 8px;
  padding: 10px 12px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.settings-steps {
  display: grid;
  gap: 7px;
  margin: 8px 0 14px;
  padding-left: 20px;
  list-style: decimal;
  font-size: 0.82rem;
  color: var(--muted);
}

.code-block {
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--ink);
  border-radius: 10px;
  color: #f4eee1;
  font-size: 0.72rem;
  line-height: 1.6;
}

.settings-copy {
  font-size: 0.84rem;
  color: var(--muted);
}

.wrap-cell {
  overflow-wrap: anywhere;
  min-width: 160px;
}

.break {
  overflow-wrap: anywhere;
}

/* Animations */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 107, 89, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(31, 107, 89, 0);
  }
}

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

/* Responsive */

@media (max-width: 1020px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .hero-visual {
    max-width: 620px;
  }

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

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

  .step-card {
    padding: 24px 22px 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .step-card:nth-child(2n) {
    padding-right: 0;
    padding-left: 22px;
    border-right: 0;
  }

  .step-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .faq-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .checkout-grid,
  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-summary,
  .status-summary {
    position: static;
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: block;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .admin-brand {
    display: inline-flex;
    padding: 0 14px 0 0;
    vertical-align: middle;
  }

  .admin-nav {
    display: inline-flex;
    flex-direction: row;
    gap: 2px;
    margin-top: 0;
    vertical-align: middle;
  }

  .admin-nav-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .admin-sidebar-foot {
    display: inline-flex;
    gap: 14px;
    margin-top: 0;
    margin-left: 12px;
    padding: 0 0 0 14px;
    border-top: 0;
    border-left: 1px solid rgba(251, 248, 241, 0.14);
    vertical-align: middle;
  }

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

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

@media (max-width: 760px) {
  .checkout-grid {
    display: flex;
    flex-direction: column;
  }

  .checkout-form-card {
    order: 1;
    width: 100%;
  }

  .checkout-grid > .order-summary {
    order: 2;
  }

  .form-context {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--muted);
  }

  .form-context strong {
    min-width: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
  }

  .form-context em {
    flex: 0 0 auto;
  }

  .form-context em {
    margin-left: auto;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--vermilion);
  }

  .header-track {
    gap: 10px;
    padding-block: 8px;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }

  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding: 0 9px;
    font-size: 0.84rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 11vw, 4.2rem);
  }

  .product-grid,
  .values-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .step-card,
  .step-card:nth-child(2n) {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-card:last-child {
    border-bottom: 0;
  }

  .field-grid,
  .field-grid.two,
  .check-card-grid,
  .receipt-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .pix-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .pix-qr {
    max-width: 320px;
  }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-legal {
    grid-column: auto;
  }

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

  .admin-topbar {
    padding-top: 20px;
  }

  .admin-filter .field {
    flex: 1 1 100%;
  }

  .builder-row {
    align-items: stretch;
  }

  .builder-cell,
  .builder-cell.grow {
    flex: 1 1 100%;
  }

  .builder-actions {
    justify-content: flex-end;
  }

  .admin-table {
    min-width: 620px;
  }
}

@media (max-width: 480px) {
  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .header-help {
    display: none;
  }

  .button {
    padding-inline: 18px;
  }

  .hero-actions .button,
  .paid-actions .button {
    width: 100%;
  }

  .status-hero h1 {
    font-size: 2rem;
  }

  .receipt-head {
    flex-direction: column;
  }

  .receipt-amount {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .receipt-toolbar,
  .progress,
  .breadcrumb {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .receipt-page {
    width: 100%;
    padding: 0;
  }

  .receipt-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
