/* Tesseta marketing site — tokens mirror docs/logo/LOGO-SPEC.md and web/app/globals.css */
:root {
  --canvas: #F0EBE0;
  --canvas-muted: #EBE4D0;
  --surface: #FFFFFF;
  --border-subtle: #EFE7D2;
  --border-default: #E6DFCF;
  --border-strong: #DDD3BB;

  --ink: #1F2419;
  --secondary: #6B6856;
  --tertiary: #8A8770;
  --quaternary: #B5B09C;

  --olive: #5C7A2E;
  --olive-deep: #3D5A1E;
  --olive-tint: #E8EBD8;

  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --tracking-caps: 0.16em;

  --font-sans: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.02em; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: var(--radius-md);
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--tertiary);
  margin: 0 0 18px;
}

.accent { color: var(--olive); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 500; font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { background: #2b3324; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-inverse { background: transparent; border-color: rgba(240,235,224,.4); color: var(--canvas); }
.btn-ghost-inverse:hover { border-color: var(--canvas); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240,235,224,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-default);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--secondary); }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--ink); }
.nav a.btn:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; margin: 0 0 24px; }
.lede { font-size: 19px; color: var(--secondary); max-width: 52ch; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fineprint { margin: 24px 0 0; font-size: 13.5px; color: var(--tertiary); max-width: 48ch; }

/* Hero mosaic mark */
.hero-mark { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(300px, 70vw);
  aspect-ratio: 1;
}
.mosaic .tile {
  background: var(--olive);
  border-radius: 8px;
  opacity: 0;
  transform: scale(.6);
  animation: tile-in .6s cubic-bezier(.2,.7,.3,1) forwards;
}
.mosaic .tile.gap { background: transparent; animation: none; }
.mosaic .tile:nth-child(1) { animation-delay: .05s; }
.mosaic .tile:nth-child(2) { animation-delay: .13s; }
.mosaic .tile:nth-child(3) { animation-delay: .21s; }
.mosaic .tile:nth-child(4) { animation-delay: .29s; }
.mosaic .tile:nth-child(6) { animation-delay: .37s; }
.mosaic .tile:nth-child(7) { animation-delay: .45s; }
.mosaic .tile:nth-child(8) { animation-delay: .53s; }
.mosaic .tile:nth-child(9) { animation-delay: .61s; }
@keyframes tile-in { to { opacity: 1; transform: scale(1); } }
.mark-caption { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; text-align: center; color: var(--tertiary); letter-spacing: .04em; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .mosaic .tile { opacity: 1; transform: none; animation: none; }
}

/* ---------- Signals strip ---------- */
.strip { border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); background: var(--canvas-muted); }
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px; padding: 20px 24px;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--secondary);
}
.strip-inner i { width: 4px; height: 4px; border-radius: 50%; background: var(--quaternary); display: inline-block; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--canvas-muted); border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 18px; }
.section-sub { font-size: 18px; color: var(--secondary); margin: 0; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 12px 30px -20px rgba(31,36,25,.35); }
.card-wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.card-wide .card-mark { margin-top: 4px; }
.card h3 { font-size: 20px; margin: 18px 0 10px; }
.card-wide h3 { margin-top: 0; }
.card p { margin: 0; color: var(--secondary); font-size: 15.5px; }
.card-wide p { max-width: 70ch; }

/* Each card carries a tiny mosaic mark */
.card-mark {
  width: 34px; height: 34px;
  background-image:
    linear-gradient(var(--olive), var(--olive)),
    linear-gradient(var(--olive), var(--olive)),
    linear-gradient(var(--olive), var(--olive)),
    linear-gradient(var(--olive), var(--olive)),
    linear-gradient(var(--olive), var(--olive)),
    linear-gradient(var(--olive), var(--olive)),
    linear-gradient(var(--olive), var(--olive)),
    linear-gradient(var(--olive), var(--olive));
  background-repeat: no-repeat;
  background-size: 9px 9px;
  background-position:
    0 0, 12.5px 0, 25px 0,
    0 12.5px,        25px 12.5px,
    0 25px, 12.5px 25px, 25px 25px;
}

/* ---------- Product showcase ---------- */
.showcase { padding: 40px 0 8px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; max-width: 60ch; }

.browser {
  margin: 44px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 40px 90px -50px rgba(31, 36, 25, 0.55), 0 8px 24px -18px rgba(31, 36, 25, 0.35);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  background: var(--canvas-muted);
  border-bottom: 1px solid var(--border-default);
}
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser-bar span:nth-child(1) { background: #D8B4A0; }
.browser-bar span:nth-child(2) { background: #DED3A6; }
.browser-bar span:nth-child(3) { background: #B7C79A; }
.browser-bar em {
  margin-left: 14px; font-style: normal;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--tertiary);
}
.browser img { display: block; width: 100%; height: auto; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  box-shadow: 0 24px 50px -40px rgba(31, 36, 25, 0.5);
  background: var(--surface);
}
.shot figcaption { margin-top: 16px; font-size: 15px; color: var(--secondary); max-width: 52ch; }
.shot figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-item { border-top: 2px solid var(--ink); padding-top: 22px; }
.trust-num { font-family: var(--font-mono); font-size: 13px; color: var(--olive); letter-spacing: .1em; margin: 0 0 12px; }
.trust-item h3 { font-size: 21px; margin: 0 0 12px; }
.trust-item p { margin: 0; color: var(--secondary); font-size: 15.5px; }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.privacy-copy h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 18px; }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--secondary); font-size: 16px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--olive-tint);
  border: 1.5px solid var(--olive);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 7px;
  width: 8px; height: 4px; border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive);
  transform: rotate(-45deg);
}
.privacy-aside {
  background: var(--ink); color: var(--canvas);
  border-radius: var(--radius-xl); padding: 34px;
}
.aside-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--quaternary); margin: 0 0 16px; }
.aside-quote { font-family: var(--font-sans); font-size: 22px; line-height: 1.4; margin: 0; letter-spacing: -0.01em; }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform { background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 28px; }
.platform h3 { font-size: 19px; margin: 0 0 10px; }
.platform p { margin: 0; color: var(--secondary); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--olive); color: var(--canvas); }
.cta-band-inner { padding: 80px 24px; text-align: center; }
.cta-band h2 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 12px; color: var(--canvas); }
.cta-band p { margin: 0 0 28px; color: rgba(240,235,224,.85); font-size: 18px; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-primary { background: var(--canvas); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--canvas); padding: 64px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 44ch; color: var(--quaternary); font-size: 14.5px; margin: 0; }
.footer-nav { display: grid; gap: 12px; align-content: start; }
.footer-nav a { color: var(--canvas); text-decoration: none; font-size: 15px; opacity: .85; }
.footer-nav a:hover { opacity: 1; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(240,235,224,.14); color: var(--quaternary); font-size: 13px; font-family: var(--font-mono); letter-spacing: .03em; }

/* ---------- Legal / long-form pages ---------- */
.legal { padding: 64px 0 96px; }
.legal-head { max-width: 72ch; margin-bottom: 8px; }
.legal-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 0 0 14px; }
.legal-updated { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--tertiary); margin: 0; }
.legal-note {
  max-width: 72ch;
  background: var(--olive-tint); border: 1px solid var(--olive);
  border-radius: var(--radius-lg); padding: 16px 18px; margin: 28px 0 40px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink);
}
.legal-note strong { font-weight: 600; }
.legal-body { max-width: 72ch; }
.legal-lead { font-size: 19px; color: var(--secondary); margin: 0 0 24px; }
.legal-body h2 { font-size: 23px; margin: 44px 0 14px; scroll-margin-top: 84px; }
.legal-body h3 { font-size: 17px; margin: 26px 0 10px; }
.legal-body p { color: var(--secondary); margin: 0 0 16px; }
.legal-body ul { color: var(--secondary); margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin: 0 0 9px; }
.legal-body li::marker { color: var(--quaternary); }
.legal-body a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--olive-deep); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body dl { margin: 0 0 18px; }
.legal-body dt { color: var(--ink); font-weight: 600; margin: 16px 0 4px; }
.legal-body dd { margin: 0 0 4px; color: var(--secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-mark { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .trust-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 32px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
  .platforms { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; grid-template-columns: 1fr; gap: 16px; }
}
