/* The open web's stylesheet: the marketing page and the articles share it, and the
   signed-in app never fetches it. Kept apart from styles.css for the same reason in
   the other direction — visitors should not download the console's UI. */
:root {
  --bg: #0b0b10;
  --panel: #14141c;
  --line: #262633;
  --text: #f2f3f8;
  --dim: #a3a7b8;
  --blue: #4a9eff;
  --violet: #8b5cf6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

/*
 * The same rule styles.css carries, for the same reason: the browser hides [hidden]
 * elements from its own stylesheet, and any author rule beats it. The account menu
 * below is laid out with flex and hidden with the attribute, so without this it
 * stayed open forever on the marketing pages — clicking the avatar toggled a
 * property nothing on screen obeyed.
 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.logo {
  display: inline-block; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  vertical-align: middle;
}
.btn {
  display: inline-block; border: 0; border-radius: 8px; cursor: pointer;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  padding: 12px 26px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.btn.big { font-size: 1.2rem; padding: 15px 34px; }
.btn.quiet {
  background: transparent; border: 1px solid var(--line); font-weight: 500;
}
.btn:hover { filter: brightness(1.1); }

/* ------------------------------------------------------------------ top bar */
header.openbar {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(11,11,16,.95), rgba(11,11,16,.75));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(38,38,51,.6);
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1100px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; text-decoration: none; }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative; text-align: center; padding: 96px 24px 72px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(74,158,255,.22), transparent),
    radial-gradient(ellipse 55% 45% at 80% 25%, rgba(139,92,246,.18), transparent);
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.12; max-width: 780px; margin: 0 auto 18px; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--dim); max-width: 640px; margin: 0 auto 30px; }
.hero .fine { margin-top: 14px; color: var(--dim); font-size: .9rem; }

/* The marketing page's own hero: a wall of places, the words on top of it, and one
   thing to do. The partner page keeps the plain hero above — it argues a case, and a
   full-bleed picture wall behind an argument is a different page's job. */
.hero.home {
  overflow: hidden; padding: clamp(72px, 12vw, 150px) 24px clamp(88px, 11vw, 132px);
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; justify-content: center;
  background: #000;
}
/* Everything but the wall is lifted above the veil. The wall itself must keep its own
   `position: absolute` — matching it here would put it back into the flow, where its
   tiles stack into a page several thousand pixels tall. */
.hero.home > :not(.collage) { position: relative; z-index: 2; }
/* Enough tiles to overrun the hero at any width, and the hero clips what hangs over —
   a wall should run past the edges of what is standing in front of it. */
.collage {
  position: absolute; inset: -24% -16%; z-index: 0;
  display: grid; gap: 10px; align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  transform: rotate(-8deg) scale(1.12);
}
.collage span { aspect-ratio: 2 / 3; border-radius: 6px; }
/* The veil that turns the wall into a backdrop. Dark enough behind the words and thin
   enough at the edges that the places are still places — the first draft was heavy
   enough to render the whole wall black, which is a plain background with extra steps. */
.hero.home::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%, rgba(6,6,10,.88), rgba(6,6,10,.35) 85%, transparent),
    linear-gradient(180deg, rgba(6,6,10,.75) 0%, rgba(6,6,10,.1) 30%, rgba(6,6,10,.1) 62%, rgba(6,6,10,.92) 100%);
}
/* The curve the wall ends on, lit along its edge — the page below begins here. */
.hero.home::after {
  content: ''; position: absolute; z-index: 3;
  left: -12%; right: -12%; bottom: -70px; height: 140px;
  border-radius: 50%; background: var(--bg);
  box-shadow: 0 -2px 0 0 rgba(139,92,246,.75), 0 -4px 34px rgba(74,158,255,.3);
}
.hero.home h1 {
  font-size: clamp(2.3rem, 6.2vw, 4rem); font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.hero.home p.lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--text); margin-bottom: 26px; }
.hero.home .ready { color: var(--text); margin-bottom: 14px; }

/* ----------------------------------------------------------- the email door */
.join { display: flex; justify-content: center; }
.joinform {
  display: flex; gap: 10px; width: 100%; max-width: 620px;
  flex-wrap: wrap; justify-content: center;
}
.joininput {
  flex: 1 1 260px; min-width: 0; padding: 16px 16px;
  background: rgba(8,8,12,.7); color: var(--text);
  border: 1px solid rgba(255,255,255,.45); border-radius: 6px;
  font: inherit; font-size: 1rem;
}
.joininput::placeholder { color: var(--dim); }
.joininput:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.joinform .btn.big { flex: 0 0 auto; border-radius: 6px; }
/* Present for a screen reader, absent for everyone else. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------- location "titles" */
.rowhead { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.rowhead h2 { font-size: 1.4rem; }
.rowhead span { color: var(--dim); font-size: .95rem; }
/* A section's name, left-aligned above its row — the shape the whole page repeats. */
.rowtitle { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 16px; }
/* The band between sections, which is what gives the page its rhythm. */
main.wrap > section + section {
  border-top: 8px solid #17171f; padding-top: 44px; margin-top: 4px;
}
.shelf {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  margin-bottom: 72px;
}
.card {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 2 / 3; display: flex; align-items: flex-end;
  border: 1px solid var(--line);
  transition: transform .18s ease;
}
.card:hover { transform: scale(1.045); }
/* A real location's card is a link to its own page; a painted one has nowhere to go. */
a.card { color: inherit; text-decoration: none; cursor: pointer; }
.card .name {
  width: 100%; padding: 40px 12px 12px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  position: relative; z-index: 1;
}
.card .live {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  background: #e11d48; border-radius: 4px; padding: 2px 7px;
}
.card .soon {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  background: rgba(38,38,51,.9); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 7px; color: var(--dim);
}
/* A live card carries the dock camera's picture behind its name. */
.card video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #000;
}
/* Painted places for the cards that have no camera to show yet. */
.sky-coast   { background: linear-gradient(180deg,#7fb2e8 0%,#cfe3f2 45%,#1b6d8f 46%,#0d3b52 100%); }
.sky-peaks   { background: linear-gradient(180deg,#f2a65e 0%,#e8788a 40%,#4a3a6b 41%,#241d3d 100%); }
.sky-city    { background: linear-gradient(180deg,#1a2340 0%,#31406e 55%,#0e1226 56%,#05070f 100%),
                           repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,220,120,.35) 14px 16px); background-blend-mode: screen; }
.sky-forest  { background: linear-gradient(180deg,#bcd9e8 0%,#e7f2ef 30%,#2f6b4f 31%,#12301f 100%); }
.sky-harbor  { background: linear-gradient(180deg,#f8c471 0%,#e88f5e 45%,#31597a 46%,#122b40 100%); }
.sky-snow    { background: linear-gradient(180deg,#9fb8d8 0%,#dfe9f5 40%,#f8fafc 41%,#9db4c9 100%); }

/* ------------------------------------------------------------------ reasons */
.reasons { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-bottom: 72px; }
.reason {
  position: relative;
  background: linear-gradient(150deg, #1b1a28 0%, #141420 60%, #16121f 100%);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 26px;
}
.reason h3 { margin-bottom: 8px; font-size: 1.15rem; }
.reason p { color: var(--dim); }
/* The mark above a reason: one character, not an icon set to ship. It leads the tile
   rather than sitting in a corner, where it had to push the heading into a second line
   to stay out of its way. */
.reason .glyph {
  display: block; margin-bottom: 10px;
  font-size: 1.9rem; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

section > h2.center { text-align: center; font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 28px; }

/* ---------------------------------------------------------- the partner form */
.reason label { display: block; font-weight: 600; }
.reason input, .reason select, .reason textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit;
}
.reason textarea { resize: vertical; }

/* --------------------------------------------- the signed-in visitor's menu
   Mirrors the app shell's .avatar and .menu (styles.css): same face, same panel,
   so moving between the marketing pages and the dashboard shows no seam. */
#bar-account { display: inline-flex; align-items: center; gap: 16px; }
.open-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--dim);
}
.open-dot.up { background: #22c55e; }
.open-dot.down { background: #ef4444; }
.bar-menu { position: relative; display: inline-flex; }
.bar-menu .open-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel) center/cover no-repeat;
  color: var(--text); font: inherit; font-weight: 700;
  cursor: pointer; padding: 0;
}
.bar-menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 8px; display: flex; flex-direction: column; z-index: 20;
}
.bar-menu nav .menu-name { margin: 8px; color: var(--dim); font-size: 0.85rem; }
.bar-menu nav a, .bar-menu nav button {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  background: none; border: 0; border-radius: 7px; color: var(--text);
  font: inherit; text-decoration: none; cursor: pointer;
}
.bar-menu nav a:hover, .bar-menu nav button:hover { background: rgba(255, 255, 255, 0.06); }
.bar-menu nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* ------------------------------------------------------------------ stories */
.stories { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-bottom: 72px; }
.story {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px; text-decoration: none;
  transition: transform .18s ease;
}
.story:hover { transform: translateY(-3px); }
.story h3 { margin-bottom: 8px; font-size: 1.15rem; }
.story p { color: var(--dim); font-size: .95rem; }
.story .more { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 600; font-size: .95rem; }

/* ---------------------------------------------------------------------- faq */
.faq { max-width: 860px; margin: 0 auto 72px; }
.faq details {
  background: #1f1f2b; border: 0;
  border-radius: 4px; margin-bottom: 8px;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  padding: 22px 26px; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 500;
}
.faq summary:hover { background: #262634; border-radius: 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.9rem; font-weight: 300; color: var(--text); }
.faq details[open] summary::after { content: '×'; }
.faq details p {
  padding: 22px 26px; color: var(--text);
  border-top: 1px solid #0b0b10; font-size: 1.05rem;
}

/* --------------------------------------------------------------- bottom cta */
.bottom {
  text-align: center; padding: 20px 24px 80px;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(139,92,246,.16), transparent);
}
.bottom h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.bottom p { color: var(--dim); margin-bottom: 26px; }
.bottom .ready { color: var(--text); font-size: 1.05rem; margin-bottom: 14px; }
.bottom .fine { color: var(--dim); font-size: .9rem; margin: 16px 0 0; }

footer.openfoot {
  border-top: 1px solid var(--line); color: var(--dim);
  text-align: center; padding: 26px 24px; font-size: .9rem;
}
footer.openfoot nav { margin-top: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
footer.openfoot a { color: var(--dim); text-decoration: none; }
footer.openfoot a:hover { color: var(--text); }

/* --------------------------------------------------------- narrow windows */
@media (max-width: 560px) {
  /* The bar's three items cannot all fit across a phone, and a top bar that pushes the
     whole page sideways is worse than one that takes a second line. */
  .bar { padding: 12px 16px; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .brand { font-size: 1.1rem; }
  .brand .logo { width: 22px; height: 22px; }
  .btn.quiet { padding: 8px 12px; font-size: .9rem; }
  /* On a phone the two halves of the email door stack, and each takes the width. The
     basis has to be cleared with the direction: down a column it sizes the height, and
     the field stood 260px tall. */
  .joinform { flex-direction: column; }
  .joinform .joininput { flex: 0 0 auto; width: 100%; }
  .joinform .btn.big { width: 100%; }
}

/* ----------------------------------------------------------------- articles */
article.piece { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
article.piece h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; margin-bottom: 10px; }
article.piece .byline { color: var(--dim); font-size: .9rem; margin-bottom: 32px; }
article.piece h2 { font-size: 1.35rem; margin: 36px 0 12px; }
article.piece p { margin-bottom: 16px; color: #d5d8e4; }
article.piece ul { margin: 0 0 16px 22px; color: #d5d8e4; }
article.piece li { margin-bottom: 8px; }
article.piece a { color: var(--blue); }
article.piece .cta {
  margin-top: 40px; padding: 26px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); text-align: center;
}
article.piece .cta p { margin-bottom: 16px; }
