/* ============================================================
   LETTERS AGAINST LONELINESS

   Layout follows frommetoyouletters.co.uk, as Ben asked: a full-width
   image band under the header, a two-column intro, a dark band of three
   short statements, image-and-text blocks, a hand-drawn divider above
   the sign-up form, and a coloured footer. Serif headings at regular
   weight, flat square buttons, lots of space.

   Colours are the project's own, sampled from the three supplied logos:
   their teal becomes our navy ink, their coral becomes our wax-seal red,
   and the cream is the logos' own paper.
   ============================================================ */

:root{
  --paper:      #FEF9E4;   /* logo background */
  --paper-deep: #FDF0CB;   /* envelope fill */
  --navy:       #0C2A54;   /* ink, outlines, script */
  --muted:      #44587A;
  --line:       rgba(12, 42, 84, .18);
  --wax:        #971D2D;   /* seal red: the one accent */
  --wax-deep:   #74121F;
  --cream-on-dark: #FEF9E4;

  /* tile colours, used only on the numbered tiles and the tips box */
  --green: #33951B;  --green-fill:  #EDF5C8;
  --red:   #DB151D;  --red-fill:    #FDE4D5;
  --yellow:#F2AE00;  --yellow-fill: #FDF3CF;
  --teal:  #02A5A1;  --teal-fill:   #DAEEE2;

  --display: "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
  --body:    "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --hand:    "Patrick Hand", "Segoe Print", "Comic Sans MS", cursive;

  --wrap: 1360px;
  --gutter: 40px;
}

/* ---------- base ---------- */
*,
*::before,
*::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference){ html{ scroll-behavior: smooth; } }

body{
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 18px/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3{ font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1{ font-size: clamp(33px, 3.6vw, 52px); line-height: 1.28; letter-spacing: -.01em; }
h2{ font-size: clamp(28px, 2.7vw, 40px); line-height: 1.3;  letter-spacing: -.008em; margin-bottom: 22px; }
h3{ font-size: 20px; line-height: 1.4; }

p{ margin: 0 0 1em; text-wrap: pretty; }
p:last-child{ margin-bottom: 0; }

a{ color: var(--wax); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover{ color: var(--wax-deep); }

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

.wrap{ width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip{
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--paper); padding: 10px 16px;
}
.skip:focus{ top: 14px; color: var(--paper); }

/* A value still to be filled in on _config.php. Meant to be noticed. */
.todo{
  background: var(--yellow-fill); color: var(--wax-deep);
  border: 1.5px dashed var(--wax); padding: 0 6px; white-space: nowrap;
}

/* ---------- airmail stripe along the very top ---------- */
.airmail-edge{
  height: 7px;
  background: repeating-linear-gradient(135deg,
    var(--wax) 0 14px, var(--paper) 14px 22px,
    var(--navy) 22px 36px, var(--paper) 36px 44px);
}

/* ---------- buttons: flat and square ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 32px;
  font: 400 17px/1.3 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--cream-on-dark);
  background: var(--wax);
  border: 0; border-radius: 0;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover{ background: var(--wax-deep); color: var(--cream-on-dark); }
.btn[disabled]{ opacity: .75; cursor: progress; }
.actions{ margin-top: 34px !important; }

/* ---------- header ---------- */
.nav{
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled{ border-bottom-color: var(--line); }
.nav__in{ display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 104px; }

.brand{ display: flex; align-items: center; gap: 16px; min-height: 48px; text-decoration: none; color: var(--navy); }
.brand:hover{ color: var(--navy); }
.brand__mark{ width: 78px; }
.brand__word{ font-family: var(--display); font-size: 21px; line-height: 1.15; letter-spacing: -.01em; }
.brand__word em{ font-style: italic; }

.nav__links{ display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.nav__links a{
  font-family: var(--display); font-size: 16px;
  color: var(--navy); text-decoration: none;
  padding: 11px 0; border-bottom: 1px solid transparent;
}
.nav__links a:hover{ border-bottom-color: var(--navy); color: var(--navy); }
.nav__links .nav__cta{ color: var(--wax); }
.nav__links .nav__cta:hover{ color: var(--wax); border-bottom-color: var(--wax); }

.nav__toggle{ display: none; }

/* Seven links need about 1,260px of window in one row; below that, the menu
   button. Above it, the links never wrap: the brand name folds instead. */
@media (min-width: 1261px){ .nav__links{ flex: none; } }
@media (max-width: 1260px){
  .js .nav__toggle{
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 48px; padding: 0;
    background: transparent; color: var(--navy); border: 0; cursor: pointer;
  }
  /* two lines, as on the reference site */
  .nav__bars, .nav__bars::after{
    display: block; width: 34px; height: 2px; background: currentColor; position: relative;
    transition: transform .2s ease;
  }
  .nav__bars::after{ content: ""; position: absolute; left: 0; top: 10px; }
  .nav__bars{ top: -5px; }
  .nav.is-open .nav__bars{ transform: translateY(5px) rotate(45deg); }
  .nav.is-open .nav__bars::after{ transform: translateY(-10px) rotate(-90deg); }

  .js .nav__links{
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 22px;
  }
  .js .nav.is-open .nav__links{ display: flex; }
  .js .nav__links a{ padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .js .nav__links a:hover{ border-bottom-color: var(--line); }

  /* without JavaScript the links simply wrap under the logo */
  html:not(.js) .nav__in{ flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  html:not(.js) .nav__links{ justify-content: flex-start; }
}

/* ---------- full-width image band ---------- */
.band{ display: block; height: clamp(230px, 36vw, 560px); background: var(--paper-deep); overflow: hidden; }
.band img{ width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- sections ---------- */
.section{ padding: clamp(72px, 9vw, 120px) 0; }
.section--deep{ background: var(--paper-deep); }

/* The reference's two-column rhythm: a narrower left column, a wider
   right one, and a wide gap between. */
.split{ display: grid; grid-template-columns: 5fr 6fr; gap: 40px clamp(48px, 8vw, 112px); align-items: start; }
.split--media{ align-items: center; }

.sub{ font-size: 19px; color: var(--muted); max-width: 30em; }

/* ---------- intro ---------- */
.intro{ padding-top: clamp(64px, 9vw, 130px); }
.intro h1{ max-width: 15ch; }
.lede{ font-family: var(--display); font-size: clamp(20px, 1.7vw, 23px); line-height: 1.75; margin-bottom: 18px; }

/* ---------- dark band of three statements ---------- */
.facts{ background: var(--navy); color: var(--cream-on-dark); padding: clamp(48px, 5vw, 64px) 0; }
.facts__grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 56px; }
.fact__text{ font-family: var(--display); font-size: clamp(18px, 1.55vw, 21px); line-height: 1.75; margin-bottom: 14px; }
.fact__label{ font-weight: 700; font-size: 15.5px; color: #F6C6CB; letter-spacing: .02em; }

/* ---------- image block ---------- */
.panel{ background: var(--paper-deep); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.panel img{ width: 66%; }
.panel--photo{ display: block; }
.panel--photo img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- photos from the care home visits ----------
   Three columns on wide screens: a wide photo and a tall one per row,
   swapping sides on the second row. object-position keeps faces in frame
   when the cells crop. */
.gallery__head{ margin-bottom: clamp(32px, 4vw, 48px); }
.gallery{ display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(260px, 30vw, 440px); gap: clamp(12px, 1.6vw, 20px); }
.gallery img{ display: block; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.gallery__wide{ grid-column: span 2; }
.gallery__poppy{ object-position: 50% 75%; }
.gallery__tea{ object-position: 50% 72%; }

/* hand-drawn divider, as the reference uses above its sign-up form */
.squiggle{ display: block; width: 100%; height: 18px; color: var(--navy); }

/* ---------- in the box ---------- */
.free{ display: flex; align-items: center; gap: 16px; margin-top: 34px !important; }
.free img{ width: 58px; transform: rotate(-8deg); flex: none; }
.free span{ font-family: var(--display); font-style: italic; font-size: 19px; }

.contents{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 48px; }
.contents img{ height: 74px; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; margin-bottom: 18px; }
.contents h3{ margin-bottom: 6px; }
.contents p{ color: var(--muted); font-size: 17px; }

/* ---------- how it works ---------- */
.how__side{ position: sticky; top: 140px; }
.safe{
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
  max-width: 30em;
}
.safe img{ width: 58px; transform: rotate(4deg); }
.safe h3{ margin-bottom: 4px; }
.safe p{ font-size: 17px; }

.steps{ list-style: none; margin: 0; padding: 0; }
.step{
  display: grid; grid-template-columns: 62px 1fr; gap: 24px; align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child{ padding-top: 0; }
.step:last-child{ border-bottom: 0; padding-bottom: 0; }
.step h3{ font-size: 22px; margin: 6px 0 4px; }
.step p{ color: var(--muted); }

/* Scrabble tiles, drawn to match the logo's */
.tile{
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border: 3.5px solid; border-radius: 10px;
  font: 700 27px/1 var(--body);
  color: #111;
  transform: rotate(-3deg);
}
.step:nth-child(even) .tile{ transform: rotate(2.5deg); }
.tile--green { border-color: var(--green);  background: var(--green-fill); }
.tile--red   { border-color: var(--red);    background: var(--red-fill); }
.tile--yellow{ border-color: var(--yellow); background: var(--yellow-fill); }
.tile--teal  { border-color: var(--teal);   background: var(--teal-fill); }

/* ---------- letter ideas ---------- */
.letter{ margin: 0; }
/* A real pupil's letter. The column beside it brackets the lines that use
   each idea. Each bracket is placed as a share of the picture's height, so
   it stays on its lines at any screen width. Change the picture and these
   figures need measuring again. */
.split--letter{ grid-template-columns: 6fr 5fr; column-gap: clamp(40px, 5vw, 72px); }
.scan{ --tags: 96px; display: grid; grid-template-columns: var(--tags) minmax(0, 1fr); column-gap: 8px; }
.scan__tags{ position: relative; list-style: none; margin: 0; padding: 0; }
.scan__tags li{
  position: absolute; left: 0; right: 0; top: var(--top); height: var(--h);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 9px; border-right: 3px solid var(--wax);
  font: 400 17px/1.1 var(--hand); color: var(--wax); white-space: nowrap;
}
.scan__tags li::after{ content: ''; position: absolute; left: calc(100% + 3px); top: 50%; width: 8px; border-top: 2px solid var(--wax); }
.scan__tag--about     { --top: 23.4%; --h: 5.4%; }
.scan__tag--hobbies   { --top: 29.3%; --h: 3.6%; }
.scan__tag--favourites{ --top: 33.5%; --h: 3.7%; }
.scan__tag--future    { --top: 39.5%; --h: 3.9%; }
.scan__tag--ending    { --top: 49.4%; --h: 4.2%; }
.scan__tag--drawing   { --top: 60%;   --h: 23%; }
.scan__page{ display: block; align-self: start; background: #fff; box-shadow: 0 22px 44px -26px rgba(12, 42, 84, .45); }
.scan__page img{ display: block; width: 100%; height: auto; }
.letter figcaption{ margin-top: 24px; font-size: 15.5px; color: var(--muted); }

.topics{ margin: 30px 0 40px; }
.topics div{ display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.topics div:last-child{ border-bottom: 1px solid var(--line); }
.topics dt{ font-family: var(--display); font-size: 17.5px; line-height: 1.75; }
.topics dd{ margin: 0; }

.tips{ background: var(--yellow-fill); border-left: 5px solid var(--yellow); padding: 24px 28px 26px; }
.tips h3{ margin-bottom: 10px; }
.tips ul{ list-style: none; margin: 0; padding: 0; }
.tips li{ position: relative; padding-left: 30px; margin: 4px 0; }
.tips li::before{
  content: ""; position: absolute; left: 0; top: .5em;
  width: 17px; height: 15px; background: var(--wax);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 21S0 13.6 0 6.3A6.1 6.1 0 0 1 12 3.9 6.1 6.1 0 0 1 24 6.3C24 13.6 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 21S0 13.6 0 6.3A6.1 6.1 0 0 1 12 3.9 6.1 6.1 0 0 1 24 6.3C24 13.6 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- questions ---------- */
.faq details{ border-bottom: 1px solid var(--line); }
.faq details:first-child{ border-top: 1px solid var(--line); }
.faq summary{
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-family: var(--display); font-size: 19px; line-height: 1.45;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 16px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after{ transform: rotate(45deg); }
.faq summary:hover{ color: var(--wax); }
.faq details p{ padding: 0 40px 24px 0; margin: 0; max-width: 40em; }

/* ---------- for teachers: downloads ----------
   Three cards. Each preview sits in the same 4:5 box so the titles and
   buttons line up, whatever shape the thing inside is. */
.res__head{ margin-bottom: clamp(32px, 4vw, 48px); }
.res{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px clamp(24px, 3vw, 40px); }
.res__item{ display: flex; flex-direction: column; }
.res__item h3{ margin: 24px 0 8px; }
.res__item p{ margin: 0 0 12px; }
.res__preview{ position: relative; aspect-ratio: 4 / 5; background: var(--paper); border: 1px solid var(--line); }
.res__preview img{ position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 3px 10px rgba(12, 42, 84, .16)); }
/* Two landscape slides, one above the other, in the same box as the posters. */
.res__deck{ position: absolute; inset: 7%; display: flex; flex-direction: column; justify-content: center; gap: 6%; }
.res__preview .res__deck img{ position: static; width: 100%; height: auto; }
.res__get{ margin-top: auto !important; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.res__meta{ font-size: 15px; color: var(--muted); }
.res__soon{
  display: inline-flex; align-self: flex-start; justify-self: start; align-items: center; min-height: 54px; padding: 0 24px;
  border: 1.5px dashed rgba(12, 42, 84, .38); font: 400 17px/1.3 var(--display); color: var(--muted);
}

/* ---------- request form ---------- */
.request{ padding-top: clamp(48px, 6vw, 80px); }
.request .squiggle{ margin-bottom: clamp(48px, 6vw, 72px); }
.request__art{ width: 210px; margin-top: 40px; }

/* School or care home: two radio buttons dressed as one sliding switch.
   The navy block slides under whichever is chosen. */
.who{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: clamp(40px, 5vw, 60px); }
.who__q{ margin: 0; font-family: var(--display); font-size: clamp(19px, 1.6vw, 22px); }
.switch{ position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--navy); background: #fff; }
.switch input{ position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.switch label{
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-width: 170px; min-height: 54px; padding: 0 26px;
  font: 400 17px/1.3 var(--display); color: var(--navy);
  cursor: pointer; transition: color .3s ease;
}
.switch input:checked + label{ color: var(--cream-on-dark); }
.switch__pill{ position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--navy); transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
#t-care:checked ~ .switch__pill{ transform: translateX(100%); }
.switch:has(input:focus-visible){ outline: 3px solid var(--wax); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){ .switch__pill, .switch label{ transition: none; } }

/* The wording that changes with the switch. display: revert gives each
   element back its own normal display (inline for spans, block for p). */
.if-care{ display: none; }
.request:has(#t-care:checked) .if-care{ display: revert; }
.request:has(#t-care:checked) .if-school{ display: none; }

.form{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field{ display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full{ grid-column: 1 / -1; }
.field label{ font-weight: 700; font-size: 15.5px; }
.opt{ font-weight: 400; color: var(--muted); }
.field input,
.field textarea{
  width: 100%;
  font: 400 17px/1.4 var(--body);
  color: var(--navy);
  background: #fff;
  border: 1.5px solid rgba(12, 42, 84, .32);
  border-radius: 0;
  padding: 13px 14px;
  min-height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea{ resize: vertical; }
/* A number box without the tiny arrow buttons, which are hard to hit. */
.field input[type="number"]{ appearance: textfield; -moz-appearance: textfield; }
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button{ -webkit-appearance: none; margin: 0; }
.field input::placeholder,
.field textarea::placeholder{ color: #7D8AA1; }
.field input:focus,
.field textarea:focus{ outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(151, 29, 45, .22); }
.field input:user-invalid,
.field textarea:user-invalid{ border-color: var(--wax); }
.hp{ position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__end{ grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 10px; }
.form__note{ flex: 1 1 260px; font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- privacy notice ---------- */
.back-link{ font-family: var(--display); font-size: 16px; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--navy); padding: 4px 0; }
.back-link:hover{ color: var(--wax); border-bottom-color: var(--wax); }
.legal{ padding: 64px 0 104px; }
.legal__in{ max-width: 800px; }
.legal h1{ margin-bottom: 8px; }
.legal__date{ color: var(--muted); font-size: 16px; margin-bottom: 40px; }
.legal h2{ font-size: 24px; margin: 44px 0 10px; }
.legal ul{ margin: 0 0 1em; padding-left: 22px; }
.legal li{ margin: 4px 0; }

/* ---------- footer: the reference's coloured footer ---------- */
.foot{ background: var(--wax); color: var(--cream-on-dark); padding: clamp(52px, 6vw, 76px) 0; }
.foot a{ color: var(--cream-on-dark); }
.foot a:hover{ color: #fff; }
.foot .todo{ color: var(--wax-deep); }
.foot__in{ display: grid; grid-template-columns: 6fr 5fr; gap: 32px clamp(48px, 8vw, 112px); align-items: start; }
.foot__tag{ font-family: var(--display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.6; max-width: 22em; }
.foot__info p{ margin: 0 0 6px; font-size: 16.5px; }
.foot__copy{ opacity: .85; margin-top: 16px !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px){
  .split{ gap: 40px 56px; }
  .contents{ gap: 36px 32px; }
}

@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
  .intro h1{ max-width: 18ch; }
  .facts__grid{ grid-template-columns: 1fr; gap: 0; }
  .fact{ padding: 22px 0; border-bottom: 1px solid rgba(254, 249, 228, .2); }
  .fact:first-child{ padding-top: 0; }
  .fact:last-child{ border-bottom: 0; padding-bottom: 0; }
  .how__side{ position: static; }
  .split--letter .letter{ max-width: 600px; margin-bottom: 24px; }
  .request__art{ display: none; }
  .foot__in{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(220px, 40vw, 340px); }
  /* Downloads become rows: preview on the left, words on the right. */
  .res{ grid-template-columns: 1fr; gap: 36px; }
  .res__item{ display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto auto 1fr; column-gap: 28px; }
  .res__preview{ grid-row: 1 / 4; align-self: start; }
  .res__item h3{ margin-top: 4px; }
}

@media (max-width: 600px){
  :root{ --gutter: 20px; }
  body{ font-size: 17px; }
  .nav__in{ min-height: 80px; }
  .brand__mark{ width: 56px; }
  .brand__word{ font-size: 17px; }
  .actions .btn, .form__end .btn{ width: 100%; }

  .contents{ grid-template-columns: 1fr; }
  .contents li{ display: grid; grid-template-columns: 84px 1fr; gap: 2px 18px; }
  .contents img{ grid-row: span 2; height: auto; max-height: 64px; width: 84px; object-position: center; margin: 4px 0 0; }

  .step{ grid-template-columns: 50px 1fr; gap: 18px; }
  .tile{ width: 48px; height: 48px; font-size: 23px; }

  .scan{ --tags: 74px; }
  .scan__tags li{ font-size: 13.5px; padding-right: 6px; border-right-width: 2px; }

  .topics div{ grid-template-columns: 1fr; gap: 0; }
  .tips{ padding: 20px 22px; }

  .faq summary{ font-size: 18px; }
  .faq details p{ padding-right: 0; }

  .form{ grid-template-columns: 1fr; }
  .res__item{ display: flex; }
  .res__preview{ width: 100%; max-width: 260px; }
  .res__item h3{ margin-top: 20px; }
  .res__get .btn{ width: 100%; }

  .who{ flex-direction: column; align-items: stretch; }
  .switch{ display: grid; }
  .switch label{ min-width: 0; padding: 0 12px; }

  /* Phones: each photo shown whole, in its own shape, two tall ones side by side. */
  .gallery{ grid-auto-rows: auto; }
  .gallery img{ height: auto; aspect-ratio: 4 / 3; }
  .gallery .gallery__tall{ aspect-ratio: 3 / 4; }
}
