.tools-index .hero-copy { max-width: 850px; padding: 12px 0 46px; }
.tools-index h1 { max-width: 13ch; font-size: clamp(44px, 6vw, 80px); }
.tools-index .subtitle { max-width: 54ch; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { --tint: #eaf3ff; --deep: #007aff; display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 24px; border-radius: 25px; background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 40px #232a4310; }
.tile.refill { --tint: #e9f3ff; --deep: #007aff; }
.tile.supply { --tint: #e8f5ef; --deep: #268868; }
.tile.cost { --tint: #eff0fc; --deep: #6d72c3; }
.tile.tz { --tint: #f0ecfa; --deep: #8262bb; }
.tile.t-blue { --tint: #eaf2ff; --deep: #357fd3; }
.tile.t-green { --tint: #eaf4f0; --deep: #368a73; }
.tile.t-orange { --tint: #faf0e8; --deep: #a57451; }
.tile.t-purple { --tint: #f1edfb; --deep: #8a6ab9; }
.tile.t-pink { --tint: #faeef2; --deep: #b96682; }
.tile.t-teal { --tint: #e8f5f7; --deep: #398e9e; }
.tile.t-amber { --tint: #faf5e9; --deep: #9b8546; }
.tile.t-slate { --tint: #eef1f5; --deep: #677e96; }
.tile[href*="refill-reminder"] { --tint: #edf3fc; --deep: #6b8ebd; }
.tile[href*="pill-organiser"] { --tint: #eef5e9; --deep: #739856; }
.tile[href*="daylight-saving"] { --tint: #faf2e8; --deep: #a98150; }
.tile[href*="iu-to-mcg"] { --tint: #f6edf7; --deep: #a575ab; }
.tile h3, .tile p, .tile .go { margin-left: 8px; margin-right: 8px; }
.tile h3 { font-size: 21px; letter-spacing: -.035em; line-height: 1.2; margin-bottom: 10px; font-weight: 720; }
.tile p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.tile .go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 8px; }
.tile .go i { font-style: normal; transition: transform .25s; }
.tile:hover .go i { transform: translateX(3px); }
/* Miniature app cards use normal flow, so text and art share the available width. */
.viz { min-width: 0; height: 220px; padding: 20px; margin-bottom: 22px; border-radius: 17px; background: var(--tint); color: var(--deep); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.viz *, .viz *::before, .viz *::after { min-width: 0; }
.viz .big { color: var(--ink); font-size: 34px; font-weight: 750; line-height: 1.05; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.viz .cap { color: var(--deep); font-size: 12px; line-height: 1.4; font-weight: 600; }
.bar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
.bar b { display: block; height: 8px; border-radius: 6px; background: var(--deep); width: 70%; }
.bar .mark { align-self: flex-start; border-radius: 7px; padding: 5px 8px; background: #fff; color: var(--deep); font-size: 10px; font-weight: 650; line-height: 1.3; }
.ends { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; color: var(--deep); font-size: 9px; font-weight: 500; }
.blister { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; background: #fff; padding: 12px; border-radius: 12px; margin-top: 4px; box-shadow: 0 5px 15px #20384008; }
.blister span { display: block; width: 100%; max-width: 14px; aspect-ratio: 1; justify-self: center; border-radius: 50%; background: var(--deep); }
.blister span.used { background: var(--tint); box-shadow: inset 0 0 0 1px #26886830; }
.calpage { width: 55px; background: #fff; border-radius: 11px; overflow: hidden; text-align: center; box-shadow: 0 4px 12px #20384008; }
.calpage small { display: block; background: var(--deep); color: #fff; padding: 3px; font-size: 9px; font-weight: 650; text-transform: uppercase; }
.calpage b { display: block; padding: 3px; font-size: 28px; line-height: 1.2; color: var(--ink); letter-spacing: -.04em; }
.ics { align-self: flex-end; font-size: 11px; line-height: 1; font-weight: 650; background: #fff; padding: 6px 9px; border-radius: 7px; }
.cost .viz .big { font-size: 19px; max-width: 15ch; }
.key { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 10px; font-weight: 500; line-height: 1.4; }
.key span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--deep); margin-right: 4px; }
.key span.o::before { background: #bcc2d8; }
.chart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.chart .yr { text-align: center; }
.chart .pair { height: 60px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.chart .pair i { display: block; width: 25%; max-width: 20px; border-radius: 4px 4px 2px 2px; }
.chart .sub { background: var(--deep); }
.chart .once { height: 22%; background: #bcc2d8; }
.chart small { font-size: 9px; font-weight: 600; }
.times { display: grid; gap: 7px; }
.times span { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 11px; background: #fff; box-shadow: 0 3px 12px #20384006; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.times span::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #ff9500; }
.dline, .day { display: flex; justify-content: space-between; align-items: center; height: 3px; background: color-mix(in srgb, var(--deep) 20%, transparent); margin: 10px 5px; }
.dline i, .day i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--deep); }
.org { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; width: 100%; max-width: 240px; align-self: center; }
.org small { font-size: 9px; font-weight: 650; text-align: center; }
.org span { display: flex; justify-content: center; align-items: center; aspect-ratio: .8; border-radius: 6px; background: #fff; }
.org span b { width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--deep); }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; background: #fff; padding: 12px; border-radius: 12px; order: -1; width: 100%; max-width: 200px; }
.mcal span { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--tint); }
.mcal span.on { background: var(--deep); }
.taper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 10px; height: 110px; margin-top: 12px; }
.taper i { display: block; width: 100%; border-radius: 7px 7px 3px 3px; background: var(--deep); }
.zones { display: grid; gap: 9px; }
.zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 8px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #20384006; }
.zone small { font-size: 10px; font-weight: 600; line-height: 1.3; }
.zone b { color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; white-space: nowrap; }
.zone.away b { color: var(--deep); }
.strip { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 3px; margin-top: 16px; }
.strip span { height: 32px; border-radius: 4px; background: var(--deep); }
.strip span.spare { opacity: .28; }
.halves { display: flex; gap: 12px; margin-top: 14px; }
.halves span { width: 40px; aspect-ratio: 1; border-radius: 50%; background: var(--deep); }
.halves span.h { background: linear-gradient(90deg, var(--deep) 50%, #fff 50%); }
.ml { background: #fff; border-radius: 8px; margin-top: 18px; padding: 4px; }
.ml b { display: block; width: 50%; height: 22px; border-radius: 5px; background: var(--deep); }
.eq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.eq span { text-align: center; border-radius: 10px; padding: 9px 0; background: #fff; font-size: 12px; font-weight: 650; }
.wcard { width: 100%; max-width: 240px; align-self: center; border-radius: 12px; padding: 16px 14px; background: #fff; box-shadow: 0 10px 24px #20384010; }
.wcard small { display: block; font-size: 9px; font-weight: 650; line-height: 1.3; color: var(--deep); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.wcard b, .wcard i { display: block; width: 65%; height: 7px; border-radius: 4px; background: #9daec2; margin-bottom: 10px; }
.wcard i { width: 90%; height: 5px; background: #e3e8ee; }
.wcard i.s { width: 45%; background: #ffc277; margin-bottom: 0; }
.tile-wide { grid-column: span 2; justify-content: center; align-items: flex-start; padding: 36px; background: #e8f2ff; }
.tile-wide h3 { max-width: 16ch; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.045em; line-height: 1.05; margin-bottom: 18px; }
.tile-wide p { max-width: 44ch; font-size: 16px; }
.go-wide { display: inline-block; margin: 4px 8px 0; border-radius: 13px; padding: 12px 18px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 36px 8px 0; }
.promise b { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 650; }
.promise span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tools-index > .cta-box { margin-top: 64px; padding: 40px; }
@media (min-width: 720px) and (max-width: 900px) {
  .tiles { gap: 16px; }
  .tile { padding: 10px 10px 22px; border-radius: 21px; }
  .tile h3 { font-size: 18px; }
  .tile p { font-size: 13px; }
  .viz { padding: 14px; height: 210px; border-radius: 14px; }
  .viz .big { font-size: 30px; }
  .cost .viz .big { font-size: 17px; }
  .tile-wide { padding: 28px; }
  .tile-wide h3 { font-size: 32px; }
  .tile-wide p { font-size: 15px; }
}
@media (min-width: 641px) and (max-width: 719px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tools-index .hero-copy { padding: 0 0 34px; }
  .tools-index h1 { font-size: 48px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .viz { height: 210px; padding: 22px; }
  .blister, .mcal { max-width: 200px; width: 100%; }
  .tile h3 { font-size: 24px; }
  .tile p { font-size: 15px; }
  .tile-wide { grid-column: auto; padding: 30px 22px; }
  .tile-wide h3 { font-size: 32px; }
  .promise { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 32px; }
  .tools-index > .cta-box { padding: 28px; margin-top: 40px; }
}

/* Search and groups (Alex, 2 Nov 2026) */
.tool-search { margin: 4px 0 8px; }
.tool-search input { width: 100%; height: 50px; padding: 0 18px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: 16px; box-shadow: 0 6px 22px rgba(24,62,104,.08); outline: none; transition: border-color .15s, box-shadow .15s; }
.tool-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px #007aff18; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tool-none { margin: 24px 2px; color: var(--muted); }
.tool-group { margin-top: 36px; }
.tool-group[hidden], .tile[hidden] { display: none !important; }
.tools-index .tool-group > h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
.tools-index .tool-group > p { margin: 0 0 16px; color: var(--muted); }
.tile-end { margin-top: 36px; }
