/* Likogram marketing site. Colours mirror Sources/Views/Theme.swift so the
   page reads as the same product as the app: near-black ground, hot-pink
   accent, white type, big rounded photo cards. */
:root {
  --bg: #0d0d0f;
  --surface: #1c1c21;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --accent: #ff2e78;
  --accent-soft: rgba(255, 46, 120, 0.14);
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
header img { width: 32px; height: 32px; border-radius: 8px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
header nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; color: var(--muted); white-space: nowrap; }
header nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  /* Vertical only — the shorthand form clobbered .wrap's side padding and
     pinned the headline to the viewport edge. */
  padding-top: 72px; padding-bottom: 40px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 20px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .phone {
  justify-self: center; width: min(320px, 66vw);
  border-radius: 40px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--line);
  overflow: hidden; background: var(--surface);
}
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Apple's own badge artwork (assets/appstore-badge.svg), per the App Store
   marketing guidelines — a hand-drawn imitation with a traced logo is outside
   the badge licence. Sized by height so it stays crisp at any density. */
.appstore { display: inline-block; line-height: 0; transition: transform .15s ease; }
.appstore img { height: 52px; width: auto; }
.appstore:hover { transform: translateY(-1px); }

.ghost {
  display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px;
}
.ghost:hover { border-color: rgba(255,255,255,0.3); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 8px; font-weight: 800; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 52ch; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line); }
.step .n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card .e { font-size: 28px; display: block; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent 60%); }
.mode h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.mode span { color: var(--muted); font-size: 15px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; justify-items: center; }
.shots figure { margin: 0; width: 100%; max-width: 260px; }
.shots img { border-radius: 26px; box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px var(--line); }
.shots figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 12px; }

/* closing cta */
.closing { text-align: center; padding: 72px 0; }
.closing h2 { margin-bottom: 20px; }
.closing .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a:hover { color: var(--text); }
footer .spacer { flex: 1; }
footer .legal { flex-basis: 100%; margin: 14px 0 0; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ---------- legal / support pages ---------- */
.doc { max-width: 720px; padding: 56px 24px 80px; margin: 0 auto; }
.doc h1 { font-size: 36px; letter-spacing: -0.03em; margin: 0 0 8px; }
.doc .lede { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: rgba(255,255,255,0.8); }
.doc a { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; gap: 36px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .grid, .modes { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 700px) {
  /* Three short cards read better stacked than as two-plus-an-orphan. */
  .steps, .modes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  header nav { gap: 14px; font-size: 14px; }
  footer .wrap { justify-content: center; text-align: center; }
  footer .spacer { flex-basis: 100%; }
  .shots { grid-template-columns: 1fr; gap: 24px; max-width: 300px; }
  .shots img { border-radius: 26px; }
}
@media (max-width: 440px) {
  /* Brand + three links overflow a 60px bar on iPhone widths; the anchor to
     "How it works" is one scroll away anyway. */
  header nav a.long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .appstore { transition: none; }
}
