/* Layout: a bright, photographic page. Light by default, a cool slate dark when the visitor's system
   (or the header toggle) asks for it. A hero inside a wall of real photographs, then chapters that each
   show one thing the app does: every screen, days, backup to your own NAS, editing, collections,
   a plain truth table and a short FAQ.
   Type: Bricolage Grotesque for display (tight, large), Manrope (the app's own face) for everything else.
   --ink is the ground and --bone the text in either theme; anything laid over a photograph keeps its
   own light-on-dark colours. */
:root {
  --ink: #f7f8f6; --ink-2: #ffffff; --ink-3: #eceeea; --line: rgba(13, 21, 24, .11);
  --bone: #0d1518; --bone-dim: rgba(13, 21, 24, .72); --bone-faint: rgba(13, 21, 24, .63);
  --lagoon: #1f6f8b; --lagoon-soft: rgba(31, 111, 139, .1); --mist: #1a5f78; --glow: #ff8a4c; --leaf: #2f7d4f;
  --bg-rgb: 247, 248, 246; --fg-rgb: 13, 21, 24; --wall: .92; --shadow: 0 30px 60px -30px rgba(16, 36, 44, .35);
  --display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --ui: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px); --max: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0f181c; --ink-2: #152227; --ink-3: #1c2c33; --line: rgba(222, 236, 238, .12);
    --bone: #eef2f0; --bone-dim: rgba(238, 242, 240, .74); --bone-faint: rgba(238, 242, 240, .6);
    --lagoon: #6cbcd8; --lagoon-soft: rgba(108, 188, 216, .12); --mist: #a9dbea; --leaf: #7fd09d;
    --bg-rgb: 15, 24, 28; --fg-rgb: 238, 242, 240; --wall: .62; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #0f181c; --ink-2: #152227; --ink-3: #1c2c33; --line: rgba(222, 236, 238, .12);
  --bone: #eef2f0; --bone-dim: rgba(238, 242, 240, .74); --bone-faint: rgba(238, 242, 240, .6);
  --lagoon: #6cbcd8; --lagoon-soft: rgba(108, 188, 216, .12); --mist: #a9dbea; --leaf: #7fd09d;
  --bg-rgb: 15, 24, 28; --fg-rgb: 238, 242, 240; --wall: .62; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 500 clamp(16px, 0.96rem + 0.18vw, 18px)/1.6 var(--ui); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--glow); color: #0d1518; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: .98; margin: 0; text-wrap: balance; font-stretch: 88%; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; box-shadow: 0 0 0 5px var(--ink); border-radius: 6px; }

/* ── Mark ── */
.mark { width: 34px; height: 34px; border-radius: 9px; flex: none; display: block; }

/* ── Navigation ── */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(var(--bg-rgb), .82); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.03em; font-stretch: 90%; }
.nav nav { display: flex; gap: 24px; font-size: .94rem; }
.nav nav a { text-decoration: none; color: var(--bone-dim); }
.nav nav a:hover { color: var(--bone); }
.soon { font-size: .82rem; color: var(--bone-dim); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
@media (max-width: 1080px) { .nav nav { display: none; } }
a.soon { text-decoration: none; color: var(--bone); border-color: var(--lagoon); }
a.soon:hover { background: var(--lagoon-soft); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(48px, 9vw, 120px) clamp(56px, 8vw, 110px); }
.wall { position: absolute; inset: -8% -4%; z-index: -2; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; transform: rotate(-4deg) scale(1.08); opacity: var(--wall); }
.wall img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, var(--ink) 0%, rgba(var(--bg-rgb), .94) 30%, rgba(var(--bg-rgb), .45) 56%, rgba(var(--bg-rgb), .08) 100%),
  linear-gradient(180deg, rgba(var(--bg-rgb), 0) 70%, var(--ink) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.eyebrow i { width: 26px; height: 2px; background: var(--glow); display: block; }
.hero h1 { font-size: clamp(3.1rem, 1.6rem + 6.4vw, 7.2rem); margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--lagoon); }
.hero .lede { margin-top: 26px; font-size: clamp(1.08rem, 1rem + .45vw, 1.32rem); color: var(--bone-dim); max-width: 36ch; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px 12px 14px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); font-size: .9rem; line-height: 1.2; }
.store svg { width: 20px; height: 20px; flex: none; color: var(--bone-faint); }
.store span { font-weight: 700; }
.store small { display: block; color: var(--bone-faint); font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
a.store { text-decoration: none; color: var(--bone); transition: border-color .2s, background .2s; }
a.store:hover { border-color: var(--lagoon); background: var(--lagoon-soft); }
a.store svg { color: var(--lagoon); }
.store-note { margin-top: 12px; color: var(--bone-faint); font-size: .88rem; max-width: 46ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--bone-dim); font-size: .9rem; }
.facts span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lagoon); margin-right: 9px; vertical-align: 2px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(5, 1fr); opacity: .5; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--bg-rgb), .7), var(--ink) 70%); }
}

/* ── Phone (the app's Photos screen, drawn in HTML from the app's own layout) ── */
.phone { --w: clamp(250px, 26vw, 340px); width: var(--w); margin-inline: auto; aspect-ratio: 9 / 19.4; border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .028);
  background: linear-gradient(145deg, #3b4549, #0e1416 40%, #1d272a); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 60px 90px -30px rgba(0,0,0,.85), 0 30px 60px -40px rgba(58,147,178,.55); position: relative; }
.screen { width: 100%; height: 100%; border-radius: calc(var(--w) * .135); overflow: hidden; background: #f6f8f9; color: #111a1d; position: relative; font-family: -apple-system, "SF Pro Text", var(--ui); }
.island { position: absolute; top: calc(var(--w) * .03); left: 50%; transform: translateX(-50%); width: 30%; height: calc(var(--w) * .085); background: #000; border-radius: 99px; z-index: 5; }
.app-head { display: flex; align-items: center; gap: calc(var(--w) * .025); padding: calc(var(--w) * .17) calc(var(--w) * .04) calc(var(--w) * .04); }
.capsule { background: #fff; border-radius: 99px; padding: calc(var(--w) * .022) calc(var(--w) * .05); box-shadow: 0 6px 18px rgba(16,30,36,.08); margin-right: auto; }
.capsule b { display: block; font-size: calc(var(--w) * .062); letter-spacing: -.01em; line-height: 1.1; }
.capsule span { font-size: calc(var(--w) * .033); color: #4b5b61; font-weight: 600; }
.round { width: calc(var(--w) * .1); height: calc(var(--w) * .1); border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(16,30,36,.08); display: grid; place-items: center; }
.round svg { width: 46%; height: 46%; }
.day { font-weight: 700; font-size: calc(var(--w) * .045); padding: calc(var(--w) * .035) calc(var(--w) * .04) calc(var(--w) * .022); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.grid4 img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.grid4 .t { position: relative; }
.grid4 .t .dur { position: absolute; right: 4px; bottom: 4px; font-size: calc(var(--w) * .028); font-weight: 700; color: #fff; background: rgba(0,0,0,.35); border-radius: 99px; padding: 1px 5px; }
.grid4 .t .fav { position: absolute; left: 5px; bottom: 5px; width: calc(var(--w) * .045); height: calc(var(--w) * .045); }
.tabbar { position: absolute; left: 12%; right: 12%; bottom: calc(var(--w) * .07); display: flex; align-items: center; gap: calc(var(--w) * .025); }
.tabs { flex: 1; display: flex; background: rgba(255,255,255,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 99px; padding: calc(var(--w) * .012); box-shadow: 0 10px 30px rgba(16,30,36,.18); border: 1px solid rgba(255,255,255,.7); }
.tab { flex: 1; text-align: center; font-size: calc(var(--w) * .032); font-weight: 700; padding: calc(var(--w) * .02) 0; border-radius: 99px; color: #26353a; display: grid; justify-items: center; gap: 2px; }
.tab.on { background: #fff; color: #1f6f8b; }
.tab svg { width: calc(var(--w) * .062); height: calc(var(--w) * .062); }
.searchbtn { width: calc(var(--w) * .135); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(16,30,36,.18); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); }
.searchbtn svg { width: 40%; height: 40%; }

/* ── Chapters ── */
section.chapter { padding-block: clamp(72px, 11vw, 150px); border-top: 1px solid var(--line); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); }
.chapter h2 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 5rem); margin-top: 14px; max-width: 15ch; }
.chapter .body { color: var(--bone-dim); max-width: 48ch; margin-top: 20px; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); }
.note { margin-top: 10px; color: var(--bone-faint); font-size: .84rem; }

/* Every screen: one device frame that turns into each kind of window, its grid re-flowing as the app's does. */
.screens-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.controls { display: grid; gap: 14px; justify-items: end; }
.controls .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.controls .lbl { font-size: .86rem; color: var(--bone-faint); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--ink-3); border: 1px solid var(--line); border-radius: 22px; padding: 4px; }
.seg button, .pill-btn { font: 700 .9rem var(--ui); color: var(--bone-dim); background: transparent; border: 0; min-width: 44px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; }
.seg.nums button { padding: 0; }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.pill-btn { border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.pill-btn svg { width: 18px; height: 18px; }
.pill-btn:disabled { opacity: .45; cursor: default; }
.pill-btn[aria-pressed="true"] { background: var(--lagoon-soft); color: var(--bone); border-color: transparent; }
.stage { --sh: clamp(360px, 48vw, 600px); margin-top: clamp(28px, 4vw, 48px); height: calc(var(--sh) + 24px); display: grid; place-items: center; touch-action: pan-y; }
.device { --r: .46; width: var(--dw, calc(var(--sh) * .46)); height: var(--dh, var(--sh)); border-radius: calc(min(var(--dw, 200px), var(--dh, 400px)) * .085); padding: 10px; background: #0d1518; box-shadow: var(--shadow), 0 0 0 1px rgba(var(--fg-rgb), .14); transition: width .7s cubic-bezier(.2, .8, .2, 1), height .7s cubic-bezier(.2, .8, .2, 1), border-radius .7s ease; }
.dscreen { width: 100%; height: 100%; border-radius: calc(min(var(--dw, 200px), var(--dh, 400px)) * .065); overflow: hidden; background: #f6f8f9; position: relative; display: flex; }
.fold-line { position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.12), rgba(0,0,0,0)); }
.stage[data-device="fold"] .fold-line { opacity: 1; }
.stage[data-device="fold"]:not([data-turned="true"]) .fold-line { top: 0; bottom: 0; left: 50%; width: 14px; transform: translateX(-50%); }
.stage[data-device="fold"][data-turned="true"] .fold-line { left: 0; right: 0; top: 50%; height: 14px; transform: translateY(-50%); background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.12), rgba(0,0,0,0)); }
.side { flex: none; width: 0; overflow: hidden; background: #eef2f3; display: flex; flex-direction: column; gap: 10px; padding-block: 16px; transition: width .6s cubic-bezier(.2, .8, .2, 1), padding .6s; }
.side i { display: block; flex: none; height: 30px; border-radius: 10px; background: #dde5e8; margin-inline: 12px; }
.side i.on { background: #cfe5ec; }
.side b { display: block; flex: none; height: 9px; border-radius: 4px; background: #c9d3d6; margin: 6px 14px 0; width: 46%; }
.stage.rail .side { width: 58px; }
.stage.rail .side b { display: none; }
.stage.sidebar .side { width: 26%; }
.stage.sidebar .side i { margin-inline: 12px; }
.dgrid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 2px; align-content: start; padding-top: 40px; }
.dgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dtitle { position: absolute; top: 14px; height: 12px; width: 22%; max-width: 110px; border-radius: 6px; background: #c9d3d6; left: var(--tl, 14px); transition: left .6s; }
.stage.rail .dtitle { --tl: 72px; }
.stage.sidebar .dtitle { --tl: calc(26% + 14px); }
.tabpill { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 58%; height: 46px; border-radius: 99px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 24px rgba(16, 30, 36, .2); transition: opacity .4s, transform .5s; }
.stage.rail .tabpill, .stage.sidebar .tabpill { opacity: 0; transform: translate(-50%, 30px); }
.stage-cap { text-align: center; color: var(--bone-dim); margin: 18px auto 0; max-width: 60ch; min-height: 3.2em; }
.stage-cap b { color: var(--bone); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.card .art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--ink-3); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .txt { padding: 20px 22px 24px; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--bone-dim); margin-top: 10px; font-size: .98rem; }
.art.details img { width: 64%; }
.art.details .pane { position: absolute; top: 0; right: 0; bottom: 0; width: 36%; background: #f6f8f9; padding: 14px 12px; display: grid; align-content: start; gap: 7px; }
.art.details .pane b { font: 700 .8rem/1.2 var(--ui); color: #0d1518; }
.art.details .pane span { font: 600 .68rem/1.3 var(--ui); color: #3d4c51; }
.art.details .pane .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 4px; }
.art.details .pane .thumbs img { width: 100%; aspect-ratio: 1; height: auto; border-radius: 4px; }
.art.tabletop { display: grid; grid-template-rows: 1fr 1fr; background: #0d1518; padding: 10px; gap: 6px; }
.art.tabletop .top { border-radius: 10px 10px 4px 4px; overflow: hidden; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; align-content: start; background: #f6f8f9; }
.art.tabletop .top img { aspect-ratio: 1; height: auto; }
.art.tabletop .bottom { border-radius: 4px 4px 10px 10px; background: #f6f8f9; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; align-items: center; padding: 0 16px; }
.art.tabletop .bottom i { height: 34px; border-radius: 99px; background: #dde5e8; }
.art.tabletop .bottom i.on { background: #cfe5ec; }
.art.keys { display: grid; place-items: center; background: var(--ink-3); }
.art.keys .wins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 82%; }
.art.keys .win { border-radius: 10px; overflow: hidden; background: #f6f8f9; box-shadow: 0 10px 24px -12px rgba(16, 30, 36, .45); }
.art.keys .win .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding-top: 14px; }
.art.keys .win .g img { aspect-ratio: 1; height: auto; }
.art.keys .win.v img { aspect-ratio: 1.1; height: auto; padding-top: 0; }
.art.keys .kb { display: flex; gap: 6px; margin-top: 12px; justify-content: center; }
.art.keys kbd { font: 700 .8rem var(--ui); min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--ink-2); border: 1px solid var(--line); color: var(--bone); box-shadow: 0 2px 0 var(--line); padding: 0 8px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } .card .art { aspect-ratio: 16 / 9; } }
@media (max-width: 860px) { .screens-head { grid-template-columns: 1fr; } .controls, .controls .row { justify-items: start; justify-content: flex-start; } }

/* Days */
.days { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.daylist { display: grid; gap: 22px; }
.dayrow h3 { font-family: var(--ui); font-weight: 700; letter-spacing: -0.01em; font-size: 1.02rem; line-height: 1.2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.dayrow h3 small { color: var(--bone-faint); font-weight: 600; font-size: .86rem; }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
@media (max-width: 900px) { .days { grid-template-columns: 1fr; } }

/* Backup: your own server. A copy flows from the phone to a NAS, files land in dated folders. */
.backup-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.backup h2 { max-width: 13ch; }
.promises { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.promises li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.promises li svg { width: 22px; height: 22px; color: var(--leaf); margin-top: 3px; }
.promises b { display: block; color: var(--bone); }
.promises span { color: var(--bone-dim); font-size: .98rem; }
.flow { position: relative; display: grid; gap: 0; justify-items: center; }
.flow .from-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 10px; }
.flow .from { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: min(100%, 360px); padding: 10px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flow .from img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.flow .wire { height: 92px; width: 2px; position: relative; background: repeating-linear-gradient(180deg, var(--lagoon) 0 6px, transparent 6px 12px); }
.flow .wire span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-faint); }
.flow .dot { position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--lagoon); box-shadow: 0 0 0 5px var(--lagoon-soft); top: 0; opacity: 0; }
.nas { width: min(100%, 460px); border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.nas header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.nas header svg { width: 28px; height: 28px; color: var(--lagoon); flex: none; }
.nas header b { display: block; font-size: .98rem; }
.nas header small { color: var(--bone-faint); font-size: .8rem; }
.nas .path { padding: 10px 18px; font-size: .82rem; color: var(--bone-dim); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.nas .path b { color: var(--bone); }
.nas ul { list-style: none; margin: 0; padding: 6px 0; }
.nas li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 18px; font-size: .86rem; }
.nas li img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.nas li span { overflow-wrap: anywhere; color: var(--bone); font-weight: 600; }
.nas li small { display: block; color: var(--bone-faint); font-weight: 600; font-size: .76rem; }
.nas li svg { width: 20px; height: 20px; color: var(--leaf); }
.nas footer { border: 0; padding: 12px 18px 16px; font-size: .82rem; color: var(--bone-dim); display: grid; gap: 8px; }
.nas .bar { height: 6px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.nas .bar i { display: block; height: 100%; width: 99%; background: var(--leaf); border-radius: inherit; }
.plans { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.plans .intro h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.plans .intro p { color: var(--bone-dim); margin-top: 12px; }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: var(--ink-2); display: grid; align-content: start; gap: 6px; }
.plan h4 { margin: 0; font-size: .86rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; font-stretch: 90%; }
.plan .price small { font-family: var(--ui); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--bone-dim); }
.plan p { color: var(--bone-dim); font-size: .94rem; margin-top: 6px; }
.fine { margin-top: 18px; color: var(--bone-faint); font-size: .86rem; max-width: 90ch; }
.fine a { color: var(--mist); text-underline-offset: 3px; }
@media (max-width: 960px) { .backup-wrap { grid-template-columns: 1fr; } .plans { grid-template-columns: 1fr; } }

/* Edit */
.edit { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.compare { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { filter: saturate(1.35) contrast(1.12) brightness(1.04) sepia(.12) hue-rotate(-6deg); clip-path: inset(0 0 0 var(--at, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--at, 50%); width: 2px; background: #eef1ee; transform: translateX(-1px); }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: #eef1ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1316' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.compare .tag { position: absolute; top: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(11,19,22,.6); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 99px; color: #eef1ee; }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tools span { font-size: .88rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--bone-dim); }
.tools span b { color: var(--bone); font-weight: 700; }
.note { margin-top: 10px; color: var(--bone-faint); font-size: .82rem; }
@media (max-width: 900px) { .edit { grid-template-columns: 1fr; } .edit .compare { order: 2; } }

/* Collections */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 52px); }
.coll { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-3); }
.coll img { width: 100%; height: 100%; object-fit: cover; }
.coll::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 14, 16, .85)); }
.coll div { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #eef1ee; }
.coll b { display: block; font-size: 1.05rem; }
.coll small { color: rgba(238, 241, 238, .78); font-size: .82rem; }
.coll.locked img { filter: blur(18px) saturate(.8); transform: scale(1.15); }
.coll.locked .lock { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: rgba(238,241,238,.14); backdrop-filter: blur(6px); display: grid; place-items: center; border: 1px solid rgba(238,241,238,.25); }
.coll.locked .lock svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Truth table */
.truth { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 90px); }
.ledger { border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-weight: 700; margin: 0; }
.ledger dd { margin: 0; color: var(--bone-dim); }
.ledger dd b { color: var(--mist); font-weight: 700; }
@media (max-width: 900px) { .truth { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ledger div { grid-template-columns: 1fr; gap: 4px; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 700; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; border-right: 2px solid var(--bone-dim); border-bottom: 2px solid var(--bone-dim); transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq details p { color: var(--bone-dim); padding-bottom: 22px; max-width: 64ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 44px; color: var(--bone-faint); font-size: .9rem; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer nav a { text-decoration: none; color: var(--bone-dim); }
footer nav a:hover { color: var(--bone); }
footer .co { margin-top: 12px; max-width: 46ch; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }

/* The stage's other screens: a photo with its details pane (tablet), and a foldable half open. */
.dview { display: none; flex: 1; min-width: 0; position: relative; background: #0d1518; }
.dview > img { position: absolute; inset: 0 34% 0 0; width: 66%; height: 100%; object-fit: cover; }
.dpane { position: absolute; top: 0; right: 0; bottom: 0; width: 34%; background: #f6f8f9; padding: 40px 16px 16px; display: grid; align-content: start; gap: 9px; }
.dpane b { display: block; height: 14px; width: 80%; border-radius: 5px; background: #0d1518; opacity: .8; }
.dpane i { display: block; height: 9px; width: 64%; border-radius: 4px; background: #c9d3d6; }
.dpane i.s { width: 44%; }
.dpane .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.dpane .thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.stage.viewer .dgrid { display: none; }
.stage.viewer .dview { display: block; }
.stage.viewer .dtitle { opacity: 0; }
.tpanel { display: none; }
.stage.half .dscreen { flex-direction: column; }
.stage.half .side { display: none; }
.stage.half .dgrid { flex: none; height: 50%; overflow: hidden; padding-top: 34px; }
.stage.half .tpanel { display: grid; flex: none; height: 50%; grid-template-columns: 2fr 1fr 1fr; gap: 14px; align-items: center; padding: 0 9%; background: #eef2f3; }
.tpanel span { height: 46px; border-radius: 99px; background: #dde5e8; }
.tpanel span.on { background: #cfe5ec; }
.stage.half .fold-line { opacity: 1; left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 14px; transform: translateY(-50%); background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.14), rgba(0,0,0,0)); }
.stage.half .tabpill { opacity: 0; }

/* Cards: Collections beside its album */
.art.lists { display: grid; grid-template-columns: 34% 1fr; background: #f6f8f9; }
.art.lists .list { display: grid; gap: 8px; align-content: start; padding: 14px 10px; background: #eef2f3; }
.art.lists .list span { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding: 4px; border-radius: 10px; }
.art.lists .list span.on { box-shadow: 0 0 0 2px #1f6f8b inset; background: #fff; }
.art.lists .list img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.art.lists .list i { height: 8px; border-radius: 4px; background: #c9d3d6; }
.art.lists .album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-content: start; padding-top: 22px; }
.art.lists .album img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }

/* Accessibility */
.a11y-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 90px); align-items: end; }
.sizes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: start; }
.sizes figure { margin: 0; }
.sizes img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.sizes figcaption { margin-top: 8px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.facts-grid { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts-grid li { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.facts-grid b { font-size: 1.04rem; }
.facts-grid span { color: var(--bone-dim); font-size: .95rem; }
#accessibility .note a { color: var(--mist); }
@media (max-width: 1000px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .a11y-head { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; } }
.plan .price small:first-child { margin-right: 4px; }


@media (prefers-reduced-motion: no-preference) {
  .wall { animation: drift 70s linear infinite alternate; }
  @keyframes drift { from { transform: rotate(-4deg) scale(1.08) translateY(0); } to { transform: rotate(-4deg) scale(1.08) translateY(-5%); } }
  .flow .dot { animation: travel 2.8s cubic-bezier(.4, 0, .2, 1) infinite; }
  @keyframes travel { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .device, .side, .dtitle, .tabpill { transition: none; } }
.paused .wall, .paused .flow .dot { animation-play-state: paused; }

/* ── Document pages (privacy, terms, legal notice, support, 404) ── */
.doc { padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); margin-top: 14px; }
.doc .meta { margin-top: 18px; color: var(--bone-faint); font-size: .92rem; }
.doc .lead { margin-top: 26px; font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); color: var(--bone-dim); }
.doc .lead strong { color: var(--bone); }
.doc h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font-family: var(--ui); font-weight: 700; letter-spacing: -0.01em; font-size: 1.08rem; line-height: 1.3; margin-top: 30px; }
.doc p, .doc li { color: var(--bone-dim); max-width: 68ch; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 1.15rem; display: grid; gap: 10px; }
.doc li strong, .doc p strong { color: var(--bone); }
.doc a { color: var(--mist); text-underline-offset: 3px; }
.doc a:hover { color: var(--bone); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: .98rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--bone); font-weight: 700; width: 38%; }
.doc td { color: var(--bone-dim); }
.doc .note { margin-top: 26px; border: 1px solid var(--line); background: var(--ink-2); border-radius: 16px; padding: 16px 18px; color: var(--bone-dim); }
@media (max-width: 560px) { .doc th, .doc td { display: block; width: auto; padding-right: 0; } .doc th { border-bottom: 0; padding-bottom: 2px; } }

/* Theme toggle in the header: switches between light and dark, remembered on this device. */
.theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--bone-dim); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme:hover { color: var(--bone); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme .sun { display: block; }
  :root:not([data-theme]) .theme .moon { display: none; }
}
