/* PeekShield — site styles. Self-hosted fonts, no third-party requests. */

/* Type: Mac visitors get the system font (SF Pro). Apple doesn't license it
   for web embedding, so everyone else gets Inter, a free face drawn in the
   same spirit. Self-hosted: no third-party requests. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --brand: #EE5A2F;
  --brand-text: #B83C15;
  --brand-soft: #FDECE5;
  --ink: #1C1B22;
  --paper: #FFF7EF;

  --ground: #F3F3F5;
  --surface: #FFFFFF;
  --text: #1C1B22;
  --text-2: #5E5D67;
  --line: #E3E2E8;
  --sunk: #ECEBEF;

  --bubble-in: #FFFFFF;
  --bubble-out: #FFE3D8;

  --display: -apple-system, BlinkMacSystemFont, "Inter Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-text: #FF8C66;
    --brand-soft: #3A2019;
    --ground: #121116;
    --surface: #1B1A20;
    --text: #EEEDF1;
    --text-2: #A09EA9;
    --line: #2B2A31;
    --sunk: #17161B;
    --bubble-in: #2A2930;
    --bubble-out: #4A2A1F;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 var(--body);
  font-feature-settings: "cv05", "cv08";   /* Inter: open 'l', SF-like 'R'; SF ignores these */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

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

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 .4em;
  font: 500 .78em/1.7 var(--body);
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  vertical-align: .08em;
}

code {
  font: .85em var(--mono);
  padding: .1em .35em;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 4px;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}

main, .nav, .foot {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Nav ───────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.store-btn.big { padding: 12px 20px; font-size: 16px; }

.store-btn.is-pending {
  color: var(--text-2);
  background: transparent;
  border: 1px dashed var(--line);
  cursor: default;
}

@media (prefers-color-scheme: dark) {
  .store-btn:not(.is-pending) { color: var(--ink); background: var(--paper); }
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px);
}

/* Quiet "there's more" cue under the hero */
.more {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 8px;
}

.more:hover { color: var(--text); }

.more svg {
  width: 16px;
  height: 16px;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(3px); }
}

h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.05;
  margin-bottom: 24px;
}

/* The headline's one idea: the key word is blurred exactly the way the
   extension blurs a message. Hover, focus or tap clears it. It's real text,
   so screen readers and search engines read it normally. */
.veil {
  display: inline-block;
  filter: blur(0.095em);
  transition: filter .35s ease;
  cursor: help;
  outline: none;
  border-radius: 6px;
}

.veil:hover,
.veil:focus-visible {
  filter: none;
}

.veil:focus-visible { box-shadow: 0 4px 0 -1px var(--brand); }

.lede {
  max-width: 34em;
  margin: 0 0 32px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.text-link {
  font-weight: 600;
  font-size: 16px;
}

.hero-meta {
  margin: 22px 0 0;
  font: 13px/1.4 var(--mono);
  color: var(--text-2);
}

/* ── Demo ──────────────────────────────────────────── */

.demo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(28, 27, 34, .35);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

.demo-url {
  flex: 1;
  min-width: 0;
  padding: 4px 10px;
  font: 12px/1.4 var(--mono);
  color: var(--text-2);
  background: var(--sunk);
  border-radius: 6px;
}

.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  font: 600 12px/1 var(--body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
}

.demo-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.demo[data-on="false"] .demo-toggle-dot { background: var(--line); }

.demo-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  min-height: 320px;
}

.demo-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  border-right: 1px solid var(--line);
}

.demo-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
}

.demo-list li.is-active { background: var(--sunk); }

.av {
  grid-row: span 2;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--b));
}

.who { font-size: 13px; font-weight: 600; line-height: 1.35; }
.prev { font-size: 12px; color: var(--text-2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.demo-thread {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  background: var(--sunk);
}

.msg {
  margin: 0;
  max-width: 82%;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 11px;
}

.msg.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 3px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 3px; }

.msg.photo { padding: 4px; width: 58%; }
.msg.photo span {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 30%, #FFE7A8 0 9%, transparent 10%),
    linear-gradient(170deg, #9FC3E6 0 48%, #6E9D78 49% 70%, #4E7A5A 71%);
}

/* The blur: same idea and similar strengths as the extension. */
.demo[data-on="true"] .av,
.demo[data-on="true"] .who,
.demo[data-on="true"] .prev,
.demo[data-on="true"] .msg {
  filter: blur(5px);
  transition: filter .25s ease;
}

.demo[data-on="true"] .av { filter: blur(4px); }
.demo[data-on="true"] .msg.photo { filter: blur(9px); }

.demo[data-on="true"] .demo-list li:hover > *,
.demo[data-on="true"] .msg:hover {
  filter: none;
}

.demo figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  border-top: 1px solid var(--line);
}

/* ── Sections ──────────────────────────────────────── */

.section {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--text-2); }

.fine {
  max-width: 44em;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--text-2);
}

/* Where it helps */
.moments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.moment {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.moment .where {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-text);
}

.moment h3 {
  margin: 0;
  font: 600 21px/1.25 var(--display);
  letter-spacing: -0.015em;
}

.moment > p:not(.where):not(.helps) {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

.helps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-2);
}

.helps span {
  padding: 2px 9px;
  font-weight: 500;
  color: var(--text);
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 99px;
}

/* Apps */
.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.apps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 500;
  font-size: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.apps li em { margin-left: auto; }

.apps em, .fine em {
  font: 500 12px var(--mono);
  font-style: normal;
  color: var(--text-2);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--app);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 16%, transparent);
}

/* Controls */
.controls {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.shot img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -30px rgba(28, 27, 34, .4);
}

.controls-copy > p { margin: 0 0 28px; color: var(--text-2); max-width: 36em; }

.specs { margin: 0; display: grid; gap: 0; }

.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.specs dt { font-weight: 600; }
.dt-note { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-2); }
.specs dd { margin: 0; color: var(--text-2); }

.badge-off {
  display: inline-block;
  padding: 0 5px;
  font: 600 11px/1.6 var(--body);
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .badge-off { box-shadow: 0 0 0 1px var(--line); }
}

/* Video */
.video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--sunk);
  box-shadow: 0 24px 48px -30px rgba(28, 27, 34, .4);
}

/* Privacy */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.fact b {
  font: 600 52px/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--brand-text);
}

.fact span { color: var(--text-2); font-size: 15px; }

/* Review ask */
.review {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.review p {
  margin: 0 0 8px;
  max-width: 46em;
  color: var(--text-2);
}

/* FAQ */
.faq-list { max-width: 48em; border-bottom: 1px solid var(--line); }

.faq details { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font: 400 22px/1 var(--mono);
  color: var(--text-2);
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p:last-child { margin-bottom: 22px; }
.faq details strong { color: var(--text); font-weight: 600; }

.faq details p {
  margin: -4px 0 14px;
  max-width: 42em;
  color: var(--text-2);
}

/* ── Footer ────────────────────────────────────────── */

.foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 32px;
  align-items: center;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.foot-links { display: flex; flex-wrap: wrap; gap: 20px; justify-self: end; }
.foot-links a { color: var(--text-2); }


/* ── Small screens ─────────────────────────────────── */

/* Short laptop screens (e.g. 1366×768): keep the hero compact enough that
   the app strip starts above the fold and gets cut by it. */
@media (min-width: 881px) and (max-height: 820px) {
  .nav { padding-block: 14px; }
  .hero { padding-block: 12px 32px; row-gap: 20px; }
  h1 { font-size: clamp(40px, 4.6vw, 56px); margin-bottom: 18px; }
  .lede { margin-bottom: 24px; }
  .hero-meta { margin-top: 16px; }
  .demo-body { min-height: 270px; }
  .demo-list li { padding-block: 7px; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .shot { max-width: 340px; }
  .facts { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .store-btn:not(.big) { margin-left: auto; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
