/* ── Self-hosted fonts ─────────────────── */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-500.woff2') format('woff2');
}

/* ── Accessibility ──────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Design Tokens ───────────────────────── */

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --text: #1c1710;
  --muted: #6f6253;
  --faint: #7d705f;
  --border: #ddd4c6;
  --accent: #1c1710;
  --accent-text: #faf8f3;
  --focus-ring: #1f5fbf;
  --success-text: #2f6630;
  --success-bg: #eaf3ea;
  --warning-text: #8c4f33;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0b;
    --surface: #1a1816;
    --text: #e4dcd0;
    --muted: #9a8f80;
    --faint: #8f8475;
    --border: #302a24;
    --accent: #e4dcd0;
    --accent-text: #0e0d0b;
    --focus-ring: #8bb6ff;
    --success-text: #b9d9b9;
    --success-bg: #243326;
    --warning-text: #d2a188;
  }
}

/* ── Layout ──────────────────────────────── */

.wakeup {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem 1.5rem;
  position: relative;
  font-family: var(--sans);
  color: var(--text);
  overflow: hidden;
}

.wakeup::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(255, 190, 80, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(220, 160, 60, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .wakeup::before {
    background:
      radial-gradient(ellipse at 30% 70%, rgba(200, 160, 60, 0.03) 0%, transparent 60%),
      radial-gradient(ellipse at 70% 30%, rgba(180, 140, 40, 0.02) 0%, transparent 50%);
  }
}
/* Mark, hero, form, and footer styles */
/* ── Components ──────────────────────────── */

.wakeup-mark {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.wakeup-heading {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.wakeup-subtitle {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto 2.5rem;
  max-width: 26rem;
}

.wakeup-form {
  display: flex;
  max-width: 22rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s;
}

.wakeup-form:focus-within {
  border-color: var(--muted);
}

.wakeup-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  min-width: 0;
}

.wakeup-input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.wakeup-input::placeholder {
  color: var(--faint);
}

.wakeup-btn {
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.wakeup-btn:hover {
  opacity: 0.85;
}

.wakeup-btn:focus-visible,
.wakeup-retry-btn:focus-visible,
.wakeup-date-btn:focus-visible,
.wakeup-time-btn:focus-visible,
.wakeup-pay-btn:focus-visible,
.wakeup-voice-chip:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.wakeup-price {
  font-size: 0.8rem;
  color: var(--faint);
  margin: 0;
  letter-spacing: 0.03em;
}

.wakeup-footer {
  position: absolute;
  bottom: 2rem;
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
/* Mobile breakpoint */
/* ── Responsive ──────────────────────────── */

@media (max-width: 480px) {
  .wakeup {
    padding: 1.5rem 1.25rem;
    justify-content: flex-start;
    padding-top: 6rem;
  }

  .wakeup-mark {
    position: static;
    margin-bottom: 3rem;
    text-align: center;
  }

  .wakeup-form {
    flex-direction: column;
    max-width: 100%;
  }

  .wakeup-input {
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1rem;
    text-align: center;
  }

  .wakeup-btn {
    padding: 0.9rem;
  }

  .wakeup-subtitle {
    font-size: 1rem;
  }

  .wakeup-footer {
    position: static;
    margin-top: 4rem;
  }
}
/* Active state for time picker buttons */
.wakeup-time-active {
  background: var(--accent) !important;
  color: var(--accent-text) !important;
  border-color: var(--accent) !important;
}
/* Ring animation for verification call */
@keyframes wakeup-ring {
        0%, 100% { transform: rotate(0deg); }
        10% { transform: rotate(-15deg); }
        20% { transform: rotate(15deg); }
        30% { transform: rotate(-10deg); }
        40% { transform: rotate(10deg); }
        50% { transform: rotate(0deg); }
      }
.wakeup-flow {
          position: relative;
          z-index: 1;
          text-align: center;
          max-width: 34rem;
          width: 100%;
        }
/* Verification step styles */

        /* Verification */
        .wakeup-verify-title {
          font-family: var(--serif);
          font-size: 1.4rem;
          color: var(--text);
          margin: 0 0 0.25rem;
          font-weight: 300;
        }
        .wakeup-verify-phone {
          font-size: 0.85rem;
          color: var(--muted);
          margin: 0 0 0.25rem;
        }
        .wakeup-verify-hint {
          font-size: 0.9rem;
          color: var(--muted);
          font-style: italic;
          margin: 0 0 2.5rem;
        }
        .wakeup-ring-wrap {
          display: flex;
          justify-content: center;
          margin-bottom: 2.5rem;
        }
        .wakeup-ring-circle {
          width: 3rem;
          height: 3rem;
          border-radius: 50%;
          border: 2px solid var(--border);
          display: flex;
          align-items: center;
          justify-content: center;
          animation: wakeup-ring 1.5s ease-in-out infinite;
        }
        .wakeup-retry-btn {
          padding: 0.6rem 1.75rem;
          background: transparent;
          color: var(--text);
          border: 1px solid var(--border);
          border-radius: 0.25rem;
          font-family: var(--sans);
          font-size: 0.85rem;
          cursor: pointer;
          transition: all 0.2s;
          margin-top: 1.5rem;
        }
        .wakeup-retry-btn:hover {
          background: var(--accent);
          color: var(--accent-text);
          border-color: var(--accent);
        }
/* Phone badge and section labels */
.wakeup-phone-badge {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.5rem;
          margin-bottom: 1.75rem;
        }
        .wakeup-phone-badge-number {
          font-size: 0.85rem;
          color: var(--muted);
          font-family: var(--sans);
        }
        .wakeup-phone-badge-verified {
          font-size: 0.75rem;
          color: var(--success-text);
          background: var(--success-bg);
          padding: 0.15rem 0.5rem;
          border-radius: 1rem;
          font-weight: 500;
        }
        .wakeup-section-label {
          font-size: 0.75rem;
          color: var(--faint);
          text-align: center;
          margin: 0 0 0.6rem;
          text-transform: uppercase;
          letter-spacing: 0.1em;
          font-weight: 500;
        }
/* Date strip */
.wakeup-date-strip {
          display: flex;
          gap: 0.35rem;
          overflow-x: auto;
          padding-bottom: 0.5rem;
          margin: 0 -1.5rem 1.5rem;
          padding-left: 1.5rem;
          padding-right: 1.5rem;
          -webkit-overflow-scrolling: touch;
          scrollbar-width: thin;
          scrollbar-color: var(--border) transparent;
        }
        .wakeup-date-strip::-webkit-scrollbar {
          height: 0.45rem;
        }
        .wakeup-date-strip::-webkit-scrollbar-thumb {
          background: var(--border);
          border-radius: 999px;
        }
        .wakeup-date-strip::-webkit-scrollbar-track {
          background: transparent;
        }
        .wakeup-date-btn {
          display: flex;
          flex-direction: column;
          align-items: center;
          padding: 0.45rem 0.55rem;
          border: 1px solid var(--border);
          border-radius: 0.25rem;
          background: var(--surface);
          color: var(--text);
          font-family: var(--sans);
          cursor: pointer;
          min-width: 3.25rem;
          flex-shrink: 0;
          transition: all 0.15s;
          gap: 0.1rem;
        }
        .wakeup-date-btn-day {
          font-size: 0.7rem;
          text-transform: uppercase;
          letter-spacing: 0.04em;
          opacity: 0.6;
        }
        .wakeup-date-btn-num {
          font-size: 0.95rem;
          font-weight: 500;
        }
/* Time picker */
.wakeup-time-row {
          display: flex;
          gap: 0.3rem;
          justify-content: center;
          flex-wrap: wrap;
          margin-bottom: 0.4rem;
        }
        .wakeup-time-btn {
          padding: 0.4rem 0.55rem;
          border: 1px solid var(--border);
          border-radius: 0.25rem;
          background: var(--surface);
          color: var(--text);
          font-family: var(--sans);
          font-size: 0.8rem;
          cursor: pointer;
          min-width: 2.25rem;
          transition: all 0.15s;
        }
        .wakeup-minute-btn {
          padding: 0.4rem 0.65rem;
          min-width: 2.5rem;
        }
        .wakeup-period-btn {
          padding: 0.4rem 0.75rem;
          font-size: 0.75rem;
        }
        .wakeup-period-row {
          margin-bottom: 0.5rem;
        }
        .wakeup-tz {
          font-size: 0.7rem;
          color: var(--faint);
          text-align: center;
          margin: 0 0 1.75rem;
        }
/* Checkout and payment */
        .wakeup-pay-btn {
          padding: 0.75rem 2.5rem;
          background: var(--accent);
          color: var(--accent-text);
          border: none;
          border-radius: 0.25rem;
          font-family: var(--serif);
          font-size: 1rem;
          font-weight: 500;
          cursor: pointer;
          transition: opacity 0.2s;
          display: block;
          margin: 0 auto 0.5rem;
        }
        .wakeup-pay-btn:hover {
          opacity: 0.85;
        }
        .wakeup-stripe-note {
          font-size: 0.7rem;
          color: var(--faint);
          margin: 0;
        }
/* Confirmation step */

.wakeup-step { text-align: center; }

.wakeup-checkout { text-align: center; }
/* Checkout inner styles (restored) */
.wakeup-checkout-inner {
        border-top: 1px solid var(--border);
        padding-top: 1.25rem;
        margin-top: 0.25rem;
      }
      .wakeup-checkout-summary {
        font-family: var(--serif);
        font-size: 1.1rem;
        color: var(--text);
        margin: 0 0 0.15rem;
        font-weight: 400;
      }
      .wakeup-checkout-total {
        font-size: 0.8rem;
        color: var(--muted);
        font-style: italic;
        margin: 0 0 1.25rem;
      }


/* Confirmation step */
.wakeup-confirmed {
  text-align: center;
}
.wakeup-confirm-heading {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  font-weight: 300;
}
.wakeup-confirm-calls {
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 0.25rem;
}
.wakeup-confirm-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.wakeup-confirm-time {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.25rem;
  font-weight: 400;
}
.wakeup-confirm-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
  line-height: 1.6;
}
.wakeup-confirm-note:last-child {
  margin-bottom: 0;
}
/* Disabled state for wake-me-up button */
.wakeup-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
/* Disabled state for Today chip when selected time is past */
.wakeup-date-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(138, 126, 110, 0.08);
  border-color: rgba(138, 126, 110, 0.2);
  color: var(--faint);
}
/* Toast fade in/hold/out animation — slides up from bottom of flow */
@keyframes wakeup-toast-fade {
  0% { opacity: 0; transform: translateY(1rem); }
  12% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-0.25rem); }
}
/* Toast notification — anchored to bottom of .wakeup-flow */
.wakeup-flow { anchor-name: --wakeup-flow; }
.wakeup-toast-wrap {
  position: fixed;
  position-anchor: --wakeup-flow;
  bottom: anchor(bottom);
  justify-self: anchor-center;
  margin-bottom: -3rem;
  z-index: 100;
  animation: wakeup-toast-fade 3.5s ease forwards;
}
.wakeup-toast {
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 0.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
/* Checkout warning and disabled pay button */
.wakeup-checkout-warning {
  font-size: 0.75rem;
  color: var(--warning-text);
  font-style: italic;
  margin: 0 0 0.75rem;
}
.wakeup-pay-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .wakeup-ring-circle {
    animation: none;
  }

  .wakeup-toast-wrap {
    animation-duration: 1ms;
  }

  .wakeup-form,
  .wakeup-btn,
  .wakeup-retry-btn,
  .wakeup-date-btn,
  .wakeup-time-btn,
  .wakeup-pay-btn,
  .wakeup-voice-chip,
  .wakeup-hints-toggle,
  .wakeup-hints-chevron,
  .wakeup-hints-body,
  .wakeup-hints-count {
    transition: none;
  }
}

/* Voice picker chip styles */
.wakeup-voice-row {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.wakeup-voice-chip {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
/* Hints — collapsible personal note */
.wakeup-hints {
  text-align: center;
  margin-bottom: 1.5rem;
}
.wakeup-hints-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.wakeup-hints-toggle:hover {
  color: var(--text);
}
.wakeup-hints-chevron {
  display: inline-block;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}
.wakeup-hints-chevron--open {
  transform: rotate(90deg);
}
.wakeup-hints-body {
  max-width: 22rem;
  margin: 0.75rem auto 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.wakeup-hints-body--open {
  max-height: 12rem;
  opacity: 1;
  pointer-events: auto;
}
.wakeup-hints-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  resize: none;
  outline: none;
  field-sizing: content;
  min-height: 3lh;
}
.wakeup-hints-input:focus {
  border-color: var(--focus-ring);
}
.wakeup-hints-input::placeholder {
  color: var(--faint);
}
.wakeup-hints-count {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--faint);
  margin-top: 0.3rem;
  transition: color 0.15s ease;
}
.wakeup-hints-count--warn {
  color: var(--warning-text);
}
/* Confirmation page — personal note blockquote */
.wakeup-confirm-hint {
  font-style: italic;
  color: var(--muted);
  border-left: 2px solid var(--border);
  margin: 1rem auto;
  padding: 0.5rem 0.75rem;
  max-width: 22rem;
  font-size: 0.85rem;
}
.wakeup-confirm-hint p {
  margin: 0;
}

/* ── AI disclosure ────────────────────── */
.wakeup-ai-disclosure {
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-top: 1rem;
  opacity: 0.7;
}

/* ── Terms acknowledgment ─────────────── */
.wakeup-terms-note {
  font-size: 0.7rem;
  color: var(--faint);
  margin-top: 0.5rem;
}
.wakeup-terms-note a {
  color: var(--muted);
  text-decoration: underline;
}

/* ── Footer links ─────────────────────── */
.wakeup-footer-links {
  display: inline;
  margin-left: 1em;
}
.wakeup-footer-links a {
  color: var(--faint);
  text-decoration: none;
}
.wakeup-footer-links a:hover {
  color: var(--muted);
  text-decoration: underline;
}
.wakeup-footer-sep {
  margin: 0 0.4em;
}

/* ── Legal pages ──────────────────────── */
.wakeup-legal {
  max-width: 38rem;
  margin: 2rem auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.wakeup-legal h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.wakeup-legal h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.wakeup-legal p,
.wakeup-legal ul {
  margin-bottom: 1rem;
}
.wakeup-legal ul {
  padding-left: 1.5rem;
}
.wakeup-legal a {
  color: var(--muted);
  text-decoration: underline;
}