/* ===========================================================
   CS Technologies — styles.css
   Static, dependency-free (Google Fonts: Inter only)
   =========================================================== */

:root {
  /* Brand */
  --navy-1: #0A1628;
  --navy-2: #0F1F3D;
  --accent: #1F4FD8;
  --accent-soft: #5d83e8;   /* eyebrow on dark navy */
  --teal: #0D9488;
  --amber: #D97706;
  --slate: #64748b;

  /* Neutrals */
  --ink: #0F1729;           /* primary headings */
  --ink-2: #1f2937;         /* about paragraph */
  --body: #4b5563;          /* body copy */
  --muted: #6b7280;         /* labels, footer, contact */
  --hero-sub: #9aa6bd;      /* hero subtext on navy */
  --line: #e6e8ec;          /* hairline borders */
  --bg-gray: #f6f7f9;       /* alternating section band */
  --white: #ffffff;

  --container: 1120px;
  --radius: 14px;
}

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

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 92px 0; }

.section-gray { background: var(--bg-gray); }

/* Two-column "label on the left, content on the right" sections */
.section-2col {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

/* ===========================================================
   Navigation
   =========================================================== */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent);
  overflow: hidden;          /* clips the glyphs to the rounded square */
  flex: 0 0 auto;
}

.logo svg { width: 44px; height: 44px; }

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-contact {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-contact:hover { color: var(--ink); }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  background: linear-gradient(165deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 96px 0 116px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--hero-sub);
  max-width: 540px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.arrow { display: inline-block; }

/* ===========================================================
   Principles (bordered 3-column grid, blue top rule)
   =========================================================== */
.principles { padding: 92px 0; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
}

.principle {
  padding: 40px 38px 46px;
}

.principle + .principle {
  border-left: 1px solid var(--line);
}

.principle-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
}

.principle-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.principle-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}

/* ===========================================================
   Products
   =========================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 30px 32px 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 41, 0.04);
}

.card-teal { border-left-color: var(--teal); }
.card-amber { border-left-color: var(--amber); }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.card-icon-theta {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.card-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  padding: 5px 11px;
  border-radius: 999px;
}

.badge-teal { background: var(--teal); }
.badge-slate { background: var(--slate); }

.card-cat {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 16px;
  line-height: 1.5;
}

.card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 22px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

a.card-link:hover { opacity: 0.7; }

.link-teal { color: var(--teal); }
.link-amber { color: var(--amber); }

/* ===========================================================
   About
   =========================================================== */
.about-text {
  font-size: 1.125rem;        /* 18px — in proportion with the rest of the page */
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 700px;
}

/* ===========================================================
   Footer (copyright + contact on one row)
   =========================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}

.footer-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.contact-line {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.contact-line a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 23, 41, 0.35);
}

.contact-line a:hover { text-decoration-color: var(--ink); }

/* ===========================================================
   Clickable card (whole card opens the app's site) + store badges
   =========================================================== */
.card { position: relative; transition: box-shadow 0.18s ease, transform 0.18s ease; }
/* Only a clickable card (one whose link is an <a>) lifts on hover */
.card.is-clickable:hover { box-shadow: 0 12px 30px rgba(15, 23, 41, 0.10); transform: translateY(-2px); }

/* Stretch the card's link across the whole card so any click follows it.
   Scoped to <a> so a non-clickable card (link rendered as <span>) stays inert. */
a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Store-badge block sits ABOVE the stretched link so badges capture their own clicks */
.store-block {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}

.store-caption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);   /* standard light badge outline */
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

a.store-badge:hover { transform: translateY(-1px); }

.store-badge-icon { width: 22px; height: 22px; flex: 0 0 auto; }

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  text-align: left;
}

.store-badge-top { font-size: 8px; font-weight: 500; letter-spacing: 0.01em; }
.store-badge-bottom { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-top: 1px; }

/* "Coming soon" placeholder — keeps the standard badge look; the caption conveys status */
.store-badge.is-soon { cursor: default; }

/* ===========================================================
   Footer links + document pages (Privacy, Terms, Support)
   =========================================================== */
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-links .dot { color: var(--muted); opacity: 0.5; }

.doc { padding: 64px 0 84px; }

.doc-inner { max-width: 760px; }

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 30px;
  transition: color 0.15s ease;
}
.doc-back:hover { color: var(--ink); }

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
}

.doc-updated { font-size: 14px; color: var(--muted); margin: 0 0 40px; }

.doc .lead { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); margin-bottom: 28px; }

.doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 38px 0 12px;
}

.doc p { font-size: 16px; line-height: 1.75; color: var(--body); margin-bottom: 16px; }

.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 8px; }

.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { opacity: 0.8; }

.doc strong { color: var(--ink-2); font-weight: 600; }

.doc-contact {
  margin: 6px 0 8px;
  padding: 20px 22px;
  background: var(--bg-gray);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc-contact p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .principles { padding: 64px 0; }

  /* Stack the label-left sections */
  .section-2col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Principles stack; each gets its own blue top rule */
  .principles-grid {
    grid-template-columns: 1fr;
    border: 0;
  }
  .principle {
    border-top: 2px solid var(--accent);
    padding: 28px 0 32px;
  }
  .principle + .principle { border-left: 0; }

  /* Products stack */
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 72px 0 84px; }
  .hero-sub { font-size: 16px; }
  .card { padding: 26px 24px 28px; }
  .card-title { font-size: 24px; }
  .nav-inner { height: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
