/* Heron landing page.
   Colors, type and radii come from the Heron design system (tokens.json).
   One theme, dark, like the app. No web fonts: the system font is SF Pro on Apple devices. */

:root {
  color-scheme: dark;

  --surface-photo: #181818;
  --surface-window: #1c1c1c;
  --surface-stat: #1f1f1f;
  --surface-sidebar: #222222;
  --surface-bar: #252525;
  --surface-control: #303030;
  --border-divider: #333333;
  --border-control: #3a3a3a;
  --border-panel: #3f3f3f;
  --ink: #e8e8e8;
  --ink-secondary: #a3a3a3;
  --ink-tertiary: #8f8f8f;
  --accent: #0a64d6;
  --accent-focus: #0a84ff;
  --on-accent: #ffffff;
  --selection: #ffffff;
  --filter-chip: #303a48;
  --filter-chip-key: #9fb6d0;
  --status-online: #34c759;
  --status-warning: #ffb340;
  --status-warning-border: #6b5326;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius-thumb: 3px;
  --radius-tag: 4px;
  --radius-row: 5px;
  --radius-control: 6px;
  --radius-panel: 10px;

  --gutter: 32px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-photo);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--accent-focus); }
a:hover { color: #5aaeff; }
:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: var(--radius-control); text-decoration: none;
}
.skip:focus { top: 16px; color: var(--on-accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: var(--radius-control);
  background: var(--accent); color: var(--on-accent);
  font-size: 17px; font-weight: 600; text-decoration: none;
}
.btn:hover { color: var(--on-accent); background: #0b6ee8; }
.btn--quiet {
  height: 36px; padding: 0 16px; font-size: 14px; font-weight: 400;
  background: transparent; color: var(--ink); border: 1px solid var(--border-panel);
}
.btn--quiet:hover { background: var(--surface-sidebar); color: var(--ink); }

/* Header */
.nav { height: 80px; display: flex; align-items: center; gap: 24px; }
.nav__logo img { height: 26px; width: auto; }
.nav__lang { margin-left: auto; color: var(--ink-secondary); text-decoration: none; font-size: 14px; }
.nav__lang:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 112px; display: flex; flex-direction: column; gap: 36px; }
.hero h1 {
  font-size: clamp(44px, 7.5vw, 104px); line-height: 0.98; font-weight: 600;
  letter-spacing: -0.035em; max-width: 1100px;
}
.hero h1 span { display: block; color: var(--ink-tertiary); }
.hero__row { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-end; justify-content: space-between; }
.hero__lede { flex: 1 1 420px; max-width: 640px; font-size: 21px; line-height: 1.5; color: var(--ink-secondary); }
.hero__cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero__meta { font-size: 13px; color: var(--ink-tertiary); }

/* Small type shared by the interface fragments */
.ui-section { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-tertiary); }

/* App window, rebuilt from the design system (no real photos) */
.shot { padding-top: 88px; }
.window {
  border: 1px solid var(--border-control); border-radius: var(--radius-panel); overflow: hidden;
  background: var(--surface-window); display: flex; flex-direction: column;
}
.window__bar {
  height: 48px; background: var(--surface-bar); border-bottom: 1px solid var(--border-divider);
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
}
.window__dots { display: flex; gap: 8px; }
.window__dots span { width: 12px; height: 12px; border-radius: 6px; background: var(--border-panel); }
.window__title { font-size: 14px; font-weight: 600; padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__search {
  margin-left: auto; width: 240px; height: 28px; border-radius: var(--radius-control);
  background: var(--surface-window); border: 1px solid var(--border-control);
  display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 12px; color: var(--ink-tertiary);
}
.window__body { display: flex; height: 740px; }

.side {
  width: 216px; flex-shrink: 0; background: var(--surface-sidebar); border-right: 1px solid var(--border-divider);
  display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; font-size: 13px;
}
.side .ui-section { padding: 12px 8px 4px; }
.side .ui-section:first-child { padding-top: 4px; }
.side__row { padding: 3px 8px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.side__row--child { margin-left: 12px; }
.side__row--selected { background: var(--accent); color: var(--on-accent); border-radius: var(--radius-row); }
.side__note { color: var(--ink-tertiary); font-size: 11px; }
.dot { width: 7px; height: 7px; border-radius: 4px; flex-shrink: 0; }
.dot--online { background: var(--status-online); }
.dot--offline { border: 1px solid var(--ink-tertiary); }

/* Develop view: photo in the centre, Edit panel and rail on the right (app/ui/index.html) */
.window__icon { color: var(--ink-secondary); display: flex; padding-left: 8px; }
.window__crumb { font-size: 13px; color: var(--ink-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.window__crumb span { color: var(--ink-tertiary); padding: 0 2px; }
.window__crumb b { color: var(--ink); font-weight: 600; }
.modes {
  margin-left: auto; display: flex; padding: 2px; gap: 2px; border-radius: var(--radius-control);
  background: var(--surface-window); border: 1px solid var(--border-control); font-size: 12px; flex-shrink: 0;
}
.modes > span { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--radius-row); color: var(--ink-secondary); }
.modes > .modes--on { background: var(--surface-control); color: var(--ink); }
.window__search { margin-left: 0; width: 200px; flex-shrink: 0; }
.modes + .window__search { margin-left: auto; }

.view { flex-grow: 1; min-width: 0; position: relative; background: var(--surface-photo); display: flex; align-items: center; justify-content: center; padding: 28px 28px 64px; }
.view__photo {
  width: 100%; max-width: 720px; aspect-ratio: 3 / 2; border-radius: 1px;
  background:
    radial-gradient(ellipse 60% 40% at 68% 38%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #8c8c8c 0%, #b8b8b8 36%, #6e6e6e 54%, #3a3a3a 56%, #2a2a2a 78%, #1f1f1f 100%);
}
.view__ba {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; padding: 2px; gap: 2px; border-radius: var(--radius-control); background: var(--surface-bar); border: 1px solid var(--border-control); font-size: 12px;
}
.view__ba > span { height: 22px; padding: 0 12px; display: flex; align-items: center; border-radius: var(--radius-row); color: var(--ink-secondary); }
.view__ba > .view__ba--on { background: var(--surface-control); color: var(--ink); }
.view__zoom { position: absolute; bottom: 14px; right: 14px; height: 28px; padding: 0 10px; display: flex; align-items: center; border-radius: var(--radius-control); background: var(--surface-bar); border: 1px solid var(--border-control); font-size: 12px; color: var(--ink-secondary); }

.edit { width: 280px; flex-shrink: 0; background: var(--surface-sidebar); border-left: 1px solid var(--border-divider); display: flex; flex-direction: column; font-size: 12px; }
.edit__head { height: 40px; flex-shrink: 0; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--border-divider); }
.edit__title { font-size: 13px; font-weight: 600; }
.edit__hdr { margin-left: auto; font-size: 11px; color: var(--ink-secondary); border: 1px solid var(--border-control); border-radius: var(--radius-tag); padding: 0 6px; line-height: 18px; }
.edit__scroll { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.edit__foot { height: 36px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-top: 1px solid var(--border-divider); font-size: 11px; }
.edit__reset { color: var(--ink); border: 1px solid var(--border-control); border-radius: var(--radius-row); padding: 0 8px; line-height: 20px; background: var(--surface-control); }
.edit__saved { color: var(--ink-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hist { padding: 12px 14px 10px; border-bottom: 1px solid var(--border-divider); display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--ink-tertiary); }
.hist svg { width: 100%; height: 56px; display: block; background: var(--surface-window); border-radius: var(--radius-thumb); }
.hist path { fill: #6e6e6e; }

.dsec { border-bottom: 1px solid var(--border-divider); }
.dsec__head { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--ink-tertiary); }
.dsec__head .moddot { margin-left: 0; }
.dsec__body { padding: 2px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.wbsel { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 8px; border-radius: var(--radius-row); background: var(--surface-control); border: 1px solid var(--border-control); color: var(--ink); }

.rail { width: 44px; flex-shrink: 0; background: var(--surface-bar); border-left: 1px solid var(--border-divider); display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; }
.rail__btn { --bg: var(--surface-bar); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-control); color: var(--ink-secondary); }
.rail__btn--on { --bg: var(--surface-control); background: var(--surface-control); color: var(--ink); }
.ico-bg { fill: var(--bg); }
.rail__sep { width: 20px; height: 1px; background: var(--border-divider); margin: 4px 0; }

/* Edit panel as a feature fragment */
.panel.edit-panel { padding: 0; gap: 0; font-size: 12px; overflow: hidden; }
.edit-panel .dsec:last-child { border-bottom: 0; }
.edit-panel .dsec__head { height: 38px; padding: 0 16px; }
.edit-panel .dsec__body { padding: 4px 20px 18px; gap: 14px; font-size: 13px; }

.moddot { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--accent-focus); margin-left: 6px; vertical-align: 1px; }

.slider { display: flex; flex-direction: column; gap: 6px; }
.slider__head { display: flex; justify-content: space-between; }
.slider__name { color: var(--ink-secondary); }
.slider__value { font-variant-numeric: tabular-nums; }
.slider__track { height: 2px; background: var(--border-panel); position: relative; }
.slider__track::after {
  content: ""; position: absolute; top: -4px; left: var(--pos); width: 10px; height: 10px; margin-left: -5px;
  border-radius: 5px; background: var(--ink);
}
.shot__note { margin-top: 12px; font-size: 13px; color: var(--ink-tertiary); }

/* Feature sections: text and an interface fragment, alternating sides */
.feature {
  padding-top: 160px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px; align-items: center;
}
.feature--flip .feature__text { order: 2; }
.feature__text { display: flex; flex-direction: column; gap: 20px; }
.feature h2, .steps h2 { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.feature p { font-size: 19px; color: var(--ink-secondary); }
.dash { display: flex; flex-direction: column; gap: 12px; }
.dash li { display: flex; gap: 12px; }
.dash li::before { content: "—"; color: var(--ink-tertiary); flex-shrink: 0; }

.panel {
  background: var(--surface-sidebar); border: 1px solid var(--border-control); border-radius: var(--radius-panel);
  padding: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 13px; min-width: 0;
}
.panel .slider { gap: 8px; }
.panel .slider__track::after { top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; }

.files { font-family: var(--font-mono); font-size: 14px; line-height: 1.9; color: var(--ink-secondary); gap: 0; }
.files__dir { color: var(--ink); }
.files__item { padding-left: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.files__item strong { color: var(--ink); font-weight: 400; }
.files__more { padding-left: 20px; color: var(--ink-tertiary); }
.tag {
  font-family: var(--font-sans); font-size: 12px; line-height: 20px; padding: 0 6px;
  border: 1px solid var(--border-panel); border-radius: var(--radius-tag);
}

.masks { gap: 8px; }
.masks__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.masks__new { font-size: 12px; color: var(--ink); background: var(--surface-control); border: 1px solid var(--border-control); border-radius: var(--radius-row); padding: 0 8px; line-height: 22px; }
.mask { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--radius-row); background: var(--surface-control); }
.mask--selected { background: var(--accent); color: var(--on-accent); }
.mask::before { content: ""; width: 28px; height: 20px; border-radius: var(--radius-thumb); flex-shrink: 0; background: var(--thumb); }
.mask--subject { --thumb: linear-gradient(135deg, #5a5a5a, #e8e8e8); }
.mask--sky { --thumb: linear-gradient(180deg, #d0d0d0, #3a3a3a); }
.mask--people { --thumb: radial-gradient(circle at 50% 40%, #e8e8e8 30%, #3a3a3a 32%); }
.burst { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--border-divider); font-size: 12px; color: var(--ink-secondary); }

.search { gap: 20px; }
.search__field {
  height: 32px; border-radius: var(--radius-control); background: var(--surface-window); border: 1px solid var(--accent-focus);
  display: flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 12px; overflow: hidden;
}
.chip { background: var(--filter-chip); border-radius: var(--radius-tag); padding: 0 8px; line-height: 22px; white-space: nowrap; }
.chip b { color: var(--filter-chip-key); font-weight: 400; }
.stats { display: flex; gap: 12px; }
.stat { flex: 1 1 0; background: var(--surface-stat); border-radius: var(--radius-control); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-tertiary); }

/* Card to archive */
.steps { padding-top: 160px; display: flex; flex-direction: column; gap: 40px; }
.steps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--border-panel); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { color: var(--ink-secondary); }

/* Closing */
.access { padding-top: 184px; padding-bottom: 152px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-tertiary); }
.access h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; max-width: 900px; }
.access p { font-size: 19px; color: var(--ink-secondary); max-width: 620px; }
.access__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
/* Placeholder until the access channel (form or email) is decided. */
.placeholder { border: 1px dashed var(--status-warning-border); color: var(--status-warning); border-radius: var(--radius-control); padding: 12px 16px; font-size: 13px; }

/* Footer */
.footer { border-top: 1px solid var(--border-divider); }
.footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; font-size: 13px; color: var(--ink-tertiary); }
.footer img { width: 24px; height: 24px; }
.footer__lang { margin-left: auto; display: flex; gap: 16px; }
.footer__lang a { color: var(--ink-secondary); }
.footer__lang [aria-current] { color: var(--ink); }

/* Narrow screens */
@media (max-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 112px; }
  .feature--flip .feature__text { order: 0; }
  .steps { padding-top: 112px; }
  .steps__grid { grid-template-columns: minmax(0, 1fr); }
  .side, .rail { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav { height: 64px; gap: 16px; }
  .nav__logo img { height: 22px; }
  .hero { padding-top: 64px; gap: 28px; }
  .hero__lede { font-size: 18px; }
  .shot { padding-top: 56px; }
  .edit, .window__search, .window__crumb { display: none; }
  .window__body { height: auto; }
  .view { padding: 20px 16px 56px; }
  .feature h2, .steps h2 { font-size: 32px; }
  .feature p { font-size: 17px; }
  .panel { padding: 18px; }
  .files { font-size: 13px; }
  .stat strong { font-size: 22px; }
  .access { padding-top: 120px; padding-bottom: 96px; }
  .footer__lang { margin-left: 0; }
}

/* Slider positions (classes, not inline styles: the CSP allows no style attributes) */
.p26 { --pos: 26%; } .p43 { --pos: 43%; } .p54 { --pos: 54%; }
.p56 { --pos: 56%; } .p57 { --pos: 57%; } .p65 { --pos: 65%; }
.p50 { --pos: 50%; } .p52 { --pos: 52%; } .p55 { --pos: 55%; } .p59 { --pos: 59%; }
