/* Syloreon — syloreon.com
   Design language taken from the brand guidelines document itself
   (F:\Claude\syloreon\logo\syloreon-brand-guidelines.html), not invented here.
   Sans throughout, violet-tinted neutrals, tight tracking on headings,
   tracked uppercase eyebrows. The warm-paper/Georgia treatment this file
   used to carry predated the brand and was not it. */

:root {
  /* Surfaces and ink — the brand document's own document palette. */
  --paper: #FFFFFF;   /* page                                    */
  --card:  #FAF9FD;   /* raised panels and stages                */
  --ink:   #181528;   /* headings, strong text        17.85:1    */
  --muted: #5C5675;   /* body copy                     6.90:1    */
  --rule:  #E2DFEC;   /* hairlines                               */

  /* ── Syloreon house brand · plasma violet ───────────────────
     Contrast measured against the surfaces this site actually uses; see
     docs/brand/syloreon-brand-handoff.md section 3. Text uses --house-ink
     (8.60:1 on white) or --house (5.75:1). --house-deep is marginal and
     --house-light fails at 2.61:1 — both are fills only, never text.
     #8B6BFF, the guidelines' own link colour, is deliberately absent: at
     3.72:1 on white it fails AA for body text. So is --doc-faint #8A84A3
     at 3.55:1, which the brand document uses for running heads. */
  --house:       #6B3FF5;  /* house accent — spines, focus rings, active  */
  --house-ink:   #4324D4;  /* house accent as text on any light surface   */
  --house-tint:  #F4F1FB;  /* house surface — nav, footer, callouts       */
  --house-line:  #DED6F0;  /* house hairline                              */
  --house-deep:  #7A4CFF;  /* gradient midpoint — fills only, not text    */
  --house-light: #B08CFF;  /* gradient end — decorative fills only        */
  --house-grad: linear-gradient(100deg, #4324D4, #7A4CFF 52%, #B08CFF);

  /* The house IS the default accent; an app page overrides these with its
     own. "Syloreon is the house, not the product." */
  --accent: var(--house);
  --accent-ink: var(--house-ink);
  --accent-tint: var(--house-tint);
  --accent-line: var(--house-line);

  /* Brand canvas. Used for the home masthead only, which is a brand surface
     in the sense the guidelines mean — like the Play graphics and the OG
     card — not a general page treatment. On dark the palette inverts: the
     gradient's pale end becomes the correct text colour (#B08CFF is 7.68:1
     here and 2.44:1 on white), which is exactly what the guidelines mean by
     "eyebrow text and small accents on dark". */
  --canvas:        #08070F;
  --glow-peak:     #24184F;  /* brightest point of the glow, top of the band */
  --canvas-ink:    #EDEAF7;  /* 16.91:1 on canvas, 13.43:1 at the glow peak  */
  --canvas-dim:    #A29CC0;  /*  7.69:1                             6.11:1  */
  --canvas-accent: #B08CFF;  /*  7.68:1                              6.10:1  */
  --glow: radial-gradient(90% 130% at 50% -20%,
          var(--glow-peak) 0%, #0D0A1C 42%, var(--canvas) 72%);

  --measure: 64ch;
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui,
          -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  /* Geometry, from the guidelines' web-token contract. */
  --r-sm: 8px;
  --r-card: 10px;
  --r-lg: 20px;
}

/* MedTrack, sampled from its shipping Play icon. 7.40:1 on white. */
.app-medtrack {
  --accent: #166055;
  --accent-ink: #12503F;
  --accent-tint: #F1F6F4;
  --accent-line: #C9DED8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 10;
  background: var(--paper); color: var(--ink);
  padding: .5rem .75rem; border: 1px solid var(--rule); border-radius: var(--r-sm);
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── chrome ───────────────────────────────────────────────── */
/* Nav and footer are house surfaces. On an app page the app's own accent
   overrides --accent-tint / --accent-line, so its chrome follows it too. */
header.site {
  background: var(--accent-tint);
  border-bottom: 1px solid var(--accent-line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem 1rem;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}

/* Logo lockup. 28px tile clears the brand's 22px floor for the lockup —
   the tracked wordmark fails before the mark does. alt is empty on
   purpose: the wordmark beside it already says "Syloreon". */
.brand {
  display: inline-flex; align-items: center; gap: .62em;
  color: var(--ink); text-decoration: none;
}
.brand img { display: block; width: 28px; height: 28px; }
.brand-wm {
  font-weight: 600; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase;
}

nav.site a {
  color: var(--ink); text-decoration: none;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-left: 1.4rem;
}
nav.site a:first-child { margin-left: 0; }
nav.site a:hover, nav.site a:focus { color: var(--accent-ink); }
nav.site a[aria-current="page"] { color: var(--accent-ink); }

main { padding: 3.25rem 0 1rem; }
main .wrap > h2:first-child { margin-top: 0; }

/* ── type ─────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 640; line-height: 1.06; letter-spacing: -.03em;
  color: var(--ink); margin: 0 0 .7rem;
}
h2 {
  font-size: 1.45rem; font-weight: 640;
  line-height: 1.15; letter-spacing: -.02em;
  color: var(--ink); margin: 2.75rem 0 .7rem;
}
h3 {
  font-size: 1rem; font-weight: 660; letter-spacing: .01em;
  color: var(--ink); margin: 1.75rem 0 .4rem;
}
strong { color: var(--ink); font-weight: 640; }

p, li { max-width: var(--measure); }

/* Eyebrow — the brand's most recognisable text form. */
.kicker {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .9rem;
}

.lede { font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.meta {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 2.25rem;
}

/* Body links carry the page's accent ink — house violet on a house page,
   the app's own ink on an app page. Underline is the affordance and stays
   on; hover thickens it rather than removing it. */
a { color: var(--accent-ink); text-decoration: underline; }
a:hover, a:focus { text-decoration-thickness: .18em; }

/* One focus ring, every focusable element, always visible. */
a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--house); outline-offset: 2px; border-radius: 2px;
}

/* ── the masthead ─────────────────────────────────────────── */
/* Nav and hero share one dark band so the glow is continuous — two
   separate dark blocks would seam where the glow restarts. */
.masthead {
  background-color: var(--canvas);
  background-image: var(--glow);
}
.masthead header.site { background: transparent; border-bottom: 0; }
.masthead .brand { color: var(--canvas-ink); }
.masthead nav.site a { color: var(--canvas-dim); }
.masthead nav.site a:hover,
.masthead nav.site a:focus { color: var(--canvas-accent); }

.hero { padding: 3.25rem 0 4rem; }
.hero .kicker { color: var(--canvas-accent); }
.hero h1 { color: var(--canvas-ink); max-width: 17ch; }
.hero .lede { color: var(--canvas-dim); margin-bottom: 1.6rem; }
.hero-note {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--canvas-accent); margin: 0;
}

/* The one gradient per page, at meaningful size — the brand's 72/18/10
   proportion rule. No text sits on it, so the pale end carries no
   contrast requirement. */
.grad-rule {
  height: 4px; width: 11rem; border: 0; border-radius: 999px;
  background: var(--house-grad);
  margin: 1.6rem 0;
}

/* ── components ───────────────────────────────────────────── */
.callout {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .35rem 1.25rem 1.1rem;
  margin: 2rem 0;
}
.callout h2 { margin-top: 1.35rem; font-size: 1.15rem; }
.callout > :last-child { margin-bottom: 0; }

.applist { list-style: none; padding: 0; margin: 1.75rem 0; }
.applist li {
  max-width: var(--measure);
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule);
  border-radius: var(--r-card);
  padding: 1.1rem 1.25rem;
  margin-bottom: .8rem;
}
/* A card wears its app's colour only once that app HAS one. MedTrack's teal
   is sampled from its shipping Play icon and verified; TidyHome's palette is
   unsettled and BillsIQ has no brand, so both stay neutral rather than
   borrowing the house violet and implying an identity they do not have. */
.applist li[class*="app-"] {
  background: var(--accent-tint);
  border-color: var(--accent-line);
  border-left-color: var(--accent);
}
.applist .name {
  font-size: 1.05rem; font-weight: 640;
  letter-spacing: -.01em; color: var(--ink);
}
.applist li[class*="app-"] .name { color: var(--accent-ink); }
.applist .state {
  display: block; font-size: .62rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .18em; margin-top: .3rem;
}
.applist p { margin: .45rem 0 0; font-size: .92rem; }

footer.site {
  background: var(--accent-tint);
  border-top: 1px solid var(--accent-line);
  margin-top: 4rem;
}
footer.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem 1rem;
  padding-top: 1.4rem; padding-bottom: 2.2rem;
  font-size: .78rem; letter-spacing: .04em;
}
footer.site a { color: var(--accent-ink); }
.foot-id { display: inline-flex; align-items: center; gap: .6em; }
.foot-id img { display: block; width: 22px; height: 22px; }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  main { padding-top: 2.25rem; }
  nav.site a { margin-left: 1rem; }
}
