/* Wendmark — public site
   Warm, memory-evoking, expressive. Sunset orange accent, generous radii,
   Liquid-Glass-inspired surfaces, per-category palette as feature cues.
   Light + dark, both first-class. Grounded in Branding/brand-kit.md. */

:root {
  /* Brand */
  --accent:       #E8743B;       /* sunset orange — Tokens.accent */
  --accent-deep:  #C2541E;
  --accent-soft:  rgba(232, 116, 59, 0.12);

  /* Per-category palette (fixed semantics) */
  --cat-restaurant: #F0A03B;
  --cat-travel:     #2E8B8B;
  --cat-stadium:    #3E8E5E;
  --cat-friend:     #D9637D;
  --cat-other:      #6B7280;

  /* Light surfaces */
  --bg:           #FBF7F2;
  --bg-elev:      #FFFFFF;
  --bg-warm:      #F4ECE2;
  --border:       rgba(26, 20, 16, 0.08);
  --border-strong:rgba(26, 20, 16, 0.16);

  /* Light ink */
  --ink:          #1A1410;
  --ink-soft:     #5C4D44;
  --ink-mute:     #8A7B70;

  /* Generous radii (Wendmark is "the most maximal app in the portfolio") */
  --r-tight:  10px;
  --r-card:   20px;
  --r-hero:   28px;
  --r-sheet:  34px;
  --r-pill:   999px;

  /* Type — system SF Pro (NOT rounded, NOT mono). Warmth from color + motion. */
  --font:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    "Inter",
    "Segoe UI",
    Roboto,
    sans-serif;

  --shadow-card: 0 1px 2px rgba(26, 20, 16, 0.04), 0 12px 32px rgba(26, 20, 16, 0.08);
  --shadow-hero: 0 24px 64px rgba(232, 116, 59, 0.18), 0 4px 12px rgba(26, 20, 16, 0.08);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0F0B08;
    --bg-elev:      #1A140F;
    --bg-warm:      #221912;
    --border:       rgba(255, 240, 220, 0.10);
    --border-strong:rgba(255, 240, 220, 0.20);

    --ink:          #FBF1E5;
    --ink-soft:     #C9B8A8;
    --ink-mute:     #91826F;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-hero: 0 24px 64px rgba(232, 116, 59, 0.30), 0 6px 16px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
a:hover { color: var(--accent-deep); }

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

/* ---- Layout ---- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.brand .wordmark {
  letter-spacing: 0.04em;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }
.nav .pill {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: var(--r-pill);
}
.nav .pill:hover { background: var(--accent); color: white; }
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav a:not(.pill) { display: none; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 88px 0 32px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -160px 0 auto 0;
  height: 780px;
  background:
    radial-gradient(900px 540px at 25% 0%,  rgba(232, 116, 59, 0.28), transparent 60%),
    radial-gradient(800px 480px at 80% 10%, rgba(240, 160, 59, 0.16), transparent 60%),
    radial-gradient(1100px 580px at 50% 30%, rgba(46, 139, 139, 0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0 0 22px 0;
  max-width: 880px;
}
.hero h1 .accent { color: var(--accent); }

.hero .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 32px 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms ease, background 200ms ease;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-hero);
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: white;
}
.btn-ghost {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-warm);
}

/* Hero art (Mac shot with Liquid Glass-ish frame) */
.hero-art {
  margin-top: 56px;
  position: relative;
  border-radius: var(--r-hero);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: linear-gradient(135deg, rgba(232, 116, 59, 0.10), rgba(46, 139, 139, 0.08));
  padding: 6px;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-art img {
  display: block;
  width: 100%;
  border-radius: calc(var(--r-hero) - 6px);
}
.hero-art:hover { transform: translateY(-4px) rotate(-0.3deg); }

/* ---- Section head ---- */

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 14px 0;
}
.section-head p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Feature list (numbered, generous) ---- */

.features {
  display: grid;
  gap: 20px;
}
.feature {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 26px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform 250ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 250ms ease;
}
.feature:hover {
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
}
.feature .num {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.feature h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px 0;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---- Categories showcase ---- */

.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .categories { grid-template-columns: 1fr; } }

.cat-card {
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  position: relative;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--cat);
}
.cat-card .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cat);
  margin-bottom: 14px;
  box-shadow: 0 4px 12px var(--cat-glow);
}
.cat-card.restaurant { --cat: var(--cat-restaurant); --cat-glow: rgba(240, 160, 59, 0.40); }
.cat-card.travel     { --cat: var(--cat-travel);     --cat-glow: rgba(46, 139, 139, 0.40); }
.cat-card.stadium    { --cat: var(--cat-stadium);    --cat-glow: rgba(62, 142, 94, 0.40); }
.cat-card.friend     { --cat: var(--cat-friend);     --cat-glow: rgba(217, 99, 125, 0.40); }
.cat-card.other      { --cat: var(--cat-other);      --cat-glow: rgba(107, 114, 128, 0.40); }
.cat-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cat-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---- Screenshot strip ---- */

.shots-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 20px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-strip::-webkit-scrollbar { height: 8px; }
.shots-strip::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.shot {
  flex: 0 0 auto;
  width: 720px;
  scroll-snap-align: center;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.shot img { display: block; width: 100%; height: auto; }
@media (max-width: 820px) { .shot { width: 540px; } }
@media (max-width: 560px) { .shot { width: 320px; } }

/* ---- Don't list ---- */

.dont-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}
@media (max-width: 720px) { .dont-list { grid-template-columns: 1fr; } }

.dont-item {
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.dont-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dont-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---- Final CTA card ---- */

.final-cta {
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(232, 116, 59, 0.22), transparent 60%),
    var(--bg-warm);
  border-radius: var(--r-sheet);
  padding: 72px 28px;
  border: 1px solid var(--border);
}
.final-cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 0 0 12px 0;
}
.final-cta p {
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 26px;
}

/* ---- Footer ---- */

.site-footer {
  padding: 56px 0 72px;
  border-top: 1px solid var(--border);
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-top: 56px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
@media (max-width: 560px) {
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; }
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 560px) { .footer-links { justify-content: center; } }
.footer-links a { color: var(--ink-soft); font-weight: 600; }
.footer-links a:hover { color: var(--ink); }

/* ---- Content pages ---- */

.page-hero {
  padding: 64px 0 32px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(232, 116, 59, 0.14), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 0 0 8px 0;
}
.page-hero .meta {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin: 0;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.prose section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px 0;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.prose h2 .num {
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 6px 0;
}
.prose p, .prose ul {
  color: var(--ink-soft);
  margin: 0 0 14px 0;
}
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { color: var(--ink); font-style: italic; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-warm);
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.faq-item {
  margin: 14px 0;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-tight);
}
.faq-item h3 { margin-top: 0; }

/* ---- Accessibility ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-art:hover { transform: none; }
}

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