/* JeeMobility site styles. Phone first; wider screens handled at the bottom. */
:root {
  --white: #ffffff;
  --black: #111111;
  --grey: #eef0f2;      /* light brand grey: section backgrounds, table stripes */
  --grey-mid: #d9dcdf;  /* borders, placeholders */
  --text-soft: #5b6066;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top bar: stays on screen, one tap switches brace */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.topbar .logo img { height: 26px; width: auto; }
.switch { display: flex; gap: 6px; background: var(--grey); padding: 4px; border-radius: 999px; }
.switch a {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 8px 14px; border-radius: 999px; color: var(--black);
  min-height: 36px; display: flex; align-items: center;
}
.switch a.active { background: var(--black); color: var(--white); }

/* Sections */
section { padding: 36px 0; }
section.grey { background: var(--grey); }
.lead { color: var(--text-soft); font-size: 1.05rem; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block; text-align: center; text-decoration: none; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; background: var(--black); color: var(--white);
  width: 100%;
}
.btn.soon { background: var(--grey-mid); color: var(--text-soft); cursor: default; }

/* Placeholders (photos and video are added later) */
.ph {
  background: var(--grey); border: 2px dashed var(--grey-mid); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--text-soft); font-weight: 600; font-size: 0.9rem; padding: 12px;
}
.grey .ph { background: var(--white); }
.ph.photo { aspect-ratio: 1 / 1; }
.ph.video { aspect-ratio: 16 / 9; }

/* Photo strip: swipe sideways on a phone */
.gallery {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-bottom: 20px; -webkit-overflow-scrolling: touch;
}
.gallery > * { flex: 0 0 82%; scroll-snap-align: center; }

/* Home page product cards */
.cards { display: grid; gap: 20px; align-items: start; }
.card {
  display: block; text-decoration: none; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--grey-mid); aspect-ratio: 4 / 3; }
.card .body { padding: 20px; }
.card .more { font-weight: 700; }

/* Size tables */
.table-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 13px 16px; }
thead th { background: var(--black); color: var(--white); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--grey); }
.note { font-size: 0.88rem; color: var(--text-soft); }

/* Lists */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { background: var(--grey); border-radius: 14px; padding: 14px 16px; }
.grey .list li { background: var(--white); }
.list strong { display: block; }
ol.steps { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; }

footer { background: var(--black); color: var(--white); padding: 28px 0; font-size: 0.85rem; }
footer p { margin: 0 0 6px; color: #c9cdd1; }

/* Laptop and tablet */
@media (min-width: 720px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 56px 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .gallery > * { flex-basis: 70%; }
  .btn { width: auto; }
  .list { grid-template-columns: 1fr 1fr; }
}

/* Real product photos */
.gallery { align-items: flex-start; }
.gallery img.photo { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: contain; width: 100%; }
.gallery > :only-child { flex-basis: 100%; }
.card .card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); border-bottom: 1px solid var(--grey-mid); }

/* JM-01: four variation tiles (size + foot), each links to its own Amazon listing */
.pick { font-size: 1.05rem; margin: 20px 0 12px; }
.variants { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.variant {
  display: block; text-decoration: none; background: #efefef; border-radius: 14px; overflow: hidden;
  border: 2px solid transparent; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.variant:hover, .variant:focus-visible { border-color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow); }
.variant img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.v-label { display: block; background: var(--black); color: var(--white); padding: 8px 12px; font-size: 0.85rem; line-height: 1.3; }
.v-label strong { display: block; font-size: 1rem; }

/* JM-01 top: title across the top, then main image (left) and variations (right) */
.hero-head .lead { max-width: 720px; }
.pick { margin-top: 0; }
@media (min-width: 720px) {
  .hero { align-items: start; }
  .hero .gallery { margin-bottom: 0; }
  .variant img { aspect-ratio: 5 / 4; }
}

/* JM-01 sizing guide: heel width + shoe size chart on the left, space on the right */
.size-grid { display: grid; gap: 24px; margin-bottom: 8px; }
.step { font-size: 1.05rem; margin: 20px 0 4px; }
.step:first-child { margin-top: 0; }
table.heel th, table.heel td { text-align: center; width: 50%; }
table.sz { font-size: 0.9rem; }
table.sz th, table.sz td { padding: 10px 10px; text-align: center; }
tr.warn td:last-child { font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label {
  flex: 1; text-align: center; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  padding: 10px 12px; border-radius: 999px; background: var(--white); border: 2px solid var(--grey-mid);
}
.tabs input:checked + label { background: var(--black); color: var(--white); border-color: var(--black); }
.tabs input:focus-visible + label { outline: 2px solid var(--black); outline-offset: 2px; }
.tabs .table-box { display: none; flex-basis: 100%; margin: 4px 0 0; }
#sz-s:checked ~ .tab-s, #sz-l:checked ~ .tab-l { display: block; }
.size-side { min-height: 240px; }
@media (min-width: 720px) {
  .size-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Size chart tabs: look like folder tabs joined to the table, so it is clear they can be tapped */
.tabs { gap: 0 6px; }
.tabs label {
  border-radius: 14px 14px 0 0; border-bottom: 0; padding: 12px 10px 10px;
  color: var(--text-soft); box-shadow: inset 0 -6px 8px -6px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, color 0.15s ease;
}
.tabs label::after { content: "Tap to view"; display: block; font-size: 0.72rem; font-weight: 600; text-decoration: underline; }
.tabs input:checked + label { box-shadow: none; }
.tabs input:checked + label::after { content: "Showing now"; text-decoration: none; opacity: 0.75; }
.tabs label:hover { color: var(--black); border-color: var(--black); }
.tabs input:checked + label:hover { color: var(--white); }
.tabs .table-box { margin-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.switch-link { text-decoration: underline; cursor: pointer; }
.tabs .switch-link, .tabs .switch-link:hover { all: unset; text-decoration: underline; cursor: pointer; }
.tabs .switch-link::after { content: none; }

/* JM-01 cut-to-fit column (right of the size chart) */
.cut-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cut-photos img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 14px; }
.cut-steps { list-style: none; counter-reset: cut; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.cut-steps li {
  counter-increment: cut; position: relative; background: var(--white); border-radius: 14px;
  padding: 12px 14px 12px 56px; font-size: 0.92rem; color: var(--text-soft);
}
.cut-steps li::before {
  content: counter(cut); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.cut-steps strong { display: block; color: var(--black); font-size: 1rem; }
.cut-diagram { padding: 12px; margin-bottom: 12px; }
.cut-diagram img { width: 100%; }
/* Show only the diagram for the size tab that is selected (both show in very old browsers) */
.size-grid:has(#sz-s:checked) .cut-l, .size-grid:has(#sz-l:checked) .cut-s { display: none; }

/* Cut lines: picture with numbered markers + the same numbers as large text */
.cut-lines { padding: 16px; margin-bottom: 12px; }
.cut-lines h4 { margin: 0 0 12px; font-size: 1rem; }
.cut-lines-grid { display: grid; grid-template-columns: 42% 1fr; gap: 16px; align-items: start; }
.cut-fig { position: relative; margin-top: 8px; }
.cut-fig img { width: 100%; border-radius: 12px; }
.mark, .cut-list .num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex: none;
}
.mark { position: absolute; right: 4px; transform: translateY(-50%); box-shadow: 0 0 0 2px var(--white); }
.cut-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cut-list li { display: flex; align-items: center; gap: 10px; background: var(--grey); border-radius: 10px; padding: 9px 10px; font-size: 0.95rem; }
.cut-list strong { font-size: 1.1rem; }

/* Cut lines, simpler: each dashed line ends in its own measurement label */
.cut-fig { margin-top: 12px; }
.cut-fig img { width: 44%; }
.cut-label { position: absolute; left: calc(44% + 8px); transform: translateY(-50%); white-space: nowrap; font-size: 0.95rem; line-height: 1.2; }
.cut-label strong { font-size: 1.1rem; }

.nocut { font-size: 0.72rem; font-weight: 700; background: var(--black); color: var(--white); padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
@media (max-width: 430px) {
  .nc-long { display: none; }
  .cut-label { font-size: 0.85rem; }
  .cut-label strong { font-size: 1rem; }
}

/* Heel width table: divider between the Small and Large columns */
table.heel td + td { border-left: 2px solid var(--grey-mid); }
table.heel th + th { border-left: 2px solid rgba(255, 255, 255, 0.35); }
table.heel .hw { display: block; font-size: 0.8rem; color: var(--text-soft); }

/* Variation label on one line: "Small - Left Foot" */
.v-label { font-weight: 700; font-size: 0.95rem; white-space: nowrap; text-align: center; padding: 10px 6px; }
@media (max-width: 400px) { .v-label { font-size: 0.85rem; } }

/* JM-01 photo carousel: one photo at a time, auto-slides every 5 seconds (assets/carousel.js) */
.carousel { gap: 0; padding-bottom: 0; margin-bottom: 0; scrollbar-width: none; border-radius: var(--radius); }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 100%; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 20px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--grey-mid); cursor: pointer; transition: background 0.2s ease, width 0.2s ease; }
.dot.on { background: var(--black); width: 26px; border-radius: 999px; }
@media (min-width: 720px) { .carousel > * { flex-basis: 100%; } .dots { margin-bottom: 0; } }

/* Features slide: captions are real text placed on top of the picture, sized relative to the picture */
.slide { position: relative; container-type: inline-size; }
.slide img.photo { width: 100%; }
.cap { position: absolute; text-align: center; font-weight: 800; line-height: 1.15; font-size: 3.4vw; font-size: 3.3cqw; color: var(--black); }

/* Variation tiles: the Large brace fills the tile; the Small brace is drawn smaller, standing on the same line */
.variant img[src$="sl.jpg"], .variant img[src$="sr.jpg"] { transform: scale(0.9); transform-origin: 50% 90%; }

/* JM-01 "easy to wear" strip: 5 steps in one row; on phones it swipes sideways */
.wear { list-style: none; padding: 0 0 8px; margin: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.wear li { flex: 0 0 40%; scroll-snap-align: start; position: relative; text-align: center; }
.wear img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.wear strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.wn { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--black); color: var(--white); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 720px) {
  .wear { overflow: visible; gap: 20px; padding-bottom: 0; }
  .wear li { flex: 1 1 0; }
  .wear strong { font-size: 1.05rem; }
}

/* "Choose your brace" heading: centred over the tiles and larger */
.pick { text-align: center; font-size: 1.5rem; margin-bottom: 14px; }
@media (min-width: 720px) { .pick { font-size: 1.8rem; } }

/* Home page product cards: same lift-on-hover as the brace tiles */
.card { border: 2px solid transparent; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.card:hover, .card:focus-visible { border-color: var(--black); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14); }

/* Back button at the top of the product pages */
.back {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 0.9rem;
  padding: 9px 16px; margin-bottom: 20px; border-radius: 999px; background: var(--grey); border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.back:hover, .back:focus-visible { border-color: var(--black); transform: translateX(-2px); }
.hero-head .tag { display: block; }

/* Back button, compact: small link tucked into the top-left corner under the top bar */
.back { display: flex; width: fit-content; background: none; border: 0; padding: 4px 0; margin: -22px 0 8px; font-size: 0.85rem; color: var(--text-soft); border-radius: 0; }
.back:hover, .back:focus-visible { color: var(--black); text-decoration: underline; }
@media (min-width: 720px) { .back { margin: -40px 0 12px; } }

/* Home page: a how-to-wear video spot above each product card */
.prod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
.vid { flex-direction: column; gap: 10px; }
.play { width: 54px; height: 54px; border-radius: 50%; background: var(--black); position: relative; }
.play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 17px solid var(--white); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }

/* Home page: tighter gap between the intro and the products, and a smaller video spot */
section.intro { padding-bottom: 20px; }
section.products { padding-top: 24px; }
.vid { width: 100%; max-width: 400px; margin: 0 auto; }
.vid .play { width: 44px; height: 44px; }
.vid .play::after { left: 17px; top: 13px; border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }

.intro .lead { max-width: 720px; }
.intro .lead strong { color: var(--black); }

/* Contact section (bottom of every page) and the Contact button in the home page top bar */
.contact { text-align: center; border-top: 1px solid var(--grey-mid); }
.contact .lead { max-width: 520px; margin-left: auto; margin-right: auto; }
.contact .btn { width: auto; max-width: 100%; overflow-wrap: anywhere; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.contact .btn:hover, .contact .btn:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.nav-contact { text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; background: var(--black); color: var(--white); transition: transform 0.15s ease; }
.nav-contact:hover, .nav-contact:focus-visible { transform: translateY(-1px); }

/* Contact section: social media placeholders (become links once the accounts exist) */
.follow { margin: 32px 0 12px; font-size: 1.05rem; }
.socials { list-style: none; padding: 0; margin: 0 auto 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.socials li { border: 2px dashed var(--grey-mid); border-radius: 14px; padding: 10px 16px; min-width: 128px; background: var(--grey); }
.socials strong { display: block; font-size: 0.95rem; }
.socials span { font-size: 0.85rem; color: var(--text-soft); }

/* Social placeholders: platform icon instead of its name */
.socials li { min-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 14px; }
.socials img { width: 28px; height: 28px; }

/* Home page: section headings ("How to wear") and product card titles */
.sec-title { margin-bottom: 20px; }
.card-title { font-size: 1.35rem; }
@media (min-width: 720px) { .card-title { font-size: 1.6rem; } }
section.howto { border-top: 1px solid var(--grey-mid); }
/* Home page: "Watch how to wear it" button above each product card; jumps down to that product's video */
.watch { justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 12px; border-radius: 999px; background: var(--black); color: var(--white); font-weight: 600; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.watch:hover, .watch:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.watch .play { width: 26px; height: 26px; background: var(--white); flex: none; }
.watch .play::after { left: 10px; top: 7px; border-left: 9px solid var(--black); border-top-width: 6px; border-bottom-width: 6px; }
.vid { scroll-margin-top: 150px; }
/* Home page product cards: a real button so it is obvious the card can be clicked or tapped */
.card .cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 12px 22px; border-radius: 999px; background: var(--black); color: var(--white); font-weight: 700; }
.card .cta .arr { transition: transform 0.15s ease; }
.card:hover .cta .arr, .card:focus-visible .cta .arr { transform: translateX(4px); }
.sec-title.centre { text-align: center; }
/* Home page: infinity mark in the top bar; intro with the full logo on the left and the slogan on the right */
.topbar .logo.logo-mark img { height: 32px; }
.intro-grid { display: grid; gap: 24px; align-items: center; }
.intro-logo { width: 100%; max-width: 260px; }
@media (min-width: 720px) {
  .intro-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; }
  .intro-logo { max-width: 420px; justify-self: center; }
}
/* Home intro: even space above and below now that the small label is gone */
section.intro { padding: 28px 0; }
.intro .lead { margin-bottom: 0; }
@media (min-width: 720px) { section.intro { padding: 40px 0; } }
/* JM-01 sizing guide: step numbers in black circles, same look as the cut-to-fit list */
.step { display: flex; align-items: center; gap: 10px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; flex: none; letter-spacing: 0; }
.step + .table-box, .step + .tabs { margin-top: 12px; }
/* JM-01 heel-width table: larger text on wide screens; padding trimmed so the boxes stay the same size */
@media (min-width: 720px) {
  table.heel th { font-size: 1.15rem; padding-top: 10.5px; padding-bottom: 10.5px; }
  table.heel td { font-size: 1.2rem; padding-top: 8.5px; padding-bottom: 8.5px; }
  table.heel .hw { font-size: 0.9rem; }
}
/* JM-01 sizing section: larger text on wide screens. Each line keeps its old line height, so every box stays the same size. */
@media (min-width: 720px) {
  .tabs label { font-size: 1.05rem; line-height: 1.395rem; }
  .tabs label::after { font-size: 0.82rem; line-height: 1.116rem; }
  table.sz { font-size: 1.05rem; line-height: 1.395rem; }
  .cut-steps li { font-size: 1.02rem; line-height: 1.426rem; }
  .cut-steps strong { font-size: 1.12rem; line-height: 1.55rem; }
  .cut-lines h4 { font-size: 1.1rem; line-height: 1.55rem; }
  .cut-label { font-size: 1.05rem; }
  .cut-label strong { font-size: 1.25rem; }
}

/* Phones and touch screens */
/* Jumping to a section (size chart, contact) stops short of the top, so the heading is not hidden behind the top bar */
section[id] { scroll-margin-top: 40px; }
/* Small links get an invisible tap area of about 44px (Apple's minimum); how they look does not change */
.switch a, .nav-contact, .topbar .logo, .back, .dot { position: relative; }
.switch a::after, .nav-contact::after, .topbar .logo::after, .back::after, .dot::after { content: ""; position: absolute; }
.switch a::after, .nav-contact::after { inset: -3px 0; }
.topbar .logo::after { inset: -9px -8px; }
.back::after { inset: -8px -12px; }
.dot::after { inset: -17px -4px; }
.note a { padding: 13px 0; }
/* Touch screens have no mouse: a tap would leave the hover lift and border stuck on, so switch them off there */
@media (hover: none) {
  .variant:hover { border-color: transparent; transform: none; box-shadow: none; }
  .card:hover { border-color: transparent; transform: none; box-shadow: var(--shadow); }
  .card:hover .cta .arr, .contact .btn:hover, .nav-contact:hover, .watch:hover { transform: none; }
  .contact .btn:hover, .watch:hover { box-shadow: none; }
}

/* Scroll reveal (assets/reveal.js): blocks below the screen fade in and rise slightly the first time they scroll into view.
   Nothing is hidden unless the script has put "reveal-on" on <html>, so the page is complete without JavaScript. */
.reveal-on .reveal { opacity: 0; transform: translateY(14px); }
.reveal-on .reveal.in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
/* Blocks that links jump to (home page videos) only fade, so the jump lands in the exact spot */
.reveal-on .reveal[id] { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal, .reveal-on .reveal.in { opacity: 1; transform: none; transition: none; }
}
/* Printing or saving as PDF: show everything, including blocks not scrolled to yet */
@media print {
  .reveal-on .reveal, .reveal-on .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* Features slide on phones: larger captions (about 12px on a 375px-wide phone). Each caption gets a wider box so it
   still wraps onto the same number of lines and stays clear of the icons and dotted lines. Wider screens are unchanged.
   (!important is needed because each caption's position is written on the caption itself in jm01/index.html.) */
@media (max-width: 480px) {
  .cap { font-size: 3.6cqw; }
  .feat .cap:nth-of-type(1) { top: 24.8% !important; line-height: 1; }
  .feat .cap:nth-of-type(2) { left: 28% !important; top: 34.5% !important; width: 31% !important; }
  .feat .cap:nth-of-type(3) { left: 0.5% !important; width: 30% !important; }
  .feat .cap:nth-of-type(4) { left: 0.5% !important; width: 36.5% !important; }
  .feat .cap:nth-of-type(n+5) { left: 1.5% !important; width: 34% !important; }
}
