/* Officia's site: the app's colours (the icon's violet and pink), its rounded type, its
   cards on paper, and the system's grouped lists. Light and dark follow the device.
   Nothing is loaded from elsewhere. */

:root {
  --paper: #f5f4f9;
  --surface: #ffffff;
  --surface-hover: #f7f6fb;
  --ink: #1d1c22;
  --ink-soft: #3a3942;
  --muted: #6b6976;
  --line: rgba(29, 28, 34, 0.08);
  --separator: rgba(60, 60, 67, 0.16);
  --accent: #5b4bd6;
  --accent-strong: #4535bf;
  --accent-line: rgba(91, 75, 214, 0.35);
  --chip: rgba(91, 75, 214, 0.1);
  --brand: linear-gradient(100deg, #5b4bd6 10%, #a8418f 90%);
  --glow: radial-gradient(closest-side, rgba(166, 112, 230, 0.35), rgba(252, 153, 177, 0.18) 60%, transparent);
  --shadow: 0 1px 2px rgba(29, 28, 34, 0.04), 0 8px 24px rgba(29, 28, 34, 0.06);
  --shadow-lift: 0 2px 4px rgba(29, 28, 34, 0.05), 0 16px 36px rgba(61, 42, 140, 0.13);
  --shot-shadow: 0 2px 6px rgba(29, 28, 34, 0.06), 0 22px 50px rgba(61, 42, 140, 0.16);
  --bar: rgba(245, 244, 249, 0.74);
  --button: #1d1c22;
  --button-ink: #ffffff;
  --todo: #ffe58a;
  --todo-ink: #3a2f00;
  --radius: 22px;
  --radius-small: 18px;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0d13;
    --surface: #1b1a21;
    --surface-hover: #22212a;
    --ink: #f4f3f8;
    --ink-soft: #d9d7e2;
    --muted: #a5a2b3;
    --line: rgba(255, 255, 255, 0.08);
    --separator: rgba(235, 235, 245, 0.13);
    --accent: #b7aeff;
    --accent-strong: #d3cdff;
    --accent-line: rgba(183, 174, 255, 0.4);
    --chip: rgba(183, 174, 255, 0.14);
    --brand: linear-gradient(100deg, #b7aeff 10%, #f4a3d6 90%);
    --glow: radial-gradient(closest-side, rgba(137, 120, 245, 0.32), rgba(211, 120, 204, 0.16) 60%, transparent);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 36px rgba(0, 0, 0, 0.45);
    --shot-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 22px 50px rgba(0, 0, 0, 0.5);
    --bar: rgba(14, 13, 19, 0.72);
    --button: #f4f3f8;
    --button-ink: #15141b;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

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

a { color: var(--accent); text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--rounded); line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.wide { max-width: 1080px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 12px;
  box-shadow: var(--shadow); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* The icons: a glyph drawn in the text's colour, alone or on a tile of colour, as in the
   system's settings. */

.glyph { width: 1em; height: 1em; display: block; }

.tile, .page-icon {
  flex: none; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px; color: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.12);
}
.tile .glyph { width: 19px; height: 19px; stroke-width: 2; }

.tint-violet { background: linear-gradient(165deg, #a294ff, #6a55e8); }
.tint-coral { background: linear-gradient(165deg, #ff9f8a, #f05f58); }
.tint-sky { background: linear-gradient(165deg, #6fd0ff, #2f8cf0); }
.tint-mint { background: linear-gradient(165deg, #5fe0c1, #1fae8c); }
.tint-yellow { background: linear-gradient(165deg, #ffd45f, #f39c1d); }
.tint-pink { background: linear-gradient(165deg, #ffa3d1, #e4579b); }
.tint-indigo { background: linear-gradient(165deg, #8f98ff, #4c51d6); }
.tint-sage { background: linear-gradient(165deg, #a9d6a0, #5b9a58); }
.tint-gray { background: linear-gradient(165deg, #b9b9c2, #7a7a85); }

/* The header, translucent over the page, and the footer */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--bar);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}
/* On a narrow screen, the links go under the name rather than over it. */
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--rounded); font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.brand img { flex: none; width: 30px; height: 30px; border-radius: 7px; }
.site-header nav ul, .site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); margin-top: 88px; padding: 28px 0 40px; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.site-footer nav { margin-bottom: 14px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.site-footer p { margin: 0; max-width: 72ch; }

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--button); color: var(--button-ink);
  font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.button:hover { color: var(--button-ink); opacity: 0.88; }
.button:active { transform: scale(0.97); }
.button-quiet { background: var(--chip); color: var(--accent); }

/* The home page */

.hero { position: relative; overflow: hidden; text-align: center; padding: 72px 0 64px; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: 760px; height: 560px;
  transform: translateX(-50%); background: var(--glow); pointer-events: none;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 128px; height: 128px; border-radius: 28.6px; box-shadow: var(--shot-shadow); }
.eyebrow { margin: 22px 0 8px; font-family: var(--rounded); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.01em; color: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); font-weight: 800; max-width: 14ch; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 36ch; margin: 20px auto 0; }
.availability { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.devices { margin: 0; color: var(--muted); font-size: 0.95rem; }

.feature { padding: 56px 0; }
.split { display: grid; gap: 40px; align-items: center; }
.split-text h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 800; }
.split-text p { color: var(--muted); font-size: 1.12rem; max-width: 42ch; margin: 18px 0 0; }
.split-shots { display: flex; gap: 20px; justify-content: center; }
.split-shots .shot { margin: 0; flex: 0 1 260px; }

.shot img { width: 100%; border-radius: 30px; box-shadow: var(--shot-shadow); background: var(--surface); }

.section-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; text-align: center; margin-bottom: 28px; }

.proofs { padding: 48px 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; font-weight: 700; }
.card p { margin: 10px 0 0; color: var(--muted); }

.gallery { padding: 40px 0 24px; }
.shots {
  list-style: none; margin: 0; padding: 4px 0 24px; display: grid; gap: 24px;
  grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.shots .shot { scroll-snap-align: center; }
.shots .shot p { margin: 14px 4px 0; color: var(--muted); font-size: 0.98rem; text-align: center; }

.trust { padding: 56px 0; }
.trust-inner { background: var(--surface); border-radius: 30px; box-shadow: var(--shadow); padding: 40px 28px; text-align: center; max-width: 900px; }
.trust-inner .page-icon { margin: 0 auto 18px; }
.trust h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; max-width: 22ch; margin: 0 auto; }
.trust p { color: var(--muted); max-width: 56ch; margin: 18px auto 0; }

.details { padding: 40px 0; }

.closing { padding: 56px 0 8px; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.closing-inner img { width: 72px; height: 72px; border-radius: 16px; }
.closing-line {
  margin: 0; font-family: var(--rounded); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.closing-help { margin: 0; color: var(--muted); }

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .split-shots { justify-content: flex-end; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}

/* The texts: privacy, support, terms, legal notice */

.prose { padding: 56px 0 8px; }
.page-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-icon { width: 76px; height: 76px; border-radius: 19px; box-shadow: var(--shadow-lift); }
.page-icon .glyph { width: 42px; height: 42px; stroke-width: 1.7; }
.page-head h1 { margin-top: 22px; }
.prose h1 { font-size: clamp(2.2rem, 5.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.025em; text-align: center; }
.prose > .lede, .prose > .updated { text-align: center; margin-left: auto; margin-right: auto; }
.prose > .lede { color: var(--muted); max-width: 40ch; margin-top: 14px; margin-bottom: 0; font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.45; }
.prose > .updated { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2.6em 0 0.55em; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 1.8em 0 0.4em; }
.prose p { margin: 0.75em 0; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-size: 0.92em; background: var(--chip); padding: 0.1em 0.35em; border-radius: 6px; }

.prose ul:not([class]) { list-style: none; margin: 0.8em 0; padding: 0; }
.prose ul:not([class]) > li { position: relative; margin: 0.5em 0; padding-left: 22px; color: var(--ink-soft); }
.prose ul:not([class]) > li::before {
  content: ""; position: absolute; left: 3px; top: 0.66em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand);
}
.prose li ul:not([class]) { margin: 0.3em 0; }

/* A title with its icon */
.with-icon { display: flex; align-items: center; gap: 12px; }
.with-icon .tile { width: 32px; height: 32px; border-radius: 8.5px; }

/* A paragraph set apart */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px; margin: 28px 0;
}
.callout .tile { width: 40px; height: 40px; border-radius: 11px; }
.callout .tile .glyph { width: 24px; height: 24px; }
.callout p { margin: 0; color: var(--ink); font-size: 1.08rem; line-height: 1.55; }

/* A list as a grouped list: one card, rows separated by a hairline, as in Settings */
.rows, .facts {
  list-style: none; margin: 18px 0; padding: 0;
  background: var(--surface); border-radius: var(--radius-small); box-shadow: var(--shadow); overflow: hidden;
}
.rows li { position: relative; display: flex; gap: 14px; padding: 16px 20px 17px; }
.rows li + li::before {
  content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--separator);
}
.rows li:not(:has(.tile)) + li::before, .rows li:not(:has(.tile))::before { left: 20px; }
.rows .tile { margin-top: 1px; }
.rows strong { display: block; font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.rows p { margin: 4px 0 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

.facts > div { position: relative; display: grid; gap: 2px; padding: 14px 20px; }
.facts > div + div::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--separator); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 620px) {
  .facts > div { grid-template-columns: minmax(0, 15em) 1fr; gap: 20px; align-items: baseline; }
  .facts dt { font-size: 1rem; }
  .facts dd { text-align: right; }
}

/* A list as cards */
.info-cards { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 760px) { .info-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.info-card .tile { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px; }
.info-card .tile .glyph { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.prose .info-card h3 { margin: 0; }
.info-card p { margin: 8px 0 0; color: var(--muted); font-size: 0.98rem; }

/* Support: write to us */
.contact-card {
  display: grid; gap: 18px; justify-items: center; text-align: center;
  max-width: 800px; margin: 40px auto 0; padding: 28px 24px;
  background: var(--surface); border-radius: 26px; box-shadow: var(--shadow);
}
.contact-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; color: #fff; background: linear-gradient(165deg, #a294ff, #6a55e8); box-shadow: var(--shadow-lift); }
.contact-icon .glyph { width: 30px; height: 30px; stroke-width: 1.8; }
.prose .contact-card h2 { margin: 0; font-size: 1.4rem; }
.contact-text p { margin: 8px 0 0; }
.prose .contact-text .contact-hint { color: var(--muted); font-size: 0.94rem; }
.contact-text a { overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .contact-card { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; padding: 28px 30px; gap: 22px; }
}

/* Support: the questions */
.faq { margin-top: 64px; }
.prose .section-heading { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 800; text-align: center; margin: 0 0 24px; }

.topics { list-style: none; max-width: 800px; margin: 0 auto; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topics a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%;
  padding: 16px 16px 15px; border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.topics a:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.topics a:active { transform: scale(0.98); }
.topics .tile { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px; }
.topics .tile .glyph { width: 22px; height: 22px; }
.topic-name { font-family: var(--rounded); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.topic-count { color: var(--muted); font-size: 0.86rem; }
/* Wider, three across: the icon beside the words, as on Apple's support pages. */
@media (min-width: 640px) {
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topics a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-content: center; padding: 16px 18px; }
  .topics .tile { grid-row: span 2; align-self: center; margin-bottom: 0; }
  .topic-name { align-self: end; }
  .topic-count { align-self: start; }
}

.faq-group { max-width: 800px; margin: 52px auto 0; }
.prose .faq-group h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 14px 4px; }
.faq-list { background: var(--surface); border-radius: var(--radius-small); box-shadow: var(--shadow); overflow: hidden; }
.faq-list details { position: relative; }
.faq-list details + details::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--separator); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 15px 18px 15px 20px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--surface-hover); }
.faq-list summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq-list .chevron { flex: none; width: 20px; height: 20px; color: var(--muted); stroke-width: 2.2; transition: transform 0.3s var(--ease); }
.faq-list details[open] > summary .chevron { transform: rotate(180deg); }
.faq-list .answer { padding: 0 20px 18px; }
.faq-list details[open] .answer { animation: reveal 0.3s var(--ease); }
.prose .faq-list .answer p { margin: 0 0 0.7em; }
.prose .faq-list .answer > :last-child { margin-bottom: 0; }
.prose .faq-list .answer ul:not([class]) { margin: 0.4em 0 0.7em; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* Links onward, as cards */
.more { max-width: 800px; margin: 64px auto 0; }
.prose .more h2 { font-size: 1.35rem; margin: 0 0 14px 4px; }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.link-cards a {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px;
  background: var(--surface); border-radius: var(--radius-small); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.link-cards a:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.link-cards a > span:last-of-type { display: grid; gap: 1px; flex: 1; }
.link-cards strong { font-weight: 600; }
.link-cards a > span:last-of-type > span { color: var(--muted); font-size: 0.92rem; }
.link-icon { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--accent); background: var(--chip); }
.link-icon .glyph { width: 21px; height: 21px; }

mark.todo { background: var(--todo); color: var(--todo-ink); padding: 0.05em 0.35em; border-radius: 5px; font-weight: 600; }

@media (max-width: 520px) {
  .prose { padding-top: 40px; }
  .callout { padding: 18px; gap: 14px; }
  .info-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
