/* ------------------------------------------------------------------
   SocialCanon marketing — tokens
   ------------------------------------------------------------------ */
:root {
  /* Brand palette */
  --night-bordeaux: #3e000c;
  --strawberry-red: #fb4b4e;
  --pastel-petal:   #ffcbdd;
  --dark-amaranth:  #7c0b2b;
  --brick-ember:    #d10000;

  /* Semantic */
  --ink:      var(--night-bordeaux);
  --muted:    #7a5c63;
  --faint:    #a98f95;
  --line:     #f1dde3;
  --bg:       #ffffff;
  --bg-soft:  #fff7f9;
  --accent:   var(--strawberry-red);
  --accent-2: var(--brick-ember);
  --brand-tile: #cc0029; /* tile colour from the app's brand kit */

  --radius: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(62, 0, 12, .06), 0 1px 3px rgba(62, 0, 12, .04);
  --shadow-md: 0 8px 24px rgba(62, 0, 12, .08), 0 2px 6px rgba(62, 0, 12, .05);
  --shadow-lg: 0 24px 60px rgba(62, 0, 12, .14), 0 6px 16px rgba(62, 0, 12, .06);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1120px;
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--dark-amaranth); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(251, 75, 78, .3); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 4px 16px rgba(209, 0, 0, .3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--pastel-petal); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--pastel-petal); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

.link { color: var(--ink); font-weight: 500; font-size: 14px; }
.link:hover { color: var(--accent); }

/* ------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links .link { display: none; }
@media (min-width: 640px) { .nav-links .link { display: inline; } }

/* Logo — mirrors the app's brand kit (see /brand): cannon mark on a #cc0029 tile */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-tile {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--brand-tile); color: #fff;
}
.logo-tile svg { width: 26px; height: 26px; }
.logo-word { font-family: "Instrument Sans", var(--font); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.logo-word span { color: #18181b; }
.logo-word b { font-weight: 600; color: var(--brand-tile); }

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero { padding: 88px 0 32px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 203, 221, .55), transparent 70%),
    radial-gradient(30% 30% at 20% 20%, rgba(251, 75, 78, .10), transparent 70%),
    radial-gradient(30% 30% at 80% 20%, rgba(124, 11, 43, .08), transparent 70%);
  pointer-events: none; z-index: -1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow .dot { width: 18px; height: 18px; border-radius: 999px; background: var(--accent); display: grid; place-items: center; }
.eyebrow .dot svg { width: 11px; height: 11px; }
.eyebrow strong { color: var(--ink); font-weight: 600; }

.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.02; margin: 0 auto 20px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 auto 32px; line-height: 1.55; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 72px; }

/* ------------------------------------------------------------------
   Product mockup in gradient frame
   ------------------------------------------------------------------ */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: linear-gradient(135deg, var(--night-bordeaux) 0%, var(--dark-amaranth) 30%, var(--strawberry-red) 65%, var(--pastel-petal) 100%);
  box-shadow: var(--shadow-lg);
  max-width: 980px; margin: 0 auto;
  text-align: left;
}
.frame-tabs {
  display: flex; gap: 4px; padding: 4px; margin: 0 auto 14px;
  width: max-content; max-width: 100%;
  background: rgba(255, 255, 255, .14); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
}
.frame-tabs::-webkit-scrollbar { display: none; }
.frame-tabs span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .85); white-space: nowrap;
}
.frame-tabs span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .6); }
.frame-tabs span.active { background: #fff; color: var(--ink); }
.frame-tabs span.active::before { border-color: var(--accent); background: var(--accent); }

.app { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(62, 0, 12, .08); }
.app-bar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbf7f8; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 999px; background: #e6d3d9; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.app-url { font-size: 11.5px; color: var(--faint); }

.app-body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.app-side { border-right: 1px solid var(--line); padding: 16px 12px; background: #fdfafb; font-size: 12.5px; }
.app-side h5 { margin: 0 0 8px; padding: 0 8px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.app-side ul + h5 { margin-top: 18px; }
.app-side li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--muted); font-weight: 500; }
.app-side li.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.app-side li .count { margin-left: auto; font-size: 11px; color: var(--faint); font-weight: 400; }
.avatar { width: 18px; height: 18px; border-radius: 999px; flex: none; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; }
.av-1 { background: var(--dark-amaranth); } .av-2 { background: var(--strawberry-red); } .av-3 { background: #b8324f; } .av-4 { background: var(--night-bordeaux); }

.app-main { padding: 20px 22px; }
.app-main h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.composer { display: grid; grid-template-columns: 120px 1fr; gap: 16px; margin-bottom: 18px; }
.pin-img {
  aspect-ratio: 2 / 3; border-radius: 10px;
  background: linear-gradient(160deg, var(--pastel-petal), var(--strawberry-red) 70%, var(--dark-amaranth));
  position: relative; overflow: hidden;
}
.pin-img::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 14%; height: 34%; border-radius: 8px; background: rgba(255, 255, 255, .28); }
.fields { display: flex; flex-direction: column; gap: 8px; }
.field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--ink); background: #fff; }
.field.ph { color: var(--faint); }
.field.tall { flex: 1; min-height: 56px; color: var(--muted); }
.label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 6px 0 8px; }
.targets { display: grid; gap: 6px; margin-bottom: 14px; }
.target { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
.target.on { border-color: var(--pastel-petal); background: var(--bg-soft); }
.target .cb { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #d9c2c9; flex: none; display: grid; place-items: center; }
.target.on .cb { background: var(--accent); border-color: var(--accent); }
.target.on .cb::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.target .board { margin-left: auto; color: var(--faint); font-size: 11.5px; }
.target .board b { color: var(--muted); font-weight: 500; }
.app-actions { display: flex; align-items: center; gap: 12px; }
.app-actions .btn { padding: 9px 14px; font-size: 12.5px; }
.app-actions .when { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2, .split h2 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.section-head p, .split p { color: var(--muted); font-size: 16.5px; margin-top: 16px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature .icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--accent);
  margin-bottom: 16px;
}
.feature .icon svg { width: 18px; height: 18px; }
.feature h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 120px; }
.split.reverse .split-copy { order: 2; }
.split-copy p { max-width: 460px; }
.split-copy .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; }
.split-visual { display: grid; place-items: center; }

/* Fan-out diagram */
.fanout { width: 100%; max-width: 520px; height: auto; }
.fanout text { font-family: var(--font); }

/* Channel chips */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 440px; }
.chip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 500; color: var(--faint);
}
.chip .ci { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #f6eef1; color: #c9b0b8; flex: none; }
.chip .ci svg { width: 16px; height: 16px; }
.chip .tag { margin-left: auto; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.chip.live { color: var(--ink); border-color: var(--pastel-petal); box-shadow: var(--shadow-md); grid-column: 1 / -1; }
.chip.live .ci { background: #e60023; color: #fff; }
.chip.live .tag { color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 999px; }

/* Dark section */
.dark {
  background: var(--night-bordeaux); color: #fff; position: relative; overflow: hidden;
}
.dark::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000 30%, transparent 100%);
}
.dark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 55% at 50% 60%, rgba(251, 75, 78, .28), transparent 70%);
}
.dark .container { position: relative; z-index: 1; }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: rgba(255, 255, 255, .7); }
.dark .features { max-width: 900px; margin: 0 auto; }
.dark .feature .icon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--pastel-petal); }
.dark .feature h3 { color: #fff; }
.dark .feature p { color: rgba(255, 255, 255, .68); }

/* CTA */
.cta { text-align: center; padding: 120px 0; }
.cta h2 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.035em; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 16.5px; margin-bottom: 32px; }
.cta .hero-cta { margin-bottom: 0; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 13.5px; max-width: 300px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { margin: 0 0 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.footer-col li + li { margin-top: 8px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* ------------------------------------------------------------------
   Inner pages (About / Privacy / Terms)
   ------------------------------------------------------------------ */
.page { padding: 72px 0 96px; }
.page-head { max-width: 680px; margin-bottom: 48px; }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px; }
.page-head p { color: var(--muted); font-size: 17px; }
.page-head .meta { font-size: 13px; color: var(--faint); margin-top: 10px; }
.prose { max-width: 680px; }
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p { color: #5a4249; font-size: 15.5px; line-height: 1.65; margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose li { color: #5a4249; font-size: 15.5px; line-height: 1.65; margin-bottom: 6px; }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { color: var(--accent-2); }
.prose strong { color: var(--ink); }

/* About: values grid */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.value { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.value h3 { font-size: 15.5px; margin-bottom: 8px; }
.value p { font-size: 14px; color: var(--muted); margin: 0; }

/* 404 */
.notfound { text-align: center; padding: 140px 0; }
.notfound .code { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { gap: 40px; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .hero-cta { margin-bottom: 48px; }
  .frame { padding: 10px; border-radius: 18px; }
  .frame-tabs { justify-content: flex-start; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .composer { grid-template-columns: 96px 1fr; }
  .section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .split + .split { margin-top: 80px; }
  .cta { padding: 80px 0; }
  .footer-cols { gap: 36px; }
}
@media (max-width: 420px) {
  .eyebrow .eyebrow-more { display: none; }
  .channels { grid-template-columns: 1fr; }
  .target .board { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .arrow { transition: none; }
}
