:root {
  --bg: #f5ead8;
  --surface: #ffffff;
  --text: #201e1d;
  --muted: #474238;
  --line: #dcd3c4;
  --soft: #f9f4ed;
  --accent: #b2622d;
  --accent-strong: #8c491a;
  --accent-soft: #fff2eb;
  --olive: #56633f;
  --olive-soft: #f0fae1;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(32, 30, 29, 0.06), 0 8px 24px rgba(32, 30, 29, 0.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.45 "Figtree", system-ui, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-strong); text-underline-offset: 3px; }
h1, h2 { font-family: "Caprasimo", system-ui, sans-serif; font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(28px, 4vw, 38px); text-wrap: balance; }
h1:focus { outline: none; } /* focused by script so screen readers announce the new view */
h2 { font-size: 20px; }

.top, main, .foot { width: 100%; max-width: 1060px; margin-inline: auto; padding-inline: 20px; }
.top { padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 22px "Caprasimo", system-ui; color: var(--text); text-decoration: none; }
.leaf { width: 36px; height: 36px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; }

main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 0 8px; }
.screen { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.screen[hidden] { display: none; }
.lead { margin: 0 0 12px; font-size: 18px; color: var(--muted); }
.back { align-self: flex-start; font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }

.choices { display: grid; gap: 14px; width: 100%; max-width: 580px; text-align: left; }
.choice {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 92px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; border: 2px solid transparent;
}
.choice:hover, .choice:focus-visible { border-color: var(--accent); outline: none; }
.choice-icon, .os { display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-strong); }
.choice-icon { width: 52px; height: 52px; border-radius: 16px; }
.choice-icon .i { width: 28px; height: 28px; }
.choice-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.choice-text b { font-size: 20px; }
.choice-text span { color: var(--muted); font-size: 15px; }
.arrow { font-size: 30px; line-height: 1; color: var(--accent); }

/* Cards sit side by side with equal heights, so the buttons line up. */
.cards { display: grid; gap: 16px; width: 100%; text-align: left; grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; }
.card.mine { border-color: var(--olive); order: -1; }
.card-head { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.os { width: 36px; height: 36px; border-radius: 11px; }
.os .i { width: 21px; height: 21px; }
.yours { margin-left: auto; white-space: nowrap; background: var(--olive-soft); color: var(--olive); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }

.btn {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 18px;
  border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: #fff;
  font: 700 17px "Figtree", system-ui; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }
.meta { margin: 0; min-height: 21px; text-align: center; color: var(--muted); font-size: 14px; }
.how { border-top: 1px solid var(--line); padding-top: 10px; }
.how summary { display: none; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; }
.steps li::marker { color: var(--accent-strong); font-weight: 700; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.ico-share {
  display: inline-block; width: 18px; height: 20px; vertical-align: -3px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007aff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m8 7 4-4 4 4'/%3E%3Cpath d='M6 11H5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-1'/%3E%3C/svg%3E");
}

.foot { text-align: center; padding-block: 12px 16px; color: var(--muted); font-size: 14px; }

@media (min-width: 720px) {
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; }
}
@media (min-width: 900px) {
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .card.mine { order: 0; }
  /* the Back link shares the heading's row, so the cards fit a laptop screen without scrolling */
  .screen { position: relative; }
  .back { position: absolute; left: 0; top: 4px; }
}
/* On a phone, the steps for other devices fold away behind "How to install". */
@media (max-width: 899px) {
  .how summary { display: list-item; cursor: pointer; font-weight: 700; font-size: 15px; min-height: 28px; color: var(--accent-strong); }
  .how[open] summary { margin-bottom: 8px; }
}
