/* findthebluffer.com – the website for the Imposter app.
   Colours and type follow the app (ios/Imposter/Theme/Palette.swift, AppFont.swift).
   /assets/BricolageGrotesque.413e735780.ttf is replaced with the versioned font address by tools/sitegen/assets.py. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/BricolageGrotesque.413e735780.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --cobalt: #2333b8;
  --cobalt-light: #2d3fd0;
  --deep: #141c6b;
  --deeper: #0e1452;
  --paper: #fff2d1;
  --ink: #10164a;
  --sun: #ffd23f;
  --haze: #b9c1f6;
  --line: rgba(255, 242, 209, 0.14);
  --radius: 22px;
  --shadow: 0 18px 50px rgba(7, 10, 50, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cobalt);
  color: var(--paper);
  font-family: "Bricolage", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sun); }
a:hover { color: #ffe27a; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .h3 { line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3, .h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--haze); }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--haze); max-width: 46em; }
.lead.small { font-size: 1.15rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 10px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* Icons */
.ic { width: 24px; height: 24px; flex: none; }
.ic.inline { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.tile {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sun);
  color: var(--ink);
  margin-bottom: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}
.tile .ic { width: 26px; height: 26px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(35, 51, 184, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.brand img { border-radius: 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a, .langs a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.main-nav a:hover, .langs a:hover { background: rgba(255, 255, 255, 0.1); }
.main-nav a[aria-current="page"] { background: var(--deep); }
.langs { display: flex; gap: 2px; }
.langs a { color: var(--haze); padding: 6px 10px; font-size: 0.9rem; }
.langs a[aria-current="true"] { background: var(--deep); color: var(--paper); }

.mobile-menu { display: none; margin-left: auto; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 12px; color: var(--paper); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { background: var(--deep); }
.mobile-panel {
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 230px;
  background: var(--deep);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: grid;
}
.mobile-panel a { color: var(--paper); text-decoration: none; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.mobile-panel a:hover { background: rgba(255, 255, 255, 0.08); }
.mobile-panel .langs { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.mobile-panel .langs a { padding: 8px 14px; }
.mobile-panel .langs a[aria-current="true"] { background: var(--cobalt); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 22px; font-size: 0.92rem; color: var(--haze); }
.crumbs a { color: var(--haze); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.crumbs .sep { width: 14px; height: 14px; opacity: 0.6; }

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 18px;
  border: 0;
  box-shadow: 0 5px 0 var(--deeper);
  cursor: pointer;
}
.button:hover { color: var(--ink); transform: translateY(-1px); }
.button[aria-disabled="true"] { cursor: default; transform: none; }
.button.small { font-size: 0.95rem; padding: 9px 16px; border-radius: 12px; box-shadow: none; }
.link { background: none; border: 0; color: var(--haze); font: inherit; cursor: pointer; text-decoration: underline; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; margin-top: 18px; }
.more .ic { width: 20px; height: 20px; transition: transform 0.15s; }
.more:hover .ic { transform: translateX(3px); }
.cta { margin-top: 30px; }
.note { color: var(--haze); font-size: 0.98rem; margin-top: 14px; }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 6.4rem); line-height: 0.95; letter-spacing: -0.045em; }
.hero h1 span { display: block; color: var(--sun); }
.hero .lead { margin-top: 26px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 210, 63, 0.22), transparent 62%);
  z-index: 0;
}

/* Phone frame around screenshots */
.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  padding: 11px;
  border-radius: 46px;
  background: #0b1048;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  justify-self: center;
}
.phone img { border-radius: 36px; width: 100%; }

/* Sections */
.band { padding: 64px 0; }
.band.alt { background: var(--deep); }
.band:not(.alt) + .band:not(.alt) { padding-top: 0; }
.band h2 + .lead { margin-top: -6px; margin-bottom: 30px; }
.page-head { padding: 34px 20px 24px; }
.page-head .lead { margin-bottom: 8px; }
.eyebrow { color: var(--sun); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.final { padding: 70px 0 80px; text-align: center; }
.final h2 { color: var(--sun); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.final .cta { margin-top: 18px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

/* Grids and cards */
.grid { display: grid; gap: 20px; margin-top: 30px; }
ul.grid, ol.grid { padding-left: 0; padding-right: 0; list-style: none; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  background: var(--deep);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}
.band.alt .card { background: var(--cobalt); }
.card p { color: var(--haze); margin-bottom: 0; }
.card p + p { margin-top: 10px; }
a.card { text-decoration: none; color: var(--paper); transition: transform 0.15s, border-color 0.15s; }
a.card:hover { transform: translateY(-3px); border-color: rgba(255, 210, 63, 0.6); }
.card.highlight { background: var(--paper); color: var(--ink); }
.card.highlight p { color: #3b4180; }

.step { padding-top: 34px; }
.step-number {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 242, 209, 0.12);
  line-height: 1;
}

.mode-card .badge { margin-top: 16px; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 242, 209, 0.12);
  color: var(--paper);
}
.badge.free { background: rgba(124, 230, 160, 0.18); color: #a6f0c0; }
.badge.soon { background: var(--sun); color: var(--ink); margin-bottom: 10px; }
.badge.best { position: absolute; top: -12px; right: 20px; background: var(--sun); color: var(--ink); }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ic { color: var(--sun); width: 22px; height: 22px; margin-top: 3px; }
.checks.columns { grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.plain { padding-left: 1.1em; color: var(--haze); }
.plain li { margin-bottom: 8px; }
.numbered { counter-reset: step; list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 16px; }
.numbered li { counter-increment: step; position: relative; padding-left: 52px; color: var(--paper); }
.numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.tips { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 12px; }
.tips li { display: flex; gap: 12px; color: var(--haze); }
.tips .ic { color: var(--sun); margin-top: 2px; }

/* Category chips and word lists */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--line);
}
.band:not(.alt) .chip { background: var(--deep); }
.chip .ic { width: 18px; height: 18px; color: var(--sun); }
.chip:hover { border-color: var(--sun); color: var(--paper); }
.words { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.word { background: var(--paper); color: var(--ink); font-weight: 700; padding: 8px 14px; border-radius: 12px; }
.category-card .meta { margin-top: 14px; color: var(--haze); font-size: 0.95rem; display: flex; gap: 10px; align-items: center; }

/* Pricing */
.mini-plans { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.mini-plan { background: var(--cobalt); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; min-width: 200px; }
.mini-plan span { display: block; color: var(--haze); font-size: 0.95rem; }
.mini-plan strong { font-size: 1.6rem; }
.mini-plan.best { background: var(--sun); color: var(--ink); }
.mini-plan.best span { color: var(--ink); }
.plans { align-items: start; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--paper); margin: 4px 0 6px; }
.plan.best { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan.best .price { color: var(--ink); }
.plan.best .checks .ic { color: var(--cobalt); }
.price-list { list-style: none; padding: 0; margin: 10px 0 0; }
.price-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list .ic { width: 20px; height: 20px; color: var(--sun); }
.price-list span { flex: 1; }
.price-list a { color: var(--paper); text-decoration: none; }
.price-list a:hover { color: var(--sun); }
.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 600;
}

/* Screenshot gallery */
.shots {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px max(20px, calc((100vw - 1080px) / 2)) 30px;
  scroll-snap-type: x mandatory;
}
.shots .phone { flex: none; width: 250px; scroll-snap-align: center; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 20px; }
.faq details { background: var(--deep); border-radius: 18px; border: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { transition: transform 0.2s; color: var(--sun); }
.faq details[open] .chev { transform: rotate(90deg); }
.faq details p { padding: 0 24px 20px; color: var(--haze); margin: 0; }

/* Text pages */
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--haze); }
.prose strong { color: var(--paper); }
.rule { border-top: 1px solid var(--line); padding-top: 6px; }
.contact { display: flex; gap: 20px; align-items: flex-start; margin-top: 30px; }
.contact .tile { margin: 0; }
.soon-card { display: flex; gap: 24px; align-items: flex-start; }
.soon-card .tile { margin: 0; }

/* Join page and 404 */
.join { text-align: center; padding: 60px 20px 80px; }
.join .code { font-size: 3.4rem; font-weight: 800; letter-spacing: 0.12em; color: var(--sun); margin: 10px 0 20px; }

/* Language suggestion */
.lang-offer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: max-content;
  max-width: calc(100vw - 32px);
  font-size: 0.98rem;
}
.lang-offer[hidden] { display: none; }
.lang-offer .link { color: var(--ink); }

/* Footer */
.site-footer { background: var(--deeper); padding: 56px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-about p { color: var(--haze); max-width: 30em; margin-top: 16px; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--haze); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; color: var(--haze); font-size: 0.92rem; }

/* Smaller screens */
@media (max-width: 1020px) {
  .main-nav, .header-row > .langs { display: none; }
  .mobile-menu { display: block; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .hero-visual { margin-top: 10px; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .checks.columns { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .band { padding: 48px 0; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .header-row { height: 64px; }
  .button { width: 100%; justify-content: center; }
  .button.small { width: auto; }
  .lang-offer { flex-wrap: wrap; justify-content: center; }
}

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