/* builtbyzulfi app: the brand tokens only (paper, ink and one signal yellow), Cabinet Grotesk and Satoshi from
   Fontshare. Yellow is a fill, never text on paper. Motion is transform and opacity only, and static under
   prefers-reduced-motion. */
:root {
  --paper: #f4f0e8; --paper-2: #eae4d8; --ink: #111111; --ink-2: #3b3b3b; --muted: #625e57; --line: #ddd5c6;
  --signal: #ffd43b; --ember: #ff5a36;
  --font-display: "Cabinet Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --radius: 10px; --pill: 999px; --control: 48px; --measure: 1040px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4vw + 0.5rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }
h3 { font-size: 1.5625rem; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Shell */
.test-banner { margin: 0; padding: var(--space-xs) var(--space-md); background: var(--ink); color: var(--paper); font-size: 0.875rem; text-align: center; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap;
  max-width: var(--measure); margin: 0 auto; padding: var(--space-md) var(--space-lg);
}
.wordmark { font-size: 1.375rem; letter-spacing: -0.02em; text-decoration: none; }
.wordmark-built, .wordmark-zulfi { font-family: var(--font-display); font-weight: 800; }
.wordmark-by { font-family: var(--font-body); font-weight: 500; }
.account-nav { display: flex; align-items: center; gap: var(--space-lg); }
.account-nav form { margin: 0; }
.page { max-width: var(--measure); margin: 0 auto; padding: var(--space-xl) var(--space-lg) var(--space-2xl); }
.page > * + * { margin-top: var(--space-lg); }

/* Controls: primary is an ink pill with paper text; the ghost is underlined text. */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--control); padding: 0 var(--space-lg);
  border: 1px solid var(--ink); border-radius: var(--pill); background: var(--ink); color: var(--paper);
  font-weight: 700; white-space: nowrap; cursor: pointer; transition: transform 120ms var(--ease-out), opacity 120ms var(--ease-out);
}
.button:hover { opacity: 0.88; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.link-button {
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em;
}
.link-button:hover { text-decoration-thickness: 2px; }

/* Text */
.lead { max-width: 42ch; color: var(--ink-2); font-size: 1.25rem; }
.notice {
  max-width: 60ch; padding: var(--space-sm) var(--space-md); border: 1px solid var(--line); border-left: 4px solid var(--ember);
  border-radius: var(--radius); background: var(--paper-2);
}
.status:empty { display: none; }

/* Sign-in */
.signin { display: grid; justify-items: start; gap: var(--space-lg); max-width: 36rem; }

/* Your Bricks */
.page-head { display: grid; gap: var(--space-xs); }
.muted { color: var(--muted); }
.page > section { margin-top: var(--space-2xl); }
.page > section > h2 { margin-bottom: var(--space-lg); }
.page > section.balance { margin-top: var(--space-xl); }
.balance { padding: var(--space-xl); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.balance-figure { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2vw + 1rem, 2rem); letter-spacing: -0.02em; }
.balance-number { font-size: clamp(3.5rem, 6vw + 1rem, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin: var(--space-md) 0 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-lg); margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.pack { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); border: 1px solid var(--line); border-radius: var(--radius); }
.pack form { margin-top: auto; padding-top: var(--space-sm); }
.pack .button { width: 100%; }
.badge { align-self: flex-start; padding: 2px var(--space-sm); border-radius: var(--pill); background: var(--signal); color: var(--ink); font-size: 0.875rem; font-weight: 700; }
.price { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pack .price-local { margin-top: calc(-1 * var(--space-xs)); color: var(--muted); font-variant-numeric: tabular-nums; }
/* Each fact on its own line; no bullets. */
.pack-facts { display: grid; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.pack-facts li + li { color: var(--muted); font-size: 0.875rem; }
.button-quiet { background: transparent; color: var(--ink); }
.lot-list, .activity-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lot {
  display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr auto; gap: var(--space-sm) var(--space-lg); align-items: center;
  padding: var(--space-lg) 0; border-bottom: 1px solid var(--line);
}
.lot h3 { font-size: 1.25rem; }
.lot .facts { margin: 0; }
.lot-state { color: var(--ink-2); font-weight: 700; }
.activity-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md);
  padding: var(--space-sm) 0; border-bottom: 1px solid var(--line);
}
.activity-what { font-weight: 700; }
.activity-list time, .activity-ref { color: var(--muted); font-size: 0.875rem; }
.activity-ref { overflow-wrap: anywhere; }

/* Return page */
.checkout-status {
  display: grid; justify-items: start; gap: var(--space-md); padding: var(--space-xl);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
}
.status-line {
  max-width: 30ch; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  letter-spacing: -0.02em; line-height: 1.15;
}
.is-new > * { animation: arrive 420ms var(--ease-out) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 40rem) {
  .site-header { padding: var(--space-md); }
  .page { padding: var(--space-lg) var(--space-md) var(--space-xl); }
  .balance, .checkout-status { padding: var(--space-lg); }
  .lot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
