/* SIXFOLD public site. Colours, type and logo rules are Tashi's brief (Lovable project, 2026-11-19): two themes
   that follow prefers-color-scheme, no other colours, Inter self-hosted, logos used as supplied. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f1f5f9;
  --text: #132638;
  --accent: #2e70aa;
  --on-accent: #f1f5f9;
  --muted: color-mix(in srgb, var(--text) 72%, transparent);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151a;
    --text: #f5f8fd;
    --accent: #83c1ea;
    --on-accent: #0f151a;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header ---------------------------------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 64px;
}

.brand-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.brand-link img {
  width: 160px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero ------------------------------------------------------------------------------------------------------ */

.site-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 131px);
  padding: 64px 24px 104px;
  text-align: center;
}

.hero-logo {
  width: 480px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button[disabled] {
  cursor: progress;
}

/* Waitlist -------------------------------------------------------------------------------------------------- */

.site-waitlist {
  max-width: 1440px;
  margin: 0 auto;
  padding: 76px 24px 48px;
  text-align: center;
}

.site-waitlist h1,
.site-waitlist h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.secondary-text {
  margin: 20px 0 0;
  color: var(--muted);
}

.waitlist-form {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  margin: 32px auto 0;
  text-align: left;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 15px;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--text);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.field input:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}

.field input[aria-invalid="true"] {
  border-color: var(--text);
  border-width: 2px;
}

/* A field people never see: bots fill it in and are quietly turned away. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-form .button {
  justify-self: center;
  margin-top: 8px;
}

.status {
  min-height: 1.6em;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.site-joined {
  min-height: calc(100svh - 240px);
}

.text-link {
  text-underline-offset: 4px;
}

/* Privacy notice ------------------------------------------------------------------------------------------- */

.site-legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.site-legal h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.site-legal .secondary-text {
  margin-top: 8px;
}

.site-legal h2 {
  margin: 36px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.site-legal p,
.site-legal ul {
  margin: 12px 0 0;
}

.site-legal ul {
  padding-left: 1.25em;
}

.site-legal li + li {
  margin-top: 6px;
}

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

.site-footer {
  padding: 32px 24px 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-links {
  margin-top: 8px;
}

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

@media (max-width: 640px) {
  .site-header {
    padding: 20px 16px;
  }

  .brand-link img {
    width: 128px;
  }

  .header-link {
    font-size: 15px;
  }

  .site-hero {
    min-height: calc(100svh - 84px);
    padding: 48px 16px 80px;
  }

  .site-waitlist {
    padding: 56px 16px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
