/* ============================================================================
   HOBBYHUB · SITE STYLES  (assets/site.css)
   ----------------------------------------------------------------------------
   One stylesheet for every page. Sections:
     1.  Colors and fonts                        (change the look here)
     2.  Basics                                  (page, links, images)
     3.  Frame lines around the screen
     4.  Page width
     5.  Header
     6.  Headings, text and sections
     7.  Buttons
     8.  Home: hero + Pip
     9.  Home: featured project, tags, phone picture
     10. Home: project cards
     11. Home: about
     12. Project page: logo hero
     13. Project page: feature tiles
     14. Project page: screenshot gallery
     15. Project page: install steps + QR code
     16. Project page: privacy
     17. 404 page
     18. Footer
     19. Reduced motion
     20. Pip clips (Neuro-Box page)
     21. S3 page: device and progress
     22. What's new (changelog)
     23. Devlog: post list and articles
     24. S3-Glucose Display page: screens, setup steps
   ========================================================================== */


/* ----------------------------------------------------------------------------
   1. COLORS AND FONTS
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Bebas Neue";
  src: url("BebasNeue-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --red:      #E3141B;                  /* the Neuro-Box red, used for accents */
  --ink:      #fff;                     /* main text */
  --muted:    rgba(255, 255, 255, .62); /* softer text */
  --faint:    rgba(255, 255, 255, .12); /* thin borders and lines */
  --card:     #0b0b0b;                  /* card backgrounds */
  --bg:       #000;                     /* page background */

  --display:  "Bebas Neue", Impact, "Arial Narrow", sans-serif;   /* big titles */
  --body:     system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* ----------------------------------------------------------------------------
   2. BASICS
   ------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}


/* ----------------------------------------------------------------------------
   3. FRAME LINES AROUND THE SCREEN  (the three red rounded borders)
   ------------------------------------------------------------------------- */
.frame {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.frame i {
  position: absolute;
  border: 1.5px solid var(--red);
  border-radius: 44px;
}

.frame i:nth-child(1) { inset: 8px;  opacity: .55; }
.frame i:nth-child(2) { inset: 18px; opacity: .28; border-radius: 36px; }
.frame i:nth-child(3) { inset: 28px; opacity: .14; border-radius: 28px; }

@media (max-width: 640px) {
  .frame i:nth-child(1) { inset: 5px;  border-radius: 30px; }
  .frame i:nth-child(2) { inset: 12px; border-radius: 24px; }
  .frame i:nth-child(3) { display: none; }
}


/* ----------------------------------------------------------------------------
   4. PAGE WIDTH
   ------------------------------------------------------------------------- */
.wrap {
  width: min(1120px, calc(100% - 72px));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 44px); }
}


/* ----------------------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------------------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(#000 70%, rgba(0, 0, 0, 0));
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 18px;
}

/* Logo + "HOBBYHUB" */
.brand {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 1.5px;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  margin-right: 10px;
}

.brand span {
  color: var(--red);                     /* the red "HUB" */
}

/* Menu links */
nav.links {
  display: flex;
  gap: 26px;
}

nav.links a {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}

nav.links a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .brand       { font-size: 27px; }
  .brand img   { width: 29px; height: 29px; }
  nav.links    { gap: 16px; }
  nav.links a  { font-size: 18px; }
}

/* small phones (iPhone width): keep the logo and menu from overlapping */
@media (max-width: 430px) {
  .brand       { font-size: 23px; flex-shrink: 0; }
  .brand img   { width: 25px; height: 25px; margin-right: 7px; }
  nav.links    { gap: 11px; }
  nav.links a  { font-size: 16px; letter-spacing: .5px; }
}


/* ----------------------------------------------------------------------------
   6. HEADINGS, TEXT AND SECTIONS
   ------------------------------------------------------------------------- */
h1, h2, h3, .display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: .95;
}

/* Small red label above a title, e.g. "FEATURED PROJECT" */
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--red);
}

/* Larger intro paragraph */
.lead {
  max-width: 34em;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
}

/* Space above and below every page section */
section {
  padding: 70px 0;
}

/* Section title row: big title on the left, short text on the right */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(52px, 7vw, 84px);
}

/* Thin divider line between sections */
hr.line {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--faint);
}


/* ----------------------------------------------------------------------------
   7. BUTTONS
   .btn.primary = filled red   ·   .btn.ghost = white outline
   ------------------------------------------------------------------------- */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px 11px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 1.5px;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s, background .2s, box-shadow .2s;
}

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

.btn.primary {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 26px rgba(227, 20, 27, .45);
}

.btn.primary:hover {
  box-shadow: 0 0 40px rgba(227, 20, 27, .7);
}

.btn.ghost:hover {
  background: #fff;
  color: #000;
}


/* ----------------------------------------------------------------------------
   8. HOME: HERO + PIP
   ------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;   /* text on the left, Pip on the right */
  align-items: center;
  gap: 30px;
  padding: 40px 0 70px;
}

.hero h1 {
  font-size: clamp(84px, 15vw, 190px);
}

.hero h1 span {
  color: var(--red);                     /* the red "HUB" */
}

.hero .lead {
  margin: 18px 0 30px;
}

/* Pip's square play area */
.pip-box {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
}

.pip-box canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.pip-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  text-align: center;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--muted);
}

/* Phones and small screens: stack everything, center the buttons, Pip on top */
@media (max-width: 820px) {
  .hero           { grid-template-columns: 1fr; padding: 16px 0 50px; text-align: center; }
  .hero .lead     { margin-left: auto; margin-right: auto; }
  .btns           { justify-content: center; }
  .pip-box        { order: -1; max-width: 300px; }
}


/* ----------------------------------------------------------------------------
   9. HOME: FEATURED PROJECT, TAGS, PHONE PICTURE
   ------------------------------------------------------------------------- */
.feature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .8fr 1.2fr;     /* phone on the left, text on the right */
  align-items: center;
  gap: 50px;
  padding: 44px;
  border: 1.5px solid var(--faint);
  border-radius: 36px;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(227, 20, 27, .16), transparent 60%),
    var(--card);
}

.feature h3 {
  font-size: clamp(56px, 7vw, 92px);
}

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

@media (max-width: 820px) {
  .feature        { grid-template-columns: 1fr; gap: 28px; padding: 28px; text-align: center; }
  .feature .tags,
  .feature .btns  { justify-content: center; }
}

/* Little rounded labels like "LIVE" and "PHONE APP" */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 26px;
}

.tag {
  padding: 6px 12px 4px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.tag.live {
  border-color: var(--red);
  background: rgba(227, 20, 27, .18);
  color: #fff;
}

/* A screenshot dressed up as a slightly tilted phone */
.phone {
  width: min(260px, 72vw);
  margin: 0 auto;
  padding: 10px;
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: 38px;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8), 0 0 60px rgba(227, 20, 27, .18);
  transform: rotate(-3deg);
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  border-radius: 29px;
}


/* ----------------------------------------------------------------------------
   10. HOME: PROJECT CARDS
   .card.soon = dashed "coming soon" card
   ------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  padding: 28px;
  border: 1.5px solid var(--faint);
  border-radius: 28px;
  background: var(--card);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

a.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(227, 20, 27, .22);
}

.card .icon {
  width: 58px;
  height: 58px;
}

.card h3 {
  font-size: 40px;
}

.card p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.card .tags {
  margin: auto 0 0;                      /* pushes the tags to the bottom of the card */
}

.card.soon {
  border-style: dashed;
  opacity: .85;
}


/* ----------------------------------------------------------------------------
   11. HOME: ABOUT
   ------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
}

.about h2 {
  margin-bottom: 14px;
  font-size: clamp(48px, 6vw, 72px);
}

/* The "M" badge */
.about .mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border: 2px solid #fff;
  border-radius: 32px;
  font-family: var(--display);
  font-size: 64px;
}

.about .mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid var(--red);
  border-radius: 22px;
}

@media (max-width: 640px) {
  .about        { grid-template-columns: 1fr; text-align: center; }
  .about .mark  { margin: 0 auto; }
}


/* ----------------------------------------------------------------------------
   12. PROJECT PAGE: LOGO HERO
   ------------------------------------------------------------------------- */
.logo-hero {
  display: grid;
  grid-template-columns: auto 1fr;       /* logo on the left, text on the right */
  align-items: center;
  gap: 44px;
  padding: 30px 0 60px;
}

.logo-hero .nb-logo {
  width: min(300px, 60vw);
  filter: drop-shadow(0 0 30px rgba(227, 20, 27, .35));
}

.logo-hero h1 {
  font-size: clamp(76px, 12vw, 150px);
}

@media (max-width: 820px) {
  .logo-hero       { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .logo-hero .btns { justify-content: center; }
}


/* ----------------------------------------------------------------------------
   13. PROJECT PAGE: FEATURE TILES
   ------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.feat {
  padding: 24px;
  border: 1.5px solid var(--faint);
  border-radius: 24px;
  background: var(--card);
}

.feat h3 {
  margin-bottom: 8px;
  font-size: 32px;
}

.feat h3 b {
  font-weight: 400;
  color: var(--red);                     /* the red word in each tile title */
}

.feat p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}


/* ----------------------------------------------------------------------------
   14. PROJECT PAGE: SCREENSHOT GALLERY  (swipe sideways)
   ------------------------------------------------------------------------- */
.gallery {
  display: flex;
  gap: 18px;
  padding: 10px 4px 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.gallery figure {
  flex: 0 0 auto;
  width: 210px;
  margin: 0;
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  border: 1.5px solid var(--faint);
  border-radius: 24px;
}

.gallery figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--muted);
}


/* ----------------------------------------------------------------------------
   15. PROJECT PAGE: INSTALL STEPS + QR CODE
   ------------------------------------------------------------------------- */
.install {
  display: grid;
  grid-template-columns: 1fr 1fr auto;   /* Android · iPhone · QR code */
  align-items: stretch;
  gap: 22px;
}

.step {
  padding: 26px;
  border: 1.5px solid var(--faint);
  border-radius: 24px;
  background: var(--card);
}

.step h3 {
  margin-bottom: 10px;
  font-size: 34px;
}

.step ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.step li {
  margin: 6px 0;
}

.step b {
  color: #fff;
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  color: #000;
  text-align: center;
}

.qr img {
  width: 170px;
  height: 170px;
  image-rendering: pixelated;            /* keeps the QR squares sharp */
}

.qr span {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 1.5px;
}

@media (max-width: 900px) {
  .install { grid-template-columns: 1fr; }
  .qr      { max-width: 260px; margin: 0 auto; }
}


/* ----------------------------------------------------------------------------
   16. PROJECT PAGE: PRIVACY
   ------------------------------------------------------------------------- */
.privacy {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.privacy div {
  padding: 6px 0 6px 16px;
  border-left: 3px solid var(--red);
  color: var(--muted);
}

.privacy b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
}


/* ----------------------------------------------------------------------------
   17. 404 PAGE
   ------------------------------------------------------------------------- */
.hero.lost {
  grid-template-columns: 1fr;
  min-height: 60vh;
  text-align: center;
}

.hero.lost h1 {
  font-size: clamp(80px, 14vw, 160px);
}

.hero.lost .lead {
  margin: 18px auto 30px;
}

.hero.lost .btns {
  justify-content: center;
}


/* ----------------------------------------------------------------------------
   18. FOOTER
   ------------------------------------------------------------------------- */
footer {
  padding: 60px 0 70px;
  font-size: 15px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--faint);
}

footer .display {
  font-size: 22px;
  color: #fff;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: #fff;
}


/* ----------------------------------------------------------------------------
   19. REDUCED MOTION  (respects the phone's "reduce motion" setting)
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .phone {
    transform: none;
  }
}


/* ----------------------------------------------------------------------------
   20. PIP CLIPS (NEURO-BOX PAGE)  · short looping videos
   ------------------------------------------------------------------------- */
.clips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.clips figure {
  margin: 0;
}

.clips video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  border: 1.5px solid var(--faint);
  border-radius: 28px;
  background: #000;
}

.clips figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1.5px;
}

.clips figcaption span {
  display: block;
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .clips {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
  }
  .clips figure { scroll-snap-align: start; }
}


/* ----------------------------------------------------------------------------
   21. S3 PAGE: DEVICE AND PROGRESS
   ------------------------------------------------------------------------- */
.device-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;        /* device on the left, text on the right */
  align-items: center;
  gap: 40px;
  padding: 20px 0 60px;
}

.device-hero h1 {
  font-size: clamp(76px, 11vw, 140px);
}

.device-hero canvas {
  display: block;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.device-note {
  margin-top: 6px;
  text-align: center;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .device-hero      { grid-template-columns: 1fr; text-align: center; }
  .device-hero .lead { margin-left: auto; margin-right: auto; }
}

/* "Where it's at" progress list */
.progress {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.progress li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 14px;
  padding: 18px 22px;
  border: 1.5px solid var(--faint);
  border-radius: 20px;
  background: var(--card);
  color: var(--muted);
}

.progress li b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
}

/* the round marker: ● done, ◐ in progress, ○ next */
.progress .mark {
  width: 26px;
  height: 26px;
  margin-top: 4px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.progress .done .mark  { background: var(--red); }
.progress .now .mark   { background: linear-gradient(90deg, var(--red) 50%, transparent 50%); }
.progress .now         { border-color: rgba(227, 20, 27, .5); }

/* ----------------------------------------------------------------------------
   22. WHAT'S NEW (CHANGELOG)
   ------------------------------------------------------------------------- */
.changelog {
  display: grid;
  gap: 22px;
  max-width: 820px;
}

.release {
  padding: 28px;
  border: 1.5px solid var(--faint);
  border-radius: 28px;
  background: var(--card);
}

.release header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.release h2 {
  font-size: 40px;
}

.release time {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--red);
}

.release ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.release li {
  margin: 6px 0;
}

.release li b {
  color: #fff;
}


/* ----------------------------------------------------------------------------
   23. DEVLOG: POST LIST AND ARTICLES
   ------------------------------------------------------------------------- */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--faint);
  border-radius: 28px;
  background: var(--card);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.post-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(227, 20, 27, .22);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card div {
  padding: 22px 24px 26px;
}

.post-card time,
.article time {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 1.5px;
  color: var(--red);
}

.post-card h3 {
  margin: 6px 0 8px;
  font-size: 36px;
}

.post-card p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* A single devlog post */
.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 30px 0 40px;
}

.article h1 {
  margin: 8px 0 18px;
  font-size: clamp(60px, 9vw, 104px);
}

.article h2 {
  margin: 44px 0 10px;
  font-size: 44px;
}

.article p,
.article li {
  font-size: 18px;
  color: rgba(255, 255, 255, .82);
}

.article figure {
  margin: 30px 0;
}

.article figure img,
.article figure video {
  width: 100%;
  border: 1.5px solid var(--faint);
  border-radius: 24px;
}

.article figure.tall {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.article figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.article .back {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: var(--muted);
}

.article .back:hover {
  color: #fff;
}


/* ----------------------------------------------------------------------------
   24. S3-GLUCOSE DISPLAY PAGE  · round screens, setup steps
   ------------------------------------------------------------------------- */

/* hero: four round screens that fade into each other */
.screen-cycle {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.screen-cycle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: screen-fade 16s infinite;
}

.screen-cycle img:nth-child(1) { animation-delay: 0s; }
.screen-cycle img:nth-child(2) { animation-delay: 4s; }
.screen-cycle img:nth-child(3) { animation-delay: 8s; }
.screen-cycle img:nth-child(4) { animation-delay: 12s; }

@keyframes screen-fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .screen-cycle img { animation: none; }
  .screen-cycle img:first-child { opacity: 1; }
}

/* grid of round screens with captions */
.rounds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 26px;
}

.rounds figure,
.setup-steps figure {
  margin: 0;
  text-align: center;
}

.rounds img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 1px var(--faint));
}

.rounds figcaption,
.setup-steps figcaption {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1.5px;
}

.rounds figcaption span,
.setup-steps figcaption span {
  display: block;
  max-width: 260px;
  margin: 2px auto 0;
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
}

/* setup: 1 · 2 · 3 */
.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 26px;
}

.setup-steps .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--red);
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
}

.setup-steps img {
  display: block;
  height: auto;
  margin: 0 auto;
}

.setup-steps img.shot-round { width: 100%; max-width: 280px; }
.setup-steps img.shot-phone {
  width: 100%;
  max-width: 220px;
  border: 1.5px solid var(--faint);
  border-radius: 24px;
}

/* small centred line under a section */
.hint-line {
  margin: 22px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* the "not a medical device" box */
.note-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1.5px solid #4a3510;
  border-radius: 16px;
  background: #1d1408;
  color: #e8c58a;
  font-size: 15px;
  line-height: 1.6;
}

.note-box b { color: #ffd28a; }

@media (max-width: 820px) {
  .rounds      { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .setup-steps { grid-template-columns: 1fr; gap: 40px; }
}
