/* handeos.com - the page is a desk; the device is the only dark thing on it. */
:root {
  --desk: #d9dcde;
  --desk-deep: #c9cdd0;
  --ink: #1b1e23;
  --graphite: #5a6068;
  --hairline: #b9bec3;
  --paper: #e9ebec;
  --accent: #00ffff;        /* follows the app open on the device */
  --accent-ink: #00757a;    /* a readable version of the accent on the desk */
  --radius-device: 9%;
  --measure: 34rem;
  font-size: 106.25%;       /* 17 px */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 1rem/1.6 Montserrat, system-ui, sans-serif;
  font-feature-settings: 'tnum' 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.icon { font-family: 'Material Symbols'; font-weight: 400; font-style: normal; line-height: 1; font-size: 1.25em; vertical-align: -0.22em; }
.wordmark { font: 500 1.35rem/1 Orbitron, sans-serif; letter-spacing: 0.04em; text-decoration: none; }
.bar .wordmark { white-space: nowrap; flex: none; }

/* ---- top bar ------------------------------------------------------------------ */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--desk) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent);
}
.bar nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.94rem; }
.bar nav a { text-decoration: none; color: var(--graphite); }
.bar nav a:hover { color: var(--ink); }
.bar nav { align-items: center; }
.bar .primary-link { color: var(--desk); background: var(--ink); font-weight: 600; padding: 0.35rem 0.95rem; border-radius: 999px; }
.bar .primary-link:hover { color: var(--desk); filter: brightness(1.15); }

/* ---- hero: text column + the device ------------------------------------------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.stage-text { padding: clamp(3rem, 10vh, 7rem) 0 4rem; }
.stage-device { position: relative; }
.device-holder { position: sticky; top: 4.5rem; padding: 2.5rem 0 3rem; }

h1 {
  font-weight: 650;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
  max-width: 13ch;
}
.lede { font-size: 1.12rem; max-width: var(--measure); margin: 0 0 1.6rem; }
.try { max-width: var(--measure); color: var(--graphite); margin: 0 0 2rem; }
.try .icon { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--desk);
}
.button.quiet { background: transparent; color: var(--ink); }
.button:hover { text-decoration: none; filter: brightness(1.12); }

/* ---- the device ------------------------------------------------------------------ */
.device {
  --size: min(100%, 34rem);
  position: relative;
  width: var(--size);
  margin: 0 auto;
  aspect-ratio: 1 / 1.08;
}
/* light from the screen falling on the desk in front of the device */
.device::before {
  content: '';
  position: absolute; left: 6%; right: 6%; bottom: -5%; height: 26%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%);
  filter: blur(14px);
  opacity: 0.75;
  transition: background 900ms ease;
  pointer-events: none;
}
.slab {
  position: absolute; inset: 0 0 8% 0;
  border-radius: var(--radius-device);
  background:
    linear-gradient(160deg, #2a2d31 0%, #121315 22%, #0a0a0b 60%, #17181a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 3px rgba(0,0,0,0.6),
    0 1px 1px rgba(27,30,35,0.35),
    0 12px 18px -6px rgba(27,30,35,0.45),
    0 38px 60px -18px rgba(27,30,35,0.55);
}
.panel {
  position: absolute; inset: 5.2%;
  border-radius: 6.5%;
  background: #000;
  box-shadow: inset 0 0 0 1px #000, inset 0 2px 6px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}
.screen {
  position: absolute; inset: 3.2%;
  width: 93.6%; height: 93.6%;
  display: block;
  border-radius: 3%;
  background: #000;
  touch-action: none;
  cursor: pointer;
}
/* glass: a faint reflection that never blocks a tap */
.panel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 38%, transparent 39%);
  pointer-events: none;
}
.boot {
  position: absolute; right: -1.2%; top: 26%;
  width: 2.4%; height: 9%;
  border: 0; padding: 0;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, #0d0e0f, #3a3d42 60%, #1e2023);
  box-shadow: 1px 1px 2px rgba(27,30,35,0.4);
  cursor: pointer;
}
.boot:active { transform: translateX(-2px); }
.device-caption {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin: 1.4rem auto 0; max-width: 34rem;
  font-size: 0.9rem; color: var(--graphite); text-align: center; min-height: 1.6em;
}
.device-caption strong { color: var(--ink); font-weight: 600; }
.device-caption .swatch { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(27,30,35,0.25); transition: background 900ms ease; }
.boot-hint { font-size: 0.8rem; color: var(--graphite); text-align: center; margin: 0.4rem 0 0; }
.noscript { padding: 2rem; color: #eee; font-size: 0.9rem; }

/* ---- app stories ------------------------------------------------------------------- */
.stories { padding-bottom: 4rem; }
.story { min-height: 70vh; padding: 3rem 0; display: flex; flex-direction: column; justify-content: center; }
.story h2 {
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 650; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.9rem;
}
.story[data-app='geoquake'] { --app: #ff8a3d; }
.story[data-app='geomap'] { --app: #00d8ff; }
.story[data-app='memoframe'] { --app: #00e599; }
.story[data-app='framini'] { --app: #d5ff3f; }
.story[data-app='deskbuddy'] { --app: #ff5fb7; }
.story h2 .rail { width: 6px; height: 1.1em; border-radius: 3px; background: var(--app); }
.story p { max-width: var(--measure); margin: 0 0 1rem; }
.story ul { max-width: var(--measure); margin: 0 0 1.4rem; padding-left: 1.1rem; color: var(--graphite); }
.story li { margin: 0.25rem 0; }
.story .open {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 0.9rem Montserrat, sans-serif; cursor: pointer;
}
.story .open:hover { background: var(--ink); color: var(--desk); }

/* ---- full-width sections -------------------------------------------------------------- */
.band { border-top: 1px solid var(--hairline); }
.band-inner { max-width: 82rem; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem); }
.band h2 { font-weight: 650; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.8rem; }
.band .intro { max-width: var(--measure); margin: 0 0 2.6rem; color: var(--graphite); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps .shot { aspect-ratio: 1; border-radius: 7%; background: #000; padding: 4%; box-shadow: 0 18px 30px -16px rgba(27,30,35,0.6); }
.steps .shot img { border-radius: 4%; width: 100%; }
.steps h3 { font-weight: 650; font-size: 1.15rem; margin: 1.3rem 0 0.4rem; display: flex; gap: 0.6rem; align-items: baseline; }
.steps h3::before { content: counter(step); font: 600 1rem Orbitron, sans-serif; color: var(--graphite); }
.steps p { margin: 0; color: var(--graphite); max-width: 26rem; }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--hairline); }
.specs div { padding: 1.1rem 1.2rem 1.1rem 0; border-bottom: 1px solid var(--hairline); }
.specs dt { color: var(--graphite); font-size: 0.85rem; }
.specs dd { margin: 0.25rem 0 0; font-weight: 600; }

.owners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.owners a {
  display: block; padding: 1.4rem 1.4rem 1.5rem; border-radius: 1.1rem;
  background: var(--paper); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
.owners a:hover { border-color: var(--ink); }
.owners .icon { font-size: 1.8rem; display: block; margin-bottom: 0.7rem; }
.owners strong { display: block; font-size: 1.05rem; margin-bottom: 0.3rem; }
.owners span { color: var(--graphite); font-size: 0.93rem; }

footer { border-top: 1px solid var(--hairline); }
footer .band-inner { padding-top: 2rem; padding-bottom: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; font-size: 0.9rem; color: var(--graphite); }
footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-left: auto; }

/* ---- text pages (support, privacy, terms) ---------------------------------------------- */
.page { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) 4rem; }
.page h1 { max-width: none; font-size: clamp(2.1rem, 4vw, 2.9rem); }
.page h2 { font-weight: 650; font-size: 1.35rem; margin: 2.6rem 0 0.6rem; letter-spacing: -0.01em; }
.page p, .page li { max-width: 40rem; }
.page .updated { color: var(--graphite); font-size: 0.9rem; }
.page details { border-bottom: 1px solid var(--hairline); padding: 0.9rem 0; }
.page summary { font-weight: 600; cursor: pointer; }
.page details p, .page details ol, .page details ul { margin: 0.7rem 0 0.2rem; }
.page code { font-size: 0.92em; background: var(--paper); padding: 0.1em 0.35em; border-radius: 4px; }
.contact { margin-top: 2.5rem; padding: 1.4rem 1.5rem; border-radius: 1rem; background: var(--paper); }
.offer { margin: 2rem 0; padding: 1.4rem 1.5rem; border-radius: 1rem; background: var(--paper); border: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent); }
.offer p { margin: 0.4rem 0; }
.offer .price strong { font-size: 2rem; font-weight: 650; letter-spacing: -0.02em; margin-right: 0.4rem; }
.offer .price span, .offer .fine { color: var(--graphite); }
.offer .fine { font-size: 0.9rem; }
.offer .button { margin: 0.6rem 0; }

/* ---- small screens ------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .bar { gap: 1rem; }
  .bar nav { gap: 1rem; }
  .bar nav a:not(.primary-link):not(.keep) { display: none; }
}
@media (max-width: 380px) {
  .bar nav { gap: 0.8rem; font-size: 0.9rem; }
  .bar .primary-link { padding: 0.3rem 0.8rem; }
  .stage { grid-template-columns: 1fr; }
  .stage-device { order: -1; }
  .device-holder { position: static; padding: 1.5rem 0 0; }
  .stage-text { padding-top: 1.5rem; }
  .story { min-height: 0; padding: 2.2rem 0; }
  .steps, .owners { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 7rem 1fr; gap: 0 1rem; align-items: start; }
  .steps .shot { grid-row: span 2; }
  .steps h3 { margin-top: 0.2rem; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .device::before, .device-caption .swatch { transition: none; }
  html { scroll-behavior: auto; }
}

/* Keeps a name like HAND-E from breaking at its hyphen. */
.nowrap { white-space: nowrap; }

/* ---- thanks: the license key, shown right after payment ---------------------------- */
.page p.fine { color: var(--graphite); font-size: 0.9rem; }
.key-status { color: var(--graphite); }
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0.6rem 0 0.8rem; }
.page code.key { font-size: clamp(1rem, 3.6vw, 1.3rem); font-weight: 600; letter-spacing: 0.02em; padding: 0.5rem 0.75rem;
  background: var(--desk); border-radius: 0.5rem; overflow-wrap: anywhere; user-select: all; }
.key-row .button { padding: 0.55rem 1.1rem; cursor: pointer; font-family: inherit; }

/* ---- buy: before you buy ------------------------------------------------------------ */
.checklist { margin: -1rem 0 2rem; padding: 1rem 1.5rem; border-radius: 1rem; border: 1px solid var(--hairline); }
.checklist h2 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.checklist ul { margin: 0; padding-left: 1.2rem; }
.checklist li { margin: 0.2rem 0; }
.checklist.triage { margin: 1.5rem 0 0.5rem; }
.page pre.template { margin: 0.7rem 0; padding: 0.9rem 1rem; border-radius: 0.6rem; background: var(--paper); font: 0.9rem/1.55 ui-monospace, Menlo, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.page details .button { padding: 0.55rem 1.1rem; cursor: pointer; font-family: inherit; }

/* ---- support: get help with your license ---------------------------------------- */
.helper { margin: 2rem 0; padding: 1.4rem 1.5rem; border-radius: 1rem; background: var(--paper); }
.helper h2 { margin-top: 0; }
.helper h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.helper fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.helper legend { font-weight: 600; margin-bottom: 0.4rem; }
.helper fieldset label { display: flex; gap: 0.6rem; align-items: center; padding: 0.35rem 0; cursor: pointer; }
.helper input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); margin: 0; flex: none; }
.helper .field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.helper .field label span { font-weight: 400; color: var(--graphite); }
.helper input[type="email"], .helper input[type="text"] { width: 100%; max-width: 26rem; font: inherit; padding: 0.6rem 0.75rem;
  border: 1px solid var(--hairline); border-radius: 0.5rem; background: var(--desk); color: var(--ink); }
.helper .help-error { color: #9b1c1c; font-weight: 600; }
.helper .button { cursor: pointer; font-family: inherit; }
.screen-shot { margin: 1rem 0 0.5rem; max-width: 16rem; }
.screen-shot img { width: 100%; height: auto; border-radius: 7%; background: #000; padding: 4%; box-shadow: 0 18px 30px -16px rgba(27,30,35,0.6); }
.screen-shot figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--graphite); }
