/* casecure.app/help/ : shared look for the help pages (same colours, type, header, footer and phone
   frames as the home page, index.html). */
:root {
  --bg: #ffffff; --alt: #f5f5f7; --card: #ffffff; --text: #1d1d1f; --muted: #515154; --line: #d2d2d7;
  --accent: #1350C5; --accent-hover: #0e3f9f; --accent-text: #1350C5; --link: #0a58d0; --ok: #157a34; --note: #eef3fd; --note-line: #1350C5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --alt: #161617; --card: #1d1d1f; --text: #f5f5f7; --muted: #a1a1a6; --line: #424245;
    --accent: #2f6ee6; --accent-hover: #4a83f0; --accent-text: #6ea0ff; --link: #6ea0ff; --ok: #7fd99a; --note: #111a2e; --note-line: #6ea0ff;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --alt: #161617; --card: #1d1d1f; --text: #f5f5f7; --muted: #a1a1a6; --line: #424245;
  --accent: #2f6ee6; --accent-hover: #4a83f0; --accent-text: #6ea0ff; --link: #6ea0ff; --ok: #7fd99a; --note: #111a2e; --note-line: #6ea0ff;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 19px; line-height: 1.6; overflow-wrap: break-word;
       font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
       -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, Arial, sans-serif;
             font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
p { margin: 0 0 16px; }
a { color: var(--link); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #4a90ff; outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 740px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
        backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.site .logo img { height: 24px; width: auto; }
.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site nav a { display: block; color: #1d1d1f; text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.site nav a:hover, .site nav a[aria-current="page"] { color: #1350C5; }
.site nav a.cta { background: #1350C5; color: #fff; border-radius: 999px; padding: 7px 16px; margin-left: 8px; font-weight: 600; white-space: nowrap; }
.site nav a.cta:hover { background: #0e3f9f; color: #fff; }
@media (max-width: 640px) { .site nav li.opt { display: none; } }
/* Help stays in the bar on phones: a smaller wordmark and tighter links below 400 px, the app icon below 360 px */
@media (max-width: 400px) { .site .wrap { gap: 8px; } .site .logo img { height: 17px; } .site nav a { padding: 8px 8px; } .site nav a.cta { padding: 7px 12px; margin-left: 4px; } }
@media (max-width: 359px) { .site .logo img { height: 30px; } }

/* Page top */
.top { background: var(--alt); padding: 44px 0 40px; }
.crumbs { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.top h1 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 14px; }
.top .lead { font-size: clamp(19px, 2vw, 22px); color: var(--muted); max-width: 36em; margin: 0; line-height: 1.45; }

/* Article */
.doc { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 48px 0 72px; }
@media (min-width: 900px) { .doc.with-pics { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.doc > * { min-width: 0; }
.doc h2 { font-size: clamp(26px, 3.2vw, 32px); margin: 44px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 21px; margin: 28px 0 8px; letter-spacing: -.01em; }
.doc ul, .doc ol { padding-left: 24px; margin: 0 0 18px; }
.doc li { margin-bottom: 8px; }
.doc b, .doc strong { font-weight: 650; }
.ui { font-weight: 650; }                                  /* names shown on screen */

/* Numbered steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 0 52px; margin-bottom: 18px; min-height: 36px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 36px; height: 36px; border-radius: 50%;
                        background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; display: grid; place-items: center; }

/* Notes */
.note { background: var(--note); border-left: 4px solid var(--note-line); border-radius: 12px; padding: 16px 20px; margin: 0 0 22px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note .label { display: block; font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 4px; color: var(--accent-text); }
.platforms { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 22px; }
@media (min-width: 640px) { .platforms { grid-template-columns: 1fr 1fr; } }
.platforms > div { background: var(--alt); border-radius: 14px; padding: 16px 20px; }
.platforms h3 { margin: 0 0 6px; font-size: 17px; }
.platforms p, .platforms ul { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 17px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 15px; color: var(--muted); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }

/* Pictures column */
.pics { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; align-content: flex-start; }
@media (min-width: 900px) { .pics { position: sticky; top: 88px; flex-direction: column; align-items: center; flex-wrap: nowrap; } }
.pics figure { margin: 0; }
.pics figcaption { font-size: 15px; color: var(--muted); text-align: center; margin-top: 10px; max-width: 240px; }

/* Phone frames (as on the home page) */
.iphone { --w: 230px; position: relative; width: var(--w); flex: none; padding: calc(var(--w) * .012); border-radius: calc(var(--w) * .19);
          background: linear-gradient(140deg, #e3e3e8 0%, #8e8e95 18%, #d6d6db 40%, #6f6f76 62%, #c4c4ca 82%, #8a8a91 100%);
          box-shadow: 0 calc(var(--w) * .1) calc(var(--w) * .18) rgba(0, 0, 0, .2); }
.iphone .bezel { position: relative; border-radius: calc(var(--w) * .178); padding: calc(var(--w) * .036); background: #050505; overflow: hidden; }
.iphone .bezel img { width: 100%; border-radius: calc(var(--w) * .145); }
/* No drawn Dynamic Island: it covered the clock and the place's banner in the screenshots (Rob, 5 Nov) */
.iphone .island { display: none; }
.android { --w: 230px; position: relative; width: var(--w); flex: none; padding: calc(var(--w) * .011); border-radius: calc(var(--w) * .135);
           background: linear-gradient(90deg, #b9bcc2 0%, #eceef1 6%, #d3d6db 14%, #f4f5f7 50%, #d3d6db 86%, #eceef1 94%, #b9bcc2 100%);
           box-shadow: 0 calc(var(--w) * .1) calc(var(--w) * .18) rgba(0, 0, 0, .2); }
.android .screen { position: relative; border-radius: calc(var(--w) * .124); padding: calc(var(--w) * .028); background: #050505; overflow: hidden; }
.android .screen img { width: 100%; border-radius: calc(var(--w) * .095); }
.android .cam { display: none; }   /* no drawn camera hole either: it covered the banner (Rob, 5 Nov) */
@media (max-width: 560px) { .iphone, .android { --w: min(230px, 62vw); } }

/* Help index cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 48px 0 72px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
        padding: 24px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.card svg.i { width: 32px; height: 32px; color: var(--accent); }
.card h2 { font-size: 22px; margin: 6px 0 0; }
.card p { color: var(--muted); font-size: 17px; margin: 0; }

/* Next / previous and contact */
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 40px; }
.pager a { text-decoration: none; font-weight: 600; }
.pager a:hover { text-decoration: underline; }
.help-box { background: var(--alt); border-radius: 20px; padding: 26px 28px; margin-top: 40px; }
.help-box h2 { font-size: 22px; margin: 0 0 8px; }
.help-box p { color: var(--muted); margin: 0; }

/* Footer */
footer.site-foot { background: var(--alt); color: var(--muted); font-size: 14px; padding: 32px 0 26px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot .brand { display: flex; gap: 12px; align-items: center; }
.foot .brand img { width: 36px; height: 36px; border-radius: 9px; }
.contact { font-style: normal; margin-top: 16px; line-height: 1.6; color: var(--muted); font-size: 14px; }
.contact a { color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }

/* Screenshot walk-through (a row of small phones, in order) */
ol.shots { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 22px 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
ol.shots li { margin: 0; display: flex; justify-content: center; }
ol.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
ol.shots .android, ol.shots .iphone { --w: min(150px, 40vw); }
ol.shots figcaption { font-size: 15px; color: var(--muted); text-align: center; margin-top: 10px; max-width: 160px; line-height: 1.35; }

/* A photo in the text (Paths: a thumb holding a floor button); .placeholder until the photo is taken */
figure.photo { margin: 0 0 24px; }
figure.photo img { width: 100%; max-width: 560px; border-radius: 18px; }
figure.photo.placeholder { max-width: 560px; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 24px; text-align: center;
                           background: var(--alt); border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); font-size: 17px; }

/* Command tree (Voice control): nested lists drawn with connector lines; plain indents on narrow phones */
.tree { background: var(--alt); border-radius: 18px; padding: 20px 22px 8px; margin: 0 0 24px; }
.tree-root { font-weight: 700; font-size: 21px; margin: 0 0 6px; }
.tree ul { list-style: none; margin: 0; padding: 0 0 0 26px; }
.tree > ul { padding-left: 8px; }
.tree li { position: relative; margin: 0; padding: 7px 0 7px 22px; }
.tree li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.tree li:last-child::before { bottom: auto; height: 22px; }
.tree li::after { content: ""; position: absolute; left: 0; top: 22px; width: 14px; border-top: 2px solid var(--line); }
.tree .branch { font-weight: 700; color: var(--accent-text); }
.tree .what { display: block; color: var(--muted); font-size: 17px; line-height: 1.4; }
@media (max-width: 420px) {
  .tree { padding: 16px 14px 4px; }
  .tree ul { padding-left: 12px; }
  .tree li { padding-left: 14px; }
  .tree li::after { width: 8px; }
}

/* Android | iPhone switch: only that phone's pictures (data-phone on <html>, set by the script in <head>).
   Without the script nothing is set and both phones show. */
.phone-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.phone-switch[hidden] { display: none; }
.phone-switch .ps-label { font-size: 16px; color: var(--muted); }
.phone-switch .ps-buttons { display: inline-flex; border: 1px solid var(--muted); border-radius: 999px; padding: 3px; background: var(--bg); }
.phone-switch button { font: inherit; font-size: 16px; font-weight: 600; color: var(--text); background: transparent; border: 0;
                       border-radius: 999px; padding: 8px 18px; min-height: 44px; cursor: pointer; }
.phone-switch button[aria-pressed="true"] { background: #1350C5; color: #fff; }
.phone-switch button[aria-pressed="true"]::before { content: "✓ "; }
html[data-phone="android"] [data-phone="ios"], html[data-phone="ios"] [data-phone="android"] { display: none !important; }
.phone-note { font-size: 15px; color: var(--muted); margin: -4px 0 18px; }
figure.photo.email img { border: 1px solid var(--line); border-radius: 12px; }
/* A sideways (landscape) screenshot: the whole screen, no phone frame */
figure.photo.wide img { max-width: 640px; border: 6px solid #111; border-radius: 22px; }
figure.photo figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* Help topics: every guide on every guide (a row from 700 px, a Help topics button below) */
.topics { margin-top: 20px; }
.topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics a { display: block; font-size: 15px; color: var(--text); text-decoration: none; border: 1px solid var(--muted);
            border-radius: 999px; padding: 6px 14px; min-height: 24px; background: var(--bg); }
.topics a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.topics a[aria-current="page"] { background: #1350C5; border-color: #1350C5; color: #fff; font-weight: 600; }
.topics-menu { display: none; }
.topics-menu summary { display: inline-block; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text);
                       border: 1px solid var(--muted); border-radius: 999px; padding: 9px 18px; min-height: 24px; background: var(--bg); }
.topics-menu summary::marker { content: ""; }
.topics-menu summary::after { content: " ▾"; }
.topics-menu[open] summary::after { content: " ▴"; }
.topics-menu ul { flex-direction: column; margin-top: 10px; }
.topics-menu a { border-radius: 12px; padding: 10px 14px; }
@media (max-width: 699px) { .topics-row { display: none !important; } .topics-menu { display: block; } }
.topics-menu summary::-webkit-details-marker { display: none; }
