/* EaseWake — Landing Page v2 (Refinement Pass: modern/flat)
 * Theme tokens identical to in-app design system (warm amber, warm-black, off-white)
 * Type stack: SF Pro Rounded for display, SF Pro for body
 */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Theme tokens ---------- */
:root {
  --warm-black: #0A0908;
  --warm-coal:  #16110D;
  --warm-coal-2:#1F1814;

  --amber:      #E8A547;
  --amber-dim:  #C89456;
  --amber-warm: #D89547;
  --amber-fire: #FFB84D;

  --off-white:  #F5F1EA;
  --text-2:     rgba(245, 241, 234, 0.72);
  --text-3:     rgba(245, 241, 234, 0.50);
  --text-4:     rgba(245, 241, 234, 0.35);
  --border:     rgba(245, 241, 234, 0.06);
  --border-2:   rgba(245, 241, 234, 0.12);

  --section-pad-y: 112px;
  --container-w: 1120px;
  --container-pad: 24px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background: var(--warm-black);
  color: var(--off-white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 24px;
  color: var(--off-white);
}

h1 { font-size: clamp(40px, 7.2vw, 72px); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.8vw, 48px); font-weight: 300; letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 3vw, 26px); font-weight: 400; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 500; letter-spacing: 0; }

p { margin: 0 0 16px; color: var(--text-2); }
p.lead { font-size: 20px; font-weight: 380; color: var(--off-white); line-height: 1.45; }

/* Section eyebrow: subtler than 2018-style awwwards-pattern.
   Not loud amber-uppercase; small monochrome whisper above section title. */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
  margin-bottom: 16px;
}

.mono-num { font-feature-settings: "tnum" 1; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
section { padding: var(--section-pad-y) 0; }

.section-center { text-align: center; }
.section-narrow { max-width: 720px; margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.nav-brand .dot {
  color: var(--amber);
  margin-left: 1px;
}
.nav-links { display: none; gap: 32px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--off-white); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
/* Soften nav→hero hard-cut with a very subtle gradient mask */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.55), transparent);
  pointer-events: none;
  z-index: 1;
}
/* Atmospheric amber backdrop, very subtle */
.hero::after {
  content: "";
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 700px;
  background: radial-gradient(closest-side, rgba(232, 165, 71, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.hero-headline {
  margin: 0 0 28px;
  font-weight: 300;
}
.hero-sub {
  font-size: 19px;
  font-weight: 380;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 0 36px;
  letter-spacing: -0.005em;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0;
}
.hero-trust span {
  display: inline-block;
}

/* ---------- Store badge (flat, no border) ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: var(--off-white);
  padding: 12px 22px 12px 18px;
  border-radius: 12px;
  min-height: 56px;
  transition: transform 160ms ease, background 160ms ease;
}
.store-badge:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}
.store-badge .glyph {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--off-white);
}
.store-badge .stack {
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.store-badge .stack .small {
  font-size: 11px;
  color: rgba(245, 241, 234, 0.7);
  letter-spacing: 0.04em;
}
.store-badge .stack .big {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.store-badge--lg { padding: 16px 28px 16px 22px; min-height: 64px; }
.store-badge--lg .glyph { width: 30px; height: 30px; }
.store-badge--lg .stack .big { font-size: 22px; }

/* ---------- iPhone mockup — flat, frameless ---------- */
.device {
  position: relative;
  width: 280px;
  margin: 0 auto;
}
/* Soft amber radial backdrop behind screenshot */
.device::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130%; height: 110%;
  background: radial-gradient(closest-side, rgba(232, 165, 71, 0.18), transparent 65%);
  z-index: 0;
  pointer-events: none;
  filter: blur(20px);
}
.device-screen {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 20px 40px -20px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(245, 241, 234, 0.06);
}
.device-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Personas ---------- */
.personas { background: var(--warm-black); }
.personas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
.persona-card {
  padding: 4px 0;
}
.persona-card .marker {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 0 14px rgba(232, 165, 71, 0.55);
}
.persona-card p {
  color: var(--off-white);
  font-size: 17px;
  margin: 0;
  line-height: 1.5;
  font-weight: 380;
}

.research-quote {
  margin-top: 72px;
  padding: 0;
  text-align: center;
}
.research-quote .pull {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--off-white);
  margin: 0 auto 16px;
  letter-spacing: -0.015em;
  max-width: 720px;
}
.research-quote .src {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: 0;
}
.research-quote .src a {
  color: var(--text-2);
  border-bottom: 1px solid rgba(245, 241, 234, 0.18);
  transition: color 160ms ease, border-color 160ms ease;
}
.research-quote .src a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ---------- Concept ---------- */
.concept { background: var(--warm-black); }
.concept p { font-size: 18px; line-height: 1.6; }
.concept-block {
  margin: 56px auto 0;
  max-width: 760px;
}
.chain-viz {
  margin: 48px auto 0;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 760 / 200;
}
.chain-viz svg { width: 100%; height: 100%; }

/* Snooze-Statement — frei stehend, kein Border, größere Type */
.snooze-statement {
  margin: 72px auto;
  max-width: 760px;
  padding: 0;
  text-align: center;
}
.snooze-statement .pull {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--off-white);
  margin: 0;
}
.snooze-statement .by {
  color: var(--amber);
  font-weight: 400;
}

/* ---------- 3 Pillars ---------- */
.pillars { background: var(--warm-black); }
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: 64px;
}
.pillar {
  padding: 0;
}
.pillar .icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(232, 165, 71, 0.10);
  color: var(--amber);
  margin-bottom: 20px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { font-size: 16px; line-height: 1.55; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { background: var(--warm-black); }

/* Mobile: horizontal snap-scroll carousel */
.gallery-grid {
  display: flex;
  gap: 24px;
  margin: 64px -24px 0;
  padding: 8px 24px 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
  text-align: center;
}
.gallery-item .device { width: 240px; }
.gallery-item .caption {
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--text-3);
  font-weight: 400;
}

/* ---------- Solo / Made in Austria (akzent-warm-coal) ---------- */
.solo { background: var(--warm-coal); }
.solo-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.solo p { font-size: 18px; line-height: 1.6; }
.solo .flag {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--amber);
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq { background: var(--warm-black); }
.faq-list {
  margin-top: 48px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  border-top: 1px solid var(--border-2);
  padding: 0;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--border-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--off-white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev {
  width: 18px; height: 18px;
  color: var(--text-3);
  transition: transform 220ms ease, color 220ms ease;
  flex-shrink: 0;
}
.faq-item[open] .chev { transform: rotate(180deg); color: var(--amber); }
.faq-item .answer {
  padding: 0 0 24px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- Final CTA ---------- */
.cta-final {
  background: var(--warm-black);
  text-align: center;
  padding: 144px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(closest-side, rgba(232, 165, 71, 0.10), transparent 70%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 {
  margin-bottom: 20px;
  font-size: clamp(40px, 6.4vw, 64px);
  letter-spacing: -0.03em;
}
.cta-final .cta-sub {
  font-size: 16px;
  color: var(--text-3);
  margin: 0 0 40px;
  letter-spacing: 0;
}

/* ---------- Press (placeholder) — same bg, just minor type ---------- */
.press {
  background: var(--warm-black);
  padding-top: 32px;
  padding-bottom: 48px;
  text-align: center;
}
.press-inner {
  max-width: 720px;
  margin: 0 auto;
}
.press .eyebrow {
  font-size: 12px;
  color: var(--text-4);
  margin-bottom: 10px;
}
.press p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}
.press a { color: var(--amber); }
.press a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  background: var(--warm-coal);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 160ms ease;
}
.footer-col a:hover { color: var(--off-white); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.footer-meta {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
}
.footer-meta .brand {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--off-white);
}
.footer-meta .specs {
  font-size: 12px;
  color: var(--text-3);
}
.footer-rights {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.footer-rights .sep { opacity: 0.5; }

/* ---------- Tablet / Desktop breakpoints ---------- */
@media (min-width: 640px) {
  :root { --section-pad-y: 128px; }
  .nav-links { display: flex; }
  .personas-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  :root { --section-pad-y: 144px; }
  .hero {
    padding-top: 120px;
    padding-bottom: 120px;
  }
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
  .device { width: 320px; }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin: 64px 0 0;
    padding: 0;
    overflow: visible;
  }
  .gallery-item { width: auto; }
  .gallery-item .device { width: 100%; max-width: 200px; }
}

@media (min-width: 1100px) {
  .device { width: 360px; }
  .gallery-item .device { max-width: 220px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Small-screen polish (375px and below) ---------- */
@media (max-width: 480px) {
  .faq-item summary {
    gap: 16px;
    font-size: 17px;
  }
  .hero-headline { font-size: clamp(40px, 12vw, 52px); }
  .hero { padding-bottom: 56px; }
  /* CTA bleibt natural-width — moderner Apple-Pattern */

  /* Trust-Block: 2x2-Grid auf small mobile statt unsauberem 3+1-Wrap */
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    font-size: 12.5px;
    max-width: 320px;
  }
}
