/* ==========================================================================
   TLPC.app — styles.css
   Initialization (Build 002 · v1.0.0) — static site skeleton.
   Design language adapted from the sister product tpee.app (TPEE_Dot_App
   styles.css) so the two commercial sites look and feel the same.
   Design tokens: light warm-white page + dark header/footer chrome,
   deep-cyan accent, Segoe UI variable fonts. No webfonts, no external
   requests, no MCP, no third-party services — the site itself is static
   and self-contained, matching the offline-first brand.
   ========================================================================== */

:root {
  /* Color — LIGHT page */
  --bg-0: #faf8f1;                 /* page — warm white */
  --bg-1: #f1ecdf;                 /* section alt — beige */
  --surface: #ffffff;              /* cards */
  --surface-2: #efe9db;            /* raised/hover */
  --line: rgba(25, 38, 56, 0.16);  /* hairlines */
  --text-1: #182230;               /* 15.1:1 on bg-0 */
  --text-2: #45536b;               /* muted (6.4:1) */
  --text-3: #57677f;               /* captions (4.7:1) */
  --accent: #0c6a84;               /* deep cyan, links/actions (>=5.1:1) */
  --accent-ink: #ffffff;           /* text on accent (6.2:1) */
  --green: #15803d;                /* success/trust dots (5.0:1) */
  --amber: #8a5a00;                /* warnings, sparing (>=5.6:1) */
  --red: #b91c1c;                  /* errors only (6.5:1) */
  --gradient-hero: linear-gradient(180deg, #f0ead9 0%, #faf8f1 70%);

  /* Type */
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", var(--font-ui);
  --font-mono: "Cascadia Code", ui-monospace, "SF Mono", Consolas, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Elevation + motion */
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.05),
    0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-accent: 0 8px 24px rgba(12, 106, 132, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --header-h: 64px;
  --section-pad: clamp(64px, 10vw, 128px);
  --container: 1180px;
}

/* Dark chrome — the sticky header, footer and any app-dark panels keep the
   original dark palette via a scoped token override (same technique as the
   sister site). Custom properties inherit, so overriding them on a container
   re-themes every descendant that uses var(--…) — no per-component rewrites. */
.site-header,
.site-footer {
  --bg-0: #060d18;
  --bg-1: #0a1626;
  --surface: #0e1e33;
  --surface-2: #12263f;
  --line: rgba(148, 184, 220, 0.14);
  --text-1: #e8f0f8;
  --text-2: #a7bcd2;
  --text-3: #7d93ab;
  --accent: #3fd4e0;
  --accent-ink: #04222a;
  --green: #3ddc97;
  --amber: #f2b84b;
  color: var(--text-1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--text-1);
  color: var(--bg-0);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: var(--bg-0); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

sup { font-size: 0.62em; line-height: 0; }

.mono { font-family: var(--font-mono); font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
    box-shadow 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #0a5f6c; text-decoration: none; }

.btn-secondary {
  background: var(--surface);
  color: var(--text-1);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }

.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-1); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 40px; height: 40px; flex: none; border-radius: 8px; border: 1px solid var(--line); }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.brand-sub { font-size: 0.875rem; color: var(--text-3); white-space: nowrap; }
.brand-sub sup { font-size: 0.62em; line-height: 0; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.938rem;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.site-nav a:hover { color: var(--text-1); background: var(--surface); text-decoration: none; }
.site-nav .nav-cta { margin-left: 8px; min-height: 44px; color: var(--accent-ink); background: var(--accent); }
.site-nav .nav-cta:hover { background: #6fe0e9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--text-1); border-radius: 2px; }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--bg-0);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; padding: 12px 16px; }
  .site-nav .nav-cta { margin-left: 0; }
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: var(--section-pad) 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text-1);
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 56ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  font-size: 0.875rem;
  color: var(--text-3);
  margin: 18px 0 0;
}

/* Terminal-style visual card (dark, mirrors the desktop app) */
.hero-card {
  background: #060d18;
  border: 1px solid rgba(148, 184, 220, 0.14);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(6, 13, 24, 0.35);
  color: #e8f0f8;
  overflow: hidden;
}
.hero-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 184, 220, 0.14);
  background: #0a1626;
}
.hero-card-bar .t { width: 12px; height: 12px; border-radius: 50%; }
.hero-card-bar .t-red { background: #e13c32; }
.hero-card-bar .t-yellow { background: #f2b84b; }
.hero-card-bar .t-green { background: #3ddc97; }
.hero-card-bar .title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #7d93ab;
}
.hero-card-body { padding: 22px 24px 24px; }
.hero-menu-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero-menu-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #3fd4e0;
  border: 1px solid rgba(63, 212, 224, 0.4);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.hero-file {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #3ddc97;
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.hero-status { font-size: 0.875rem; color: #a7bcd2; line-height: 1.7; }
.hero-status b { color: #e8f0f8; font-weight: 600; }
.hero-status .ok { color: #3ddc97; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-1); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.section-sub { font-size: 1.0625rem; color: var(--text-2); margin: 0; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-accent); }
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: rgba(12, 106, 132, 0.12);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card-title { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; }
.card-text { font-size: 0.95rem; color: var(--text-2); margin: 0; line-height: 1.65; }
.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid rgba(12, 106, 132, 0.3);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ---------- Feature row (image/text split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-body h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 16px; }
.split-body p { color: var(--text-2); margin: 0 0 16px; font-size: 1rem; }
.split-body ul { margin: 0 0 20px; padding-left: 20px; color: var(--text-2); }
.split-body li { margin-bottom: 8px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-2); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Promise / guarantee band ---------- */
.promise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; } }
.promise-item .p-icon { font-size: 1.6rem; margin-bottom: 8px; }
.promise-item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.promise-item p { font-size: 0.9rem; color: var(--text-2); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--text-1);
  color: var(--bg-0);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  color: #fff;
}
.cta-band p { color: rgba(232, 240, 248, 0.82); margin: 0 auto 24px; max-width: 52ch; }
.cta-band .btn-primary { background: #3fd4e0; color: #04222a; }
.cta-band .btn-primary:hover { background: #6fe0e9; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--text-1); text-decoration: none; }
.footer-note { font-size: 0.85rem; color: var(--text-3); margin: 14px 0 0; }
.footer-brand { font-size: 0.95rem; color: var(--text-2); margin: 0 0 10px; }
.footer-brand .brand-mark { color: var(--accent); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  font-size: 0.9rem;
  color: var(--text-3);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--accent); }
