/* pempio.com home.
   Read as: a download page for everyday people, drawn like a clear printed diagram. Energy 2, rhythm 2, motion 1.
   Why each choice:
   - White page, light grey bands: the owner asked for it. Always light.
   - Atkinson Hyperlegible: made for easy reading, which suits people who are not technical.
   - Teal is the brand colour and marks only what can be clicked. Yellow marks only the file.
   - Devices are ink outlines on white, like a diagram in a manual, so nothing competes with the yellow file.
   - No cards, badges or shadows: the content is short enough to stand as plain type. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(fonts/ah-next.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(fonts/ah-next-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --white: #FFFFFF;
  --gray: #F4F5F7;
  --gray-2: #E6E9ED;
  --ink: #1A1D21;
  --ink-2: #565C63;
  --line: #D3D7DC;
  --teal: #007A6E;
  --teal-hover: #00685D;
  --side: 40px;
  --max: 1200px;
  --pad: 120px;
}
@media (max-width: 899px) { :root { --side: 24px; --pad: 88px; } }
@media (max-width: 559px) { :root { --side: 20px; --pad: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--white); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 12px 16px; z-index: 5; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }
p { max-width: 36em; }

/* every band runs edge to edge; its content keeps to the centre column */
.top, section, .foot { padding-inline: max(var(--side), calc((100% - var(--max)) / 2 + var(--side))); }
section { padding-block: var(--pad); }
.band { background: var(--gray); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 28px; border-radius: 8px; background: var(--teal); color: var(--white); font: 700 18px/1 var(--sans); text-decoration: none; transition: background-color 120ms; }
.btn:hover { background: var(--teal-hover); }
.btn-s { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.logo { color: var(--ink); }
.logo svg { height: 38px; width: auto; }
.top nav { display: flex; align-items: center; gap: 32px; font-size: 16px; }
.nl { text-decoration: none; padding: 10px 0; }
.nl:hover { text-decoration: underline; text-decoration-color: var(--teal); }
@media (max-width: 559px) { .nl { display: none; } .logo svg { height: 32px; } .top { height: 72px; } }

/* ---------- hero: the words on the left, the table of devices on the right ---------- */
.hero { padding-block: 32px var(--pad); }
.hero-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.035em; }
.hero .lead { margin-top: 24px; max-width: 26em; }
.hero .btn { margin-top: 28px; }
.fine { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 899px) {
  .hero { padding-top: 24px; }
  .hero-top { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(40px, 9vw, 62px); }
  .stage { width: 100%; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 559px) { .hero .btn { width: 100%; } }

/* the table: five devices on one table top, seen from above and to the side. The picture is one SVG
   (tools/hero-scene.mjs draws it); the buttons lie over it, one on each device. Three greys give the sides their depth. */
.table { position: relative; }
.scene { width: 100%; overflow: visible; }
.scene polygon { stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.t-t { fill: var(--gray); } .t-l { fill: var(--gray-2); } .t-r { fill: var(--line); }
.d-t { fill: var(--white); } .d-l { fill: #EEF0F2; } .d-r { fill: #DADDE2; }
.scene .d-scr { fill: var(--gray-2); stroke-width: 1.2; transition: fill 300ms ease; }
.scene .d-key { fill: var(--gray-2); stroke-width: 1; }
.scene .d-ink { fill: var(--ink); stroke: none; }
.dev.has .d-scr { fill: #FFF3CF; } /* the screen that holds the file is lit */
/* what is sent is a photo or a folder; the scene shows one kind at a time */
.scene .k-folder, .scene.folder .k-photo { display: none; }
.scene.folder .k-folder { display: inline; }
.dev .ph { opacity: 0; transition: opacity 200ms ease; }
.dev.has .ph { opacity: 1; }
.scene .route { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.shade { fill: rgb(26 29 33 / .2); opacity: 0; }
.flyer { opacity: 0; }
.devs { position: absolute; inset: 0; list-style: none; padding: 0; }
.devs li { position: absolute; }
.dv { position: relative; display: block; width: 100%; height: 100%; padding: 0; background: none; border: 0; border-radius: 6px; color: var(--ink); font: inherit; cursor: pointer; }
.dv:disabled, .dv.has { cursor: default; }
/* each screen carries its system's logo, so no names are needed; the logo gives way to the photo */
.lg { fill: var(--ink); transition: opacity 200ms ease; }
.dev.has .lg { opacity: 0; }
/* three dots on a screen while someone types the code there; they take the logo's place */
.ty { opacity: 0; fill: var(--ink); transition: opacity 120ms ease; }
.dev.typing .ty { opacity: 1; }
.dev.typing .lg { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes dot { 0%, 60%, 100% { opacity: .22; } 30% { opacity: 1; } }
  .dev.typing .ty circle { animation: dot 520ms ease-in-out infinite; }
  .dev.typing .ty circle:nth-child(2) { animation-delay: 90ms; }
  .dev.typing .ty circle:nth-child(3) { animation-delay: 180ms; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .scene .d-scr, .dev .ph, .lg, .ty { transition: none; } }

/* a download button for each system, straight after the stage. Outlined, so the one filled button above stays the main one. */
.plats { margin-top: 48px; display: flex; align-items: center; gap: 12px 24px; }
.plats p { flex: none; font-weight: 700; }
.plats ul { flex: 1; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.plats a, .plats li div { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 14px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.plats svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.plats b { font-weight: 800; }
.plats a { border: 1.5px solid var(--ink); transition: background-color 120ms, color 120ms; }
.plats a:hover { background: var(--ink); color: var(--white); }
.plats li div { background: var(--gray); color: var(--ink-2); }
.plats li div b { font-weight: 700; }
@media (max-width: 899px) { .plats { flex-direction: column; align-items: stretch; margin-top: 40px; } .plats ul { grid-template-columns: repeat(3, 1fr); } }
/* on a phone: the three downloads share a row with the logo over the name; the two not out yet sit under them */
@media (max-width: 559px) {
  .plats ul { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .plats li { grid-column: span 2; }
  .plats li:nth-child(n + 4) { grid-column: span 3; }
  .plats a { flex-direction: column; gap: 6px; min-height: 72px; padding: 0 4px; font-size: 16px; }
  .plats li div { min-height: 48px; padding: 0 6px; font-size: 15px; }
  .plats li div svg { display: none; }
}

/* ---------- how to send: three steps in a row, each one picture and one sentence ---------- */
.steps { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pic { position: relative; aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; }
/* a screenshot sits whole inside its frame, whatever its shape */
.pic img { position: absolute; inset: 0; margin: auto; width: auto; max-width: calc(100% - 48px); max-height: calc(100% - 48px); }
.pick { width: 82%; }
.steps h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.num { flex: none; font-size: 36px; font-weight: 800; line-height: 1; color: var(--teal); }
.steps p { margin-top: 8px; color: var(--ink-2); }
.t-paper { fill: var(--white); stroke: var(--line); stroke-width: 2; }
.t-lines { stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; fill: none; }
.t-teal { fill: var(--teal); }
.ticks circle { fill: var(--ink); } .ticks path { stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.t-btn-text { fill: var(--white); font: 700 15px var(--sans); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; gap: 48px; max-width: 520px; margin-top: 40px; } }

/* ---------- what it leaves out: a plain list in big type ---------- */
.nos { margin-top: 56px; border-bottom: 1px solid var(--line); }
.nos div { display: grid; grid-template-columns: 6fr 5fr; gap: 12px 48px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.nos dt { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.nos dd { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 759px) { .nos { margin-top: 36px; } .nos div { grid-template-columns: 1fr; padding: 22px 0; } .nos dd { font-size: 17px; } }

/* ---------- questions: all open, since each answer is a sentence or two ---------- */
.qs { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 72px; }
.q p { margin-top: 6px; color: var(--ink-2); }
.ask { margin-top: 56px; color: var(--ink-2); }
@media (max-width: 759px) { .qs { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; } .ask { margin-top: 40px; } }

/* ---------- download ---------- */
.get { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: end; }
.get p { margin-top: 16px; color: var(--ink-2); }
@media (max-width: 759px) { .get { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .get .btn { width: 100%; } }

/* ---------- the download page: one block per system, its button on the left, its first-run steps on the right ---------- */
.dl-hero { padding-block: 48px 56px; }
.dl-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
.dl-hero .lead { margin-top: 20px; max-width: 30em; }
.ver { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.dl-list { padding-block: 0 var(--pad); }
.plat { display: grid; grid-template-columns: 5fr 7fr; gap: 28px 64px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.plat.soon { grid-template-columns: 1fr; gap: 0; padding: 28px 0; color: var(--ink-2); }
.plat-head { display: flex; align-items: center; gap: 14px; }
.plat-head svg { flex: none; width: 30px; height: 30px; fill: currentColor; }
.plat h2 { font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.here-tag { padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.req, .hint, .note { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.dls { max-width: none; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.dl.second { background: none; color: var(--ink); border: 1.5px solid var(--ink); }
.dl.second:hover { background: var(--ink); color: var(--white); }
.first h3 { font-size: 20px; }
.started-note { display: none; margin-bottom: 14px; font-weight: 700; color: var(--teal); }
.plat.started .started-note { display: block; }
.route { margin-top: 12px; padding-left: 1.4em; }
.route li { margin-top: 10px; padding-left: 4px; max-width: 34em; }
.frl { margin-top: 22px; font-weight: 700; }
.cmd { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; padding: 10px 14px; background: var(--gray); border-radius: 8px; }
.cmd code { font: 15px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; } /* a command to copy: monospace is what it is typed in */
.copy { flex: none; min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--teal); font: 700 15px/1 var(--sans); cursor: pointer; }
.copy:hover { text-decoration: underline; }
@media (max-width: 899px) { .plat { grid-template-columns: 1fr; padding: 36px 0; } }
@media (max-width: 559px) { .dls .btn { width: 100%; } .plat h2 { font-size: 28px; } }

/* ---------- the legal pages: one readable column ---------- */
main.legal { padding-inline: max(var(--side), calc((100% - var(--max)) / 2 + var(--side))); padding-block: 48px var(--pad); }
.legal > * { max-width: 40em; }
.legal > details, .legal > pre, .legal > .scroll { max-width: 60em; }
.legal h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 12px; }
.legal h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.015em; margin: 44px 0 8px; }
.legal p, .legal ul, .legal ol { margin: 12px 0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { overflow-wrap: anywhere; } /* long web addresses wrap, they do not push the page wide */
.legal .updated { font-size: 15px; color: var(--ink-2); }
.legal .box { margin: 24px 0; padding: 16px 20px; background: var(--gray); border-radius: 8px; }
.legal .scroll { overflow-x: auto; }
.legal table { border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal details { border-top: 1px solid var(--line); padding: 10px 0; }
.legal summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.legal pre { margin: 12px 0; padding: 14px 16px; background: var(--gray); border-radius: 8px; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-x: auto; }

/* footer */
.foot { padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot a { text-decoration: none; padding: 8px 0; }
.foot a:hover { text-decoration: underline; }
.langs { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.langs a[aria-current] { color: var(--ink); font-weight: 700; }

/* Hindi: Devanagari comes from the system's own font. It needs more room between lines, and tight letter-spacing breaks its joins. */
:lang(hi) body, body:lang(hi) { font-family: "Atkinson Hyperlegible Next", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", system-ui, sans-serif; line-height: 1.75; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) .nos dt { letter-spacing: 0; line-height: 1.3; }
