/* Siloed marketing site. One stylesheet, no build step.
   Tokens and register come from the app's design language (siloedai/.claude/skills/design-language):
   hard corners, the chamfer spent once (the lockup, and a rule that kicks down 45° on section
   eyebrows), Model M lamps for state, a Windows 95 key for the one action, mechanical motion.
   Light only, matching the app until its dark pass ships. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@500;600;700&family=Inter:wght@400;500&display=swap');

:root {
  --sea-ink: #173a40;
  --sea-ink-soft: #416166;
  --lagoon: #4fb8b2;
  --lagoon-deep: #328f97;
  --palm: #2f6a4a;
  --sand: #e7f0e8;
  --foam: #f3faf5;
  --bg-base: #e7f3ec;
  --background: #ffffff;
  --foreground: #101c20;
  --muted-foreground: #5f7a80;
  --line: rgba(23, 58, 64, 0.14);
  --kicker: rgba(47, 106, 74, 0.9);
  --status-ok: oklch(76.8% 0.233 130.85);
  --hero-a: rgba(79, 184, 178, 0.36);
  --hero-b: rgba(47, 106, 74, 0.2);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;

  --measure: 40rem;
  --gutter: 1.25rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--sea-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg-base);
  background:
    radial-gradient(1100px 620px at -8% -10%, var(--hero-a), transparent 58%),
    radial-gradient(1050px 620px at 112% -12%, var(--hero-b), transparent 62%),
    radial-gradient(720px 380px at 50% 115%, rgba(79, 184, 178, 0.1), transparent 68%),
    linear-gradient(180deg, color-mix(in oklab, var(--sand) 68%, white) 0%, var(--foam) 44%, var(--bg-base) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The app's faint 28px grid, fading out from the top centre. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
}

a {
  color: var(--lagoon-deep);
  text-decoration: underline;
  text-decoration-color: rgba(50, 143, 151, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  color: #246f76;
  text-decoration-color: currentColor;
}

a:focus-visible,
.key:focus-visible {
  outline: 2px solid var(--lagoon-deep);
  outline-offset: 2px;
}

/* ---------- Page frame ---------- */

.page {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-block: 4.5rem 3rem;
}

.page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.lockup {
  display: block;
  width: 15rem;
  max-width: 100%;
  height: auto;
  color: var(--sea-ink);
}

.lockup-link {
  display: inline-block;
  color: var(--sea-ink);
  text-decoration: none;
  line-height: 0;
}

.lockup-link:hover {
  color: var(--sea-ink);
}

.tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sea-ink-soft);
  letter-spacing: -0.005em;
}

/* ---------- Prose ---------- */

.lede {
  margin-top: 2.5rem;
}

.lede p,
.prose p {
  margin: 0 0 1rem;
}

.lede p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.lede p {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.lede strong,
.prose strong {
  font-weight: 500;
  color: var(--foreground);
}

/* ---------- Section eyebrow with the chamfer rule ---------- */

.section {
  margin-top: 3.5rem;
}

.eyebrow {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0 0 1rem;
}

.eyebrow-label {
  font-family: var(--font-heading);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kicker);
  line-height: 1;
}

/* A hairline that kicks DOWN 45° at its right terminus: the folded corner as a stroke. */
.rule {
  display: flex;
  align-items: center;
  height: 20px;
  margin-top: -6px;
}

.rule-run {
  flex: 1 1 auto;
  min-width: 0;
  height: 1px;
  background: var(--line);
}

.rule-kick {
  display: block;
  flex: 0 0 auto;
  width: 10px;
  height: 20px;
}

/* ---------- Ledger rows (how it works) ---------- */

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
}

.ledger li:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

.ledger b {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--foreground);
}

.ledger span {
  display: block;
  color: var(--sea-ink-soft);
  font-size: 0.9375rem;
}

/* ---------- Model M lamp ---------- */

/* On, like a Model M lock lamp: the app's --status-ok green, flat. No glow. */
.lamp {
  display: inline-block;
  width: 10px;
  height: 4px;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
  background: var(--status-ok);
}

.status {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--sea-ink-soft);
}

/* ---------- Invite request (a sunk Windows 95 field and a raised control) ----------
   The field is a well the visitor writes into: dark top/left, light bottom/right, a fill that is
   a 4% darkening of the page. The control beside it is the raised light face, not the key: the
   key above is the page's one dark action. Both on the 30px scale. */

/* Disclosed from the "Request an invite" link beside the key. Hidden until then; the :target
   arm is the no-script path (the link is a plain #invite anchor). */
.invite {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 26rem;
  margin-top: 1rem;
}

.invite:target,
.invite.is-open {
  display: grid;
}

.field {
  display: flex;
  min-width: 0;
}

.field input {
  height: 30px;
  width: 100%;
  margin: 0;
  padding: 0 0.625rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--sea-ink);
  background: color-mix(in oklab, var(--foreground) 4%, transparent);
  border: 1px solid;
  border-color:
    color-mix(in oklab, var(--line), var(--sea-ink) 25%)
    color-mix(in oklab, var(--line), white 35%)
    color-mix(in oklab, var(--line), white 35%)
    color-mix(in oklab, var(--line), var(--sea-ink) 25%);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder {
  color: var(--muted-foreground);
}

.field input:focus-visible {
  border-color: var(--lagoon-deep);
}

.bevel {
  align-self: end;
  height: 30px;
  padding: 0 0.875rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sea-ink);
  background: color-mix(in oklab, var(--background) 95%, var(--sea-ink) 5%);
  border: 1px solid;
  border-color:
    color-mix(in oklab, var(--line), white 35%)
    color-mix(in oklab, var(--line), var(--sea-ink) 25%)
    color-mix(in oklab, var(--line), var(--sea-ink) 25%)
    color-mix(in oklab, var(--line), white 35%);
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}

.bevel:active {
  border-color:
    color-mix(in oklab, var(--line), var(--sea-ink) 25%)
    color-mix(in oklab, var(--line), white 35%)
    color-mix(in oklab, var(--line), white 35%)
    color-mix(in oklab, var(--line), var(--sea-ink) 25%);
}

.bevel:active > span {
  display: inline-block;
  transform: translateY(1px);
}

.bevel:disabled {
  cursor: default;
  color: var(--sea-ink-soft);
}

.invite-note {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--sea-ink-soft);
}

.invite.is-done .field,
.invite.is-done .bevel {
  display: none;
}

.invite.is-done .invite-note {
  color: var(--sea-ink);
}

/* The honeypot: off-canvas, never display:none, so a naive bot still fills it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.invite + .status {
  margin-top: 1rem;
}


.status .dot {
  margin: 0 0.4em;
  color: var(--muted-foreground);
}

/* ---------- The key (Windows 95 register) ----------
   Raised at rest, no hover state, pressed while the mouse is down: the bevel inverts and the
   label steps one pixel down and right. The press is the feedback. */

.key {
  --key-hi: white;
  --key-hi-soft: color-mix(in oklab, var(--bg-base) 75%, var(--sea-ink));
  --key-lo: black;
  --key-lo-soft: color-mix(in oklab, var(--sea-ink), black 45%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  min-width: 12rem;
  padding: 0 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--background);
  background: var(--sea-ink);
  border: 1px solid;
  border-color: var(--key-hi) var(--key-lo) var(--key-lo) var(--key-hi);
  box-shadow: inset 2px 2px 0 var(--key-hi-soft), inset -2px -2px 0 var(--key-lo-soft);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.key:hover {
  color: var(--background);
}

/* Pressed: the key sinks straight into the housing. A mirrored bevel (light swapped to the
   bottom-right) reads as the face sliding diagonally, so instead the lit edges go out
   uniformly and only the top edge keeps a shadow, which is the one cue for "down". */
.key:active {
  border-color: var(--key-lo);
  box-shadow: inset 0 2px 0 var(--key-lo-soft);
}

.key:active > span {
  transform: translateY(2px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem; /* the lede's paragraph gap: the key is the next paragraph */
}

.quiet {
  font-size: 0.9375rem;
  color: var(--sea-ink-soft);
  text-decoration-color: rgba(65, 97, 102, 0.35);
}

.quiet:hover {
  color: var(--sea-ink);
}

/* ---------- Footer ---------- */

.foot {
  margin-top: 4.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--sea-ink-soft);
}

.foot a {
  color: var(--sea-ink-soft);
  text-decoration-color: rgba(65, 97, 102, 0.35);
}

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

.foot .spacer {
  flex: 1 1 auto;
}

/* ---------- Document pages (terms, privacy) ---------- */

.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doc-head .lockup {
  width: 7.5rem;
}

.doc {
  margin-top: 3rem;
}

.doc h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--foreground);
}

.doc .effective {
  margin: 0 0 2rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

.doc section {
  margin-top: 2.5rem;
}

.doc h2 {
  margin: 0;
}

.doc h3 {
  margin: 1.25rem 0 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.prose {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.375rem;
}

.prose li::marker {
  color: var(--muted-foreground);
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .page {
    padding-block: 3rem 2.5rem;
  }

  .lockup {
    width: 12.5rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .key {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
