/* -------------------------------------------------------------------------
 * Design tokens
 * Taken verbatim from the design_references mockups so ports stay faithful.
 * ------------------------------------------------------------------------- */

:root {
  --blue: #354ec1;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --green: #49b034;
}

/* -------------------------------------------------------------------------
 * Reset
 *
 * Wrapped in `@layer base` so Tailwind v4 utilities (which live in
 * `@layer utilities` after the tailwind.css build) can actually override
 * padding/margin/box-sizing per-element. An unlayered reset would beat
 * any layered utility on the cascade regardless of specificity, which
 * breaks every inline Tailwind migration. Step 3 is the first migrated
 * view and needed this to land.
 * ------------------------------------------------------------------------- */

@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }

  button {
    font-family: inherit;
  }

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

/* -------------------------------------------------------------------------
 * Primary button
 * ------------------------------------------------------------------------- */

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.btn-primary:hover {
  opacity: 0.92;
}

/* -------------------------------------------------------------------------
 * Demo landing page
 * Dev-only wrapper for the "Start checkout (demo)" page. Not a mockup port.
 * ------------------------------------------------------------------------- */

.demo-wrap {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.demo-wrap h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-wrap .brand-descriptor {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.demo-wrap .store-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 16px;
}

/* Step-specific styles live in their own files (step1.css, step2.css, ...)
   and are loaded via content_for :stylesheets on each page. */

/* Reserve space at the viewport bottom when the welcome-offer sticky
   bar is visible, so it doesn't overlap footer content. Toggled on the
   <body> element by welcome_offer_controller. */
body.has-welcome-sticky { padding-bottom: 90px; }

/* -------------------------------------------------------------------------
 * Shared footer-policy modal keyframe animations.
 * The modal chrome itself lives inline as Tailwind utilities in
 * checkout/shared/_policy_modal. Custom keyframes can't go inline.
 * ------------------------------------------------------------------------- */

@keyframes policyFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes policySlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
