/* ============================================
   SNAPNOTES DEVICE PAGE — STYLESHEET
   Clean, responsive, mobile-first
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  --bg: #fffdf8;
  --ink: #111;
  --subtle: #555;
  --accent: #3f82ff;
  --accent-hover: #2b66d6;
  --radius: 12px;
  
  /* Spacing */
  --section-padding: 5rem 1.5rem;
}

/* ============================================
   2. GLOBAL RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   3. DEVICE HERO
   ============================================ */
.device-hero {
  position: relative;
  height: 82vh;
  min-height: 620px;
  background: url("/images/device.png") center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.device-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 244, 225, 0.28);
  backdrop-filter: blur(0.3px);
  z-index: 1;
}

.device-hero-bg {
  filter: brightness(0.88) contrast(1.15) saturate(1.18);
}

.device-hero h1,
.device-hero p {
  position: relative;
  z-index: 2;
}

.device-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  text-shadow: 0 3px 12px rgba(255, 255, 255, 0.85);
}

.device-hero .tagline {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.7);
  padding: 0 1rem;
}

/* ============================================
   4. SECTIONS
   ============================================ */
section {
  padding: var(--section-padding);
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-align: center;
}

p {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

/* ============================================
   5. TITLE + LOGO SECTION
   ============================================ */
.device-title {
  text-align: center;
  margin-top: 5rem;
  padding: 0 1rem;
}

.device-title img {
  width: 180px;
  max-width: 45vw;
  margin: 0 auto 1.4rem;
}

.device-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #444;
}

/* ============================================
   6. PROTOTYPE IMAGE
   ============================================ */
.device-img {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  margin: 2.5rem auto 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ============================================
   7. THREE-STEP WORKFLOW
   ============================================ */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  flex: 1 1 260px;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.87);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.step h3 {
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ============================================
   8. FEATURES GRID
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.feature h4 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ============================================
   9. CTA BUTTON
   ============================================ */
.cta {
  text-align: center;
  margin-top: 3.5rem;
  padding: 0 1rem;
}

.cta a {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta a:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ============================================
   10. FOOTER
   ============================================ */
footer {
  text-align: center;
  padding: 4rem 1rem;
  color: #777;
  font-size: 0.9rem;
}

/* ============================================
   11. RESPONSIVE — TABLET (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
  .device-hero {
    background-attachment: scroll;
    background-size: 160%;
    background-position: center top;
    height: 68vh;
    min-height: 500px;
  }

  .device-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    padding: 0 1rem;
  }

  .device-hero .tagline {
    font-size: clamp(1rem, 3vw, 1.4rem);
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .device-title {
    margin-top: 3rem;
  }

  .device-title img {
    width: 140px;
  }

  .steps {
    gap: 1.25rem;
  }

  .step {
    flex: 1 1 100%;
    padding: 1.25rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature {
    padding: 1.25rem;
  }
}

/* ============================================
   12. RESPONSIVE — SMALL PHONES (max-width: 600px)
   ============================================ */
@media (max-width: 600px) {
  .device-hero {
    height: 60vh;
    min-height: 400px;
    background-size: 200%;
  }

  .device-hero h1 {
    font-size: 2rem;
  }

  .device-hero .tagline {
    font-size: 1rem;
  }

  section {
    padding: 2.5rem 1rem;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  p {
    font-size: 1rem;
  }

  .device-title {
    margin-top: 2rem;
  }

  .device-title img {
    width: 120px;
  }

  .device-img {
    max-width: 100%;
    border-radius: 8px;
  }

  .step h3 {
    font-size: 1.2rem;
  }

  .feature h4 {
    font-size: 1.15rem;
  }

  .cta {
    margin-top: 2.5rem;
  }

  .cta a {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }

  footer {
    padding: 3rem 1rem;
    font-size: 0.85rem;
  }
}
