/* NoteMyPoint marketing site — tokens and components per docs/design/branding-guide.md */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/marketing/fonts/inter-var-latin.woff2") format("woff2-variations"), url("/marketing/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #E0322E;
  --red-dark: #B32421;
  --red-tint: #FDEEED;
  --ink: #232323;
  --ink-soft: #55524e;
  --muted: #8a857e;
  --paper: #faf9f7;
  --card: #ffffff;
  --line: #e8e4de;
  --ok: #3f8f4a;
  --warn: #b97f1f;
  --info: #3b6fa0;
  --code-bg: #2b2725;
  --code-ink: #f0ede9;
  --shadow: 0 12px 32px rgba(35, 35, 35, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: 56px; font-weight: 700; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }

p.lead { font-size: 20px; color: var(--ink-soft); }

.mono, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav .brand img { height: 32px; display: block; }
.nav .links { display: flex; gap: 28px; margin-left: auto; }
.nav .links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav .links a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; border-radius: 8px; padding: 12px 26px;
  font-weight: 600; font-size: 16px; line-height: 1.3; border: 0; cursor: pointer;
  white-space: nowrap;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); text-decoration: none; }
.btn.secondary { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn.secondary:hover { border-color: var(--muted); text-decoration: none; }
.btn.small { padding: 8px 18px; font-size: 14px; }
/* `.nav .links a` (0-2-1) out-specifies `.btn.primary` (0-2-0), so the header CTA's
   label rendered dark on red. Restore white on primary buttons wherever they sit. */
.nav .links a.btn.primary { color: #fff; }
.nav .links a.btn.primary:hover { color: #fff; }

/* ---------- Sections ---------- */

section { padding: 104px 0; }
section.tight { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red-dark); background: var(--red-tint);
  border-radius: 99px; padding: 3px 12px; margin-bottom: 16px;
}
.section-head p { margin-top: 14px; color: var(--ink-soft); }

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

.hero { padding: 96px 0 88px; text-align: center; }
.hero h1 { max-width: 820px; margin: 0 auto 20px; }
.hero .lead { max-width: 700px; margin: 0 auto 32px; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; }
.hero .facts { color: var(--muted); font-size: 14px; }
.hero .facts span { margin: 0 10px; }
.hero-shot { margin-top: 64px; }

/* ---------- Code exhibit ---------- */

.snippet {
  display: block; background: var(--code-bg); color: var(--code-ink);
  border-radius: 10px; padding: 18px 22px; overflow-x: auto;
  font-size: 15px; line-height: 1.5; text-align: left;
}
.snippet .tok { color: #e8887c; }
.snippet .attr { color: #f0c987; }

/* ---------- Browser-framed screengrabs ---------- */

.shot {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.shot .bar {
  background: #f0ede9; border-bottom: 1px solid var(--line);
  padding: 10px 14px; display: flex; align-items: center; gap: 6px;
}
.shot .dot { width: 10px; height: 10px; border-radius: 50%; background: #d5d0c9; flex: none; }
.shot .url {
  margin-left: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; font-size: 12px; color: var(--muted); padding: 3px 14px;
  font-family: ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden;
}
figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }

/* Host page (muted) + panel layout */
.shot .split { display: flex; min-height: 420px; }
.host { flex: 1; padding: 26px 28px; background: var(--card); position: relative; min-width: 0; }
.host .h-title { height: 18px; width: 40%; background: #dedad4; border-radius: 4px; margin-bottom: 18px; }
.host .h-row { height: 12px; background: #eeebe6; border-radius: 4px; margin-bottom: 12px; }
.host .h-row.w60 { width: 60%; }
.host .h-row.w80 { width: 80%; }
.host .h-row.w70 { width: 70%; }
.host .h-card { border: 1px solid #eeebe6; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.host .h-card .h-row { margin-bottom: 8px; }
.host .h-card .h-row:last-child { margin-bottom: 0; }

.fb-tab {
  position: absolute; right: 0; top: 42%;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 600;
  padding: 10px 8px; border-radius: 8px 0 0 8px; writing-mode: vertical-rl; letter-spacing: 0.04em;
}

.panel {
  width: 340px; flex: none; background: var(--card); border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(35, 35, 35, 0.06); display: flex; flex-direction: column;
}
.panel .p-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.panel .p-head img { width: 20px; height: 20px; }
.panel .p-head .p-close { margin-left: auto; color: var(--muted); font-weight: 400; }
.panel .p-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.p-context {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 11px; color: var(--muted);
  font-family: ui-monospace, Menlo, monospace; line-height: 1.5;
}
.p-context .p-url { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-row { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.chip {
  display: inline-block; font-size: 11px; font-weight: 600; border-radius: 99px;
  padding: 2px 10px; border: 1px solid transparent;
}
.chip.bug { background: var(--red-tint); color: var(--red-dark); }
.chip.high { background: #f8ecd8; color: var(--warn); }
.chip.select { background: var(--card); border-color: var(--line); color: var(--muted); font-weight: 500; }
.p-input {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  font-size: 13px; color: var(--ink);
}
.p-editor { border: 1px solid var(--line); border-radius: 8px; flex: 1; display: flex; flex-direction: column; }
.p-toolbar { display: flex; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.p-toolbar b { font-weight: 700; }
.p-text { padding: 10px 12px; font-size: 13px; color: var(--ink-soft); flex: 1; }
.p-attach {
  margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 6px;
  height: 74px; background: #f4f2ef; position: relative; overflow: hidden;
}
.p-attach .mini-bar { height: 10px; background: #e3dfd9; }
.p-attach .mini-row { height: 6px; background: #e9e6e1; border-radius: 3px; margin: 7px 10px 0; }
.p-attach .badge {
  position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.p-submit { background: var(--red); color: #fff; text-align: center; border-radius: 8px; padding: 10px; font-size: 14px; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.step .snippet { margin-top: 16px; font-size: 12px; padding: 12px 14px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.feature .glyph {
  width: 34px; height: 34px; border-radius: 8px; background: var(--red-tint);
  color: var(--red-dark); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* Showcase two-up */
.two-up { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }

/* Reviewer history mock */
.history { padding: 0; }
.h-list { padding: 6px 0; }
.h-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.h-item:last-child { border-bottom: 0; }
.h-item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-item .d { color: var(--muted); font-size: 12px; margin-left: auto; flex: none; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 2px 10px; flex: none; }
.pill.raised { background: var(--red-tint); color: var(--red-dark); }
.pill.reviewing { background: #f8ecd8; color: var(--warn); }
.pill.reviewed { background: #e3ecf5; color: var(--info); }
.pill.resolved { background: #e4f0e5; color: var(--ok); }
.h-reply { margin: 0 18px 14px 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 10px 10px 10px; padding: 10px 14px; font-size: 13px; color: var(--ink-soft); }
.h-reply b { color: var(--ink); font-size: 12px; display: block; margin-bottom: 2px; }

/* Admin mock */
.admin-body { display: flex; gap: 0; }
.a-main { flex: 1; padding: 20px 22px; min-width: 0; }
.a-side { width: 220px; flex: none; border-left: 1px solid var(--line); padding: 20px 18px; background: var(--paper); }
.a-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.a-chips { display: flex; gap: 6px; margin-bottom: 14px; }
.a-text { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.a-shots { display: flex; gap: 10px; margin-bottom: 14px; }
.a-shot { width: 92px; height: 60px; background: #f4f2ef; border: 1px solid var(--line); border-radius: 6px; position: relative; }
.a-shot .badge { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.a-console { background: var(--code-bg); border-radius: 8px; padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.6; color: #b5afa8; margin-bottom: 14px; overflow-x: hidden; }
.a-console .err { color: #e8887c; }
.a-console .lbl { color: var(--code-ink); font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; display: block; margin-bottom: 4px; }
.a-meta { font-size: 12px; color: var(--ink-soft); }
.a-meta dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 12px; }
.a-meta dd { margin: 2px 0 0; }
.a-side .btn { display: block; text-align: center; margin-top: 16px; }
.a-respond { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* Trust band */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.band h3 { font-size: 17px; margin-bottom: 8px; }
.band p { font-size: 14.5px; color: var(--ink-soft); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 16px 20px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; font-size: 15px; color: var(--ink-soft); }

/* CTA */
.cta { text-align: center; }
.cta .card-cta {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 64px 40px; max-width: 760px; margin: 0 auto;
}
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 28px; }
.cta .mail { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; }
footer .cols { display: flex; align-items: flex-start; gap: 40px; }
footer img { height: 44px; }
footer .about { font-size: 14px; color: var(--ink-soft); max-width: 380px; }
footer .links { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
footer .fineprint { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  section { padding: 72px 0; }
  .steps, .features, .band .cols { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: 1fr; }
  .nav .links a:not(.btn) { display: none; }
  .nav .container { height: 60px; gap: 16px; }
  .nav .brand img { height: 26px; }
  .hero .ctas { flex-wrap: wrap; }
  .shot .split { min-height: 0; }
  .host { display: none; }
  .shot .split .panel { width: 100%; border-left: 0; box-shadow: none; }
  .admin-body { flex-direction: column; }
  .a-side { width: 100%; border-left: 0; border-top: 1px solid var(--line); }
  footer .cols { flex-direction: column; }
  footer .links { margin-left: 0; }
}
