:root {
  color-scheme: light dark;
  --bg: oklch(0.99 0.002 250);
  --panel: oklch(0.965 0.003 250);
  --fg: oklch(0.22 0.012 250);
  --muted: oklch(0.52 0.012 250);
  --line: oklch(0.90 0.006 250);
  --accent: oklch(0.52 0.132 252);
  --accent-fg: oklch(0.99 0.002 250);
  --display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --pad: 80px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.168 0.006 250);
    --panel: oklch(0.212 0.008 250);
    --fg: oklch(0.945 0.004 250);
    --muted: oklch(0.68 0.010 250);
    --line: oklch(0.30 0.010 250);
    --accent: oklch(0.70 0.132 252);
    --accent-fg: oklch(0.17 0.010 250);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1200px; margin: 0 auto; }

section { padding: 88px var(--pad); border-top: 1px solid var(--line); }
section.tint { background: var(--panel); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h1 { font-size: 62px; line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 21px; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }

/* nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--pad);
  border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 10px; }
.mark span { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.navlinks { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.navlinks a.quiet { color: var(--muted); }

/* hero */
.hero { display: flex; flex-direction: column; gap: 28px; padding: 104px var(--pad) 96px; max-width: 900px; }
.lead { max-width: 660px; font-size: 21px; line-height: 1.5; color: var(--muted); }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.meta { font-size: 14px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 16px;
  font-weight: 500;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }

/* layout helpers */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.measure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.measure .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.measure .k { font-size: 15px; color: var(--muted); }
.measure .v { font-family: var(--display); font-size: 18px; font-weight: 600; }
.measure .v.good { color: var(--accent); }
.rule { height: 1px; background: var(--line); }

.spec { display: flex; flex-direction: column; gap: 6px; }
.spec .val { font-size: 17px; }

/* document pages — privacy, support */
.doc { max-width: 760px; padding: 72px var(--pad) 88px; display: flex; flex-direction: column; gap: 40px; }
.doc h1 { font-size: 42px; }
.doc h2 { font-size: 24px; }
.doc section { padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.doc .date { font-size: 15px; color: var(--muted); }

.summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.summary p { color: var(--fg); font-size: 19px; }

.qa { display: flex; flex-direction: column; gap: 28px; }
.qa .item { display: flex; flex-direction: column; gap: 8px; }
.qa .item h3 { font-size: 18px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px var(--pad) 44px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
footer .legal { max-width: 620px; text-align: right; }

@media (max-width: 900px) {
  :root { --pad: 24px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .doc h1 { font-size: 32px; }
  .lead { font-size: 18px; }
  section { padding: 56px var(--pad); }
  .hero { padding: 64px var(--pad) 56px; gap: 22px; }
  .doc { padding: 48px var(--pad) 64px; gap: 32px; }
  .two, .three, .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .navlinks { gap: 18px; }
  footer { flex-direction: column; align-items: flex-start; }
  footer .legal { text-align: left; }
}

/* ---------- site-wide additions (kononov.app) ---------- */

.mark { color: inherit; }
.mark:hover { text-decoration: none; }
.mark img { width: 22px; height: 22px; border-radius: 6px; }
.crumb { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 8px; }

/* hero with a visual on the right */
.hero.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  max-width: none;
}
.hero.split .copy { display: flex; flex-direction: column; gap: 28px; }
.hero.split .visual { display: flex; justify-content: center; }
.hero.split .visual img { max-width: 100%; height: auto; }

/* product cards on the home page */
.products { display: flex; flex-direction: column; gap: 32px; }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.product .body { display: flex; flex-direction: column; gap: 18px; }
.product .head { display: flex; align-items: center; gap: 16px; }
.product .head img { width: 64px; height: 64px; border-radius: 15px; }
.product .head h2 { font-size: 30px; }
.product .platform { font-size: 14px; color: var(--muted); }
.product .pitch { font-size: 19px; line-height: 1.5; }
.product ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15px; }
.product .links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; font-size: 15px; }
.product .shot { display: flex; justify-content: center; align-items: center; }
.product .shot img { max-width: 100%; max-height: 420px; height: auto; border-radius: 14px; border: 1px solid var(--line); }

/* screenshot gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 15px; color: var(--muted); }

/* flow diagram: camera → iPhone → watch */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.flow .node { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.flow .node h3 { font-size: 17px; }
.flow .node p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.flow .arrow { display: flex; align-items: center; color: var(--muted); font-size: 22px; }

.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); }

/* GoView accent: amber, matching the app */
.goview {
  --accent: oklch(0.62 0.15 70);
  --panel: oklch(0.965 0.010 80);
  --line: oklch(0.90 0.012 80);
}
@media (prefers-color-scheme: dark) {
  .goview {
    --accent: oklch(0.80 0.16 78);
    --panel: oklch(0.212 0.010 80);
    --line: oklch(0.30 0.012 80);
  }
}

@media (max-width: 900px) {
  .hero.split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero.split .visual img { max-width: 320px; }
  .product { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 28px; }
  .product .shot img { max-height: 360px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow .arrow { justify-content: center; transform: rotate(90deg); }
}
.gallery.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .gallery.wide { grid-template-columns: minmax(0, 1fr); } }

/* ---------- device mockup: iPhone + Apple Watch (GoView) ---------- */
.devices {
  --u: calc(100cqw / 560);
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 440;
  overflow: hidden;
}
.devices-host { container-type: inline-size; width: 100%; }
.devices .phone {
  position: absolute; left: calc(132 * var(--u)); top: calc(36 * var(--u));
  width: calc(236 * var(--u)); height: calc(560 * var(--u)); padding: calc(9 * var(--u));
  box-sizing: border-box; background: #101013; border: 1px solid #2c2c31;
  border-radius: calc(40 * var(--u)); box-shadow: 0 calc(30 * var(--u)) calc(60 * var(--u)) rgba(0,0,0,0.55);
}
.devices .phone i {
  position: absolute; width: 3px; background: #2c2c31; border-radius: 2px; left: -2px;
}
.devices .phone i:nth-child(1) { top: calc(120 * var(--u)); height: calc(28 * var(--u)); }
.devices .phone i:nth-child(2) { top: calc(166 * var(--u)); height: calc(52 * var(--u)); }
.devices .phone i:nth-child(3) { top: calc(230 * var(--u)); height: calc(52 * var(--u)); }
.devices .phone i:nth-child(4) { left: auto; right: -2px; top: calc(186 * var(--u)); height: calc(82 * var(--u)); }
.devices .phone .screen { width: 100%; height: 100%; border-radius: calc(31 * var(--u)); overflow: hidden; background: #0b0b0c; }
.devices .phone .screen img { display: block; width: 100%; height: auto; }

.devices .watch {
  position: absolute; left: calc(330 * var(--u)); top: calc(196 * var(--u));
  width: calc(176 * var(--u)); height: calc(194 * var(--u));
}
.devices .watch .band { position: absolute; left: 50%; transform: translateX(-50%); width: 56%; height: calc(52 * var(--u)); background: #232327; }
.devices .watch .band.top { top: calc(-44 * var(--u)); border-radius: calc(16 * var(--u)) calc(16 * var(--u)) 6px 6px; }
.devices .watch .band.bottom { bottom: calc(-44 * var(--u)); border-radius: 6px 6px calc(16 * var(--u)) calc(16 * var(--u)); }
.devices .watch .crown { position: absolute; right: calc(-7 * var(--u)); top: 26%; width: calc(8 * var(--u)); height: 17%; background: #3a3a41; border-radius: 4px; }
.devices .watch .side { position: absolute; right: calc(-5 * var(--u)); top: 50%; width: calc(6 * var(--u)); height: 22%; background: #2e2e34; border-radius: 3px; }
.devices .watch .case {
  position: relative; width: 100%; height: 100%; padding: calc(12 * var(--u)); box-sizing: border-box;
  background: #15151a; border: 1px solid #34343b; border-radius: calc(44 * var(--u));
  box-shadow: 0 calc(24 * var(--u)) calc(50 * var(--u)) rgba(0,0,0,0.6);
}
.devices .watch .screen { width: 100%; height: 100%; border-radius: calc(33 * var(--u)); overflow: hidden; background: #000; }
.devices .watch .screen img { display: block; width: 100%; height: 100%; object-fit: fill; }

/* the phone runs off the bottom edge of its container */
.product .shot.devices-host { align-self: center; }
.devices .phone {
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 48%, transparent 72%);
}
.product { overflow: hidden; }
.hero.split .visual.devices-host { align-self: center; }
@media (max-width: 900px) {
  .hero.split .visual.devices-host .devices { max-width: 420px; margin: 0 auto; }
}

/* ---------- showcase: big crops with a caption beside ---------- */
.showcase { display: flex; flex-direction: column; gap: 56px; }
.showcase figure { margin: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.showcase .frame { position: relative; }
.showcase .frame > img:first-child { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.showcase .inset {
  position: absolute; left: -22px; top: -22px; width: 42%; height: auto;
  border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}
.showcase figcaption { display: flex; flex-direction: column; gap: 10px; }
.showcase figcaption h3 { font-size: 21px; }
.showcase figcaption p { font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) {
  .showcase figure { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .showcase .inset { left: 8px; top: 8px; width: 60%; }
}
.frame.compact { position: relative; width: 100%; }
.frame.compact > img:first-child { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.frame.compact .inset { position: absolute; left: 10px; top: 10px; width: 46%; height: auto; border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06); }
