/* Pinnote marketing site. Plain CSS, no build step. */
:root {
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --hl: #fde68a;
  --ok: #10b981;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--soft); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(79, 70, 229, 0.6); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-50), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--brand-100); color: var(--brand-600); font-size: 0.85rem; font-weight: 600; }
.hero h1 { margin: 22px auto 0; max-width: 880px; }
.hero h1 .mark { background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 4px; }
.hero .lead { margin: 22px auto 0; max-width: 660px; font-size: 1.2rem; color: var(--muted); }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero .fine { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

/* Product mock */
.mock { margin: 56px auto 0; max-width: 980px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.mock-url { margin-left: 12px; flex: 1; min-width: 0; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { position: relative; display: grid; grid-template-columns: 1fr 340px; min-height: 420px; }
.mock-page { padding: 44px 44px 90px; font-family: Georgia, "Times New Roman", serif; }
.mock-page .kicker { font: 600 0.8rem var(--font); color: #0f766e; text-transform: uppercase; letter-spacing: 0.08em; }
.mock-page h4 { margin: 12px 0 14px; font-size: 2rem; line-height: 1.15; color: var(--ink); }
.mock-page p { color: #475569; font-size: 1.05rem; }
.mock-page .hl { background: var(--hl); border-radius: 3px; box-shadow: 0 0 0 3px var(--hl); }
.mock-page .fake-btn { display: inline-block; margin-top: 22px; background: #0f766e; color: #fff; font: 600 0.9rem var(--font); padding: 10px 18px; border-radius: 8px; }
.mock-panel { border-left: 1px solid var(--line); padding: 16px; background: #fff; font-size: 0.85rem; }
.mock-panel .ph { display: flex; justify-content: space-between; font-weight: 650; color: var(--ink); margin-bottom: 12px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.card.active { border-color: #c7d2fe; box-shadow: 0 0 0 3px var(--brand-50); }
.meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 0.78rem; }
.meta b { color: var(--ink); }
.badge { font-size: 0.7rem; font-weight: 650; padding: 1px 8px; border-radius: 999px; }
.b-open { background: #fef3c7; color: #92400e; }
.b-high { background: #fee2e2; color: #991b1b; }
.b-done { background: #d1fae5; color: #065f46; }
.q { margin-top: 8px; padding: 6px 8px; border-left: 3px solid var(--hl); background: #fffbeb; border-radius: 4px; }
.q.new { border-left-color: #34d399; background: #ecfdf5; }
.reply { margin-top: 8px; padding: 6px 8px; background: var(--brand-50); border-radius: 8px; }
.mock-toolbar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; background: #111827; color: #fff; padding: 6px 8px; border-radius: 999px; font: 500 0.82rem var(--font); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); white-space: nowrap; max-width: calc(100% - 24px); box-sizing: border-box; z-index: 2; }
.mock-toolbar span { display: inline-flex !important; flex-direction: row !important; align-items: center !important; gap: 4px !important; padding: 6px 11px !important; border-radius: 999px !important; white-space: nowrap !important; flex-shrink: 0 !important; line-height: 1 !important; }
.mock-toolbar span.on { background: rgba(255, 255, 255, 0.14); }
.mock-toolbar .n { background: var(--brand); border-radius: 999px; padding: 0 7px; margin-left: 4px; font-weight: 600; font-size: 0.75rem; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker { color: var(--brand); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step p { margin-top: 8px; color: var(--muted); }
.step code { font-size: 0.8rem; background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.2s, transform 0.2s; }
.feature:hover { border-color: var(--brand-100); transform: translateY(-2px); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); font-size: 1.3rem; margin-bottom: 16px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #d1fae5; color: #047857; font-size: 0.75rem; font-weight: 800; margin-top: 2px; }

.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; font-size: 0.9rem; }
.doc .t { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.doc h4 { margin: 4px 0 14px; color: var(--ink); font-size: 1.15rem; }
.doc .pg { font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 14px 0 10px; }
.doc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc .cell { border-radius: 8px; padding: 8px 10px; font-size: 0.82rem; }
.doc .cur { background: #fffbeb; border: 1px solid #fde68a; }
.doc .nw { background: #ecfdf5; border: 1px solid #a7f3d0; }
.doc .lab { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }

.slack { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; font-size: 0.9rem; }
.slack .msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.slack .av { width: 40px; height: 40px; border-radius: 10px; }
.slack .nm { font-weight: 700; color: var(--ink); }
.slack .nm small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.slack .bq { border-left: 4px solid #ddd; padding-left: 10px; margin: 6px 0; color: var(--body); }
.slack .sbtn { display: inline-block; margin-top: 8px; margin-right: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-weight: 600; font-size: 0.8rem; color: var(--ink); }
.slack .sbtn.p { background: #007a5a; color: #fff; border-color: #007a5a; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.trust b { display: block; color: var(--ink); margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 0.92rem; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

.cta { text-align: center; background: linear-gradient(135deg, #4f46e5, #6366f1 60%, #818cf8); color: #fff; border-radius: 24px; padding: 64px 24px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.85); margin-top: 12px; font-size: 1.1rem; }
.cta .btn-primary { background: #fff; color: var(--brand-600); box-shadow: none; margin-top: 28px; }

/* Footer */
footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
footer button.linklike:hover { color: var(--ink); text-decoration: underline; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--body); }
.legal p { margin: 10px 0; }
.legal .updated { color: var(--muted); margin-top: 8px; }

/* Cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 520px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: none; }
.consent.show { display: block; }
.consent p { font-size: 0.92rem; color: var(--body); padding-right: 24px; margin: 0; }
.consent-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.consent-close:hover { color: var(--ink); background: var(--soft); }
.consent-status { font-size: 0.8rem; color: var(--muted); margin-top: 6px; font-weight: 500; }
.consent .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feature:hover { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-panel { border-left: 0; border-top: 1px solid var(--line); padding: 16px 16px 90px !important; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 48px 0 32px; }
  .hero .lead { font-size: 1.05rem; }
  .mock { margin: 36px auto 0; border-radius: 14px; }
  .mock-bar { padding: 10px 12px; gap: 6px; }
  .mock-bar .dot { width: 9px; height: 9px; }
  .mock-url { margin-left: 8px; padding: 4px 10px; font-size: 0.75rem; }
  .mock-page { padding: 24px 18px 24px; }
  .mock-page h4 { font-size: 1.45rem; }
  .mock-panel { padding: 14px 14px 84px !important; font-size: 0.82rem; }
  .mock-toolbar { bottom: 12px; padding: 4px 6px; gap: 2px; font-size: 0.74rem; max-width: calc(100% - 16px); }
  .mock-toolbar span { padding: 5px 8px !important; gap: 3px !important; }
  .mock-toolbar .n { padding: 0 5px; margin-left: 2px; font-size: 0.7rem; }
  .steps, .grid, .trust { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .doc .row { grid-template-columns: 1fr; }
  .cta { border-radius: 18px; padding: 48px 20px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .mock-panel { padding: 14px 12px 80px !important; }
  .mock-toolbar { bottom: 10px; padding: 3px 5px; gap: 2px; font-size: 0.72rem; }
  .mock-toolbar span { padding: 5px 7px !important; gap: 2px !important; }
  .mock-toolbar .n { padding: 0 4px; margin-left: 2px; }
}
@media (max-width: 360px) {
  .mock-panel { padding: 12px 10px 76px !important; }
  .mock-toolbar { bottom: 8px; padding: 3px 4px; gap: 2px; font-size: 0.68rem; }
  .mock-toolbar span { padding: 4px 5px !important; gap: 2px !important; }
  .card { padding: 10px; }
  .q { font-size: 0.8rem; }
}

/* What is Pinnote: answer-first block */
.answer { max-width: 860px; margin: 0 auto; }
.answer h2 { text-align: center; }
.answer > p { margin-top: 18px; font-size: 1.15rem; color: var(--body); text-align: center; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; }
.facts div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.facts dd { margin: 6px 0 0; color: var(--ink); font-size: 0.95rem; }

/* Comparison table */
.compare { max-width: 900px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--soft); }
.compare thead th:last-child { color: var(--brand); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 30%; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--ink); font-weight: 500; background: var(--brand-50); }

/* FAQ questions are headings (for search engines) but look like the summary text */
.faq summary h3 { font: inherit; color: inherit; margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .answer > p { text-align: left; }
}
/* Pricing (beta) */
.price-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.price-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-name { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.price-amount { font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-list { grid-template-columns: 1fr 1fr; margin-top: 20px; }
@media (max-width: 640px) { .price-list { grid-template-columns: 1fr; } .price-top .btn { width: 100%; text-align: center; } }
/* Launch film (home page) */
.film-sec { padding-top: 24px; }
.film { margin: 0 auto; max-width: 1040px; }
.film .frame { position: relative; border-radius: 18px; overflow: hidden; background: #0a0b0f; box-shadow: 0 30px 80px -30px rgba(30, 27, 75, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.08); aspect-ratio: 16 / 9; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0a0b0f; }
.film figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.film details { margin: 10px auto 0; max-width: 720px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: #fff; }
.film summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); }
.film details p { margin: 0 0 14px; color: var(--body); }
