/* Shared styles for tyasi.io inner pages and the app-domain front door. */
:root {
  --font-sans: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --background: #090510;
  --foreground: #f4f1f8;
  --muted: rgba(244, 241, 248, 0.66);
  --faint: rgba(244, 241, 248, 0.56);
  --border: rgba(255, 255, 255, 0.09);
  --surface: rgba(255, 255, 255, 0.04);
  --violet: #a78bfa;
  --violet-rgb: 167, 139, 250;
  --violet-bright: #c4b5fd;
  --mint: #5eead4;
}
/* Tyasi app front door (tyasiapp.app): the Tyasi app violet from the approved
   brand kit replaces the company violet (WEBSITE-SITE-POLISH-001). */
.theme-tyasi { --violet: #b794f4; --violet-rgb: 183, 148, 244; }
* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60rem 40rem at 90% -20%, rgba(36, 60, 157, .35), transparent 70%),
    radial-gradient(50rem 40rem at -20% 60%, rgba(76, 12, 133, .28), transparent 70%);
  background-attachment: fixed;
}
a { color: var(--violet-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
::selection { background: rgba(var(--violet-rgb), .32); color: #fff; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(16px, 5vw, 76px); border-bottom: 1px solid var(--border);
  background: rgba(9, 5, 16, .68); backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--foreground); font-size: 15px; font-weight: 750; letter-spacing: .12em; }
.brand:hover { text-decoration: none; }
.brand small { color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto;
  border: 1px solid rgba(var(--violet-rgb), .45); border-radius: 9px;
  background: linear-gradient(150deg, rgba(var(--violet-rgb), .24), rgba(var(--violet-rgb), .05));
  color: var(--violet-bright); font-size: 14px; letter-spacing: 0;
}
.site-header nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); font-size: 13px; font-weight: 620; }
/* Nav and footer links are at least 24 x 24 px to tap (WCAG 2.5.8). */
.site-header nav a, .site-footer a { display: inline-flex; align-items: center; min-width: 24px; min-height: 24px; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) 16px; }
.kicker { display: block; margin-bottom: 14px; color: var(--violet); font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
h2 { margin: 40px 0 12px; font-size: 20px; }
p, li { color: var(--muted); font-size: 16px; line-height: 1.65; }
ul { padding-left: 20px; }
.lede { font-size: 19px; color: var(--foreground); opacity: .86; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .04em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.card { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.card p { margin: 0; }
/* Daymark landing "Sign in" link to the app's own /login (WEBSITE-DAYMARK-GA-001). */
.sign-in { margin-top: 32px; }
.button-link {
  display: inline-flex; align-items: center; min-height: 46px; margin-left: 8px; padding: 0 22px; border-radius: 999px;
  background: var(--violet-bright); color: #14082a; font: 700 15px/1 var(--font-sans); text-decoration: none;
}
.button-link:hover { background: #ddd6fe; text-decoration: none; }
.button-link:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px clamp(16px, 5vw, 76px); border-top: 1px solid var(--border); background: rgba(6, 3, 11, .58);
  font-size: 13px; color: var(--faint);
}
.site-footer nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Termageddon policy (WEBSITE-LEGAL-001). Its own stylesheet reverts fonts to the
   browser default inside the policy; keep the site's typeface and spacing. */
.policy-doc { margin: 32px 0; }
.policy-doc .policy_embed_div, .policy-doc .policy_embed_div * { font-family: var(--font-sans) !important; }
.policy-doc .policy_embed_div p, .policy-doc .policy_embed_div li { line-height: 1.65 !important; }
.policy-doc .policy_embed_div summary { color: var(--foreground); }

/* Tyasi beta waitlist form (WEBSITE-TYASI-BETA-001). */
.waitlist { display: grid; gap: 18px; margin-top: 8px; }
.waitlist label { display: grid; gap: 8px; color: var(--foreground); font-size: 14px; font-weight: 620; }
.waitlist input, .waitlist select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  background: rgba(255, 255, 255, .06); color: var(--foreground); font: 400 16px/1.4 var(--font-sans);
}
.waitlist select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.waitlist select option { background: var(--background); color: var(--foreground); }
.waitlist input:focus-visible, .waitlist select:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.waitlist button {
  justify-self: start; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--violet-bright); color: #14082a; font: 700 15px/1 var(--font-sans);
}
.waitlist button:hover { background: #ddd6fe; }
.waitlist .fine { margin: 0; font-size: 13px; color: var(--faint); }
.waitlist .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Tyasi waitlist trust FAQ (WEBSITE-TYASI-FAQ-001). */
.faq { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--border); }
.faq h3 { margin: 28px 0 6px; color: var(--foreground); font-size: 16px; line-height: 1.4; }
.faq h3 + p { margin-top: 0; }
/* Collapsed questions on the Tyasi waitlist (WEBSITE-TYASI-WAITLIST-015). */
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { padding: 14px 28px 14px 0; position: relative; cursor: pointer; list-style: none; color: var(--foreground); font-size: 16px; font-weight: 600; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--violet-bright); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; }

/* tyasi.io/changelog (WEBSITE-CHANGELOG-001). Tags use each app's brand-kit
   colour; tyasi.io uses the company violet. */
.changelog { margin: 40px 0 0; padding: 0; list-style: none; }
.changelog .entry { padding: 26px 0; border-top: 1px solid var(--border); }
.changelog .entry h2 { margin: 10px 0 6px; font-size: 19px; line-height: 1.35; }
.changelog .entry p { margin: 0; }
.changelog .entry-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.changelog .entry-links { margin-top: 8px; font-size: 14px; }
.tag { --tag: var(--violet); padding: 3px 10px; border: 1px solid var(--tag); border-radius: 999px; color: var(--tag); font-family: var(--font-sans); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.tag--tyasi { --tag: #b794f4; }
.tag--daylight { --tag: #8175e8; }
.tag--daymark { --tag: #c8ff62; }

/* Tyasi waitlist page with product media (WEBSITE-TYASI-WAITLIST-002): text keeps
   the 760px column, clips use the wider main, and feature rows sit side by side
   from 900px. */
main.landing { max-width: 1120px; }
.landing .narrow { max-width: 728px; margin: 0 auto; }
.landing .hero { max-width: 920px; text-align: center; }
.landing .hero h1 { font-size: clamp(34px, 6vw, 60px); }
.landing .hero h1 { text-wrap: balance; }
.landing .hero h1 .phrase { white-space: nowrap; }
.landing .hero .lede { margin: 0 auto; max-width: 640px; }
.cta { margin: 28px 0 0; }
.cta .button-link { margin-left: 0; }
.shot { margin: 40px 0 0; }
.shot video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 14px;
  background: #06030b; box-shadow: 0 24px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(var(--violet-rgb), .08);
}
.shot figcaption { margin-top: 12px; color: var(--faint); font-size: 13px; line-height: 1.55; text-align: center; }

.feature { margin-top: clamp(56px, 9vw, 104px); }
.feature-text { max-width: 728px; margin: 0 auto; }
.feature-text h2 { margin-top: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.feature .shot { margin-top: 24px; }
@media (min-width: 900px) {
  .feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 48px; align-items: center; }
  .feature .shot { margin-top: 0; }
  .feature--flip .feature-text { order: 2; }
}
.landing .narrow > h2:first-child { margin-top: clamp(56px, 9vw, 104px); }
.founder { margin: 0; padding: 4px 0 4px 20px; border-left: 2px solid rgba(var(--violet-rgb), .5); }
.founder p { color: var(--foreground); opacity: .86; }
.founder .founder-sign { color: var(--muted); opacity: 1; font-size: 15px; }
/* The waitlist feature tour (WEBSITE-TYASI-WAITLIST-014): one card per area,
   two across from 760px, three from 1040px. */
.tour { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .tour { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tour { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tour-group { padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tour-group h3 { margin: 0 0 10px; color: var(--violet-bright); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tour-group ul { margin: 0; padding: 0; list-style: none; }
.tour-group li { margin: 0; padding: 9px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; line-height: 1.5; }
.tour-group li:first-child { border-top: 0; padding-top: 0; }
.tour-group strong { color: var(--foreground); font-weight: 650; }
/* The waitlist fine print (WEBSITE-TYASI-WAITLIST-015): collapsed under the form. */
.fine-print { margin-top: 14px; font-size: 13px; color: var(--faint); }
.fine-print summary { cursor: pointer; width: max-content; }
.fine-print p { margin: 8px 0 0; font-size: 13px; color: var(--faint); }
/* Daylight's full landing page (WEBSITE-DAYLIGHT-GA-004): reuses the tour cards. */
.landing .hero .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button-link--quiet { background: transparent; border: 1px solid rgba(var(--violet-rgb), .55); color: var(--violet-bright); }
.button-link--quiet:hover { background: rgba(var(--violet-rgb), .16); }
.landing .hero .fine { margin: 20px auto 0; max-width: 560px; font-size: 13px; color: var(--faint); }
.tour-group p { margin: 0; font-size: 15px; line-height: 1.55; }
.tour-group .price { color: var(--foreground); font-size: 22px; font-weight: 700; }
@media (min-width: 1040px) { .tour.tour--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 728px; margin-left: auto; margin-right: auto; } }
