/* TellTail marketing site — Pastel Light tokens from packages/tokens */
:root {
  --electric-blue: #1E6BFF;
  --sky-blue: #6FB6FF;
  --deep-navy: #0B1B3F;
  --ice-white: #F5F8FF;
  --soft-lilac: #B9A7FF;
  --tail-tip: #0B4FD9;
  --white: #ffffff;
  --text: #0B1B3F;
  --text-secondary: #4A5878;
  --border: #E2E8F5;
  --success: #1FA971;
  --warning: #E8A317;
  --danger: #E5484D;
  --link: #0B4FD9;
  --link-hover: #0839A8;
  --scrim: rgba(11, 27, 63, 0.25);
  --lilac-wash: #EDE7FF;
  --sky-wash: #E8F3FF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-e1: 0 1px 3px rgba(11, 27, 63, 0.08);
  --shadow-e2: 0 4px 16px rgba(11, 27, 63, 0.12);
  --shadow-e3: 0 8px 24px rgba(11, 27, 63, 0.18);
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --space: 1rem;
  --header-h: 4rem;
  --content: 68rem;
  --prose: 42rem;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--electric-blue);
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-ext-wght.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html:focus-within { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  background: var(--ice-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  background: var(--deep-navy);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip:focus { transform: none; color: var(--white); }

.wrap {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}
.wrap-prose {
  width: min(100% - 2rem, var(--prose));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 248, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--deep-navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand:hover { color: var(--deep-navy); }
.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
}

.nav-desktop,
.nav-panel {
  display: flex;
  gap: 0.15rem;
}
.nav-desktop a,
.nav-panel a {
  color: var(--deep-navy);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
  border-radius: var(--radius-sm);
}
.nav-desktop a:hover,
.nav-panel a:hover { color: var(--tail-tip); background: var(--sky-wash); }
.nav-desktop a[aria-current="page"],
.nav-panel a[aria-current="page"] { color: var(--tail-tip); }

.nav-desktop { display: none; }
.header-cta { display: none; }

.nav-toggle { margin: 0; }
.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--deep-navy);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0 0.75rem;
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle[open] > summary { background: var(--sky-wash); }

.nav-panel {
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--ice-white);
}

@media (max-width: 719px) {
  .header-inner { position: relative; }
  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    box-shadow: var(--shadow-e2);
  }
}

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem 1.1rem;
  }
  .header-cta { display: inline-flex; margin-left: 0.35rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--electric-blue);
  color: var(--white);
  border-color: var(--electric-blue);
}
.btn-primary:hover { background: var(--tail-tip); border-color: var(--tail-tip); color: var(--white); }
.btn-primary[aria-disabled="true"],
.btn-primary.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  background: var(--electric-blue);
}
.btn-secondary {
  background: var(--white);
  color: var(--tail-tip);
  border-color: #C9D4F0;
}
.btn-secondary:hover { background: var(--sky-wash); color: var(--link-hover); }
.btn-on-blue {
  background: var(--white);
  color: var(--tail-tip);
  border-color: var(--white);
}
.btn-on-blue:hover { background: var(--ice-white); color: var(--link-hover); }
.btn-on-blue-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-on-blue-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* Closed-beta notice */
.beta-banner {
  background: linear-gradient(90deg, var(--lilac-wash), var(--sky-wash));
  border-bottom: 1px solid #D5D4F0;
  color: var(--deep-navy);
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
}
.beta-banner p { margin: 0; }

.play-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 22rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(185, 167, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(111, 182, 255, 0.4), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}
.hero .lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  max-width: 36rem;
}
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--deep-navy);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.fine-print {
  margin: 0.8rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  max-width: 28rem;
}
.hero-visual {
  justify-self: center;
  width: min(100%, 28rem);
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-e3);
  background: var(--electric-blue);
}

@media (min-width: 860px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}

/* Sections */
.section { padding: 3rem 0; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
.section .intro {
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-size: 1.0625rem;
}

.about {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-e1);
  padding: 1.25rem 1.25rem 1.35rem;
}
.card h3 {
  margin: 0.7rem 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--text-secondary); }
.icon-bubble {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--sky-wash);
  color: var(--tail-tip);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-bubble svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.safety {
  background:
    linear-gradient(180deg, var(--lilac-wash) 0%, #F3EEFF 100%);
}
.safety-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .safety-grid { grid-template-columns: 1fr 1fr; }
}
.safety .card { background: rgba(255, 255, 255, 0.86); }
.safety-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.cta-band {
  background: var(--electric-blue);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: var(--tail-tip);
  opacity: 0.45;
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin: 0 0 0.5rem; }
.cta-band p { margin: 0 0 1.25rem; max-width: 36rem; color: #EEF3FF; }
.cta-band .fine-print { color: #D6E4FF; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Inner pages */
.page-hero {
  padding: 2rem 0 1.25rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.page-hero .meta {
  margin: 0;
  color: var(--text-secondary);
}
main { flex: 1; }

.prose { padding-bottom: 3.5rem; }
.prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2rem 0 0.6rem;
  line-height: 1.25;
}
.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.35rem 0 0.4rem;
}
.prose p, .prose li { line-height: 1.6; }
.prose p { margin: 0 0 0.9rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose li ul { margin: 0.35rem 0 0.5rem; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.prose .end-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 0 0.75rem;
  box-shadow: var(--shadow-e1);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--electric-blue);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--electric-blue);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow-e1);
}
.callout h2, .callout h3 { margin-top: 0; }
.coming-soon {
  display: inline-block;
  background: var(--lilac-wash);
  color: #3A2A72;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.35rem;
  vertical-align: 0.1rem;
}

.not-found {
  text-align: center;
  padding: 4rem 0 5rem;
}
.not-found .code {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--electric-blue);
  margin: 0 0 0.5rem;
}
.not-found h1 { margin: 0 0 0.6rem; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
.not-found p { color: var(--text-secondary); max-width: 28rem; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  background: var(--deep-navy);
  color: #F5F8FF;
  padding: 2.5rem 0 1.75rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
}
.site-footer a { color: var(--sky-blue); }
.site-footer a:hover { color: #cfe6ff; }
.site-footer h2 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #AFC0E0;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer li a, .site-footer .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  color: #F5F8FF;
}
.site-footer li a:hover { color: var(--sky-blue); }
@media (min-width: 720px) {
  .site-footer li a, .site-footer .footer-link { min-height: 0; padding: 0.2rem 0; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.footer-brand:hover { color: var(--white); }
.footer-brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.footer-blurb { color: #AFC0E0; margin: 0 0 0.75rem; max-width: 22rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #24396B;
  color: #AFC0E0;
  font-size: 0.8125rem;
}
.footer-bottom p { margin: 0 0 0.4rem; }
