/* hey6pm.com, in the app's "Graphite" skin: the same variables as src/renderer/styles/skin.css. */

@font-face {
  font-family: 'Doto';
  src: url('fonts/doto.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-ui: ui-monospace, 'SF Mono', Menlo, monospace; /* Apple's mono on Macs and iPhones */
  --font-digits: 'Doto', monospace;
  --digits-dots: 'ROND' 100;

  --body: #e8e8e5;
  --body-hi: #f6f6f4;
  --body-edge: #c8c8c3;
  --tile: #dadad6;
  --tile-line: #c4c4bf;
  --grille: #b3b3ae;
  --ink: #161616;
  --ink-soft: #6c6c68;
  --ink-faint: #a5a5a0;
  --screen: #0c0c0c;
  --screen-ink: #f3f3f1;
  --screen-soft: #8b8b87;
  --screen-dim: #2a2a28;
  --accent: #ff5a1f;
  --accent-deep: #b9390b;
  --accent-off: #3b1b10;
  --key: #e3e3e0;
  --key-edge: #3c3c3a;
  --key-drop: rgba(0, 0, 0, 0.1);
  --key-pressed: rgba(0, 0, 0, 0.18);
  --face-top: #c3c3bf;
  --face-bottom: #d6d6d2;
  --face-well: rgba(0, 0, 0, 0.25);
  --dark: #151515;
  --dark-edge: #000;
  --dark-ink: #f3f3f1;
  --bevel-hi: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle, var(--body-edge) 0.8px, transparent 1.1px) 0 0 / 16px 16px,
    linear-gradient(180deg, var(--body-hi), var(--body) 520px);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 6px;
}

/* ---------- keys (from the app) ---------- */

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--key-edge);
  background: linear-gradient(var(--body-hi), var(--key));
  box-shadow: inset 0 1px 0 var(--bevel-hi), 0 1px 0 var(--key-drop);
  font: 500 12px var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease;
}

.key:active {
  background: var(--tile);
  box-shadow: inset 0 1px 2px var(--key-pressed);
  transform: translateY(1px);
}

.key:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.key.mini {
  height: 28px;
  padding: 0 11px;
  font-size: 11px;
  border-radius: 8px;
}

.key.dark {
  background: var(--dark);
  color: var(--dark-ink);
  border-color: var(--dark-edge);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}

.key.dark:hover {
  background: #000;
}

.key.big {
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 13.5px;
}

.key svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- hero ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 0 56px;
}

.title {
  margin-top: 40px;
  font-family: var(--font-digits);
  font-variation-settings: var(--digits-dots);
  font-weight: 800;
  font-size: clamp(72px, 13vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 18px;
  max-width: 42em;
  text-wrap: balance;
  font-size: 16px;
  color: var(--ink-soft);
}

.tagline br + * {
  display: block;
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 30px;
  scroll-margin-top: 120px;
}

.download .key {
  margin-bottom: 10px;
}

.fine {
  font-size: 12px;
  color: var(--ink-soft);
}

.fine a {
  color: var(--ink);
}

.fine.note {
  margin-top: 6px;
  font-size: 11.5px;
}

/* ---------- the machine (the app's left pane, enlarged) ---------- */

.machine {
  zoom: 1.5;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 12px;
  border-radius: 18px;
  font-size: 11px;
  text-align: left;
  background: linear-gradient(180deg, var(--body-hi), var(--body) 40%);
  box-shadow:
    inset 0 0 0 1px var(--body-edge),
    inset 0 1px 0 1px var(--bevel-hi),
    0 24px 48px -24px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.screen {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  height: 150px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--screen);
  color: var(--screen-ink);
  box-shadow: inset 0 0 0 1px var(--dark-edge), 0 0 0 3px var(--dark), 0 1px 0 3px var(--bevel-hi);
  margin: 3px 3px 0;
}

.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.tile-sub {
  font-size: 9px;
  color: var(--screen-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.digits {
  margin-top: auto;
  font-family: var(--font-digits);
  font-variation-settings: var(--digits-dots);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: auto;
  background: var(--accent-off);
}

.light.solid,
.light.fast {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.light.fast {
  animation: blink 0.4s steps(1) infinite;
}

@keyframes blink {
  50% {
    background: var(--accent-off);
    box-shadow: none;
  }
}

.reels {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 4px;
}

.reel {
  width: 50px;
  height: 50px;
}

.machine.playing .reel {
  animation: spin 2.4s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reel-tape {
  fill: var(--screen-dim);
}
.reel-hub {
  fill: none;
  stroke: var(--screen-ink);
  stroke-width: 1.5;
}
.reel-tooth {
  fill: var(--screen-ink);
}
.reel-hole {
  fill: var(--screen);
  stroke: var(--screen-soft);
}

.tape-line {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 2px;
  background: radial-gradient(circle, var(--screen-soft) 0.8px, transparent 1px) 0 0 / 4px 2px;
}

.grille-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 16px;
  margin-top: 4px;
}

.status-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--dark);
  color: var(--dark-ink);
  font-size: 9.5px;
  white-space: nowrap;
}

.grille {
  flex: 1;
  height: 100%;
  background: radial-gradient(circle, var(--grille) 0.9px, transparent 1.3px) 0 0 / 4px 4px;
}

.kept-btn {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--tile-line);
  background: var(--body-hi);
  font-size: 9.5px;
  color: var(--ink-soft);
}

.key.play {
  height: 56px;
  border-radius: 12px;
  font-size: 10.5px;
}

.key.play::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(var(--face-top), var(--face-bottom));
  box-shadow: inset 0 1px 2px var(--face-well);
}

/* ---------- how it works ---------- */

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  padding: 22px 22px 24px;
  border-radius: 16px;
  background: var(--body-hi);
  box-shadow: inset 0 0 0 1px var(--body-edge), 0 1px 0 var(--key-drop);
}

.step-num {
  font-family: var(--font-digits);
  font-variation-settings: var(--digits-dots);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}

.step h2 {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.next {
  margin: 44px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.countdown {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--screen);
  color: var(--screen-ink);
  font-family: var(--font-digits);
  font-variation-settings: var(--digits-dots);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.promise {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 44px auto 80px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
}

.promise b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- footer ---------- */

.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  align-items: center;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--tile-line);
  font-size: 12.5px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.foot-brand img {
  border-radius: 5px;
}

.clock {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--screen);
  color: var(--screen-ink);
  font-family: var(--font-digits);
  font-variation-settings: var(--digits-dots);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.foot-links {
  display: flex;
  gap: 18px;
}

.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-small {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.foot-legal {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  max-width: 62em;
  padding-top: 12px;
  border-top: 1px dashed var(--tile-line);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- small screens and motion ---------- */

@media (max-width: 720px) {
  .machine {
    zoom: 1.15;
  }
  .how {
    grid-template-columns: 1fr;
  }
  .foot {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .light.fast,
  .machine.playing .reel {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
