/* LogEZ website, draft 1 (2026-10-17).
 * Tokens are the app's own (Color.kt, dark Lime) and its two typefaces, self-hosted: the page makes no third-party request, as the app makes none for fonts.
 * Spec: black, white and green only; green's brightness carries the hierarchy; red is not used here at all.
 */
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra_petch_bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra_petch_semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm_plex_sans_variable.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }

/* Registered as colours so a change of light, dark or scheme eases over half a second instead of snapping. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --raised { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --line-strong { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --text { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --lime { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --on-lime { syntax: "<color>"; inherits: true; initial-value: #000; }
html { transition: --bg 0.55s ease, --surface 0.55s ease, --raised 0.55s ease, --line 0.55s ease, --line-strong 0.55s ease, --text 0.55s ease, --muted 0.55s ease, --lime 0.55s ease, --on-lime 0.55s ease; }
.tab4 .phone img { transition: opacity 0.3s ease; }
@media (prefers-reduced-motion: reduce) { html, .tab4 .phone img { transition: none; } }

:root {
  --head: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
:root, html[data-scheme="lime"][data-theme="dark"] { --bg: #07090a; --surface: #12160f; --raised: #1c2225; --line: #232b30; --line-strong: #3a444b; --text: #eaf2e9; --muted: #a9b6af; --lime: #b6ff3c; --on-lime: #07090a; }
html[data-theme="light"], html[data-scheme="lime"][data-theme="light"] { --bg: #f5f7f1; --surface: #ffffff; --raised: #e7ece2; --line: #d7ded0; --line-strong: #66745f; --text: #07090a; --muted: #58665b; --lime: #466b00; --on-lime: #ffffff; }
html[data-theme="light"] { --shadow: 0 24px 56px rgba(24, 33, 27, 0.22); color-scheme: light dark; }


* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body); font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 8px; z-index: 30; font-weight: 600; }
.skip:focus { top: 12px; }

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

/* ---- Header ---- */
/* The header stays at the top while you scroll. Its backdrop is a gradient that fades in once content moves under it,
   so text and pictures dissolve before they reach the links instead of colliding with them. */
header.wrap { position: sticky; top: 0; z-index: 20; max-width: none; padding: 0; isolation: isolate; }
header.wrap::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% + 36px); pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 96%, transparent) 0, color-mix(in srgb, var(--bg) 90%, transparent) 55%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
  opacity: 0; transition: opacity 0.35s ease;
}
header.wrap.is-scrolled::before { opacity: 1; }
@media (scripting: none) { header.wrap::before { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { header.wrap::before { transition: none; } }
html { scroll-padding-top: 88px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 1.375rem/1 var(--body); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---- Type ---- */
.h1, .h2, .h3 { font-family: var(--head); font-weight: 700; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
.h1 { font-size: clamp(3rem, 1.2rem + 7.4vw, 7rem); line-height: 0.96; letter-spacing: -0.025em; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.04; }
.h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--text); max-width: 34em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; line-height: 1.55; }
.measure { max-width: 38em; }

/* ---- Store buttons (stand-ins: swap for the official badges when the listings are live) ---- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 14px; min-width: 210px; padding: 12px 22px 12px 18px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--text); background: var(--surface); }
.store__icon { width: 28px; height: 28px; flex: none; }
.store__text { display: flex; flex-direction: column; }
.store__name { font: 600 1.25rem/1.15 var(--body); order: 2; }
.store__state { font-size: 0.8125rem; color: var(--muted); line-height: 1.3; order: 1; }
.store[aria-disabled="true"] { cursor: default; }

/* ---- Hero ---- */
.hero { padding: clamp(24px, 5vw, 72px) 0 clamp(56px, 8vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__copy { display: grid; gap: clamp(20px, 3vw, 32px); }
.hero__stage { position: relative; justify-self: center; width: min(100%, 330px); }
.hero__stage::before { content: ""; position: absolute; inset: 8% -30% -4% -30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 22%, transparent), transparent 72%); z-index: 0; }

/* ---- Phone ---- */
.phone { position: relative; z-index: 1; margin: 0; padding: 9px; border-radius: 46px; background: linear-gradient(160deg, #4a565e, #1c2225 40%, #3a444b); box-shadow: var(--shadow); }
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 600 / 1333; object-fit: cover; background: var(--bg); }

/* ---- The three promises ---- */
.promises { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promises__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise { padding: 28px 28px 28px 0; }
.promise + .promise { padding-left: 28px; border-left: 1px solid var(--line); }
.promise__title { font: 600 1.25rem/1.25 var(--head); margin: 0 0 6px; }
.promise__text { margin: 0; color: var(--muted); }

/* ---- The story: one phone that follows you down the page ---- */
.story { padding: clamp(64px, 9vw, 128px) 0; }
.story__intro { max-width: 40em; margin-bottom: clamp(24px, 4vw, 56px); }
.story__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 112px); }
.story__stage { position: sticky; top: 88px; align-self: start; height: calc(100vh - 112px); display: grid; place-items: center; }
.story__phone { position: relative; width: min(100%, calc(86vh * 0.4)); }
.story__phone .phone { width: 100%; }
.story__shots { position: relative; aspect-ratio: 600 / 1333; border-radius: 38px; overflow: hidden; background: var(--bg); }
.story__shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.story__shots img.is-on { opacity: 1; }
.steps { display: grid; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 0; }
.step__shot { display: none; }
.step__list { margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step__list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.step p { margin: 0; color: var(--muted); max-width: 32em; }

/* ---- Also in the app ---- */
.also { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.also__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 112px); }
.also__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.also__item { padding: 20px 0; border-top: 1px solid var(--line); }
.also__item dt { font: 600 1.1875rem/1.25 var(--head); margin: 0 0 4px; }
.also__item dd { margin: 0; color: var(--muted); }
.swatches { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.swatch i { width: 18px; height: 18px; border-radius: 50%; display: block; }

/* ---- Colour schemes: pick a colour, the four tab screens and this page follow ---- */
.schemes { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.schemes__head { max-width: 40em; margin-bottom: clamp(24px, 3vw, 36px); display: grid; gap: 14px; }
.swatchbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; border: 0; }
.swatchbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: 500 1rem/1 var(--body); cursor: pointer; }
.swatchbtn i { width: 22px; height: 22px; border-radius: 50%; display: block; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.swatchbtn:hover { border-color: var(--text); }
.swatchbtn[aria-checked="true"] { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 14%, transparent); }
.tabs4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.tab4 { margin: 0; }
.tab4 .phone { padding: 6px; border-radius: 32px; }
.tab4 .phone img { border-radius: 26px; }
.tab4 figcaption { margin-top: 14px; font: 600 1.0625rem/1.3 var(--head); }
.tab4 figcaption span { display: block; font: 400 0.9375rem/1.45 var(--body); color: var(--muted); }

/* ---- A wide image that is not a phone (the widgets on a home screen) ---- */
.wide { margin: 28px 0 0; max-width: 420px; }
.wide img { border-radius: 22px; border: 1px solid var(--line); }
.wide figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }

/* ---- Privacy ledger ---- */
.privacy { padding: clamp(56px, 8vw, 112px) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.ledger { width: 100%; border-collapse: collapse; margin: 0; }
.ledger caption { text-align: left; font: 600 1.25rem/1.25 var(--head); padding-bottom: 12px; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 16px 0; border-top: 1px solid var(--line-strong); font-weight: 400; }
.ledger th { width: 34%; padding-right: 20px; font-weight: 600; }
.ledger td { color: var(--muted); }
.ledger tr:last-child th, .ledger tr:last-child td { border-bottom: 1px solid var(--line-strong); }

/* ---- Closing ---- */
.closing { padding: clamp(72px, 10vw, 144px) 0; }
.closing__grid { display: grid; gap: 28px; justify-items: start; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.foot__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px 40px; }
.foot__cols > * { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot__cols p { margin: 4px 0 0; max-width: 32em; }
.foot__brand .brand { margin-bottom: 6px; }
.foot__h { margin: 0 0 6px; font: 600 1rem/1.3 var(--head); color: var(--text); letter-spacing: 0; }
.foot a { color: var(--muted); }
.foot a:hover, .foot .brand { color: var(--text); }
.foot__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.8125rem; line-height: 1.6; }
.foot__legal p { margin: 0; max-width: 70em; }
@media (max-width: 860px) { .foot__cols { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__cols { grid-template-columns: 1fr; } }

/* ---- The light and dark switch ---- */
.mode { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 4px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.mode:hover { border-color: var(--text); }
.mode svg { width: 20px; height: 20px; }
.mode .i-sun { display: none; }
html[data-theme="light"] .mode .i-sun { display: block; }
html[data-theme="light"] .mode .i-moon { display: none; }
.nav { align-items: center; }

/* ---- Inner pages ---- */
.page { padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 9vw, 120px); }
.page__head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 72px); }
/* One scale for every page except the home page, taken from the privacy policy: title and description. */
.page__head .h1, .wl__title { font: 700 clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem)/1.05 var(--head); letter-spacing: -0.02em; }
.page__head .lead, .wl .lead { font-size: 1.0625rem; line-height: 1.65; max-width: 40em; }
/* Section headings (Features): the original size, always below the page title (28 to 40px against 36 to 60px). */
.sec__head .h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.sec { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 6vw, 96px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.sec__head p { margin: 12px 0 0; color: var(--muted); max-width: 22em; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { padding-top: 0; }
.rows b { font-weight: 600; }
.rows span { color: var(--muted); }
.shots { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.shots .phone { width: 190px; flex: none; border-radius: 34px; padding: 6px; }
.shots .phone img { border-radius: 28px; }
.not { border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px 28px; background: var(--surface); }
.not ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); }
.not li { padding: 2px 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.1875rem/1.35 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.75rem/1 var(--body); color: var(--lime); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
.faq .answer p { margin: 0 0 10px; }
.contact { display: inline-block; font: 600 1.25rem/1.3 var(--body); }

/* ---- Small screens ---- */
@media (max-width: 899px) {
  .hero__grid, .also__grid, .privacy__grid, .sec { grid-template-columns: 1fr; }
  .hero__stage { width: min(100%, 260px); justify-self: start; }
  .promises__grid { grid-template-columns: 1fr; }
  .promise, .promise + .promise { padding: 20px 0; border-left: 0; }
  .promise + .promise { border-top: 1px solid var(--line); }
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { display: none; }
  .step { min-height: 0; padding: 40px 0; }
  .step__shot { display: block; width: min(100%, 250px); margin: 8px 0 8px; }
  .also__list { grid-template-columns: 1fr; }
  .shots .phone { width: 150px; }
}
@media (max-width: 899px) { .tabs4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .store { flex: 1 1 100%; }
  .shots { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .story__shots img { transition: none; } }

/* ---- Privacy policy: the header slides away while you read, and returns when the pointer nears the top ---- */
header.wrap[data-autohide] { transition: transform 0.35s ease; }
header.wrap[data-autohide].is-hidden { transform: translateY(-110%); }
@media (prefers-reduced-motion: reduce) { header.wrap[data-autohide] { transition: none; } }
.policy { max-width: 46rem; padding-bottom: 24px; }
.policy h1 { font: 700 clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem)/1.05 var(--head); letter-spacing: -0.02em; margin: 0 0 8px; }
.policy .effective { color: var(--muted); margin: 0 0 32px; }
.policy h2 { font: 600 1.375rem/1.25 var(--head); margin: 40px 0 10px; }
.policy p, .policy li { max-width: 40em; }
.policy ul { padding-left: 1.25em; }
.policy li { margin: 6px 0; }

.themed { display: contents; }

/* ---- footer social link ---- */
.foot .social { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; }
.foot .social:hover { border-color: var(--text); }
.foot .social svg { width: 20px; height: 20px; flex: none; }
