/* NextIsWhat public site (homepage, pricing). Light and fast: system fonts, one accent colour (NIW green). */
:root { /* lighter (owner, 2 Oct 2026: "make the color little lite") */
  --paper: #FCFDFC; --ink: #2B3A31; --ink-soft: #6A7A70; --line: #E7EEE9;
  --mint: #F0F8F3; --mint-2: #E2F2E8; --green: #1B8E4B; --green-deep: #167A40; --red: #D0571F; --amber: #B45309;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 50px); }
h2 { font-size: clamp(25px, 3.4vw, 34px); margin-bottom: 22px; }
h3 { font-size: 19px; margin-bottom: 4px; }
p { margin: 0; }
main > section { padding-block: 56px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 19px; min-height: 44px; }
.brand img { width: 34px; height: 34px; }
.top-links { display: flex; align-items: center; gap: 14px; }
.top-links .login { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--green); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 12px; border: 0; font-size: 16px; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--green-deep); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn.quiet { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.quiet:hover { background: var(--mint); }

/* hero */
.hero { padding-block: 28px 56px !important; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 18px 0 26px; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.note { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; }
.phone { margin: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 50px -28px rgba(20, 60, 35, .22); max-width: 320px; }
.hero-phone { transform: rotate(1.5deg); }
.reel-box { justify-self: center; width: 100%; max-width: 320px; }

/* bands */
.band { background: #fff; border-block: 1px solid var(--line); }
.day-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.day-steps li { display: grid; gap: 14px; align-content: start; }
.day-steps li > div { display: grid; gap: 4px; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 700; display: grid; place-items: center; }
.when { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--green); font-weight: 650; }
.day-steps p:not(.when) { color: var(--ink-soft); }

/* context + demo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.small-note { color: var(--ink-soft); font-size: 15px; }
.demo { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 12px 40px -26px rgba(20, 60, 35, .4); }
.demo-head { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 8px; }
.demo-list { list-style: none; margin: 0; padding: 0; }
.demo-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); transition: opacity .35s, transform .35s; }
.demo-item:first-child { border-top: 0; }
.demo-item b { display: block; }
.why { display: block; font-size: 14.5px; color: var(--red); }
.demo-item:not(:first-child) .why { color: var(--ink-soft); }
.demo-sheet { grid-column: 1 / -1; background: var(--mint); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.demo-sheet .q { font-weight: 650; }
.demo-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.chip:disabled { opacity: .45; cursor: default; }
.prefill { background: #fff; border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); }
.demo-item.gone { opacity: 0; transform: translateX(40px); }
.demo-done { color: var(--green); font-weight: 600; padding-top: 10px; }
.linkish { background: none; border: 0; color: var(--green); text-decoration: underline; font: inherit; cursor: pointer; min-height: 44px; }

/* cards */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.band .card { background: var(--paper); }
.card p { color: var(--ink-soft); }
.under { margin-top: 18px; color: var(--ink-soft); }
.byline { margin-top: 22px; color: var(--ink-soft); font-style: italic; }
.start-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.start-steps li { display: flex; gap: 12px; align-items: flex-start; }

/* price */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; max-width: 560px; }
.price-big { font-size: clamp(34px, 5vw, 44px); font-weight: 700; }
.price-big span { font-size: 17px; font-weight: 400; color: var(--ink-soft); }
.price-sub { color: var(--ink-soft); margin-top: 4px; }
.price-founding { margin-top: 18px; background: var(--mint); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.price-note { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.faq p { color: var(--ink-soft); padding-bottom: 14px; }
.end { text-align: center; display: grid; gap: 18px; justify-items: center; }
.end h2 { margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding-block: 14px; }
.foot nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* phones */
@media (max-width: 860px) {
  .hero-grid, .split, .two { grid-template-columns: 1fr; gap: 28px; }
  .day-steps, .start-steps { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .hero-phone { transform: none; } .hero-grid .reel-box { max-width: 260px; }
  .day-steps li { grid-template-columns: auto 1fr; } .day-steps li .phone { grid-column: 1 / -1; max-width: 280px; }
  main > section { padding-block: 40px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .cards4 { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .top-links { gap: 6px; }
}
[hidden] { display: none !important; }

/* ---- motion (#256): the example plays itself; things slide in. Off with "reduce motion". */
.demo-chat { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; margin: 0; }
.msg.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--mint-2); color: var(--ink); border-bottom-left-radius: 4px; }
.demo.play .msg { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.demo.play .msg.show { opacity: 1; transform: none; }
.msg.typing { color: transparent !important; position: relative; min-width: 56px; min-height: 36px; }
.msg.typing::after { content: ''; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--green); opacity: .5; box-shadow: 11px 0 0 rgba(27, 142, 75, .5), 22px 0 0 rgba(27, 142, 75, .5); animation: niw-blink 1s infinite; }
.msg.me.typing::after { background: #fff; box-shadow: 11px 0 0 rgba(255,255,255,.7), 22px 0 0 rgba(255,255,255,.7); }
@keyframes niw-blink { 50% { opacity: .15; } }
.tap { animation: niw-tap .45s ease; }
@keyframes niw-tap { 0% { box-shadow: 0 0 0 0 rgba(27, 142, 75, .45); transform: scale(1); } 50% { transform: scale(.94); } 100% { box-shadow: 0 0 0 14px rgba(27, 142, 75, 0); transform: scale(1); } }
.replay { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--green); font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; padding: 0 10px; visibility: hidden; }
.replay.on { visibility: visible; }
html.motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.motion [data-reveal].in { opacity: 1; transform: none; }
html.motion .day-steps li[data-reveal]:nth-child(2) { transition-delay: .12s; } html.motion .day-steps li[data-reveal]:nth-child(3) { transition-delay: .24s; }
html.motion .cards4 .card[data-reveal]:nth-child(2) { transition-delay: .08s; } html.motion .cards4 .card[data-reveal]:nth-child(3) { transition-delay: .16s; } html.motion .cards4 .card[data-reveal]:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: no-preference) {
  .hero-phone { animation: niw-float 6s ease-in-out infinite; }
  @keyframes niw-float { 0%, 100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
}
@media (max-width: 860px) { @media (prefers-reduced-motion: no-preference) { @keyframes niw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } } }

/* ---- "It doesn't just store what happened" (owner brief 2 Oct 2026): signals → what NextIsWhat checks → next actions.
   Plays once when in view (assets/home.js); everything shows still without JavaScript or with "reduce motion". */
.flow-sec .lead { margin-bottom: 30px; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); grid-template-rows: auto repeat(4, auto); gap: 14px 36px; align-items: center; }
.flow-h { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.fh1 { grid-column: 1; grid-row: 1; } .fh3 { grid-column: 3; grid-row: 1; }
.flow-mid { grid-column: 2; grid-row: 1 / span 5; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; transition: border-color .3s, box-shadow .3s; }
.mid-name { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.mid-name::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #fff url(icons/logo-badge.png) center / 86% no-repeat; }
.mid-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-soft); }
.mid-checks li { display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 8px; transition: background .3s, color .3s; }
.mid-checks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; transition: background .3s; }
.mid-checks li.on { background: var(--mint); color: var(--green-deep); }
.mid-checks li.on::before { background: var(--green); }
.flow-mid.reading { border-color: var(--green); box-shadow: 0 0 0 4px var(--mint); }
.sig, .act { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; transition: opacity .4s, transform .4s, border-color .3s; }
.sig { grid-column: 1; } .act { grid-column: 3; }
.sig[data-i="0"], .act[data-i="0"] { grid-row: 2; } .sig[data-i="1"], .act[data-i="1"] { grid-row: 3; }
.sig[data-i="2"], .act[data-i="2"] { grid-row: 4; } .sig[data-i="3"], .act[data-i="3"] { grid-row: 5; }
.sig b, .act b { font-size: 16px; line-height: 1.35; }
.meta { font-size: 14px; color: var(--ink-soft); }
.tag { justify-self: start; font-size: 12px; font-weight: 650; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-bottom: 2px; }
.act { border-left: 4px solid var(--green); }
.act.warn { border-left-color: var(--red); }
.act.warn b { color: var(--red); }
.who { font-size: 13px; font-weight: 600; color: var(--green-deep); margin-top: 2px; }
/* the lines that join each signal and action to the middle card */
.sig::after, .act::before { content: ""; position: absolute; top: 50%; width: 36px; height: 2px; background: var(--line); }
.sig::after { left: 100%; } .act::before { right: 100%; margin-right: 4px; }
.sig.live { border-color: var(--green); }
.sig.live::after, .act.shown::before { background: linear-gradient(90deg, var(--line), var(--green)); }
.flow.play .sig { opacity: .4; }
.flow.play .sig.live, .flow.play .sig.seen { opacity: 1; }
.flow.play .act { opacity: 0; transform: translateX(-10px); }
.flow.play .act.shown { opacity: 1; transform: none; }
.flow-sec .replay { margin-top: 14px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .fh1, .fh3 { display: none; }
  .flow-mid, .sig, .act { grid-column: 1 !important; grid-row: auto !important; }
  .flow-mid { order: -1; padding: 14px; } .mid-checks { display: flex; flex-wrap: wrap; gap: 6px; }
  .mid-checks li { border: 1px solid var(--line); }
  .sig::after { display: none; }
  .act { margin: 0 0 12px 22px; } .act::before { right: auto; left: -16px; top: -10px; width: 2px; height: 22px; margin: 0; }
}
