/* =================================================================
   DAILY EGG — WA REDIRECT PAGE STYLESHEET
   Deliberately minimal: one card, one button, the steps. No header,
   no footer, no hero copy, no floating button — this page's only
   job is to send the visitor to WhatsApp.
   Signature motif kept: speckled "eggshell" dot pattern on the page
   background, instead of a generic gradient blob.
================================================================= */

/* ---------- 1. RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button { font: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
ol { list-style: none; }

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  --color-primary: #1F4B3F;
  --color-primary-dark: #14332A;
  --color-primary-light: #2E6B57;
  --color-accent: #E8752C;
  --color-accent-dark: #C85F1D;
  --color-bg-soft: #F6F7F4;
  --color-text: #16241F;
  --color-text-muted: #55655F;
  --color-border: #E4E8E3;
  --color-white: #FFFFFF;

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(20, 51, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 51, 42, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. BASE ---------- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h2 {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---------- 4. PAGE / LAYOUT ---------- */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* Signature texture: speckled eggshell dot grid */
.egg-pattern {
  background-color: var(--color-bg-soft);
  background-image:
    radial-gradient(circle, rgba(31, 75, 63, 0.10) 2px, transparent 2.4px),
    radial-gradient(circle, rgba(232, 117, 44, 0.08) 1.4px, transparent 1.8px);
  background-size: 26px 26px, 17px 17px;
  background-position: 0 0, 9px 9px;
}

.container {
  width: 100%;
  max-width: 420px;
}

/* ---------- 5. CARD ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
  animation: fade-up 0.5s var(--ease) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 6. BRAND ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.brand__name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

/* ---------- 7. BUTTON ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }

.btn--block {
  width: 100%;
  padding: 16px 22px;
  font-size: 1.02rem;
}

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
}
.btn--disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  pointer-events: none;
  cursor: default;
}

.btn--loading .btn__label { opacity: 0.85; }
.btn--loading .btn__spinner {
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 8. REDIRECT STATUS ---------- */
.redirect-box {
  margin-bottom: 28px;
}

.redirect-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
}

.redirect-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: pulse-dot 1.1s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* ---------- 9. CARA PEMESANAN ----------
   A genuine sequence, so numbered markers earn their place. */
.steps {
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.steps-list {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.steps-list__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
}

.steps-list li span:last-child {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-top: 3px;
}

.steps-list li strong {
  color: var(--color-primary-dark);
}

/* ---------- 10. NO-JS FALLBACK BANNER ---------- */
.noscript-banner {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 16px;
}
.noscript-banner a {
  color: #fff;
  text-decoration: underline;
}

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 420px) {
  .card {
    padding: 28px 22px;
    border-radius: 18px;
  }
}
