/* Tailsight site styles.
   Sizes, spacing, corners and shadows are measured from the previous tailsight.ai build.
   Two brand rules override that build: no all-caps text, and no text below 11pt,
   so anything that was 10–14px there is 15px here. */

:root {
  --navy: #154f4d;
  --sand: #edebe6;
  --mint: #b0e2b3;
  --sage: #808e8d;
  --yellow: #f2e000;
  --white: #fff;
  --black: #000;

  --font-heading: "RT Dromo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --text-small: 15px; /* 11pt floor */

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 768px; }
.center { text-align: center; }

.section { position: relative; overflow: hidden; padding: 80px 0; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); }

.deco { position: absolute; pointer-events: none; line-height: 0; }

.label { font-size: var(--text-small); font-weight: 600; letter-spacing: 0.02em; color: var(--navy); }

.rule { display: block; width: 32px; height: 2px; background: var(--mint); margin-bottom: 16px; }
.rule-center { width: 40px; margin: 0 auto 16px; }

.icon { width: 32px; height: 32px; color: var(--navy); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--black); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--white); font-size: 15px; transition: opacity 0.15s; }
.site-nav a:hover { opacity: 0.8; }
.nav-toggle { display: none; background: none; border: 0; padding: 0; color: var(--white); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; color: var(--white); }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px;
    background: var(--black); padding: 16px 24px 24px;
  }
  .site-nav.is-open { display: flex; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 480px; padding-top: 64px;
  background-color: var(--navy);
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-home { min-height: 600px; padding-top: 0; }
.hero-small { min-height: 320px; }
.hero-legal { min-height: 280px; }
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero-small .hero-inner { padding-top: 64px; padding-bottom: 64px; }
.hero-legal .hero-inner { padding-top: 56px; padding-bottom: 56px; }
.hero .label { color: var(--mint); margin-bottom: 16px; }
.hero h1 { color: var(--white); font-size: 36px; line-height: 1.25; max-width: 768px; }
.hero .lead { font-size: 18px; line-height: 28px; color: rgb(255 255 255 / 0.85); margin-top: 24px; max-width: 672px; }
.hero-small .lead, .hero-legal .lead { margin-top: 16px; }
.hero .lead-small { font-size: 16px; line-height: 1.6; }
.hero .lead a { text-decoration: underline; }
@media (min-width: 768px) { .hero h1 { font-size: 48px; line-height: 1; } }
@media (min-width: 1024px) { .hero-home h1 { font-size: 60px; } }

/* Section headings */
.section h2 { font-size: 30px; line-height: 36px; }
@media (min-width: 768px) { .section h2.h2-lg { font-size: 36px; line-height: 40px; } }
.section-title { margin-bottom: 48px; }
.intro { max-width: 672px; margin: 16px auto 0; }

/* Home: pillars */
.pillars { display: grid; gap: 40px; margin-top: 56px; }
.pillars .icon { margin: 0 auto 16px; }
.pillars h3 { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.pillars p { font-size: var(--text-small); line-height: 1.625; }
.pillars-plain { margin-top: 0; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* Home: screenshot */
.section-screenshot { background: var(--white); padding: 48px 0; }
@media (min-width: 768px) { .section-screenshot { padding: 64px 0; } }
.screenshot-frame {
  max-width: 1024px; margin: 0 auto; overflow: hidden; cursor: pointer;
  border-radius: 12px; border: 1px solid rgb(176 226 179 / 0.2); box-shadow: var(--shadow-lg);
}

/* Home: capabilities */
.capabilities { display: grid; gap: 24px; margin-top: 48px; text-align: left; }
@media (min-width: 640px) { .capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capabilities { grid-template-columns: repeat(3, 1fr); } }
.capability { background: var(--sand); border-radius: 4px; padding: 24px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--mint); }
.capability .icon { margin-bottom: 16px; }
.capability h3 { font-size: 18px; line-height: 28px; margin-bottom: 8px; }
.capability p { font-size: var(--text-small); line-height: 20px; }

/* Home: quotes carousel */
.quotes-inner { max-width: 768px; position: relative; overflow: hidden; }
.quotes-track { position: relative; min-height: 180px; }
.quote {
  position: absolute; inset: 0;
  transform: translateX(100%); opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
.quote.is-active { transform: translateX(0); opacity: 1; }
.quote.is-before { transform: translateX(-100%); }
.quote-mark { display: block; font-family: var(--font-heading); font-size: 80px; line-height: 1; color: var(--mint); }
.quote blockquote { font-size: 20px; line-height: 1.625; color: var(--white); margin-top: -32px; }
@media (min-width: 768px) { .quote blockquote { font-size: 24px; line-height: 32px; } }
.quote figcaption { font-size: var(--text-small); line-height: 20px; color: rgb(255 255 255 / 0.75); margin-top: 24px; }
.quote-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.quote-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 9999px; cursor: pointer;
  background: rgb(255 255 255 / 0.3); transition: background-color 0.3s;
}
.quote-dots button[aria-current="true"] { background: var(--mint); }

/* Platform */
.feature { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature-flip .feature-text { order: 2; }
  .feature-flip .feature-media { order: 1; }
}
.feature .label { margin-bottom: 12px; }
.feature h2 { font-size: 24px; line-height: 32px; margin-bottom: 16px; }
@media (min-width: 768px) { .feature h2 { font-size: 30px; line-height: 36px; } }
.feature-text p:not(.label) { line-height: 1.625; }
.feature-media img, .video-frame {
  width: 100%; max-width: 480px; margin: 0 auto; border-radius: 6px; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.video-frame { overflow: hidden; box-shadow: var(--shadow-md); }
.video-frame video { width: 100%; }
.feature-media img:hover, .video-frame:hover { box-shadow: var(--shadow-lg); }
.feature-media img:active, .video-frame:active { transform: scale(0.98); }

/* About */
.prose h2 { margin-bottom: 24px; }
.prose p { line-height: 1.625; }
.prose p + p { margin-top: 16px; }



/* FAQ */
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 20px; line-height: 28px; margin-bottom: 16px; }
@media (min-width: 768px) { .faq-group h2 { font-size: 24px; line-height: 32px; } }
.faq-group details { border-bottom: 1px solid rgb(128 142 141 / 0.2); }
.faq-group summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-size: 15px; font-weight: 500; color: var(--navy);
  transition: color 0.15s;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary:hover { color: rgb(21 79 77 / 0.7); }
.faq-group summary .icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s; }
.faq-group details[open] summary .icon { transform: rotate(180deg); }
.faq-group details p { padding-bottom: 16px; font-size: var(--text-small); line-height: 1.625; color: rgb(21 79 77 / 0.8); }


/* Legal */
.legal {
  position: relative; background: var(--white); border-radius: 6px;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--mint); padding: 24px;
}
@media (min-width: 768px) { .legal { padding: 40px; } }
.legal-meta { display: grid; gap: 12px; margin-bottom: 32px; font-size: var(--text-small); color: rgb(21 79 77 / 0.8); }
.legal-meta strong { font-weight: 600; color: var(--navy); }
.legal a { text-decoration: underline; }
.legal a:hover { text-decoration: none; }
.legal h2 { font-size: 24px; line-height: 32px; margin: 48px 0 16px; scroll-margin-top: 96px; }
.legal h3 { font-size: 18px; line-height: 28px; margin: 32px 0 12px; }
.legal p, .legal li { color: rgb(21 79 77 / 0.9); line-height: 1.625; }
.legal p { margin-bottom: 16px; }
.legal ul { list-style: none; padding: 0; margin-bottom: 16px; display: grid; gap: 12px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--mint); }
.legal ol { padding-left: 24px; margin-bottom: 16px; display: grid; gap: 8px; }
.legal ol.toc { list-style-position: inside; padding-left: 0; }
.legal ol.toc a { text-decoration: none; }
.legal ol.toc a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--text-small); line-height: 20px; color: rgb(21 79 77 / 0.9); border: 1px solid rgb(21 79 77 / 0.1); }
.legal th { text-align: left; padding: 12px; font-weight: 600; color: var(--navy); border-bottom: 1px solid rgb(21 79 77 / 0.1); }
.legal td { padding: 12px; vertical-align: top; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: 64px 0; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h2 { font-size: 15px; line-height: 20px; letter-spacing: 0.05em; color: var(--mint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid a { font-size: var(--text-small); line-height: 20px; color: rgb(255 255 255 / 0.8); transition: color 0.15s; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.1); padding-top: 32px; }
.footer-bottom p { font-size: var(--text-small); line-height: 20px; color: rgb(255 255 255 / 0.75); }
.footer-bottom p + p { margin-top: 8px; }
.footer-bottom a:hover { color: var(--white); }
.sep { margin: 0 8px; }

/* Image zoom */
.zoom { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
.zoom::backdrop { background: rgb(0 0 0 / 0.8); }
.zoom img { max-width: 95vw; max-height: 90vh; border-radius: 6px; cursor: zoom-out; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--mint); color: var(--black); padding: 8px 12px; border-radius: 4px; }
.skip-link:focus { top: 8px; }
