/* Studiowyre public pages: home (/), sign-in (/signin/) and 404. Builds on
   app.css (Postwyre's tokens, pills, Inter). The wire motif is the mark's own
   stroke: thin lines at its slant (224 across for every 640 down, 19.3deg). */
.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; padding: 8px 16px; border-radius: 9999px; background: var(--brand); color: var(--brand-foreground); font-weight: 600; }
.skip:focus { top: 8px; }
.mark { width: 28px; height: 28px; flex: none; display: block; }
.lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.lockup .wordmark { font-size: 18px; }
.lockup.small { min-height: 0; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); }
.lockup.small .mark { width: 20px; height: 20px; }
.btn.sm { min-height: 44px; padding: 0 16px; }
.btn.lg { min-height: 48px; padding: 0 24px; font-size: 15px; }

.site-bar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--background) 80%, transparent); backdrop-filter: blur(12px); }
.site main { flex: 1; padding: 0; }
.site section { padding: 40px 16px; max-width: 1120px; margin: 0 auto; width: 100%; }
.site h2 { margin: 0 0 20px; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }

/* The wire field behind the hero and the sign-in card. */
.wires { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(109.3deg, transparent 0 22px, color-mix(in oklch, var(--foreground) 9%, transparent) 22px 23px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, #000 0%, transparent 70%); }

.hero { position: relative; isolation: isolate; display: grid; gap: 40px; padding-top: 56px !important; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.eyebrow { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--muted-foreground); }
.hero h1 { margin: 0; font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.lede { margin: 0; font-size: 17px; line-height: 26px; color: var(--muted-foreground); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cta .btn { flex: 1 1 140px; }
.note { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted-foreground); }

.track { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in oklch, var(--card) 70%, transparent); }
.track svg { display: block; width: 100%; height: auto; }
.track .w { stroke: color-mix(in oklch, var(--foreground) 45%, transparent); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.track .w.on { stroke: var(--brand); stroke-width: 4; } /* thicker as well as coloured: in light mode grey and moss are close in lightness */
.track figcaption { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; line-height: 16px; color: var(--muted-foreground); }
.track figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 14px; height: 4px; border-radius: 9999px; background: color-mix(in oklch, var(--foreground) 45%, transparent); }
.key.on { height: 8px; background: var(--brand); }

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.step-card h3 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-card p { margin: 0; font-size: 15px; line-height: 22px; color: var(--muted-foreground); }
.step-card .num { width: 28px; height: 28px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: color-mix(in oklch, var(--brand) 14%, transparent); color: var(--brand); }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { padding: 16px 0; border-top: 1px solid var(--border); font-size: 15px; line-height: 22px; color: var(--muted-foreground); }
.facts strong { display: block; margin-bottom: 4px; color: var(--foreground); font-weight: 600; }

.close { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); font-size: 14px; color: var(--muted-foreground); }
.site-foot nav { display: flex; gap: 4px; }
.suite-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 0; border-radius: 9999px; }
.suite-link .mark { width: 20px; height: 20px; }
.suite-link:hover { color: var(--foreground); }
.bar-actions { display: flex; align-items: center; gap: 4px; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9999px; }
.site-foot nav a:hover { background: var(--muted); color: var(--foreground); }

/* Sign-in and 404: one card, centred. The theme switch sits in its own row
   above the card, so it never covers it, and the card is centred with auto
   margins rather than justify-content, so on a short landscape phone the page
   scrolls from the card's top instead of cutting it off. */
.site.auth { position: relative; isolation: isolate; align-items: center; padding: 12px 16px 24px; }
.auth-tools { align-self: stretch; display: flex; justify-content: flex-end; margin-bottom: 12px; }
.site.auth .wires { -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%); }
.auth-card { flex: 0 1 auto !important; margin-block: auto; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; padding: 24px !important; border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-pop); }
.auth-card .lockup { align-self: flex-start; }
.auth-card h1 { margin: 8px 0 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.auth-card p { margin: 0; font-size: 15px; line-height: 22px; color: var(--muted-foreground); }
.auth-card .fine { font-size: 13px; line-height: 18px; }
.auth-card .postwyre-signin { display: flex; flex-direction: column; gap: 12px; }
.auth-card .postwyre-signin[hidden] { display: none; }
.auth-card .pw-mark { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.auth-card .divider { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 18px; }
.auth-card .divider::before, .auth-card .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-card .notice { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--muted); color: var(--foreground); }
.auth-card .back { align-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: var(--muted-foreground); border-radius: 9999px; }
.auth-card .back:hover { color: var(--foreground); background: var(--muted); }

@media (min-width: 640px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .cta .btn { flex: 0 0 auto; }
  .site-bar, .site-foot { padding-left: 24px; padding-right: 24px; }
  .site section { padding: 64px 24px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding-top: 96px !important; padding-bottom: 96px; }
  .hero h1 { font-size: 52px; line-height: 56px; }
  .track .w { stroke-width: 4; }
  .track .w.on { stroke-width: 7; }
}
