/* Amrapur demo — shared brand base. Palette taken from amrapur.com. */
:root {
  --cream: #faf7f1;
  --paper: #ffffff;
  --sand: #f5efe3;
  --sand-2: #ede5d5;
  --line: #e3e0da;
  --line-2: #ded5c2;
  --ink: #2c2210;
  --ink-2: #4a3f2c;
  --muted: #7a6f5c;
  --brown: #6c5f45;
  --sage: #669161;
  --sage-bg: #e6eee2;
  --amber: #a7741c;
  --amber-bg: #f5ead2;
  --rust: #9d3131;
  --rust-bg: #f3e1de;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 350; letter-spacing: -.01em; margin: 0; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.muted { color: var(--muted); }

/* Demo note */
.demo-bar { display: flex; gap: 12px; align-items: center; justify-content: center; background: var(--ink); color: #efe8da; padding: 9px 16px; font-size: 14px; text-align: center; }
.demo-bar p { margin: 0; }
.demo-bar a, .demo-bar button.link { color: #f1d9a6; }
.demo-x { background: none; border: 0; color: #efe8da; font-size: 20px; line-height: 1; padding: 4px 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(250, 247, 241, .92); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; }
.logo .divider { width: 1px; height: 26px; background: var(--line-2); }
.logo .label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.top .spacer { flex: 1; }
.seg { display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); white-space: nowrap; min-height: 38px; }
.seg button.is-on { background: var(--ink); color: var(--cream); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--sand-2); color: var(--ink); font-size: 12px; }
.seg button.is-on .count { background: rgba(255,255,255,.18); color: var(--cream); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 500; min-height: 46px; text-decoration: none; }
.btn:hover { background: var(--ink-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--paper); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* Fields */
.field { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--paper); font-size: 15px; }
textarea.field { resize: vertical; min-height: 64px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0; }
.stat dd { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat dt { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 64px; }
.foot .wrap { padding-top: 24px; padding-bottom: 120px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .wrap, .top-in { padding-left: 16px; padding-right: 16px; }
  .logo img { height: 28px; }
  .logo .divider, .logo .label { display: none; }
  .top-in:has(.seg) { flex-wrap: wrap; row-gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .top-in .seg { order: 3; width: 100%; }
  .seg button { flex: 1; padding: 7px 8px; font-size: 13px; }
  .demo-bar { font-size: 13px; }
}
