/* LogEZ site texture: a letterpress headline edge on a plain page colour.
   Mockups and the reasoning: mockups/premium/ in the repo. */

/* ---- ground: the plain page colour, the same as the header (the paper tooth and the dot screen were removed: they read as smudges) ---- */

/* ---- the page: plain colour, no pattern (the contour and grid maps and their button were removed on request) ---- */

/* (the soft patches of page colour behind text were removed on request: they read as smudges, most of all in light mode) */

/* ---- headlines: solid letters with a letterpress edge. Plain colour, NOT a clipped background: a browser's forced dark mode (a link opened from Gmail's dark mode) darkens background paint and left the letters dark on dark ---- */
.h1, .h2, .policy h1 {
  color: var(--text);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.95)) drop-shadow(0 -1px 0 rgba(0,0,0,.12)); }
html[data-theme="dark"] :is(.h1, .h2, .policy h1) { filter: drop-shadow(0 1px 0 rgba(0,0,0,.75)) drop-shadow(0 -1px 0 rgba(255,255,255,.10)); }

/* ---- small things: dotted rules, dashed store buttons, a plain phone shadow, no dot screen behind the hero ---- */
.promise + .promise { border-left-style: dotted; }
.store { border-style: dashed; }
.hero__stage::before { display: none; }

/* ---- the nav: compact, packed to the right ---- */
.bar { justify-content: flex-start; }
.brand { margin-right: auto; }
.nav { gap: 6px; margin-left: auto; }
.nav a { padding: 6px 8px; font-size: 0.9375rem; }
.mode { width: 36px; height: 36px; margin-left: 2px; }
.mode svg { width: 18px; height: 18px; }

/* the landing page's privacy band has no white panel: the page colour shows through, with the map */
.privacy { background: transparent; }

/* ---- inner pages (features, support, privacy policy): a linear layout to read, so the map fades back and the content sits on one soft panel of page colour ---- */
body.inner :is(.page > .wrap, .policy) { position: relative; background: color-mix(in srgb, var(--bg) 78%, transparent); box-shadow: 0 0 56px 44px color-mix(in srgb, var(--bg) 78%, transparent); border-radius: 18px; }
body.inner .page > .wrap:has(> .policy) { background: none; box-shadow: none; }

/* ---- the collapsible menu: the three links fold into a panel on phones and small tablets ---- */
.nav__links { display: flex; gap: 6px; align-items: center; }
.nav__links .try-menu { display: none; }
.menu { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 2px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.menu:hover { border-color: var(--text); }
.menu svg { width: 19px; height: 19px; }
.menu .i-close { display: none; }
header.wrap.menu-open .menu .i-open { display: none; }
header.wrap.menu-open .menu .i-close { display: block; }
@media (max-width: 860px) {
  .nav a.try { display: none; }
  .nav__links .try-menu { display: block; }
  .menu { display: inline-flex; }
  .nav { gap: 8px; }
  .nav__links { display: none; position: absolute; top: calc(100% - 6px); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; min-width: 200px; padding: 8px;
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); z-index: 40; }
  header.wrap.menu-open .nav__links { display: flex; animation: menu-in 0.18s ease-out; }
  .nav__links a { padding: 13px 14px; border-radius: 10px; font-size: 1.0625rem; color: var(--text); }
  .nav__links a:hover, .nav__links a:focus-visible { background: color-mix(in srgb, var(--lime) 14%, transparent); }
  .nav__links a[aria-current="page"] { background: color-mix(in srgb, var(--lime) 14%, transparent); }
  .bar { position: relative; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { header.wrap.menu-open .nav__links { animation: none; } }
@media (max-width: 480px) { .store { flex: 1 1 100%; } }

/* Plain: no pattern and no panels, just the page colour in light and in dark */
body.inner :is(.page > .wrap, .policy) { background: none; box-shadow: none; }

/* the headlines used to be painted through their letters, and that paint stopped at the line box: with a tight line height that clipped the tail of the g and the top of capitals.
   Extra padding gives the paint room; the matching negative margin keeps the layout exactly where it was. */
.h1, .h2 { padding: 0.16em 0.06em 0.26em; margin: -0.16em -0.06em -0.26em; }
.policy h1 { padding: 0.16em 0.06em 0.26em; margin: -0.16em -0.06em calc(8px - 0.26em); }

/* ---- landing page on phones and small tablets: everything centred (desktop keeps its left-aligned layout) ---- */
@media (max-width: 899px) {
  body.home :is(.hero, .promises, .story, .schemes, .also, .privacy, .closing) { text-align: center; }
  body.home .hero__copy { justify-items: center; }
  body.home .hero__stage { justify-self: center; }
  body.home .lead, body.home .measure, body.home .step p, body.home .story__intro { margin-left: auto; margin-right: auto; }
  body.home .stores, body.home .swatchbar { justify-content: center; }
  body.home .store { justify-content: center; }
  body.home .promise, body.home .promise + .promise { padding-left: 0; padding-right: 0; }
  body.home .step { align-items: center; }
  body.home .step__shot { margin-left: auto; margin-right: auto; }
  body.home .also__grid > div:first-child { justify-items: center; }
  body.home .also__item dt, body.home .also__item dd { text-align: center; }
  body.home .privacy__grid { justify-items: center; }
  body.home .ledger { text-align: left; }
  body.home .ledger caption { text-align: center; }
  body.home .closing__grid { justify-items: center; }
  body.home .foot { text-align: center; }
  body.home .foot__cols > * { align-items: center; }
  body.home .foot__legal p { margin-left: auto; margin-right: auto; }
}

/* ---- the hero's three phones: the logger in front, two screens close behind it and dimmer ---- */
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero__stage--trio { width: min(100%, 580px); justify-self: center; position: relative; padding: 0 20%; }
.hero__stage--trio .phone--front { position: relative; z-index: 3; }
.hero__stage--trio .phone--back { position: absolute; z-index: 1; width: 52%; top: 8%; margin: 0; }
.hero__stage--trio .phone--back { filter: saturate(0.92); }
/* the two behind are washed toward the page colour, like distance haze: the same light touch in dark and light */
html[data-theme="light"] .hero__stage--trio .phone--back { filter: saturate(0.92); box-shadow: 0 16px 36px rgba(24, 33, 27, 0.2); }
.hero__stage--trio .phone--back::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--bg) 16%, transparent); pointer-events: none; }
.hero__stage--trio .phone--back { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35); }
.hero__stage--trio .phone--left { left: 0; transform: rotate(-5deg); transform-origin: 80% 100%; }
.hero__stage--trio .phone--right { right: 0; transform: rotate(5deg); transform-origin: 20% 100%; }
@media (max-width: 899px) {
  .hero__stage--trio, body.home .hero__stage--trio { width: min(100%, 360px); justify-self: center; }
}

/* ---- phones, landing page: the two store cards sit side by side and share the width ---- */
@media (max-width: 899px) {
  body.home .stores { flex-wrap: nowrap; gap: 10px; width: 100%; }
  body.home .store { flex: 1 1 0; min-width: 0; gap: 9px; padding: 12px 8px; }
  body.home .store__icon { width: 24px; height: 24px; }
  body.home .store__state { font-size: 0.6875rem; }
  body.home .store__name { font-size: 1.0625rem; }
}
@media (max-width: 340px) {
  body.home .store { flex-direction: column; gap: 6px; }
}

/* ---- the "Join waitlist" button at the top right of the header: large and heavy so it is the first thing seen ---- */
.nav a.join { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-left: 10px; padding: 0 26px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 800 1.125rem/1 var(--head); letter-spacing: 0; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime); }
.nav a.join:hover { filter: brightness(1.08); color: var(--on-lime); }
.nav a.join:focus-visible { outline: 3px solid var(--text); outline-offset: 5px; }
.nav a.join .join__short { display: none; }
@media (max-width: 480px) {
  .nav a.join { min-height: 42px; margin-left: 2px; padding: 0 18px; font-size: 1.0625rem; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--lime); }
  .nav a.join .join__long { display: none; }
  .nav a.join .join__short { display: inline; }
  .nav { gap: 6px; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.125rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav a.join { padding: 0 14px; }
  .mode, .menu { width: 34px; height: 34px; }
}
@media (max-width: 340px) {
  .brand { font-size: 1rem; gap: 6px; }
  .brand img { width: 26px; height: 26px; }
  .nav { gap: 4px; }
  .nav a.join { padding: 0 12px; margin-left: 0; box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--lime); }
  .mode, .menu { width: 32px; height: 32px; }
}

/* ---- "Try the demo": an outlined pill beside Join in the header (folds into the menu on small screens), and a button at the bottom of the home page ---- */
.nav a.try { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-left: 10px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--lime); color: var(--text); font: 800 1.0625rem/1 var(--head); letter-spacing: 0; text-decoration: none; white-space: nowrap; background: transparent; }
.nav a.try:hover { background: color-mix(in srgb, var(--lime) 16%, transparent); color: var(--text); }
.nav a.try:focus-visible { outline: 3px solid var(--text); outline-offset: 5px; }
.nav a.try[aria-current="page"] { background: color-mix(in srgb, var(--lime) 16%, transparent); }
.try-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-try, .cta-join { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 34px; border-radius: 999px; font: 800 1.25rem/1 var(--head); text-decoration: none; white-space: nowrap; }
.cta-join { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime); }
.cta-join:hover { filter: brightness(1.08); color: var(--on-lime); }
.cta-try { border: 2px solid var(--lime); color: var(--text); background: transparent; }
.cta-try:hover { background: color-mix(in srgb, var(--lime) 16%, transparent); color: var(--text); }
.cta-try:focus-visible, .cta-join:focus-visible { outline: 3px solid var(--text); outline-offset: 6px; }
/* The closing section is centred on every width: the two buttons, the line under them and the two store badges. */
body.home .closing { text-align: center; }
body.home .closing__grid { justify-items: center; }
body.home .closing .lead { margin-left: auto; margin-right: auto; }
body.home .closing .stores { justify-content: center; }
body.home .closing .store { justify-content: center; }
@media (max-width: 860px) { .nav a.try { display: none; } }

/* ---- the demo page: the demo sits in a frame so none of the site's styles reach it ---- */
.demo-frame { display: block; width: 100%; height: clamp(640px, calc(100vh - 150px), 980px); border: 0; background: transparent; color-scheme: normal; }
.demo-credit { margin-top: 20px; max-width: 60em; }
.demo-credit-btn, .demo-credit-dlg { display: none; }
/* ---- the demo page: a fixed, full-screen demo under a slim header, no page scroll (desktop and phone alike; only a very short window falls back to a scrolling page) ---- */
@media (min-height: 480px) {
  html.demo-fixed, html.demo-fixed body.demo-fixed { height: 100%; overflow: hidden; }
  body.demo-fixed { display: flex; flex-direction: column; }
  body.demo-fixed header.wrap { position: relative; flex: none; }
  body.demo-fixed header.wrap .bar { padding-top: 10px; padding-bottom: 10px; }
  body.demo-fixed main.page { flex: 1; min-height: 0; padding: 0; }
  body.demo-fixed.inner main.page > .wrap { height: 100%; max-width: none; padding: 0; background: none; box-shadow: none; border-radius: 0; position: relative; }
  body.demo-fixed .page__head { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.demo-fixed .demo-frame { height: 100%; }
  body.demo-fixed .demo-credit, body.demo-fixed footer.foot { display: none; }
  body.demo-fixed .demo-credit-btn { display: inline-flex; position: absolute; right: 18px; bottom: 14px; z-index: 5; min-height: 36px; padding: 0 14px; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--muted); font: 500 0.875rem var(--body); cursor: pointer; }
  body.demo-fixed .demo-credit-btn:hover { color: var(--text); border-color: var(--text); }
  body.demo-fixed .demo-credit-dlg[open] { display: grid; gap: 14px; max-width: min(34rem, calc(100vw - 40px)); padding: 22px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--text); }
  body.demo-fixed .demo-credit-dlg::backdrop { background: rgba(0, 0, 0, 0.55); }
  body.demo-fixed .demo-credit-close { justify-self: end; min-height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text); font: 500 0.9375rem var(--body); cursor: pointer; }
}
@supports (height: 100dvh) { @media (min-height: 480px) { html.demo-fixed, html.demo-fixed body.demo-fixed { height: 100dvh; } } }
/* on a phone there is no credits button: the demo gets the whole screen under the header (the credits stay on larger screens, and the map picture carries its own attribution) */
@media (min-height: 480px) and (max-width: 779px) {
  body.demo-fixed header.wrap .bar { padding-top: 8px; padding-bottom: 8px; }
  body.demo-fixed .demo-frame { height: 100%; }
  body.demo-fixed .demo-credit-btn { display: none; }
}
