/* Color Picker from photos — spoke theme
   Layout system shared across Everyday App spokes; colors from this app's palette. */

:root {
  --ink: #0e1526;
  /* dark hero background */
  --ink-soft: #18213a;
  --paper: #f2f5f8;
  /* alternating section background */
  --white: #ffffff;
  --accent: #3d7be8;
  /* structural accent — blue from app gradient */
  --accent-dark: #2a5cbe;
  --cta: #1fa97a;
  /* CTA accent — green from app gradient */
  --cta-dark: #158a62;
  --text: #222733;
  --text-soft: #5b5b63;
  --text-inverse: #f4f2ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 21, 38, .10);
  --shadow-lift: 0 16px 40px rgba(14, 21, 38, .16);
}

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

html {
  scroll-behavior: smooth
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
}

h1,
h2,
h3 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  line-height: 1.15;
  letter-spacing: -.01em
}

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

a {
  color: var(--accent-dark)
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 21, 38, .92);
  backdrop-filter: blur(10px)
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none
}

.nav-links a {
  color: #c9c9cf;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500
}

.nav-links a:hover {
  color: var(--white)
}

.nav-links a.btn {
  background: var(--cta);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700
}

.nav-links a.btn {
  color: #fff
}

.nav-links a.btn:hover {
  background: var(--cta-dark);
  color: #fff
}

@media(max-width:720px) {
  .nav-links li:not(:last-child) {
    display: none
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--text-inverse);
  overflow: hidden;
  position: relative
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 168, 174, .22), transparent 65%);
  pointer-events: none
}

.hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 0
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px
}

.hero h1 .hl {
  color: var(--accent)
}

.hero .lede {
  color: #c6c6cd;
  font-size: 1.12rem;
  max-width: 34em;
  margin-bottom: 28px
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem
}

.btn-primary {
  background: var(--cta);
  color: #fff
}

.btn-primary:hover {
  background: var(--cta-dark);
  color: #fff
}

.btn-ghost {
  border: 1.5px solid #3a3a41;
  color: var(--text-inverse)
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 18px 0 56px;
  color: #a8a8b0;
  font-size: .88rem
}

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

.trust-row b {
  color: var(--text-inverse);
  font-weight: 600
}

/* laptop mockup — the drawn MacBook from the marketing frames, on a black panel */
.hero-laptop {
  align-self: center;
  justify-self: center;
  width: min(760px, 100%);
  margin-bottom: 48px;
  position: relative;
  background: #000;
  border-radius: 20px;
  padding: 28px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .45))
}

.hero-laptop img {
  width: 100%
}

@media(max-width:860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 52px
  }

  .hero-laptop {
    width: min(440px, 92%)
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0
}

.section.paper {
  background: var(--paper)
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 12px
}

.section-head p {
  color: var(--text-soft)
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 10px
}

/* screenshots row */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  background: var(--ink-soft);
  min-height: 220px
}

.shot:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift)
}

@media(max-width:760px) {
  .shots {
    grid-template-columns: 1fr
  }
}

/* in-action bands */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px
}

.band:last-child {
  margin-bottom: 0
}

.band.rev .band-media {
  order: 2
}

.band-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink-soft);
  min-height: 240px
}

.band-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover
}

.band h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px
}

.band p {
  color: var(--text-soft)
}

@media(max-width:820px) {
  .band {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .band.rev .band-media {
    order: 0
  }
}

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow)
}

.step .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px
}

.step h3 {
  font-size: 1.12rem;
  margin-bottom: 8px
}

.step p {
  color: var(--text-soft);
  font-size: .95rem
}

@media(max-width:760px) {
  .steps {
    grid-template-columns: 1fr
  }
}

/* features grid */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

.feature {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s ease, box-shadow .25s ease
}

.section.paper .feature {
  background: var(--white);
  box-shadow: var(--shadow)
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift)
}

.feature .glyph {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent-dark)
}

.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 6px
}

.feature p {
  color: var(--text-soft);
  font-size: .9rem
}

@media(max-width:960px) {
  .features {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:560px) {
  .features {
    grid-template-columns: 1fr
  }
}

/* guides list */
.guides {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px
}

.guide-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 26px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  border-left: 4px solid var(--accent)
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift)
}

.guide-card h3 {
  color: var(--text);
  font-size: 1.06rem;
  margin-bottom: 6px
}

.guide-card p {
  color: var(--text-soft);
  font-size: .92rem
}

.guide-card .more {
  color: var(--cta-dark);
  font-weight: 700;
  font-size: .88rem
}

@media(max-width:760px) {
  .guides {
    grid-template-columns: 1fr
  }
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto
}

.faq details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 0 24px
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 20px 0;
  list-style: none;
  position: relative;
  padding-right: 34px
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-dark);
  font-weight: 400
}

.faq details[open] summary::after {
  content: "–"
}

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

.faq .a {
  padding: 0 0 20px;
  color: var(--text-soft)
}

.faq .a a {
  color: var(--cta-dark);
  font-weight: 600;
  text-decoration: none
}

.faq .a a:hover {
  text-decoration: underline
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--text-inverse);
  text-align: center;
  padding: 88px 24px
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px
}

.cta-band h2 .hl {
  color: var(--accent)
}

.cta-band p {
  color: #c6c6cd;
  max-width: 34em;
  margin: 0 auto 30px
}

/* footer */
.footer {
  background: #0e0e11;
  color: #9a9aa2;
  padding: 56px 0 40px;
  font-size: .9rem
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px
}

.footer h4 {
  color: #e7e7ea;
  font-size: .95rem;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif
}

.footer ul {
  list-style: none
}

.footer li {
  margin-bottom: 9px
}

.footer a {
  color: #9a9aa2;
  text-decoration: none
}

.footer a:hover {
  color: var(--accent)
}

.footer-bottom {
  border-top: 1px solid #232328;
  padding-top: 22px;
  font-size: .82rem;
  color: #6f6f77
}

@media(max-width:760px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

/* ---------- Guide article pages ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px
}

.article .crumb {
  font-size: .85rem;
  margin-bottom: 22px
}

.article .crumb a {
  color: var(--accent-dark);
  text-decoration: none
}

.article h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px
}

.article .byline {
  color: var(--text-soft);
  font-size: .9rem;
  margin-bottom: 34px
}

.article h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 40px 0 14px
}

.article h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 26px 0 10px
}

.article p,
.article li {
  color: #3a3a41
}

.article ul,
.article ol {
  padding-left: 24px;
  margin: 14px 0
}

.article li {
  margin-bottom: 8px
}

.article .tip {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: .95rem
}

.cta-box {
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: var(--radius);
  padding: 32px 30px;
  margin: 44px 0;
  text-align: center
}

.cta-box h3 {
  margin: 0 0 8px;
  font-size: 1.3rem
}

.cta-box p {
  color: #c6c6cd !important;
  margin-bottom: 18px
}

.related {
  margin-top: 52px;
  border-top: 1px solid #dde4ec;
  padding-top: 28px
}

.related h2 {
  font-size: 1.2rem;
  margin: 0 0 16px
}

.related ul {
  list-style: none;
  padding: 0
}

.related li {
  margin-bottom: 10px
}

.related a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none
}

.related a:hover {
  text-decoration: underline
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px
}

/* ---------- Hero crossfade ---------- */
.hero-laptop img.hero-fade-top {
  position: absolute;
  left: 28px;
  top: 28px;
  width: calc(100% - 56px);
  opacity: 0;
  animation: heroSwap 10s ease-in-out infinite
}
.hero-laptop::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  height: 36px;
  background: #000
}

@keyframes heroSwap {

  0%,
  35% {
    opacity: 0
  }

  50%,
  85% {
    opacity: 1
  }

  100% {
    opacity: 0
  }
}