@charset "UTF-8";
/* ShadowSync world — a working day turning into night.
   Every page opens on a light day ground and cuts on an angle into the dark,
   where teal is the only light: the signal of something running unattended.
   This file holds what every page shares; home.css and pages.css hold what
   only their own pages need. Tokens live in chrome.css. */

/* ---------------------------------------------------------------- ground */
body {
  background: var(--night);
  background-image: none;
  color: var(--night-ink);
}
body::before { content: none; }
main { overflow-x: clip; }

/* the parts of the browser nobody draws, drawn in this world */
::selection { background: rgba(0, 214, 180, 0.32); color: #fff; }
[data-day] ::selection { background: rgba(0, 214, 180, 0.3); color: var(--day-ink); }
:root { accent-color: var(--teal); }
input, textarea, select { caret-color: var(--teal); }
@supports (scrollbar-color: red blue) {
  html { scrollbar-color: rgba(255, 255, 255, 0.22) var(--night); }
}
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.34); background-clip: content-box; }
::marker { color: var(--night-soft); }

/* ---------------------------------------------------------------- type */
.n-display {
  margin: 0;
  font-family: var(--display);
  font-weight: 280;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}
/* Three lines, held as three on wide screens: the size is set by the longest
   line fitting the copy column, not by how big a hero can get. */
.n-display--hero { font-size: clamp(2.3rem, 4.1vw, 4.6rem); font-stretch: 106%; }
.n-display--hero span { display: block; }
@media (min-width: 1100px) { .n-display--hero span { white-space: nowrap; } }
.n-display--section { font-size: clamp(2rem, 4.1vw, 3.6rem); }
.n-display--close { font-size: clamp(2.2rem, 4.9vw, 4.4rem); }

.n-lede { margin: 0; color: var(--night-soft); font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem); line-height: 1.6; max-width: 48ch; }
.n-body { margin: 0; color: var(--night-soft); line-height: 1.68; max-width: 54ch; }
.n-body strong { color: var(--night-ink); font-weight: 600; }

.n-shell { width: min(100% - (var(--edge) * 2), var(--shell)); margin-inline: auto; }
.n-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) {
  .n-head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: 48px; }
}

/* ---------------------------------------------------------------- controls */
.n-arrow { flex: none; transition: transform 0.35s var(--ease); }

.n-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0.95em 1.55em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--day-ink);
  color: #fff;
  font: 600 0.92rem/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.n-btn:hover .n-arrow, .n-link:hover .n-arrow { transform: translateX(5px); }
.n-btn:hover { background: #26262a; }

.n-btn--quiet { background: transparent; color: var(--night-ink); border-color: rgba(255, 255, 255, 0.2); }
.n-btn--quiet:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.34); }

.n-btn--signal { background: var(--teal); color: var(--teal-ink); }
.n-btn--signal:hover { background: #2fe4c6; }

/* the pill from the generator reference: dark, ringed, a line of light along its top */
.n-btn--glow {
  position: relative;
  background: #0c0c0e;
  color: var(--night-ink);
  border-color: rgba(255, 255, 255, 0.14);
}
.n-btn--glow::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 14px 1px rgba(0, 214, 180, 0.55);
}
.n-btn--glow:hover { background: #141417; }

.n-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--day-ink);
  font: 600 0.92rem/1.2 var(--sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(10, 10, 11, 0.3);
}
.n-link:hover { text-decoration-color: currentColor; }
.n-link--night { color: var(--night-ink); text-decoration-color: rgba(255, 255, 255, 0.28); }

.n-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

.n-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.n-chips li {
  padding: 0.5em 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--night-ink);
  font: 500 0.8rem/1 var(--sans);
}
.n-chips--small li { padding: 0.42em 0.8em; font-size: 0.74rem; color: var(--night-soft); }

.n-round {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--day-line);
  background: transparent;
  color: var(--day-ink);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.n-round .n-arrow { width: 26px; }
.n-round:hover { background: var(--day-ink); border-color: var(--day-ink); color: #fff; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[data-day] :where(a, button, summary):focus-visible { outline-color: var(--day-ink); }

/* ================================================================ steps, as tabs */
.n-steps { padding: clamp(60px, 8vw, 110px) 0; }
.n-steps-grid { display: grid; gap: 22px; }
@media (min-width: 1000px) {
  .n-steps-grid { grid-template-columns: 210px minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
}
.n-steps-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.n-steps-list::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .n-steps-list { display: grid; gap: 4px; overflow: visible; } }
.n-tab {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: none;
  padding: 12px 16px 12px 18px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--night-soft);
  font: 500 0.94rem/1.3 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.n-tab:hover { color: var(--night-ink); }
.n-tab[aria-selected="true"] { color: var(--night-ink); border-left-color: var(--teal); }
.n-tab-no { font: 600 0.72rem/1 var(--sans); color: var(--night-soft); }
.n-tab[aria-selected="true"] .n-tab-no { color: var(--night-ink); }

.n-steps-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: #111113;
  /* lit from below, the way the reference's panels are: the light falls on the
     ground under the frame and catches its lower edge, never on the photograph */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 0 0 rgba(0, 214, 180, 0.55),
    0 46px 90px -38px rgba(0, 214, 180, 0.5);
}
.n-steps-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.8);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.n-steps-img.is-on { opacity: 1; }
.n-panel { display: grid; gap: 16px; align-content: center; justify-items: start; }
.n-panel[hidden] { display: none; }
.n-panel-title { margin: 0; font: 500 clamp(1.3rem, 1.9vw, 1.65rem)/1.2 var(--display); font-stretch: 106%; letter-spacing: -0.015em; }
.no-js .n-steps-img:not(:first-child) { display: none; }

/* ================================================================ glass */
.n-glass {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
/* a pool of teal light at the foot of each pane, strong enough that the
   pane reads as glass lit from below, and a line of it on the lower edge */
.n-glass::before {
  content: "";
  position: absolute;
  inset: auto -12% -62% -12%;
  height: 92%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 214, 180, 0.42), rgba(0, 214, 180, 0.13) 55%, transparent);
  pointer-events: none;
}
.n-glass { box-shadow: inset 0 -1px 0 rgba(0, 214, 180, 0.4); }
.n-glass .n-chips li { background: rgba(10, 10, 11, 0.6); }
.n-glass::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}
.n-glass-text { display: grid; gap: 12px; }
.n-glass-title { display: flex; align-items: center; gap: 12px; margin: 0; font: 500 1.18rem/1.2 var(--display); letter-spacing: -0.012em; }
.n-glyph { flex: none; color: var(--night-soft); }
.n-glass-body { margin: 0; color: var(--night-soft); font-size: 0.93rem; line-height: 1.6; max-width: 46ch; }


/* ================================================================ the close banner */
.n-close { padding: clamp(30px, 5vw, 70px) 0 clamp(70px, 9vw, 130px); }
.n-close-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  --rise: clamp(84px, 9vw, 124px);
  min-height: clamp(420px, 46vw, 560px);
  padding: clamp(28px, 4.5vw, 64px);
  padding-bottom: calc(var(--rise) + 34px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c0e;
}
.n-close-banner .hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
  transform: scale(1.12);
  filter: grayscale(1) contrast(1.1) brightness(0.64);
}
/* the copy sits on quiet, near-solid ground; the photograph is the right half */
.n-close-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(7, 7, 8, 0.97) 0%, rgba(7, 7, 8, 0.93) 44%, rgba(7, 7, 8, 0.5) 66%, rgba(7, 7, 8, 0.08));
}
@media (max-width: 759px) {
  .n-close-banner::before { background: linear-gradient(180deg, rgba(7, 7, 8, 0.35), rgba(7, 7, 8, 0.9) 34%, rgba(7, 7, 8, 0.96)); }
}
/* the horizon: the rim of something very large rising at the banner's foot */
.n-horizon {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(100% - var(--rise));
  width: 190%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  border-top: 1.5px solid rgba(160, 255, 236, 0.9);
  background: radial-gradient(closest-side, rgba(7, 7, 8, 1) 92%, rgba(0, 214, 180, 0.18));
  box-shadow: 0 -22px 70px -16px rgba(0, 214, 180, 0.7), 0 -2px 18px 0 rgba(0, 214, 180, 0.6);
  pointer-events: none;
}
.n-close-copy { display: grid; gap: 22px; max-width: 640px; }
.n-close-copy .n-body { max-width: 44ch; }

/* ================================================================ light on the hairlines */
/* A copy of each hairline, carrying one short run of teal that site.js walks
   along it now and then. Hidden until it moves, so without script (or with
   reduced motion) the lines are only lines. */
:is(.n-day-lines, .p-day-lines, .n-trust-curve) .line-flow {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.9;
  stroke-linecap: round;
  vector-effect: none;
  opacity: 0;
  pointer-events: none;
}
.n-trust-curve .line-flow { stroke-width: 1.3; }

/* ================================================================ motion */
@media (prefers-reduced-motion: reduce) {
  .n-steps-img, .n-arrow, .n-btn { transition: none !important; }
  .n-close-banner .hero-media { display: none; }
}
