/* zeroemdashes.com shared styles.
   Design system: knowledge-base/design-systems/zeroemdashes/DESIGN.md
   Fonts are self-hosted (fonts/, OFL). Never load them from Google Fonts. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #05050A;
  --y: #FFD600;
  --y2: #FFA500;
  --glass: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.09);
  --text: #F0F0F0;
  --muted: rgba(240,240,240,.65);
  --dim: rgba(240,240,240,.52);
  --card: rgba(12,12,18,.92);
  --sh-glow-md: 0 0 20px rgba(255,214,0,.5), 0 0 40px rgba(255,214,0,.2);
  --sh-focus: 0 0 0 3px rgba(255,214,0,.4);
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 600px at 72% 45%, rgba(255,214,0,.06), transparent);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: 6px; }

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── Type ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--y);
}
.grad {
  background: linear-gradient(135deg, #fff 30%, var(--y) 70%, var(--y2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5,5,10,.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav .home { color: var(--y); }
.nav .links { display: flex; gap: 22px; }
/* Blog stands out in yellow. On the blog index itself its link is plain "index.html". */
.nav .links a[href$="blog/index.html"], .nav .links a[href="index.html"] { color: var(--y); }
.nav .links a[href$="blog/index.html"]:hover, .nav .links a[href="index.html"]:hover { color: #fff; }
.nav a:not(.home) { color: var(--muted); transition: color .2s; }
.nav a:not(.home):hover { color: var(--y); }

/* ── Footer line ── */
.foot {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 18px 32px 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dim);
}
.foot a { transition: color .2s; }
.foot a:hover { color: var(--y); }
.foot .mail { text-transform: none; letter-spacing: .05em; }

/* ── Snark ── */
.snark {
  position: relative;
  width: 92px;
  height: 84px;
  background: linear-gradient(135deg, var(--y), var(--y2));
  border-radius: 60% 40% 55% 45% / 48% 52% 42% 58%;
  box-shadow: var(--sh-glow-md);
  animation: blobMorph 3.5s ease-in-out infinite, blobFloat 4s ease-in-out infinite;
}
.snark::before, .snark::after {
  content: "";
  position: absolute;
  top: 30.5%;
  width: 14%;
  height: 15.5%;
  background: #1a0f00;
  border-radius: 50%;
  animation: eyeBlink 4s infinite;
}
.snark::before { left: 24%; }
.snark::after { right: 24%; animation-delay: .08s; }

.bubble {
  background: #fff;
  color: #111;
  font-size: 13px;
  line-height: 1.4;
  padding: 9px 13px;
  border-radius: 12px;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 48% 52% 42% 58%; }
  33% { border-radius: 45% 55% 40% 60% / 55% 45% 58% 42%; }
  66% { border-radius: 52% 48% 60% 40% / 42% 58% 48% 52%; }
}
@keyframes blobFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -6px; rotate: 3deg; }
}
@keyframes eyeBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.08); }
}

/* ── Store buttons (Google Play now, App Store later as one more <a>) ── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--y);
  color: #111;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.store:hover { transform: translateY(-2px); box-shadow: var(--sh-glow-md); }
.store small { display: block; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; }

/* Button row: a yellow .store button plus an outlined .ghost button */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  transition: border-color .2s, color .2s;
}
.ghost:hover { border-color: var(--y); color: var(--y); }

/* ── App pages: hero, sticky phone story, blog, questions ── */
.app-hero {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.app-hero .icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(255,214,0,.2);
}
.app-hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  margin: 12px 0 18px;
}
.app-hero .lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 580px; margin: 0 0 28px; }

.story {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.stick {
  position: sticky;
  top: 60px;
  height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  width: min(300px, calc((100svh - 150px) * .45));
  padding: 10px;
  border-radius: 42px;
  background: #0d0d14;
  border: 1px solid var(--border);
  box-shadow: 0 0 70px rgba(255,214,0,.12), 0 30px 80px rgba(0,0,0,.6);
}
.scr { position: relative; aspect-ratio: var(--ratio, 1078 / 2399); border-radius: 32px; overflow: hidden; background: var(--bg); }
.scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s; }
.scr img.on { opacity: 1; }

/* Desktop, browser and command line apps: a window frame instead of a phone */
.window {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d14;
  border: 1px solid var(--border);
  box-shadow: 0 0 70px rgba(255,214,0,.1), 0 30px 80px rgba(0,0,0,.6);
}
.window .bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.window .bar span { margin-left: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); }
.window .scr { border-radius: 0; }
.window .scr img { object-fit: contain; padding: var(--pad, 0); }
.story.wide { grid-template-columns: 1.15fr 1fr; }
/* A wide window is short, so it pins near the top instead of centring in the screen,
   and the first step starts level with it rather than half a screen down. */
.story.wide .stick { height: auto; top: 100px; padding: 24px 8px 0; }
.story.wide .steps { padding: 0 0 25svh; }
.story.wide .step { min-height: 60svh; }
.story.wide .step:first-child { justify-content: flex-start; padding-top: 24px; }

/* Feature cards and plain sections for the non-phone app pages */
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat { padding: 20px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); transition: border-color .25s, transform .25s; }
.feat:hover { border-color: rgba(255,214,0,.35); transform: translateY(-3px); }
.feat i { display: block; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--y); }
.feat b { display: block; font-size: 18px; margin: 9px 0 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.sec.wide { max-width: 1100px; }
.sec .plain { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 16px; max-width: 720px; }
.sec .plain strong, .sec .plain code, .feat code { color: var(--text); }
.note { margin: 16px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--dim); line-height: 1.7; overflow-wrap: anywhere; }
.code { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.code pre { margin: 0; padding: 18px 20px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text); overflow-x: auto; }
.code .cmt { color: var(--dim); }
.pill-wait { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 12px; border: 1px dashed var(--border); color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.steps { padding: 20svh 0 30svh; }
.step {
  min-height: 75svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .28;
  transition: opacity .4s;
}
.step.on { opacity: 1; }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--y); }
.step h3 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.03em; line-height: 1.08; margin: 12px 0 14px; }
.step p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; max-width: 430px; }
.step .shot { display: none; }
.pro {
  display: inline-block;
  width: max-content;
  margin-top: 16px;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--y);
  color: #111;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}
.step .snk { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.step .snk .snark { width: 54px; height: 49px; flex: 0 0 auto; }

.sec {
  position: relative;
  z-index: 5;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 32px;
}
.sec > .label { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--y); font-family: var(--mono); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--y); }
.faq details p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0 0 20px; max-width: 680px; }

.page-foot { max-width: 1100px; margin: 40px auto 0; border-top: 1px solid var(--border); }

/* ── Blog: post cards, the blog index and the post page ── */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.postcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}
.postcard:hover { border-color: rgba(255,214,0,.4); transform: translateY(-3px); }
.postcard .label { color: var(--y); }
.postcard b { font-size: 19px; line-height: 1.25; }
.postcard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.postcard i { margin-top: auto; padding-top: 6px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--y); }

.article { position: relative; z-index: 5; max-width: 900px; margin: 0 auto; padding: 48px 32px 24px; }
.article h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; margin: 14px 0 18px; }
.article .meta { margin-bottom: 34px; }
.article .lede { font-size: 21px; line-height: 1.55; color: var(--text); margin: 0 0 30px; }
.article h2 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; margin: 44px 0 14px; }
.article p, .article li { color: var(--muted); font-size: 17px; line-height: 1.75; }
.article p { margin: 0 0 18px; }
.article strong { color: var(--text); }
.article ol, .article ul { padding-left: 22px; margin: 0 0 18px; }
.article a:not(.store):not(.play-badge):not(.ghost):not(.postcard) { color: var(--y); text-decoration: underline; text-underline-offset: 3px; }
.article .more { margin-top: 56px; }
.article .more > .label { margin-bottom: 16px; }
.article .postcard p { margin: 0; font-size: 14px; line-height: 1.55; }
.article li { margin-bottom: 10px; }
.article figure { margin: 34px 0; display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.article figure .phone { width: 220px; }
.article figure .scr img { opacity: 1; }
.article figcaption { color: var(--dim); font-size: 14px; line-height: 1.6; }
.endcta {
  margin: 44px 0 0;
  padding: 28px;
  border-radius: 18px;
  background: radial-gradient(400px 200px at 90% 120%, rgba(255,214,0,.16), transparent), var(--glass);
  border: 1px solid rgba(255,214,0,.25);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.endcta img { width: 72px; height: 72px; border-radius: 18px; }
.endcta b { display: block; font-size: 20px; margin-bottom: 4px; }
.endcta p { margin: 0 0 14px; font-size: 15px; }

@media (max-width: 767px) {
  .app-hero { grid-template-columns: 1fr; gap: 18px; padding: 32px 20px 24px; }
  .app-hero .icon { width: 84px; height: 84px; border-radius: 20px; }
  .story { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
  .phone-col { display: none; }
  .steps { padding: 0; }
  .step { min-height: 0; opacity: 1; padding: 40px 0; }
  .step .shot {
    display: block;
    width: min(260px, 72vw);
    margin: 0 auto 28px;
    border-radius: 30px;
    border: 8px solid #0d0d14;
    outline: 1px solid var(--border);
    box-shadow: 0 0 50px rgba(255,214,0,.1);
  }
  .sec { padding: 32px 20px; }
  .page-foot { margin-top: 24px; }
  .story.wide { grid-template-columns: 1fr; }
  .story.wide .steps { padding: 0; }
  .story.wide .step, .story.wide .step:first-child { min-height: 0; padding: 32px 0; }
  .story.wide .step .shot { width: 100%; border-radius: 12px; border-width: 1px; border-color: var(--border); outline: none; }
  .feats, .code { grid-template-columns: 1fr; }
  .article { padding: 28px 20px 16px; }
  .article figure { grid-template-columns: 1fr; justify-items: center; }
  .endcta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Google Play's official badge in place of a text button. The image carries Google's own clear
   space around the badge, so the negative margin lines its visible edge up with the buttons beside it. */
.play-badge { display: inline-flex; align-items: center; transition: transform .2s; }
.play-badge img { display: block; height: 64px; width: auto; margin: -10px; }
.play-badge:hover { transform: translateY(-2px); }
