/* Honest Camera landing — "toy block" design system.
   Material recipe ported from the app's ToyBlockButton (CameraView.swift):
   face color + darker underside offset below + soft cast shadow
   + radial edge shading + small specular highlight + springy press. */
:root {
  --yellow: #ffd60a;
  --yellow-under: #c78c00;
  --red: #ff3b30;
  --red-under: #b31a0d;
  --blue: #2f9bff;
  --blue-under: #1668b8;
  --ink: #1c1c1e;
  --ink2: #6b6b6e;
  --cream: #fff7e3;
  --cream-deep: #ffefc2;
  --sky: #eaf4ff;
  --card-under: #e9dfc4;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .demo, .kpill, .tag, figcaption { font-family: var(--round); }

/* toy label pills (replaces mono kickers) */
.kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kpill {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 800;
  box-shadow: 0 3px 0 var(--card-under);
}
.kpill.k2 { background: var(--ink); color: var(--yellow); box-shadow: 0 3px 0 #000; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,247,227,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28,28,30,.08);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.wordmark img { width: 30px; height: 30px; border-radius: 9px; }
.wordmark span { font-family: var(--round); font-size: 16px; font-weight: 900; }
.lang { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.lang a {
  font-size: 12px; font-weight: 700; text-decoration: none;
  padding: 4px 8px; border-radius: 99px; color: var(--ink2);
}
.lang a:hover { color: var(--ink); }
.lang a.cur { color: #fff; background: var(--red); pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(170deg, var(--yellow) 0%, #ffce00 100%);
}
.hero .bubble { position: absolute; border-radius: 50%; pointer-events: none; }
.hero .b1 { width: 340px; height: 340px; right: -90px; top: -120px; background: rgba(255,255,255,.22); }
.hero .b2 { width: 130px; height: 130px; left: 4%; bottom: 10%; background: rgba(255,59,48,.14); }
.hero .b3 { width: 72px; height: 72px; right: 38%; top: 12%; background: rgba(47,155,255,.16); }
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 0;
}
.hero h1 {
  margin: 26px 0 0; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.12;
  font-weight: 900; letter-spacing: -0.01em; word-break: keep-all;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 58%, rgba(255,255,255,.65) 0);
  border-radius: 6px; padding: 0 .08em;
}
.hero .sub { margin-top: 24px; max-width: 33em; font-size: 17px; color: rgba(28,28,30,.85); word-break: keep-all; }
.cta { margin: 28px 0 52px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 13px 24px;
  box-shadow: 0 5px 0 #000, 0 16px 24px rgba(110,80,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(3px); box-shadow: 0 2px 0 #000; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge .txt { line-height: 1.15; text-align: left; }
.store-badge .txt small { display: block; font-size: 11px; opacity: .8; }
.store-badge .txt strong { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.cta .note { font-weight: 700; font-size: 13px; color: rgba(28,28,30,.7); }

/* hero demo row: pressable toy shutter + sequence blocks */
.demo { margin-top: 30px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.trywrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bigshut {
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.6) 0 9%, rgba(255,255,255,0) 12%),
    radial-gradient(circle at 35% 35%, var(--yellow) 30%, #e6b800 95%);
  box-shadow: 0 9px 0 var(--yellow-under), 0 24px 22px rgba(0,0,0,.22);
  transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .14s ease;
}
.bigshut:active, .bigshut.press { transform: translateY(7px) scale(.96); box-shadow: 0 2px 0 var(--yellow-under), 0 10px 14px rgba(0,0,0,.2); }
.trywrap .cap { font-family: var(--round); font-weight: 800; font-size: 14px; color: rgba(28,28,30,.75); }
.seq { display: flex; align-items: center; gap: 10px; }
.seq .arr { font-weight: 900; color: rgba(28,28,30,.35); }
.mb {
  display: grid; place-items: center; min-width: 64px; padding: 12px 16px;
  border-radius: 18px; background: #fff; color: rgba(28,28,30,.4);
  font-weight: 800; font-size: 16px; white-space: nowrap;
  box-shadow: 0 5px 0 var(--card-under);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.mb.on { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-under); transform: translateY(-3px); }

.hero .phone-col { position: relative; align-self: end; }
.phone {
  position: relative; width: min(300px, 74vw); margin: 0 auto;
  border-radius: 52px; padding: 12px; background: #18181a;
  box-shadow: 0 10px 0 #000, 0 40px 60px rgba(110,80,0,.4);
}
.phone .island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 84px; height: 25px; border-radius: 14px; background: #030303; z-index: 5; }
.hero .phone { margin-bottom: -64px; }

/* ---------- composed app screen ---------- */
.appscreen {
  position: relative; aspect-ratio: 39 / 84; border-radius: 41px; overflow: hidden;
  background: #000; display: flex; flex-direction: column;
}
.appscreen .band { flex: none; height: 8%; }
.appscreen .pa { flex: none; width: 100%; aspect-ratio: 3 / 4; background: #000; transition: padding .15s ease, background .15s ease; }
.appscreen .pa img { width: 100%; height: 100%; object-fit: cover; }
.appscreen.is-preview .pa { padding: 6px; background: #fff; }
.appscreen .ctrl { flex: 1; display: grid; place-items: center; }
.appscreen .ctrl > * { grid-area: 1 / 1; }
.shut, .xb { width: 23%; aspect-ratio: 1; border-radius: 50%; transition: transform .14s cubic-bezier(.34,1.56,.64,1); }
.shut {
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.6) 0 9%, rgba(255,255,255,0) 12%),
    radial-gradient(circle at 35% 35%, var(--yellow) 30%, #e0b300 95%);
  box-shadow: 0 5px 0 var(--yellow-under), 0 12px 12px rgba(0,0,0,.5);
}
.xb {
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.5) 0 9%, rgba(255,255,255,0) 12%),
    radial-gradient(circle at 35% 35%, var(--red) 30%, #d92a1d 95%);
  box-shadow: 0 5px 0 var(--red-under), 0 12px 12px rgba(0,0,0,.5);
  color: #fff; display: grid; place-items: center;
  font-weight: 900; font-size: clamp(15px, 1.8vw, 22px); line-height: 1;
}
.shut.press, .xb.press { transform: translateY(4px) scale(.9); }
.appscreen .xb { visibility: hidden; }
.appscreen.is-preview .xb { visibility: visible; }
.appscreen.is-preview .shut { visibility: hidden; }
.flashov {
  position: absolute; inset: 0; z-index: 3; background: #fff;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.flashov.on { opacity: 1; transition: opacity 0s; }

.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; white-space: nowrap;
  font-family: var(--round);
  border-radius: 16px; padding: 7px 14px 7px 8px;
  box-shadow: 0 4px 0 var(--card-under), 0 14px 22px rgba(110,80,0,.18);
}
.chip .g {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.35) 0 12%, rgba(255,255,255,0) 16%), var(--blue);
  box-shadow: 0 2px 0 var(--blue-under);
  color: #fff; font-size: 13px; font-weight: 900;
}
.chip.c1 .g { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.4) 0 12%, rgba(255,255,255,0) 16%), var(--yellow); box-shadow: 0 2px 0 var(--yellow-under); color: var(--ink); }
.chip.c3 .g { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.35) 0 12%, rgba(255,255,255,0) 16%), var(--red); box-shadow: 0 2px 0 var(--red-under); }
.chip.c1 { left: -8%;  top: 22%; transform: rotate(-6deg); }
.chip.c2 { right: -10%; top: 36%; transform: rotate(5deg); }
.chip.c3 { left: -4%;  top: 54%; transform: rotate(4deg); }
.chip.c4 { right: -6%; top: 68%; transform: rotate(-5deg); }
@keyframes chippop { 0% { transform: rotate(4deg) scale(1); } 40% { transform: rotate(4deg) scale(1.18); } 100% { transform: rotate(4deg) scale(1); } }
.chip.pop { animation: chippop .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .chip.pop { animation: none; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; letter-spacing: -0.01em; margin: 22px 0 14px; word-break: keep-all; }
section h2 em {
  font-style: normal;
  background: linear-gradient(transparent 58%, rgba(255,214,10,.6) 0);
  border-radius: 6px; padding: 0 .08em;
}
section .lede { color: var(--ink2); max-width: 40em; font-size: 17px; word-break: keep-all; }

/* steps as toy block cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.step {
  position: relative; background: #fff; border-radius: 26px; padding: 26px 24px 24px;
  box-shadow: 0 7px 0 var(--card-under), 0 20px 28px rgba(110,80,0,.08);
}
.step .n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--round); font-weight: 900; font-size: 24px; color: #fff;
  margin-bottom: 16px;
}
.step:nth-child(1) .n {
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.45) 0 11%, rgba(255,255,255,0) 15%), var(--yellow);
  box-shadow: 0 4px 0 var(--yellow-under); color: var(--ink);
}
.step:nth-child(2) .n {
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.4) 0 11%, rgba(255,255,255,0) 15%), var(--red);
  box-shadow: 0 4px 0 var(--red-under);
}
.step:nth-child(3) .n {
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.4) 0 11%, rgba(255,255,255,0) 15%), var(--blue);
  box-shadow: 0 4px 0 var(--blue-under);
}
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink2); font-size: 15px; word-break: keep-all; }
.step .tag {
  position: absolute; top: 26px; right: 22px;
  font-size: 12px; font-weight: 800; color: var(--ink2);
  background: var(--cream); border-radius: 99px; padding: 4px 12px;
}

/* subtraction table as a toy tray */
.cut-table {
  margin-top: 44px; background: #fff; border-radius: 28px; padding: 14px 22px;
  box-shadow: 0 7px 0 var(--card-under), 0 20px 28px rgba(110,80,0,.08);
}
.cut-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 18px; align-items: center;
  padding: 17px 6px; font-size: clamp(16px, 2.2vw, 20px); font-weight: 700;
}
.cut-row + .cut-row { border-top: 2px dashed rgba(28,28,30,.08); }
.cut-row .arrow { color: rgba(28,28,30,.25); font-weight: 900; }
.cut-row .to { color: var(--ink2); display: flex; align-items: center; gap: 10px; }
.cut-row .to::before {
  content: "✕"; display: grid; place-items: center; flex: none;
  width: 1.6em; height: 1.6em; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.4) 0 11%, rgba(255,255,255,0) 15%), var(--red);
  box-shadow: 0 2px 0 var(--red-under);
  color: #fff; font-size: .7em; font-weight: 900;
}
.cut-row .cat { font-size: 12px; font-weight: 700; color: var(--ink2); justify-self: end; text-align: right; }
.cut-row.keep {
  background: var(--yellow); border-radius: 20px; margin: 8px -10px 0;
  padding-left: 16px; padding-right: 16px;
  box-shadow: 0 4px 0 var(--yellow-under);
}
.cut-row.keep + .cut-row, .cut-row.keep { border-top: 0; }
.cut-row.keep .to { color: var(--ink); }
.cut-row.keep .to::before {
  content: ""; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.5) 0 11%, rgba(255,255,255,0) 15%), #fff;
  box-shadow: 0 2px 0 rgba(28,28,30,.25);
}
.cut-row.keep .arrow { color: rgba(28,28,30,.5); }
.cut-row.keep .cat { color: rgba(28,28,30,.65); }

/* ---------- screenshots ---------- */
.shots { background: var(--sky); }
.shots .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 52px; align-items: start; }
.shots .phone { width: 100%; box-shadow: 0 9px 0 #000, 0 34px 44px rgba(22,60,110,.22); }
.shots figcaption {
  width: fit-content; margin: 18px auto 0;
  font-size: 13px; font-weight: 800; color: var(--ink);
  background: #fff; border-radius: 99px; padding: 6px 16px;
  box-shadow: 0 3px 0 rgba(22,60,110,.15);
}
.shots figure:nth-child(2) { transform: translateY(34px); }

/* details as small toy cards */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.feat {
  background: #fff; border-radius: 22px; padding: 22px 20px;
  box-shadow: 0 5px 0 var(--card-under), 0 14px 20px rgba(110,80,0,.06);
}
.feat h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.feat h3::before {
  content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 2px 0 var(--yellow-under);
}
.feat:nth-child(3n+2) h3::before { background: var(--red); box-shadow: 0 2px 0 var(--red-under); }
.feat:nth-child(3n+3) h3::before { background: var(--blue); box-shadow: 0 2px 0 var(--blue-under); }
.feat p { color: var(--ink2); font-size: 14px; word-break: keep-all; }

/* ---------- final cta / footer ---------- */
.final { background: linear-gradient(170deg, var(--yellow), #ffce00); color: var(--ink); text-align: center; }
.final h2 { margin: 0 0 12px; }
.final .lede { color: rgba(28,28,30,.75); margin: 0 auto; }
.final .cta { justify-content: center; margin-bottom: 0; }
.final .cta .note { color: rgba(28,28,30,.7); }

footer { background: #1c1c1e; color: #bdbdbd; padding: 44px 0; font-size: 14px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; }
footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: #bdbdbd; text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; padding-top: 48px; }
  .hero .phone { margin-bottom: -48px; margin-top: 26px; }
  .chip.c1 { left: 0; } .chip.c3 { left: 2%; }
  .chip.c2 { right: 0; } .chip.c4 { right: 1%; }
  .steps, .grid6, .shots .row { grid-template-columns: 1fr; }
  .shots figure:nth-child(2) { transform: none; }
  .demo { gap: 18px; }
  .bigshut { width: 88px; height: 88px; }
  .cut-row { grid-template-columns: 1fr auto 1.2fr; }
  .cut-row .cat { grid-column: 1 / -1; justify-self: start; text-align: left; padding-top: 2px; }
  section { padding: 64px 0; }
  .wordmark span { font-size: 14px; }
}
