/* ==========================================================================
   thrudata.com site styles (dark theme)
   Shared by every page: home, thanks, and later contact and privacy.

   Colors and form styling come from the RAGScape app's own rs.css:
     page #1E1E1E, text #E0E0E0 / #FFFFFF, dividers #3C3C3C, labels #999,
     teal #8DE4DC accent on fields and buttons, errors #FF6B6B, and the
     dialog card gradient #2A2A2A to #252525 (the app's .login-form).
   Orange #F18F15 is the logo's own color.

   No font files to host: Segoe UI is the app's font and ships with Windows.
   Mac, iPhone and Android visitors see their own system font instead.
   No inline styles and no JavaScript, so a strict Content-Security-Policy
   can be added at go-live.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:            #1E1E1E;                    /* app shell background */
  --card-top:      #2A2A2A;                    /* app dialog gradient, top */
  --card-bottom:   #252525;                    /* app dialog gradient, bottom */
  --card-edge:     rgba(255, 255, 255, 0.06);  /* app dialog border */
  --card-divider:  rgba(255, 255, 255, 0.08);  /* line under the dialog title */
  --rule:          #3C3C3C;                    /* app heading divider */

  /* Text (contrast on #1E1E1E in brackets) */
  --text-strong:   #FFFFFF;                    /* headings (16.7:1) */
  --text:          #E0E0E0;                    /* body and field text (12.6:1) */
  --text-label:    #AAAAAA;                    /* field labels (7.2:1; 6.2:1 on the card) */
  --text-soft:     #999999;                    /* notes and footer (5.9:1) */

  /* Fields, from the app's dark text inputs */
  --field-bg:        rgba(255, 255, 255, 0.05);
  --field-bg-focus:  rgba(255, 255, 255, 0.08);
  --field-border:    rgba(255, 255, 255, 0.15);
  --hover:           rgba(255, 255, 255, 0.12);  /* app link hover wash */

  /* Accents */
  --teal:        #8DE4DC;                      /* app accent: focus, buttons, links */
  --teal-deep:   #6BCFC6;                      /* app button gradient end */
  --teal-light:  #B9F0EA;                      /* link hover */
  --teal-glow:   rgba(141, 228, 220, 0.18);    /* focus halo around fields */
  --error:       #FF6B6B;                      /* app validation error */
  --error-glow:  rgba(255, 107, 107, 0.15);
  --brand:       #F18F15;                      /* logo orange */

  /* Type: the app's font first, then each platform's system font */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(1rem, 4vw, 2rem);            /* side padding: 16px on phones */

  color-scheme: dark;                          /* dark scrollbars and form controls */
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;              /* stop iOS enlarging text in landscape */
  text-size-adjust: 100%;
}

/* Header, main and footer stacked; main takes the leftover height so the
   footer sits at the bottom of short pages */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;                          /* phones: ignore the collapsing URL bar */
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;         /* light text on dark, as in the app */
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
  margin: 0;
}

::selection {
  background: rgba(141, 228, 220, 0.35);       /* teal wash, white text stays readable */
  color: var(--text-strong);
}


/* --------------------------------------------------------------------------
   3. Links and keyboard focus
   -------------------------------------------------------------------------- */
a {
  color: var(--text-strong);
}

/* One focus ring for everything you can tab to: teal, offset from the element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Link inside text: teal and underlined */
.text-link {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--teal-light);
}

/* Hidden until a keyboard user tabs to it, then shown top-left */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 0.75rem;
}


/* --------------------------------------------------------------------------
   4. Page column
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* --------------------------------------------------------------------------
   5. Header: logo on the left (all pages except home), links on the right
   -------------------------------------------------------------------------- */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 0.75rem;
}

.header-logo {
  display: inline-flex;
  border-radius: 4px;
}

.header-logo img {
  display: block;
  height: 2rem;                                /* 32 px, close to the app's 40 px header logo */
  width: auto;
}

/* Header and footer links, styled like the app's links: no underline,
   a soft rounded wash on hover */
.site-nav,
.footer-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;                           /* keeps the links right when there is no logo */
  margin-right: -0.65rem;                      /* lines the last link's text up with the column edge */
}

.site-nav a,
.footer-nav a {
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.site-nav a:hover,
.footer-nav a:hover {
  background: var(--hover);
  color: var(--text-strong);
}

/* The page you are on (aria-current="page") shows in teal */
.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--teal);
}

/* Phones: a slightly smaller header logo and tighter links, so the logo and
   all three links (FAQ, Contact, Privacy) fit on one row */
@media (max-width: 26rem) {
  .header-row {
    gap: 0.5rem;
  }

  .header-logo img {
    height: 1.625rem;                          /* 26 px */
  }

  .site-nav {
    gap: 0;
    margin-right: -0.5rem;
  }

  .site-nav a {
    padding-inline: 0.5rem;
  }
}

/* The narrowest phones (320 to 360 px): smaller again. If a large text
   setting still makes the row too wide, the links drop below the logo
   instead of making the page scroll sideways. */
@media (max-width: 22.5rem) {
  .header-row {
    flex-wrap: wrap;
  }

  .header-logo img {
    height: 1.375rem;                          /* 22 px */
  }

  .site-nav {
    margin-right: -0.4rem;
    font-size: 0.9375rem;
  }

  .site-nav a {
    padding-inline: 0.4rem;
  }
}


/* --------------------------------------------------------------------------
   6. Home: logo, hero line, promise and the sign-up card, centered both ways.
      The thanks page uses the same centered layout, so the sign-up flow
      reads as one piece. Contact and privacy will be left-aligned text pages.
   -------------------------------------------------------------------------- */
.home,
.message {
  display: flex;
  flex-direction: column;
  align-items: center;                         /* horizontal center */
  justify-content: center;                     /* vertical center in the space between header and footer */
  padding-block: clamp(1.5rem, 6vh, 4rem);
  text-align: center;
}

/* The h1 holds the logo image (alt "RAGScape") and the hero line, so screen
   readers hear "RAGScape Ask your documents & emails anything. With your own PC-based AI." */
.headline {
  font-weight: 300;
}

.headline-logo {
  display: block;
  width: min(30rem, 100%);                     /* 480 px wide at most (was 640), full width on phones */
  height: auto;
  margin-inline: auto;
}

/* Hero line: "Ask your documents & emails anything." in bold, then "With your
   own PC-based AI." on its own line. One line each on desktop; on phones the
   question wraps into two balanced lines. */
.headline-tag {
  display: block;
  max-width: 24em;
  margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
  font-size: clamp(1.5rem, 3.4vw, 2.375rem);   /* 24 px on phones, 38 px on desktop */
  font-weight: 300;                            /* Segoe UI Light on Windows */
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--text-strong);
  text-wrap: balance;                          /* even line lengths where supported */
}

/* The question in bold; the rest of the line stays light */
.headline-tag strong {
  font-weight: 600;
}

/* The second sentence always starts on a new line */
.headline-sub {
  display: block;
}

/* "PC-based" never splits at its hyphen */
.headline-tag .nowrap {
  white-space: nowrap;
}

/* The promise under it: "Safe. Local. Free." Heavier, slightly spaced, and in
   the logo's orange (6.9:1 on the page), so the three words read as one beat
   and tie back to the logo. */
.headline-promise {
  margin-top: 0.75rem;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);  /* 20 px on phones, 26 px on desktop */
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
}


/* --------------------------------------------------------------------------
   7. Sign-up card, built like the app's login dialog
   -------------------------------------------------------------------------- */
.signup {
  width: 100%;
  max-width: 26rem;
  margin-top: clamp(1.75rem, 5vh, 3rem);
  text-align: left;                            /* labels and fields read left to right inside the centered card */
  padding: 1.5rem clamp(1.25rem, 4vw, 1.75rem) 1.25rem;
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55),
              0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Card header: title and belief line, with the app's thin divider under both */
.signup-head {
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-divider);
}

.signup h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}

/* "(coming soon)" after the card title: regular weight in the label gray
   (6.2:1 on the card), kept in one piece if the title wraps on a small phone */
.signup-soon {
  font-weight: 400;
  color: var(--text-label);
  white-space: nowrap;
}

/* Belief line in the logo's orange (5.9:1 on the card) */
.signup-lead {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--brand);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-label);
}

.optional {
  font-weight: 400;
  color: var(--text-soft);
}

/* Text fields: the app's dark input. 16 px text stops iOS zooming in on focus. */
.field input {
  display: block;
  width: 100%;
  height: 2.75rem;                             /* 44 px touch target */
  padding: 0 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 5px;
  outline: 2px solid transparent;              /* becomes visible in Windows high-contrast mode */
  outline-offset: 2px;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

/* Focus: teal border and halo, as in the app */
.field input:focus {
  border-color: var(--teal);
  background: var(--field-bg-focus);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* Invalid after the visitor has typed or tried to submit (no JavaScript needed) */
.field input:user-invalid {
  border-color: var(--error);
}

.field input:user-invalid:focus {
  box-shadow: 0 0 0 3px var(--error-glow);
}

/* Browser autofill: keep the dark field instead of the default light fill */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 100px #303030 inset;
}

.field input:-webkit-autofill:focus {
  box-shadow: 0 0 0 100px #333333 inset,
              0 0 0 3px var(--teal-glow);
}

/* Submit button: the app's teal gradient button with dark text (11:1) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  min-width: 7.5rem;
  margin-top: 0.25rem;
  padding: 0 1.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  border: 1px solid transparent;               /* draws an edge in high-contrast mode */
  border-radius: 5px;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s, transform 0.1s;
}

.button:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(141, 228, 220, 0.3);
}

.button:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

.signup-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-soft);
}

/* Spam trap: moved off screen so people never see it. Bots fill it in,
   and Netlify discards any submission where it is filled. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   8. Short message pages (thanks)
   -------------------------------------------------------------------------- */
.message h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-strong);
}

.message p {
  max-width: 34em;
  margin-top: 1rem;
  margin-inline: auto;
  font-size: 1.125rem;
}


/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--text-soft);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.9rem 1.1rem;
}

/* Company line: "© 2026 thruData LLC. RAGScape is a trademark of thruData LLC." in small print.
   Each sentence is a span that never breaks inside, so phones split it into two clean lines. */
.footer-note {
  font-size: 0.8125rem;
}

.footer-note span {
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   9b. Reading pages (privacy, contact and FAQ): one left-aligned column
       that lines up with the header logo
   -------------------------------------------------------------------------- */
.page {
  padding-block: clamp(2rem, 6vh, 3.5rem) clamp(3rem, 8vh, 5rem);
}

.policy {
  max-width: 42rem;                            /* about 80 characters per line */
}

.policy h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 300;                            /* matches the home page's hero line */
  line-height: 1.15;
  color: var(--text-strong);
}

/* Shared rhythm: every paragraph and list sits a little below what precedes it */
.policy p,
.policy ul {
  margin: 0.75rem 0 0;
}

.policy p,
.policy li {
  line-height: 1.65;
}

.policy ul {
  padding-left: 1.25rem;
}

.policy li + li {
  margin-top: 0.55rem;
}

.policy li::marker {
  color: var(--text-soft);
}

.policy strong {
  font-weight: 600;
  color: var(--text-strong);
}

/* Two-class selectors so they beat ".policy p" above */
.policy .updated {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.policy .intro {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

/* Section headings: a divider above each, and room above when reached by a link */
.policy h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-strong);
  scroll-margin-top: 1.5rem;
}

/* The section a link points at (for example #gmail-extension) shows its heading in teal */
.policy h2:target {
  color: var(--teal);
}

.policy h3 {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-strong);
}

/* Links inside the text: teal and underlined */
.policy a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.policy a:hover {
  color: var(--teal-light);
}

/* "On this page" box: a quiet panel in the app's card colors */
.toc {
  margin-top: 2rem;
  padding: 1rem 1.25rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-edge);
  border-radius: 8px;
}

.policy .toc-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-label);
}

.policy .toc ul {
  margin-top: 0.5rem;
}

.policy .toc li + li {
  margin-top: 0.3rem;
}

/* Contact details: label and value rows divided by thin rules.
   Stacked on phones; two columns from 40rem up. */
.contact-list {
  margin: 1.75rem 0 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list dt {
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-label);
}

.contact-list dd {
  margin: 0.2rem 0 0;
  padding-bottom: 0.9rem;
  font-size: 1.0625rem;
}

@media (min-width: 40rem) {
  .contact-list {
    display: grid;
    grid-template-columns: 11rem 1fr;
  }

  .contact-list dt,
  .contact-list dd {
    margin: 0;
    padding-block: 0.9rem;
    border-top: 1px solid var(--rule);
  }

  .contact-list dt {
    padding-top: 1.05rem;                      /* lines the small label up with the larger value */
  }
}

.policy .contact-note {
  margin-top: 1.5rem;
  color: var(--text-soft);
}

/* FAQ comparison table: RAGScape and cloud AI services side by side.
   Fixed column widths and wrapping text keep all three columns on a 320 px
   phone without sideways scrolling. The RAGScape column is tinted in the
   logo's orange. */
.compare {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.compare-label { width: 32%; }
.compare-us    { width: 34%; }
.compare-them  { width: 34%; }

.compare th,
.compare td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

/* Column headings: small labels, with RAGScape in the logo's orange */
.compare thead th {
  padding-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-label);
}

.compare thead th.us {
  color: var(--brand);
}

/* Row headings, such as "Usage fees" */
.compare tbody th {
  font-weight: 600;
  color: var(--text-strong);
}

/* The RAGScape column: a faint orange wash down the whole column */
.compare .us {
  background: rgba(241, 143, 21, 0.07);
}

.compare td.us {
  color: var(--text-strong);
}

.policy .compare-note {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}

@media (max-width: 30rem) {
  .compare {
    font-size: 0.875rem;
  }

  .compare th,
  .compare td {
    padding: 0.55rem 0.45rem;
  }
}

/* EULA clause lists: each item carries its own label, such as (a) or 3.1,
   so no bullet, and wrapped lines hang under the text rather than the label */
.policy .clauses {
  list-style: none;
  padding-left: 1.25rem;
}

.policy .clauses li {
  padding-left: 1.6em;
  text-indent: -1.6em;
}

/* Closing copyright lines at the end of the EULA */
.legal-end {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.policy .legal-end p {
  margin: 0.25rem 0 0;
}

/* EULA Appendix A: one collapsible panel per third-party license, in small
   type. <details> opens and closes without any script. */
.policy .appendix-intro {
  font-size: 0.875rem;
  color: var(--text-soft);
}

.license-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.license {
  border-bottom: 1px solid var(--rule);
}

.license summary {
  padding: 0.55rem 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-strong);
}

.license summary:hover {
  color: var(--teal);
}

.license summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.license-text {
  padding-bottom: 1rem;
}

.policy .license-text p {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-soft);
  overflow-wrap: anywhere;                     /* long URLs never widen the page */
}

/* Required acknowledgments (JPEG, FreeType) read slightly stronger */
.policy .license-text .license-ack {
  color: var(--text);
}

/* Indented list levels inside a license (a., i., bullets) */
.policy .license-text .i1 { padding-left: 1.25rem; }
.policy .license-text .i2 { padding-left: 2.5rem; }
.policy .license-text .i3 { padding-left: 3.75rem; }

/* Text for screen readers only, such as the table's caption */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   10. Reduced motion: no transitions or press effect
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .button:active {
    transform: none;
  }
}
