/* Saarathi corporate site — shared stylesheet
   Plain CSS, no preprocessor. One file, scoped by selector.
   Update version comment when shipping breaking visual changes.
   v2 — 2026-05-16 — added marketing components (hero, feature grids, device frames, store badges)
*/

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --text: #1B1F26;
  --text-muted: #5B6470;
  --brand: #D97706;
  --brand-hover: #B45309;
  --brand-soft: #FDF1E0;
  --border: #E8E2D4;
  --border-strong: #C9C0AB;
  --warn-bg: #FEF3C7;
  --warn-border: #F59E0B;
  --radius: 6px;
  --radius-lg: 10px;
  --content-width: 760px;
  --content-width-wide: 960px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: Georgia, "EB Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 0.75rem;
}

h1 { font-size: 2.25rem; margin-top: 0; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.2rem; margin-top: 2rem; }
h4 { font-size: 1rem; margin-top: 1.5rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--brand-hover); }
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol { padding-left: 1.5rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
li > p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* Layout containers */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-wide { max-width: var(--content-width-wide); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 500;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.site-header .logo img {
  height: 36px;
  width: auto;
  display: block;
}
.site-header .logo .name {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.primary-nav a:hover { color: var(--brand); }

/* Main content */
main { padding: 3rem 0 4rem; min-height: 60vh; }

article header.page-header {
  margin-bottom: 2rem;
}
article header.page-header .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
article header.page-header h1 {
  margin-bottom: 0.5rem;
}
article header.page-header .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Callouts */
.callout {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

.callout-warn {
  background: var(--warn-bg);
  border-left-color: var(--warn-border);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color 120ms, color 120ms, background 120ms;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

/* Contact / definition grids */
dl.contact-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
dl.contact-grid dt {
  font-weight: 600;
  color: var(--text);
}
dl.contact-grid dd { margin: 0; }

/* FAQ — using native <details> */
details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}
details.faq[open] {
  border-color: var(--brand);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.1rem;
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 400;
}
details.faq[open] summary::after {
  content: "−";
  color: var(--brand);
}
details.faq summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}
details.faq > *:not(summary) { margin-top: 0.75rem; }
details.faq > *:last-child { margin-bottom: 0; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.site-footer .org-block p { margin: 0 0 0.35rem; line-height: 1.5; }
.site-footer .org-block .org-name {
  color: var(--text);
  font-weight: 600;
}
.site-footer .copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.35rem; margin-top: 2rem; }
  main { padding: 2rem 0 3rem; }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .primary-nav { gap: 1.25rem; }

  dl.contact-grid {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  dl.contact-grid dt { margin-top: 0.75rem; }
  dl.contact-grid dt:first-of-type { margin-top: 0; }

  .site-footer .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Print — make legal pages reasonable on paper */
@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  main { padding: 0; }
  a { color: #000; text-decoration: underline; }
  .callout { background: #fff; border-left-color: #000; }
}

/* ============================================================
   MARKETING COMPONENTS
   Used by home, about, features, download, press
   ============================================================ */

/* Wider container option for marketing pages */
main.marketing { padding: 0; }
main.marketing .container,
main.marketing .container-wide { padding: 0 1.5rem; }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero .container-wide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero .subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 32em;
}
.hero-figure { display: flex; justify-content: center; }

/* Section */
.section {
  padding: 4rem 0;
}
.section:nth-of-type(even) {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  text-align: center;
  max-width: 38em;
  margin: 0 auto 3rem;
}
.section-header h2 {
  margin-top: 0;
  font-size: 1.85rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--brand);
}

/* Feature tiles — 3-up grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-tile {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.feature-tile .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--brand);
}
.feature-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.feature-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Alternating feature rows (used on features.html) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-figure { order: 1; }
.feature-copy h2 {
  margin-top: 0;
  font-size: 1.6rem;
}
.feature-copy .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.feature-copy ul {
  list-style: none;
  padding: 0;
}
.feature-copy li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.feature-copy li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.feature-figure { display: flex; justify-content: center; }

/* Screenshot strip — horizontal layout of phone mockups */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Device frame — phone-shaped container for screenshots */
.device-frame {
  aspect-ratio: 9 / 19.5;
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
  background: var(--text);
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(27, 31, 38, 0.18), 0 4px 12px rgba(27, 31, 38, 0.08);
  position: relative;
}
.device-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--text);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-soft) 0%, var(--bg) 60%, var(--surface) 100%);
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.device-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.device-placeholder strong {
  color: var(--text);
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Language chips */
.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}
.lang-chip .script {
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

/* Trust band — small 3-up reassurance row */
.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-band .trust-item {
  padding: 1rem;
}
.trust-band h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.trust-band p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.store-badges a {
  display: inline-block;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--surface);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  min-width: 200px;
  transition: opacity 120ms;
}
.store-badge:hover {
  color: var(--surface);
  opacity: 0.85;
}
.store-badge .store-mark {
  font-size: 1.6rem;
  line-height: 1;
}
.store-badge .store-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge .store-pre {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.store-badge .store-name {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Press kit */
.kit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.kit-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: border-color 120ms;
}
.kit-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.kit-list .file-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

/* Color swatches */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.swatch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.swatch .swatch-color {
  height: 90px;
}
.swatch .swatch-meta {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}
.swatch .swatch-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}
.swatch .swatch-hex {
  color: var(--text-muted);
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
}

/* Boilerplate block (press) */
.boilerplate {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}
.boilerplate p:last-child { margin-bottom: 0; }

/* Final CTA section */
.final-cta {
  text-align: center;
  padding: 4rem 0 5rem;
}
.final-cta h2 {
  margin-top: 0;
  font-size: 2rem;
}
.final-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin: 0 auto 2rem;
}
.final-cta .cta-row {
  justify-content: center;
}

/* Marketing mobile breakpoints */
@media (max-width: 880px) {
  .hero .container-wide {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-figure .device-frame { max-width: 220px; }

  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-strip { grid-template-columns: 1fr; }
  .trust-band { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .kit-list { grid-template-columns: 1fr; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-figure { order: initial; }
}
@media (max-width: 480px) {
  .swatch-grid { grid-template-columns: 1fr; }
  .store-badge { min-width: 100%; }
}
