/* ==========================================================================
   Dibs - Design system
   High-contrast, dark-on-light (accessible, color-blind safe).
   No red/green pairings carry meaning; status uses shape + label + contrast.
   ========================================================================== */

:root {
  /* Warm, appetizing, high-contrast palette */
  --cream: #FBF6EC;        /* page background */
  --cream-2: #F4EAD7;      /* alt section */
  --ink: #1C160F;          /* primary text, near-black warm */
  --ink-soft: #4A3F32;     /* secondary text */
  --honey: #F2A900;        /* primary accent (amber) */
  --honey-deep: #C77D00;   /* accent hover / text-on-cream accent */
  --toast: #8A4B1E;        /* warm brown */
  --line: #E2D4BB;         /* borders on cream */
  --white: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(28, 22, 15, .06), 0 8px 30px rgba(28, 22, 15, .08);
  --shadow-lift: 0 2px 4px rgba(28, 22, 15, .08), 0 18px 50px rgba(28, 22, 15, .16);
  --maxw: 1140px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--honey-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------- Type -------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--honey-deep);
  margin-bottom: 16px;
}

/* -------------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-accent { background: var(--honey); color: var(--ink); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* --------------------------------- Nav --------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px rgba(242,169,0,.25); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav-links a:hover { color: var(--honey-deep); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* --------------------------------- Hero -------------------------------- */
.hero { padding: 72px 0 84px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--honey-deep); }
.hero .lead { margin: 22px 0 32px; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hero-note strong { color: var(--ink); }

/* Hero visual: a stylized "ready bag" ticket card */
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  padding: 26px;
  transform: rotate(-1.5deg);
}
.ticket-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px dashed var(--line); }
.ticket-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-2); color: var(--toast); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: var(--radius-pill); }
.ticket-time { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.ticket-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ticket-item:last-of-type { border-bottom: 0; }
.ticket-emoji { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.5rem; background: var(--cream); border-radius: 12px; flex-shrink: 0; }
.ticket-item h4 { font-family: var(--font-body); font-weight: 700; font-size: .98rem; }
.ticket-item p { font-size: .82rem; margin: 0; }
.ticket-ready { margin-top: 18px; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--cream); font-weight: 700; padding: 14px 18px; border-radius: 12px; font-size: .95rem; }
.ticket-ready .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 0 rgba(242,169,0,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,169,0,.55);} 70% { box-shadow: 0 0 0 12px rgba(242,169,0,0);} 100% { box-shadow: 0 0 0 0 rgba(242,169,0,0);} }

/* ------------------------------- Sections ------------------------------ */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.alt { background: var(--cream-2); }

/* Problem row */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.pain .num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--honey-deep); }
.pain h3 { margin: 12px 0 8px; }
.pain p { font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .badge {
  width: 52px; height: 52px; border-radius: 14px; background: var(--honey);
  color: var(--ink); display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; margin-bottom: 18px; box-shadow: var(--shadow);
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; }

/* Two-audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.aud {
  border-radius: 22px; padding: 40px; border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.aud.people { background: var(--white); }
.aud.shops { background: var(--ink); color: var(--cream); }
.aud.shops h2, .aud.shops h3 { color: var(--cream); }
.aud.shops p { color: #D8CBB6; }
.aud .tag { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 20px; }
.aud.people .tag { background: var(--cream-2); color: var(--toast); }
.aud.shops .tag { background: var(--honey); color: var(--ink); }
.aud ul { list-style: none; margin: 24px 0 30px; }
.aud li { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; font-size: 1rem; }
.aud li .chk { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 1px; }
.aud.people li .chk { background: var(--honey); color: var(--ink); }
.aud.shops li .chk { background: var(--honey); color: var(--ink); }

/* Pilot / signup */
.signup { background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lift); padding: 48px; max-width: 720px; margin: 0 auto; }
.seg { display: inline-flex; background: var(--cream-2); border-radius: var(--radius-pill); padding: 5px; gap: 4px; margin-bottom: 28px; }
.seg button {
  border: 0; background: transparent; font-family: var(--font-body); font-weight: 700;
  font-size: .92rem; padding: 10px 20px; border-radius: var(--radius-pill); cursor: pointer; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.seg button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--honey-deep); outline: none; }
input::placeholder, textarea::placeholder { color: #9C8E78; }
.form-hint { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.hidden { display: none !important; }
.form-success {
  background: var(--cream-2); border: 2px solid var(--honey); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.form-success h3 { color: var(--toast); margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { font-size: 1.6rem; color: var(--honey-deep); transition: transform .2s; line-height: 1; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin-top: 14px; font-size: 1rem; }

/* Final CTA band */
.cta-band { background: var(--ink); color: var(--cream); text-align: center; border-radius: 28px; padding: 64px 40px; margin: 0 24px; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #D8CBB6; max-width: 46ch; margin: 16px auto 30px; }

/* Footer */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-grid p { font-size: .88rem; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: .9rem; font-weight: 600; }
.foot-links a:hover { color: var(--honey-deep); }

/* -------------------------------- Mobile ------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { transform: rotate(0); max-width: 420px; margin: 0 auto; }
  .pain-grid, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .signup { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }
}
