/* Tessel Smart Gallery site. Cyanotype colors from the app (lib/core/theme.dart):
   print paper and Prussian ink, the red wax pencil on paper, yellow wax on blue.
   Brygada 1918 for headlines, Hanken Grotesk for text, the app's own fonts. */
:root {
  --paper: #F2F4F2;
  --paper-deep: #E7EBEA;
  --paper-high: #DCE2E2;
  --white: #FFFFFF;
  --ink: #12283E;
  --ink-soft: #55677A;
  --rule: #CBD3D4;
  --prussian: #0F2E4D;
  --deep: #0B1C2E;
  --raised: #14283D;
  --on-blue: #DCE8EE;
  --blue-muted: #93A9BC;
  --red: #C9252F;
  --wax: #F4C542;
  --teal: #2F6B73;
  --amber: #F5B66B;

  --display: "Brygada 1918", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;
  --phone-radius: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--prussian); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(52px, 8.6vw, 112px); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; max-width: 17ch; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; }
p { margin: 0; max-width: 58ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 9px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.brand-sub { font-size: 14px; color: var(--ink-soft); font-weight: 500; padding-top: 4px; }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.top-nav a:not(.btn):hover { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  border-radius: 12px; padding: 12px 22px 12px 18px; font-weight: 600;
}
.btn:hover { background: var(--prussian); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.play span { display: flex; flex-direction: column; line-height: 1.1; font-size: 19px; }
.play small { font-weight: 400; font-size: 12px; opacity: 0.8; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(20px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 112px);
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(28px, 5vw, 72px);
}
.hero .lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; margin-top: 28px; max-width: 30ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; }
.cta-note { color: var(--ink-soft); font-size: 15px; }

/* The hero's search wall: the one bold thing on the page. */
.wall { margin: 0; }
.wall-box { background: var(--prussian); border-radius: 22px; padding: clamp(14px, 2vw, 22px); box-shadow: 14px 14px 0 rgba(11, 28, 46, 0.14); }
.wall-search {
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px;
  background: var(--paper); border-radius: 28px; color: var(--ink);
}
.wall-search svg { flex: none; }
.wall-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink);
  font: 500 19px var(--body);
}
.wall-search input::placeholder { color: var(--ink-soft); }
.wall-search:focus-within { box-shadow: 0 0 0 3px var(--wax); }
.wall-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 2px; }
.wall-chips button {
  font: 500 14px var(--body); color: var(--on-blue); background: var(--raised); border: 1px solid #24405C;
  border-radius: 16px; padding: 5px 12px; cursor: pointer;
}
.wall-chips button:hover, .wall-chips button[aria-pressed="true"] { background: var(--on-blue); color: var(--ink); }
.wall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  transition: opacity 320ms, filter 320ms, transform 320ms cubic-bezier(.2,.8,.2,1);
}
.tile svg { width: 100%; height: 100%; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 0 var(--wax); transition: box-shadow 260ms; }
.wall.searching .tile { opacity: 0.22; filter: grayscale(0.7); transform: scale(0.96); }
.wall.searching .tile.hit { opacity: 1; filter: none; transform: none; }
.wall.searching .tile.hit::after { box-shadow: inset 0 0 0 4px var(--wax); }
.wall-status { color: var(--blue-muted); font-size: 14px; margin: 12px 2px 0; min-height: 1.5em; }
.wall figcaption { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 14px; }

/* Phones */
.phone {
  border-radius: var(--phone-radius); background: var(--deep); padding: 7px;
  box-shadow: 0 1px 0 rgba(18,40,62,.08), 0 28px 50px -24px rgba(18,40,62,.5);
}

/* Sections */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band { padding: clamp(64px, 9vw, 120px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.band.deep { background: var(--paper-deep); }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 19px; }
.aside { color: var(--ink-soft); font-size: 15px; margin-top: 18px; }
.rule-top { border-top: 1px solid var(--rule); }

.feature { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(32px, 7vw, 112px); align-items: center; }
.feature.flip { grid-template-columns: 1fr minmax(0, 300px); }
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature-copy h2 { max-width: 15ch; }
.feature-copy p { margin-top: 20px; font-size: 19px; }
.feature-copy p.aside { font-size: 15px; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 520px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 17px; }
.ticks li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; border-radius: 3px; background: var(--red); transform: rotate(45deg); }
.ticks b { font-weight: 600; }

/* Small feature cards */
.cards { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards li { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 24px 24px 26px; }
.cards .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-high); color: var(--prussian); }
.cards .ic svg { width: 22px; height: 22px; fill: currentColor; }
.cards h3 { font-size: 22px; margin-top: 18px; }
.cards p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

/* Full version */
.full { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.full-list { display: grid; gap: 16px; }
.full-item { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; }
.full-item .art { aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.full-item h3 { font-size: 21px; }
.full-item p { color: var(--ink-soft); font-size: 16px; margin-top: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-row span { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 12px; background: var(--paper-high); }

/* Privacy band: the only dark surface, Prussian like the app's dark theme. */
.privacy { background: var(--prussian); color: var(--on-blue); }
.privacy h2 { color: #fff; max-width: 18ch; }
.facts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.facts li { border-top: 2px solid var(--wax); padding-top: 16px; font-size: 17px; color: var(--blue-muted); }
.facts strong { display: block; color: #fff; font-family: var(--display); font-weight: 600; font-size: 23px; margin-bottom: 6px; }
.counted { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; background: var(--raised); border-radius: 18px; padding: clamp(22px, 3vw, 36px); }
.counted h3 { color: #fff; font-size: 24px; grid-column: 1 / -1; }
.counted p { color: var(--on-blue); }
.counted ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.counted li { padding-left: 22px; position: relative; color: var(--on-blue); }
.counted .yes li::before, .counted .no li::before { position: absolute; left: 0; font-weight: 700; }
.counted .yes li::before { content: "+"; color: var(--wax); }
.counted .no li::before { content: "\00d7"; color: #F08A8F; }
.counted .col-h { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-muted); margin-bottom: 10px; }
.privacy a { color: var(--wax); }

/* Questions */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); margin-top: 36px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 24px); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 30px/1 var(--body); color: var(--red); transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); }
.faq details p + p { margin-top: -10px; }

.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 128px); }
.closing h2 { max-width: none; }

.foot { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 15px; }
.foot p + p { margin-top: 10px; }
.foot p a + a { margin-left: 18px; }
.foot .fine { font-size: 13px; }

/* Narrow screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature .demo-wrap { order: 2; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .full { grid-template-columns: 1fr; }
  .counted { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-nav a:not(.btn) { display: none; }
  .brand-sub { display: none; }
  .wall-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .wall-grid .tile:nth-child(n+10) { display: none; }
  .facts, .cards { grid-template-columns: 1fr; }
  .feature-copy p { font-size: 17px; }
  .full-item { grid-template-columns: 64px 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .tile::after { transition: none; }
}

/* Long-form pages */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 72px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); }
.doc h2 { font-size: clamp(23px, 2.6vw, 29px); margin-top: 48px; max-width: none; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p { margin-top: 16px; }
.doc ul { padding-left: 20px; margin: 16px 0 0; }
.doc li + li { margin-top: 12px; }
.doc-date { color: var(--ink-soft); font-size: 15px !important; }
.doc .summary { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 12px; padding: 18px 22px; margin-top: 28px; }
.doc .summary p { margin-top: 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 600; width: 38%; }

/* The on-device promise: first line of the hero and the band under it. */
.on-device {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 16px 8px 12px; border-radius: 22px; background: var(--prussian); color: var(--paper);
  font-weight: 600; font-size: 16px; max-width: none;
}
.on-device svg { color: var(--wax); flex: none; }
.versus { background: var(--prussian); color: var(--on-blue); }
.versus-in { padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 0.9fr 1.6fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.versus h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.versus-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.versus-col { border-radius: 16px; padding: 22px 24px; background: var(--raised); color: var(--blue-muted); }
.versus-col.us { background: var(--paper); color: var(--ink); }
.versus-col .col-h { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.versus-col.us .col-h { color: var(--red); }
@media (max-width: 900px) { .versus-in, .versus-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .on-device { font-size: 14px; } }
