/* =========================================================================
   HardWake Alarm - Landing page styles
   Fresh Morning palette - bright, clean, mobile-first
   ========================================================================= */

/* ---- Design tokens ---- */
:root {
  /* Brand palette (exact) */
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --primary: #FF6B35;
  --secondary: #2563EB;
  --accent: #22C55E;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;

  /* Derived tints / states */
  --primary-strong: #F2591E;
  --primary-soft: #FFF1EA;
  --secondary-soft: #EAF1FE;
  --accent-soft: #E7F9EE;
  --surface-2: #FBFDFE;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .05);
  --shadow-md: 0 12px 32px -14px rgba(17, 24, 39, .20);
  --shadow-lg: 0 28px 64px -24px rgba(17, 24, 39, .26);
  --shadow-primary: 0 14px 30px -12px rgba(255, 107, 53, .55);

  /* Radii */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1140px;
  --gutter: 20px;

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 64px;
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 18px;
}

.eyebrow.is-blue {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.eyebrow.is-green {
  background: var(--accent-soft);
  color: #15803D;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.8px;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.2px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
}

.muted {
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease,
    border-color .2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(255, 107, 53, .65);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: #cdd5df;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img {
  height: 36px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}

.nav-links a:hover {
  color: var(--primary-strong);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 20px;
}

.mobile-menu a {
  color: var(--text);
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
  background: var(--bg);
}

.mobile-menu .btn {
  margin-top: 8px;
}

/* ---- Hero ---- */
.hero {
  padding-block: 48px 56px;
  background:
    radial-gradient(120% 80% at 100% -10%, var(--primary-soft) 0%, transparent 55%),
    radial-gradient(90% 70% at -10% 10%, var(--secondary-soft) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero .lead {
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---- Phone mockup ---- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 280px;
  max-width: 78vw;
  aspect-ratio: 9 / 19;
  background: #fff;
  border-radius: 44px;
  border: 10px solid #111827;
  box-shadow: var(--shadow-lg);
  padding: 18px 16px;
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #111827;
  border-radius: var(--radius-pill);
}

.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #FFF7F3, #FFFFFF 45%);
  padding: 40px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.phone-time {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 10px;
}

.phone-sub {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  margin-top: 2px;
}

.ring {
  margin: 18px 0 14px;
}

.ring text {
  font-weight: 800;
}

.phone-task {
  font-weight: 700;
  font-size: .95rem;
}

.phone-proof {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: #15803D;
  font-weight: 700;
  font-size: .82rem;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  width: 100%;
  justify-content: center;
}

.phone-proof svg {
  width: 16px;
  height: 16px;
}

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}

.card.is-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.icon-badge.is-orange {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.icon-badge.is-blue {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.icon-badge.is-green {
  background: var(--accent-soft);
  color: #15803D;
}

.card p {
  color: var(--muted);
  margin-top: 8px;
}

/* ---- Problem section ---- */
.problem {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.problem-points {
  display: grid;
  gap: 14px;
}

.problem-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.problem-points svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-top: 2px;
}

.problem-points b {
  color: var(--text);
}

/* ---- Steps ---- */
.steps {
  counter-reset: step;
}

.step .step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 14px;
}

.step.is-final .step-num {
  background: var(--accent);
}

/* ---- Missions ---- */
.mission .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.tag.easy {
  background: var(--accent-soft);
  color: #15803D;
}

.tag.medium {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.tag.hard {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.safety-note {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
  font-size: .9rem;
}

.safety-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
}

/* ---- Reliability ---- */
.reliability {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.reliability-grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

.checklist {
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
}

.checklist .check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: #15803D;
}

.checklist .check svg {
  width: 16px;
  height: 16px;
}

.note-card {
  background: var(--secondary-soft);
  border: 1px solid #cfe0fb;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: #1e3a8a;
  font-weight: 600;
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.plan.is-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.plan h3 {
  font-size: 1.3rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 4px;
}

.plan-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.plan-price .per {
  color: var(--muted);
  font-weight: 600;
}

.plan-meta {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 20px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
}

.feature-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.feature-list .yes {
  color: var(--accent);
}

.feature-list .soon {
  color: var(--secondary);
}

.feature-list .soon-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  background: var(--secondary-soft);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform .2s ease;
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item .answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

/* ---- Final CTA ---- */
.final-cta {
  padding-block: 72px;
}

.cta-card {
  background: linear-gradient(135deg, #FF7A45, var(--primary-strong));
  border-radius: 32px;
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  color: #fff;
  max-width: 620px;
  margin-inline: auto;
}

.cta-card p {
  color: rgba(255, 255, 255, .92);
  margin: 14px auto 26px;
  max-width: 520px;
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 480px;
  margin-inline: auto;
}

.waitlist input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.waitlist input:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .6);
}

.waitlist .btn {
  background: #fff;
  color: var(--primary-strong);
  flex: 0 0 auto;
}

.waitlist .btn:hover {
  transform: translateY(-2px);
}

.form-note {
  margin-top: 14px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .85);
}

.form-success {
  font-weight: 700;
  background: rgba(255, 255, 255, .18);
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 36px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-grid img {
  height: 34px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ---- Legal pages ---- */
.legal-main {
  background: var(--bg);
}

.legal-hero {
  padding-block: 56px 24px;
  background:
    radial-gradient(120% 80% at 100% -20%, var(--primary-soft) 0%, transparent 55%),
    radial-gradient(90% 70% at -10% 20%, var(--secondary-soft) 0%, transparent 48%);
}

.legal-hero h1 {
  margin-bottom: 12px;
}

.legal-content {
  max-width: 860px;
  display: grid;
  gap: 18px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.legal-card p + p {
  margin-top: 12px;
}

.support-card {
  border-color: rgba(255, 107, 53, .35);
}

/* ---- Reveal-on-scroll (progressive enhancement) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   Responsive - tablet & up
   ========================================================================= */
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .section {
    padding-block: 88px;
  }

  .hero {
    padding-block: 72px 88px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr .95fr;
  }

  .hero .lead {
    font-size: 1.2rem;
  }

  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .reliability-grid {
    grid-template-columns: 1.1fr .9fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (min-width: 1040px) {
  .phone {
    width: 310px;
  }
}
