/* Lane at Night: tomcomer.net */

*, *::before, *::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }

:root {
  --bg: #0d1321;
  --band: #0f1728;
  --border: #1d2840;
  --text: #e6e9ef;
  --muted: #8a93a6;
  --soft: #aab3c5;
  --accent: #ffb020;
  --max: 1040px;
  --pad: max(20px, calc((100% - var(--max)) / 2));
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Top bar */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}

.topbar .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  padding: 2px;
}

.topbar nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 56px var(--pad) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 40%, rgba(255, 176, 32, .20), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 38px, rgba(255, 255, 255, 0) 38px 76px);
}

.hero .copy { padding-bottom: 56px; }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 12px 0 16px;
  color: #fff;
}

.hero .tag {
  color: var(--soft);
  font-size: 1.125rem;
  max-width: 34em;
  margin-bottom: 28px;
}

.hero .badge { display: inline-block; }
.hero .badge img { height: 48px; width: auto; }

.phones { position: relative; height: 440px; }

.phone {
  position: absolute;
  width: 240px;
  height: auto;
  border-radius: 34px;
  border: 6px solid #1b2236;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  background: #fff;
}

.phone.front { left: 50%; top: 0; transform: translateX(-30%) rotate(4deg); z-index: 2; }
.phone.back { left: 50%; top: 40px; transform: translateX(-98%) rotate(-6deg); opacity: .9; }

/* Features */

.features {
  background: var(--band);
  border-top: 1px solid var(--border);
  padding: 48px var(--pad);
}

.features h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }

.feat { border-left: 3px solid var(--accent); padding: 4px 16px; }
.feat h3 { font-size: 1.0625rem; color: #fff; }
.feat p { color: var(--muted); font-size: .9375rem; margin-top: 2px; }

.feat .new {
  font-size: 10px;
  font-weight: 800;
  color: var(--bg);
  background: var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 2px;
  letter-spacing: .06em;
}

/* Markdown pages (Contact, Privacy Policy) */

.doc {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  flex: 1 0 auto;
}

.doc .eyebrow { margin-bottom: 8px; }

.doc h1, .doc h2, .doc h3, .doc h4 { color: var(--accent); line-height: 1.2; margin: 1.75em 0 .5em; }
.doc h1:first-child, .doc h2:first-child { margin-top: 0; }
.doc h1, .doc h2 { font-size: 1.5rem; }
.doc h3 { font-size: 1.25rem; }
.doc h4 { font-size: 1.0625rem; }
.doc .eyebrow + div > :first-child { margin-top: 0; }

.doc p, .doc li { color: var(--soft); }
.doc p { margin: 0 0 1em; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.5em; }
.doc li { margin-bottom: .35em; }
.doc strong { color: var(--text); }
.doc a { color: var(--accent); text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc a:hover { color: #ffc65c; }
.doc pre { overflow-x: auto; }
.doc table { display: block; overflow-x: auto; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.doc code { background: var(--band); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: .9em; }

/* Footer */

.site-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 24px 20px;
  border-top: 1px solid var(--border);
}

.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Phone widths */

@media (max-width: 720px) {
  .topbar { font-size: 13px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 36px;
    overflow: hidden;
  }

  .hero .copy { padding-bottom: 32px; }
  .hero .badge img { height: 44px; }

  .phones { height: 320px; width: 100%; margin: 0 auto; }

  .phone { width: 170px; border-radius: 26px; border-width: 5px; }
  .phone.front { transform: translateX(-30%) rotate(4deg); }
  .phone.back { transform: translateX(-92%) rotate(-6deg); }

  .features { padding-top: 36px; padding-bottom: 36px; }
  .feats { grid-template-columns: 1fr; gap: 20px; }

  .doc { padding-top: 32px; }
}
