/* ==========================================================================
   Wakey — usewakey.app
   Design system: 10px spacing base, system-ui only, achromatic chrome,
   color lives ONLY inside product mockups, single 5-layer shadow,
   radii 12/16/20/999.
   ========================================================================== */

:root {
  --text: #000;
  --text-2: rgba(0, 0, 0, 0.55);
  --text-3: rgba(0, 0, 0, 0.7);
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-dark: #05010d;
  --dark-text-2: rgba(255, 255, 255, 0.65);
  --dark-text-3: rgba(255, 255, 255, 0.5);
  --shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 1px 1px 0.5px rgba(0, 0, 0, 0.02),
    0 3px 3px 1.5px rgba(0, 0, 0, 0.02),
    0 6px 6px -3px rgba(0, 0, 0, 0.02),
    0 12px 12px -6px rgba(0, 0, 0, 0.02);
  /* Product-imagery palette — allowed inside mockups only. */
  --ios-blue: #007aff;
  --ios-orange: #ff9500;
  --ios-green: #34c759;
  --ios-red: #ff3b30;
  --ios-gray-fill: #f2f2f7;
  --ios-bezel: #c7c7cc;
  --ios-card: #1c1c1c;
}

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

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

body {
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; }

/* ---------- layout ---------- */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

section { padding: clamp(70px, 11vw, 140px) 0; }

.band-alt { background: var(--bg-alt); }
.band-dark { background: var(--bg-dark); color: #fff; }

/* ---------- type ---------- */

h1 {
  font-size: clamp(40px, 6.4vw, 65px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.04;
}

.h2-display {
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.28px;
  line-height: 1.08;
}

h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.28px;
  line-height: 1.1;
}

h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

.sub {
  font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 600;
  line-height: 1.42;
  color: var(--text-2);
}

.band-dark .sub { color: var(--dark-text-2); }

.body-2 { color: var(--text-2); }
.caption { font-size: 13px; color: var(--text-2); }
.band-dark .caption { color: var(--dark-text-3); }

/* ---------- pill buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  font: 600 17px/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.pill:hover { opacity: 0.82; }
.pill:active { transform: scale(0.98); }

.pill--sm { padding: 11px 22px; font-size: 15px; }
.pill--inverse { background: #fff; color: #000; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 64px;
}

.nav__logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-decoration: none;
  margin-right: 10px;
}

.nav__links {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
}

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

.nav__cta { margin-left: auto; }

@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ---------- hero ---------- */

.hero { padding-top: clamp(50px, 8vw, 100px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero__copy h1 { margin-bottom: 20px; }
.hero__copy .sub { margin-bottom: 40px; max-width: 30ch; }

.hero__cta-note { margin-top: 12px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero__copy { text-align: center; }
  .hero__copy .sub { margin-left: auto; margin-right: auto; }
  .hero__visual { display: flex; justify-content: center; }
}

/* ---------- works-with bar ---------- */

.works-with { padding: 26px 0; }

.works-with p {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.1px;
}

.works-with strong { font-weight: 600; color: var(--text-3); }

/* ---------- problem cards ---------- */

.cards-head { text-align: center; margin-bottom: 60px; }
.cards-head h2 { margin-bottom: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.card svg { display: block; margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--text-2); }

@media (max-width: 780px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- how it works ---------- */

.steps-head { text-align: center; margin-bottom: 60px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--text-2); }

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- feature bands ---------- */

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.feature__copy h2 { margin-bottom: 20px; }
.feature__copy p { font-size: 17px; color: var(--text-2); max-width: 46ch; }
.feature__copy .caption { display: block; margin-top: 20px; }

.band-dark .feature__copy p { color: var(--dark-text-2); }

.feature__visual { display: flex; justify-content: center; }

@media (max-width: 860px) {
  .feature__grid { grid-template-columns: 1fr; gap: 50px; }
  .feature__grid .feature__visual { order: 1; }
  .feature__grid .feature__copy { order: 0; }
}

/* ---------- dark differentiator band ---------- */

.diff__head { max-width: 640px; margin-bottom: 70px; }
.diff__head h2 { margin-bottom: 20px; }
.diff__head p { font-size: 17px; color: var(--dark-text-2); }
.diff__head .caption { display: block; margin-top: 20px; }

/* ---------- FAQ ---------- */

.faq-head { text-align: center; margin-bottom: 50px; }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }

.faq-item {
  background: var(--bg-alt);
  border-radius: 12px;
}

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

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

.faq-item summary svg {
  flex: none;
  transition: transform 0.2s ease;
}

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

.faq-item p {
  padding: 0 24px 20px;
  font-size: 16px;
  color: var(--text-2);
}

/* ---------- final CTA ---------- */

.cta { text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta p {
  font-size: 18px;
  color: var(--dark-text-2);
  max-width: 44ch;
  margin: 0 auto 40px;
}

/* ---------- footer ---------- */

.footer { padding: 40px 0; }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--text-2);
}

.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ==========================================================================
   PRODUCT MOCKUPS — the only place accent color is allowed.
   Drawn in the app's own onboarding-mockup language: light bezel stroke,
   Dynamic Island, flat fills, #1C1C1C alarm card, system blue/orange/green.
   ========================================================================== */

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 205 / 440;
  background: #fff;
  border: 4px solid var(--ios-bezel);
  border-radius: 54px;
  overflow: hidden;
  flex: none;
}

.phone__island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  border-radius: 999px;
  background: #000;
}

/* --- hero: lock screen taken over by a Wakey alarm --- */

.phone-wrap { position: relative; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.phone-wrap--float { animation: float 7s ease-in-out infinite; }

.lockscreen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 62px 18px 30px;
}

/* iOS home indicator */
.lockscreen::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
}

.lockscreen__lock { margin-bottom: 8px; }

.lockscreen__clock {
  font-size: 58px;
  font-weight: 250;
  letter-spacing: -1px;
  line-height: 1;
  color: #000;
  font-variant-numeric: tabular-nums;
}

.lockscreen__date {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 4px;
}

.silent-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 12px 6px 6px;
  background: var(--ios-gray-fill);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.silent-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ios-blue);
}

/* the alarm card — mirrors the app's AlarmMockupView (#1C1C1C, r26) */

.alarm-card {
  position: relative;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  background: var(--ios-card);
  border-radius: 26px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.alarm-card__rings::before,
.alarm-card__rings::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  border: 2px solid rgba(255, 149, 0, 0.45);
  opacity: 0;
  pointer-events: none;
}

@keyframes ringwave {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.13); opacity: 0; }
  100% { transform: scale(1.13); opacity: 0; }
}

.alarm-card__rings::before { animation: ringwave 3.2s ease-out infinite; }
.alarm-card__rings::after { animation: ringwave 3.2s ease-out 1.6s infinite; }

.alarm-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

@keyframes bell-shake {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-11deg); }
  93% { transform: rotate(9deg); }
  96% { transform: rotate(-6deg); }
  98% { transform: rotate(4deg); }
}

.alarm-card__bell { animation: bell-shake 6.4s ease-in-out infinite; transform-origin: 50% 20%; }

.alarm-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.alarm-card__app {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.alarm-card__time {
  font-family: ui-rounded, system-ui, -apple-system, sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.alarm-card__time small { font-size: 26px; font-weight: 700; }

.alarm-card__pills { display: flex; gap: 12px; }

.alarm-pill {
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.alarm-pill--snooze { background: rgba(255, 255, 255, 0.18); color: #fff; }
.alarm-pill--stop { background: var(--ios-orange); color: #000; }

/* --- dark band diagram: event → cloud → ringing phone --- */

.diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.diagram {
  align-items: flex-start;
}

.diagram__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: none;
  max-width: 190px;
}

/* fixed-height art area so all three nodes share one visual center line */
.diagram__art {
  height: 84px;
  display: flex;
  align-items: center;
}

.diagram__link { margin-top: 41px; }

.diagram__label {
  font-size: 13px;
  color: var(--dark-text-3);
  text-align: center;
}

/* event block in the app's calendar-grid idiom (r10, badge) */
.event-block {
  position: relative;
  width: 150px;
  background: var(--ios-blue);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
}

.event-block__title { font-size: 13px; font-weight: 600; line-height: 1.25; }
.event-block__time { font-size: 12px; opacity: 0.85; }

.event-block__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.diagram__link { flex: 1 1 60px; min-width: 40px; height: 2px; position: relative; overflow: visible; }

.diagram__link line {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
  stroke-dasharray: 3 7;
}

@keyframes dashflow { to { stroke-dashoffset: -100; } }

.diagram__link line { animation: dashflow 9s linear infinite; }

.mini-alarm {
  position: relative;
  background: var(--ios-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.mini-alarm__rings::before,
.mini-alarm__rings::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid rgba(255, 149, 0, 0.4);
  opacity: 0;
  pointer-events: none;
}

.mini-alarm__rings::before { animation: ringwave 3.2s ease-out infinite; }
.mini-alarm__rings::after { animation: ringwave 3.2s ease-out 1.6s infinite; }

.mini-alarm__title { font-size: 12px; font-weight: 600; }
.mini-alarm__time {
  font-family: ui-rounded, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .diagram { flex-direction: column; align-items: center; gap: 0; }
  .diagram__art { height: auto; }
  .diagram__link {
    flex: none;
    width: 44px;
    height: 2px;
    margin: 26px 0;
    transform: rotate(90deg);
  }
}

/* --- voice sheet mockup --- */

.phone--sheet { background: #e5e5ea; }

.sheet-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 15%;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 8px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sheet__grabber {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: #d1d1d6;
  margin-bottom: 10px;
}

.sheet__nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 6px;
}

.sheet__cancel { font-size: 14px; color: var(--ios-blue); justify-self: start; }
.sheet__title { font-size: 14px; font-weight: 600; }

.sheet__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.sheet__alarm-title { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; }
.sheet__alarm-date { font-size: 15px; color: rgba(0, 0, 0, 0.75); }

.sheet__heard {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  max-width: 21ch;
  margin-top: 6px;
}

.sheet__buttons { display: flex; gap: 10px; margin-top: 16px; }

.ios-btn {
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.ios-btn--bordered { background: rgba(0, 122, 255, 0.13); color: var(--ios-blue); }
.ios-btn--prominent { background: var(--ios-blue); color: #fff; }

/* --- calendars list mockup --- */

.cal-list {
  width: min(340px, 100%);
  background: var(--ios-gray-fill);
  border-radius: 20px;
  padding: 22px 16px;
  box-shadow: var(--shadow);
}

.cal-list__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  padding: 0 8px 12px;
}

.cal-list__section {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 14px 8px 6px;
}

.cal-group {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.cal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.cal-row + .cal-row { border-top: 0.5px solid rgba(0, 0, 0, 0.08); }

.cal-row__dot { width: 12px; height: 12px; border-radius: 999px; flex: none; }

.cal-row__name { font-size: 15px; font-weight: 500; }
.cal-row__sub { font-size: 12px; color: rgba(0, 0, 0, 0.5); }

.cal-row__main {
  font-size: 10px;
  font-weight: 600;
  color: var(--ios-blue);
  background: rgba(0, 122, 255, 0.15);
  border-radius: 999px;
  padding: 2px 7px;
}

.cal-row__spacer { flex: 1; }

.cal-row__chevron { color: rgba(0, 0, 0, 0.3); }

.ios-switch {
  width: 44px;
  height: 27px;
  border-radius: 999px;
  background: #e9e9ea;
  position: relative;
  flex: none;
}

.ios-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ios-switch--on { background: var(--ios-green); }
.ios-switch--on::after { left: auto; right: 2px; }

.cal-list__footer {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  padding: 8px 8px 0;
}

/* ==========================================================================
   Waitlist modal
   ========================================================================== */

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }

.modal__card {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal__card { animation: modal-in 0.22s ease-out; }

.modal__x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-2);
  cursor: pointer;
  font-size: 16px;
}

.modal__x:hover { color: var(--text); }

.modal__card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; }
.modal__card > p { font-size: 16px; color: var(--text-2); margin-bottom: 26px; }

.modal__form { display: flex; flex-direction: column; gap: 12px; }

.modal__input {
  width: 100%;
  padding: 15px 18px;
  font: 400 16px/1.2 system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  outline: none;
}

.modal__input:focus { border-color: rgba(0, 0, 0, 0.45); }

.modal__error { font-size: 14px; color: var(--text-3); }
.modal__error[hidden] { display: none; }

.modal__consent { margin-top: 6px; }
.modal__consent a { color: var(--text-2); }

.modal__success h4 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.modal__success p { font-size: 16px; color: var(--text-2); }
.modal__success[hidden] { display: none; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Reduced motion: disable ALL animation.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
