/* NOD public landing (v5, 2026-11-19: run your apps from team chat). Shared tokens, header, buttons and reveals live in public.css.
   Plain and specific on purpose: one buyer, one job, real-looking sample data, no decorative effects. */
.landing-v4 { display: block; max-width: none; }
.landing-v4 *, .landing-v4 *::before, .landing-v4 *::after { box-sizing: border-box; }
:where(.landing-v4) :where(h1, h2, h3, p, figure, ol, ul, dl, dd) { margin: 0; }
:where(.landing-v4) :where(ol, ul) { padding: 0; list-style: none; }
.landing-v4 button { font-family: inherit; }
.landing-v4 p { text-wrap: pretty; }
.landing-v4 svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* Type: one weight for headings, no accent words. */
.landing-v4 h2 { max-width: 20em; font: 500 clamp(28px, 3.2vw, 42px)/1.15 var(--font-display); letter-spacing: -.025em; color: var(--public-ink); text-wrap: balance; }
.landing-v4 h3 { font: 600 17px/1.35 var(--font-sans); color: var(--public-ink); }
.section-lead { max-width: 36em; font-size: 18px; line-height: 1.6; color: var(--public-muted); }

/* Mobile navigation */
@media (max-width: 860px) {
  .public-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px var(--gutter) 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--public-bg); border-bottom: 1px solid var(--public-border); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .55); }
  .public-nav.menu-open { display: flex; animation: menu-in 220ms var(--ease-out); }
  .public-nav a { min-height: 54px; font-size: 17px; color: var(--public-ink); border-bottom: 1px solid var(--public-border); }
  .public-nav .mobile-signup { display: flex; justify-content: space-between; border: 0; color: var(--public-gold); font-weight: 600; }
  .public-nav .mobile-signup svg { width: 18px; height: 18px; }
  .public-header-actions { margin-left: auto; }
  .public-header-actions .header-signup { display: none; }
  .mobile-menu-toggle { display: inline-flex; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; border: 1px solid var(--public-border-strong); border-radius: 50%; background: transparent; color: var(--public-ink); }
  .mobile-menu-toggle span { width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease-out); }
  .mobile-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Hero: the promise on the left, the product doing it on the right. */
.hero { padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-eyebrow { font-size: 15px; font-weight: 500; color: var(--public-gold); }
.landing-v4 .hero-title { margin-top: 18px; max-width: 13em; font: 600 clamp(38px, 4.6vw, 62px)/1.05 var(--font-display); letter-spacing: -.035em; color: var(--public-ink); text-wrap: balance; }
.hero-lead { margin-top: 24px !important; max-width: 33em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--public-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px !important; font-size: 14.5px; line-height: 1.5; color: var(--public-faint); }
.hero-copy > * { animation: hero-in 520ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 40ms; }
.hero-copy > :nth-child(3) { animation-delay: 90ms; }
.hero-copy > :nth-child(n+4) { animation-delay: 140ms; }
.hero .demo { animation: hero-in 620ms var(--ease-out) 200ms both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Hero example: one chat thread per app. NOD's reply shows the change, an ok runs it. */
.demo { padding: 16px; border: 1px solid var(--public-border); border-radius: var(--radius-lg); background: var(--public-panel); box-shadow: var(--public-shadow); }
.demo-head, .mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: var(--public-ink); }
.demo-sample { flex: none; padding: 3px 9px; border: 1px solid var(--public-border); border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; color: var(--public-faint); }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.demo-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--public-border); border-radius: var(--radius-pill); background: transparent; font-size: 13px; font-weight: 500; color: var(--public-muted); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.demo-tabs button:hover { color: var(--public-ink); border-color: var(--public-border-strong); }
.demo-tabs button[aria-pressed="true"] { background: var(--public-raised); border-color: var(--public-border-strong); color: var(--public-ink); }
.demo-tabs button:focus-visible { outline: 2px solid var(--public-gold); outline-offset: 2px; }
.scene { border: 1px solid var(--public-border); border-radius: var(--radius); background: var(--public-bg); overflow: hidden; }
.scene[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--public-border); }
.chat-head b { display: block; font-size: 14px; color: var(--public-ink); }
.chat-head small { display: block; font-size: 12.5px; color: var(--public-faint); }
.chat-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; }
.chat-icon svg { width: 17px; height: 17px; }
.chat-whatsapp { background: color-mix(in srgb, #25d366 16%, transparent); color: #3ccf74; }
.chat-slack { background: color-mix(in srgb, #e01e5a 15%, transparent); color: #e8618c; }
.chat-teams { background: color-mix(in srgb, #6264a7 22%, transparent); color: #9a9cf0; }
.chat-gmail { background: color-mix(in srgb, #ea4335 15%, transparent); color: #f07a6f; }
.chat-thread { display: grid; gap: 10px; padding: 14px; min-height: 392px; align-content: start; }
.msg { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--public-ink); }
.msg > div { min-width: 0; padding: 7px 12px 9px; border-radius: 4px 12px 12px 12px; background: var(--public-raised); }
.msg-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 1px !important; font-size: 12.5px; color: var(--public-faint); }
.msg-meta b { font-weight: 600; color: var(--public-muted); }
.msg-nod > div { background: color-mix(in srgb, var(--public-gold) 12%, var(--public-raised)); border: 1px solid color-mix(in srgb, var(--public-gold) 22%, transparent); }
.msg-nod :is(.msg-meta, .msg-meta b, .msg-quiet) { color: color-mix(in srgb, var(--public-ink) 80%, var(--public-panel)); }
.msg-quiet { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--public-muted); }
.msg u { text-decoration-color: color-mix(in srgb, var(--public-gold) 70%, transparent); text-underline-offset: 3px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: color-mix(in srgb, #6e8fd8 22%, var(--public-raised)); font-size: 12px; font-weight: 600; color: var(--public-ink); }
.avatar-team { background: color-mix(in srgb, var(--public-gold) 26%, var(--public-raised)); }
.avatar-nod { background: var(--public-raised); border: 1px solid var(--public-border); }
.avatar-nod img { width: 16px; height: 16px; object-fit: contain; }
/* Messages arrive one after another while the example plays. */
.demo.is-playing .scene:not([hidden]) .msg { animation: msg-in 420ms var(--ease-out) both; }
.demo.is-playing .scene:not([hidden]) .msg:nth-child(2) { animation-delay: 900ms; }
.demo.is-playing .scene:not([hidden]) .msg:nth-child(3) { animation-delay: 2300ms; }
.demo.is-playing .scene:not([hidden]) .msg:nth-child(4) { animation-delay: 3500ms; }
.demo.is-playing .scene:not([hidden]) .msg:nth-child(5) { animation-delay: 4500ms; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.demo-caption { flex: 1; min-height: 3em; font-size: 14px; line-height: 1.5; color: var(--public-muted); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid var(--public-border-strong); border-radius: 50%; background: transparent; color: var(--public-ink); cursor: pointer; transition: background-color var(--dur-fast); }
.icon-button:hover { background: color-mix(in srgb, var(--public-ink) 7%, transparent); }
.icon-button:focus-visible { outline: 2px solid var(--public-gold); outline-offset: 2px; }
.icon-button svg { width: 15px; height: 15px; }

/* App colour dots: a small, recognisable cue without using anyone's logo. */
.app-dot { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 3px; background: var(--public-faint); }
.app-jira { background: #2684ff; } .app-linear { background: #7c83f5; } .app-trello { background: #0c66e4; } .app-clickup { background: #c35cf5; }
.app-notion { background: #e9e7e1; } .app-posthog { background: #f9bd2b; } .app-tally { background: #2bb3a3; } .app-zapier { background: #ff4f00; }
.app-github { background: #9aa3ad; } .app-salesforce { background: #1ea2e8; } .app-hubspot { background: #ff7a59; }
:root[data-theme="light"] .app-notion { background: #2f2f2f; }

/* Apps strip under the hero */
.apps-strip { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--public-border); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.apps-strip p { font-size: 14px; color: var(--public-faint); }
.apps-strip p b { font-weight: 600; color: var(--public-muted); }
.apps-strip ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.apps-strip li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--public-ink); }

/* Before and after */
.compare { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; }
.compare-col { padding: 22px 24px; border: 1px solid var(--public-border); border-radius: var(--radius-lg); background: var(--public-panel); }
.compare-new { border-color: color-mix(in srgb, var(--public-gold) 45%, transparent); background: color-mix(in srgb, var(--public-gold) 7%, var(--public-panel)); }
.compare-label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--public-faint); }
.compare-new .compare-label { color: var(--public-gold); }
.compare ol { display: grid; gap: 10px; margin-top: 16px; counter-reset: c; }
.compare li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.5; color: var(--public-ink); counter-increment: c; }
.compare li::before { content: counter(c); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--public-border-strong); font-size: 12.5px; font-weight: 600; color: var(--public-muted); }
.compare-old li { color: var(--public-muted); }
.compare-new li::before { border-color: color-mix(in srgb, var(--public-gold) 55%, transparent); color: var(--public-gold); }
.compare-foot { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--public-border); font-size: 14.5px; line-height: 1.5; color: var(--public-faint); }

/* App grid */
#features .section-lead { margin-top: 14px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 32px; }
.app-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--public-border); border-radius: var(--radius); background: var(--public-panel); transition: border-color var(--dur-fast); }
.app-card:hover { border-color: var(--public-border-strong); }
.app-name { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 600; color: var(--public-ink); }
.app-card > p:not(.app-name) { flex: 1; font-size: 15px; line-height: 1.55; color: var(--public-muted); }
.app-card code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--public-bg); border: 1px solid var(--public-border); font: 500 13px/1.45 var(--font-sans); color: var(--public-ink); overflow-wrap: anywhere; }
/* Ten cards in four columns: the last two share the final row evenly. */
@media (min-width: 1180px) { .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .app-grid > :nth-last-child(-n+2) { grid-column: span 2; } }
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--public-raised); border: 1px solid var(--public-border); }
.mid-cta p { font-size: 17px; font-weight: 500; color: var(--public-ink); }

/* Channels */
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.channel-grid li { padding: 20px; border: 1px solid var(--public-border); border-radius: var(--radius); background: var(--public-panel); }
.channel-grid h3 { margin-top: 14px; }
.channel-grid p { margin-top: 6px !important; font-size: 15px; line-height: 1.55; color: var(--public-muted); }
#automatic h2 { max-width: 16em; }
.trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: none !important; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--public-border); }
.section h2 + * { margin-top: clamp(28px, 3.4vw, 44px); }

.pain-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain-list li { padding: 22px 22px 24px; border: 1px solid var(--public-border); border-radius: var(--radius); background: var(--public-panel); }
.pain-list p { font-size: 17px; line-height: 1.55; color: var(--public-ink); }
#problem .section-lead { margin-top: 28px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border: 1px solid var(--public-border-strong); border-radius: 50%; font-size: 14px; font-weight: 600; color: var(--public-gold); }
.steps p, .feature-list p, .trust-list p { margin-top: 8px !important; font-size: 16px; line-height: 1.6; color: var(--public-muted); }

.features-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.feature-list { display: grid; gap: 26px; }
.also-works { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid var(--public-border); font-size: 15px; line-height: 1.6; color: var(--public-faint); }
.requests-mock { padding: 18px; border: 1px solid var(--public-border); border-radius: var(--radius-lg); background: var(--public-panel); }
.mock-rows { border: 1px solid var(--public-border); border-radius: var(--radius); background: var(--public-bg); }
.mock-rows li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.mock-rows li + li { border-top: 1px solid var(--public-border); }
.row-src { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--public-raised); color: var(--public-muted); }
.row-src svg { width: 15px; height: 15px; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--public-ink); }
.row-main small { display: block; font-size: 13px; color: var(--public-faint); }
.row-tag { flex: none; padding: 3px 9px; border: 1px solid var(--public-border); border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 500; color: var(--public-muted); }
.row-tag-jira { color: var(--public-gold); border-color: color-mix(in srgb, var(--public-gold) 40%, transparent); }
.row-tag-due { color: #e0a15e; border-color: color-mix(in srgb, #e0a15e 40%, transparent); }
:root[data-theme="light"] .row-tag-due { color: #9a5a12; }

.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 4vw, 64px); max-width: 960px; }
.trust-list .text-link { min-height: 0; font-size: inherit; font-weight: 500; }

.team-note > * { max-width: 720px; }
.team-note > p { margin-top: 18px !important; font-size: 18px; line-height: 1.6; color: var(--public-muted); }
.team-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.team-actions .public-button svg { width: 17px; height: 17px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.section-faq h2 + * { margin-top: 0; }
.landing-v4 .faq-items { border-top: 1px solid var(--public-border); }
.landing-v4 .faq-items details { border-bottom: 1px solid var(--public-border); }
.landing-v4 .faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 18px 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--public-ink); list-style: none; cursor: pointer; }
.landing-v4 .faq-items summary::-webkit-details-marker { display: none; }
.landing-v4 .faq-items summary:hover { color: var(--public-gold); }
.landing-v4 .faq-items summary:focus-visible { outline: 2px solid var(--public-gold); outline-offset: 2px; border-radius: 4px; }
.landing-v4 .faq-items summary span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--public-border-strong); border-radius: 50%; font-size: 18px; font-weight: 400; color: var(--public-gold); transition: transform var(--dur-base) var(--ease-out); }
.landing-v4 .faq-items details[open] summary span { transform: rotate(45deg); }
.landing-v4 .faq-items details > p { max-width: 40em; padding: 0 48px 22px 0; font-size: 16px; line-height: 1.7; color: var(--public-muted); }
.landing-v4 .faq-items details > .text-link { margin: -8px 0 18px; }

/* Closing */
.landing-closing { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--public-border); text-align: center; }
.landing-closing h2 { margin-inline: auto; max-width: 16em; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.closing-note { margin-top: 16px !important; font-size: 14px; color: var(--public-faint); }

/* Motion: the example pauses with the switch, off screen and in a hidden tab. */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero .demo { animation: none; }
  .demo .msg { animation: none !important; }
}
.pref-reduced-motion .landing-v4 :is(.hero-copy > *, .demo, .demo .msg) { animation: none !important; }

/* Tablet and phone */
@media (max-width: 1020px) {
  .hero-grid, .features-grid { grid-template-columns: 1fr; }
  .landing-v4 .hero-title { max-width: 15em; }
  .hero .demo { max-width: 640px; }
  .requests-mock { max-width: 640px; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .pain-list, .steps, .faq-layout, .compare, .channel-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr !important; }
  .steps { gap: 28px; }
  .section-faq h2 { margin-bottom: 20px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 32px; }
  .landing-v4 .hero-title { font-size: clamp(34px, 10vw, 42px); }
  .hero-actions .public-button { width: 100%; }
  .demo, .requests-mock { padding: 12px; border-radius: var(--radius); }
  .chat-thread { padding: 12px 10px; min-height: 0; }
  .msg { font-size: 14px; }
  .demo-tabs button { min-height: 34px; padding: 0 10px; }
  .mid-cta .public-button { width: 100%; }
  .landing-v4 .faq-items details > p { padding-right: 0; }
  .closing-actions .public-button { width: 100%; }
}
