/* LocalGenAI v3 — light enterprise character
   No dark-blue chrome. No flat pure-white void.
   Warm stone base + slate ink + restrained teal accent. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f0ebe3;
  --bg-elevated: #f7f3ed;
  --bg-panel: #fbf8f3;
  --bg-tint: #e7e1d6;
  --ink: #1c1917;
  --ink-2: #292524;
  --muted: #57534e;
  --faint: #78716c;
  --line: rgba(28, 25, 23, 0.1);
  --line-2: rgba(28, 25, 23, 0.16);
  --accent: #0f766e;
  --accent-2: #0d9488;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --link: #0f766e;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 10px 28px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 2px 6px rgba(28, 25, 23, 0.05), 0 18px 40px rgba(28, 25, 23, 0.08);
  --radius: 10px;
  --radius-sm: 8px;
  --max: 1100px;
  --header: 68px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fp-size: 0.8125rem;      /* 13px fine print */
  --fp-size-sm: 0.75rem;     /* 12px */
  --fp-tracking: 0.01em;
  --fp-gap: 0.5rem 1rem;
  --sep: "·";
  font-family: var(--font);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(15, 118, 110, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(120, 113, 108, 0.08), transparent 50%),
    linear-gradient(180deg, #f3efe8 0%, var(--bg) 28%, #ebe5db 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 1.75rem);
}

/* Shared fine print */
.fineprint,
.legal .meta,
footer.site .bottom,
.brand-wordmark .tag,
.eyebrow,
.trust-row,
.stat span,
.section-label,
.breadcrumbs,
.pill {
  font-family: var(--font);
  font-feature-settings: "tnum" 1;
}

/* —— Header: light, not dark —— */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  background: rgba(247, 243, 237, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}
.brand-wordmark .name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-wordmark .name em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.brand-wordmark .tag {
  font-size: var(--fp-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.2;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  font-size: 0.875rem;
}
nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
}
nav a:hover {
  color: var(--ink);
  text-decoration: none;
  background: rgba(28, 25, 23, 0.05);
}
nav a.active { color: var(--ink); font-weight: 600; }
nav .nav-cta {
  margin-left: 0.4rem;
  background: var(--ink);
  color: #fafaf9 !important;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}
nav .nav-cta:hover {
  background: var(--ink-2);
  color: #fff !important;
}

/* —— Hero —— */
.hero-studio {
  padding: clamp(3.75rem, 8vw, 5.75rem) 0 clamp(3rem, 6vw, 4.25rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(247, 243, 237, 0.2) 0%, transparent 100%);
}
.hero-studio .bg,
.hero-studio .mesh { display: none; }
.hero-studio .content { max-width: 38rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fp-size-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.hero-studio h1 {
  font-family: var(--font);
  font-size: clamp(2.15rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1.15rem;
}
.hero-studio h1 .line2 {
  display: block;
  color: var(--ink);
  font-weight: 700;
}
.hero-studio .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fp-gap);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: var(--fp-size);
  font-weight: 500;
  letter-spacing: var(--fp-tracking);
  line-height: 1.4;
  text-transform: none;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.trust-row span::before { display: none; }
.trust-row span + span::before {
  content: "·";
  display: inline-block;
  margin-right: 1rem;
  margin-left: 0;
  color: var(--line-2);
  font-weight: 400;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: var(--bg-panel);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  background: #fff;
  border-color: var(--faint);
}
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(2px); }
.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fafaf9;
  box-shadow: none;
}
.btn.primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn.ghost:hover {
  background: rgba(28, 25, 23, 0.04);
  color: var(--ink);
}
.btn.gold {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none;
}
.btn.gold:hover {
  background: var(--accent-2);
  color: #fff;
}
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: -1.25rem auto 0;
  max-width: var(--max);
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -0.75rem; }
}
.stat {
  padding: 1.2rem 1.1rem;
  border-right: 1px solid var(--line);
  text-align: left;
}
.stats .stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.stat span {
  display: block;
  font-size: var(--fp-size-sm);
  font-weight: 500;
  letter-spacing: var(--fp-tracking);
  color: var(--faint);
  text-transform: none;
  line-height: 1.35;
}

/* Sections */
.section {
  padding: clamp(3.25rem, 6.5vw, 4.75rem) 0;
}
.section-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.section-label {
  font-size: var(--fp-size-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.55rem;
  line-height: 1.3;
}
.section h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}
.section .sub {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
@media (max-width: 800px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.product-card:hover {
  text-decoration: none;
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--shadow-md);
}
.product-card .stage {
  aspect-ratio: 16 / 10;
  background: var(--bg-tint);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-card .stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .device { display: none; }
.product-card .body {
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.product-card .meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.product-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.product-card .cta {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: -0.01em;
  text-transform: none;
}
.product-card .cta .arrow { transition: transform 0.15s ease; display: inline-block; }
a.product-card:hover .cta .arrow { transform: translateX(2px); }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
  color: var(--muted);
  background: var(--bg-elevated);
  line-height: 1.2;
}
.pill.dev {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.22);
}
.pill.soon {
  color: var(--muted);
  background: var(--bg-tint);
}
.pill.ios {
  color: var(--faint);
  background: var(--bg-panel);
}

/* About — warm elevated band, not dark */
.studio-strip {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.studio-strip .section-label { color: var(--accent); }
.studio-strip h2 { color: var(--ink); }
.studio-strip .sub { color: var(--muted); }

.mission-prose {
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.15rem;
}
.mission-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.75rem;
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
}
.feature .num {
  font-size: var(--fp-size-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  box-shadow: none;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.925rem;
}

/* CTA — soft ink, not navy void */
.band {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 1.9rem) clamp(1.35rem, 3vw, 1.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  box-shadow: var(--shadow);
}
.band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-family: var(--font);
}
.band p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.band a { color: var(--accent); }
.band .btn {
  background: var(--ink);
  color: #fafaf9;
  border-color: var(--ink);
}
.band .btn:hover {
  background: var(--ink-2);
  color: #fff;
}

/* Fine print identity line (contact / legal meta) */
.identity-line,
.legal .meta {
  font-size: var(--fp-size);
  font-weight: 500;
  letter-spacing: var(--fp-tracking);
  color: var(--faint);
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.identity-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
}
.identity-line .sep {
  display: inline-block;
  margin: 0 0.55rem;
  color: var(--line-2);
  font-weight: 400;
  user-select: none;
}

/* App pages */
.app-hero {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 1.25rem;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.app-hero .layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 860px) {
  .app-hero .layout { grid-template-columns: 1fr; }
  .app-hero .visual { order: -1; }
  nav .nav-cta { display: none; }
}
.app-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0.55rem 0 0.85rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font);
}
.app-hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 34rem;
}
.app-hero .visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-tint);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.app-hero .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-hero .visual .device {
  width: 100%;
  height: 100%;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  transform: none !important;
}
.app-hero .visual .device::before { display: none; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.note {
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  background: var(--bg-panel);
  color: var(--ink-2);
  margin-top: 1.2rem;
  font-size: 0.925rem;
  line-height: 1.55;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.note.soon { border-left-color: var(--faint); }
.note strong { color: var(--ink); font-weight: 600; }

.breadcrumbs {
  font-size: var(--fp-size);
  color: var(--faint);
  margin: 0 0 1rem;
  font-weight: 500;
  letter-spacing: var(--fp-tracking);
  line-height: 1.4;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span {
  margin: 0 0.4rem;
  color: var(--line-2);
}

/* Legal */
.legal {
  padding: clamp(2.5rem, 5vw, 3.25rem) 0 4.5rem;
  max-width: 40rem;
}
.legal h1 {
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.2;
}
.legal .meta {
  margin: 0 0 1.75rem;
}
.legal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
  font-family: var(--font);
}
.legal p, .legal li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.975rem;
}
.legal ul { padding-left: 1.15rem; }

/* Footer — light warm, not dark blue */
footer.site {
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: var(--fp-size);
  padding: clamp(2.5rem, 5vw, 3.25rem) 0 1.75rem;
  border-top: 1px solid var(--line);
}
footer.site .grid-foot {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  footer.site .grid-foot { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
}
@media (max-width: 480px) {
  footer.site .grid-foot { grid-template-columns: 1fr; }
}
footer.site .col-brand strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
footer.site .col-brand p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fp-size);
  line-height: 1.55;
  max-width: 22rem;
  letter-spacing: var(--fp-tracking);
}
footer.site h4 {
  margin: 0 0 0.7rem;
  font-size: var(--fp-size-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.3;
}
footer.site .col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-size: var(--fp-size);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--fp-tracking);
}
footer.site .col a:hover { color: var(--ink); text-decoration: none; }
footer.site .bottom {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--fp-gap);
  font-size: var(--fp-size-sm);
  font-weight: 500;
  letter-spacing: var(--fp-tracking);
  color: var(--faint);
  line-height: 1.4;
}
footer.site .bottom span {
  display: inline-flex;
  align-items: center;
}
footer.site .bottom a {
  color: var(--faint);
  display: inline;
  margin: 0;
}
footer.site .bottom a:hover { color: var(--ink); }

/* Legal page simple footers */
footer.site .bottom.simple {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Reveal */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-delay-1 { transition-delay: 0.05s; }
  .reveal-delay-2 { transition-delay: 0.1s; }
  .reveal-delay-3 { transition-delay: 0.15s; }
  .reveal-delay-4 { transition-delay: 0.2s; }
}
