/* Notely site · v4. Colours and backgrounds come from the Ripple 1.2 brand system (brand-system/promo). */
:root {
  --paper: #f7f6f2; --ink: #16171c; --muted: #62636d; --line: rgba(22, 23, 28, .1);
  --ripple: #5057f4; --ripple-soft: #c7c9f2; --night: #111216; --graphite: #24252b; --stone: #e7e5df; --mist: #ececf1;
  --radius: 22px; --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ripple); outline-offset: 4px; border-radius: 6px; }
kbd { font: 600 .82em/1 var(--font); display: inline-block; min-width: 1.7em; padding: .28em .42em; margin: 0 .12em; border-radius: 7px; text-align: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.icons { position: absolute; }
.icon { width: 18px; height: 18px; flex: none; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 0; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 0 0 10px 10px; transform: translateY(-110%); }
.skip-link:focus { transform: none; }

/* Header: glass over every section; the lockup plays its signature once. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: color .3s, background .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(17, 18, 22, .55); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-bottom: 1px solid rgba(255, 255, 255, .08); opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.on-light { color: var(--ink); }
.site-header.on-light::before { background: rgba(247, 246, 242, .72); border-bottom-color: var(--line); }
.nav-shell { position: relative; height: 68px; display: flex; align-items: center; gap: 36px; }
.brand-lockup { width: 122px; --ripple-word: currentColor; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; opacity: .82; }
.nav-links a:hover { opacity: 1; }
.on-light .nav-links a:hover { color: var(--ripple); }
.page-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ripple); transform-origin: left; transform: scaleX(0); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.button:active { transform: scale(.97); }
.button-small { height: 38px; padding: 0 16px; font-size: 13.5px; gap: 6px; }
.button-small .icon { width: 15px; height: 15px; }
.button-ripple { background: var(--ripple); color: #fff; box-shadow: 0 6px 20px rgba(80, 87, 244, .35); }
.button-white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.button-glass { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (hover: hover) { .button-white:hover { transform: translateY(-1px); } .button-glass:hover { background: rgba(255, 255, 255, .2); } .button-ripple:hover { background: #5f66ff; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--ripple); margin-bottom: 18px; }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.12; letter-spacing: -.035em; }
.section-head h2 span { color: #8a8b96; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin-top: 22px; }
.on-dark .eyebrow { color: #9fa3f8; }
.on-dark h2 { color: #fff; }
.on-dark h2 span { color: rgba(255, 255, 255, .55); }
.on-dark .lead { color: rgba(255, 255, 255, .72); }

/* Scenes: real app windows on the brand desktop. */
.scene { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #d5d6dd; box-shadow: 0 40px 90px -36px rgba(17, 18, 22, .45), 0 0 0 1px rgba(22, 23, 28, .06); }
.scene img { width: 100%; }

/* Hero */
.hero { position: relative; color: #fff; padding-top: 150px; background: var(--night); isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-field { position: absolute; inset: 0; background: url("brand-system/promo/field-night.jpg") center 30% / cover; }
.hero-field::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--paper)); }
.hero-mark { position: absolute; left: 50%; top: 520px; width: 760px; translate: -50% -50%; opacity: .08; }
.hero-mark .rpl__ring { stroke-width: 1.5; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ripple); box-shadow: 0 0 0 4px rgba(80, 87, 244, .25); }
.hero .eyebrow { color: rgba(255, 255, 255, .78); letter-spacing: .04em; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 1.06; letter-spacing: -.045em; }
.grad { color: rgba(255, 255, 255, .5); }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: rgba(255, 255, 255, .78); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero-chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-chips li { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .72); }
.hero-in { animation: hero-in 1s var(--ease) both; }
.hero-in:nth-child(2) { animation-delay: .08s; } .hero-in:nth-child(3) { animation-delay: .16s; } .hero-in:nth-child(4) { animation-delay: .24s; } .hero-in:nth-child(5) { animation-delay: .32s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.hero-stage { height: 170vh; margin-top: 60px; }
.hero-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; perspective: 1600px; }
.hero-scene { width: min(1200px, calc(100% - 48px)); transform-origin: 50% 0; transform: rotateX(var(--tilt, 22deg)) scale(var(--scale, .86)) translateY(var(--lift, 0)); }

/* Feature index: the five things, in plain words. */
.features { padding: 140px 0 120px; }
.feature-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature-index li { display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.feature-index .n { font-size: 13px; font-weight: 700; color: var(--ripple); }
.feature-index h3 { font-size: 21px; margin: 14px 0 10px; letter-spacing: -.02em; }
.feature-index p { font-size: 14.5px; color: var(--muted); flex: 1; }
.feature-index a { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--ripple); }
.feature-index a .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
@media (hover: hover) { .feature-index a:hover .icon { transform: translateX(3px); } }


/* One week: pinned story; whole windows slide with a gutter. */
.week { padding: 40px 0 0; }
.story-track { height: 420vh; }
.story-pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.story-step button { width: 100%; text-align: left; display: grid; gap: 4px; padding: 16px 18px 14px; border-radius: 16px; transition: background .3s; }
.story-step .when { font-size: 12.5px; font-weight: 700; color: #9a9ba5; letter-spacing: .02em; transition: color .3s; }
.story-step .what { font-size: 19px; font-weight: 650; letter-spacing: -.01em; color: #9a9ba5; transition: color .3s; }
.story-step .bar { height: 2px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.story-step .bar i { display: block; height: 100%; background: var(--ripple); transform-origin: left; transform: scaleX(0); }
.story-step p { font-size: 14.5px; color: var(--muted); padding: 0 18px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, padding .4s; }
.story-step.is-active button { background: #fff; box-shadow: 0 1px 0 var(--line); }
.story-step.is-active .when { color: var(--ripple); }
.story-step.is-active .what { color: var(--ink); }
.story-step.is-active p { max-height: 160px; opacity: 1; padding: 10px 18px 6px; }
.story-stage { min-width: 0; clip-path: inset(-80px 0 -100px 0); }
.story-windows { position: relative; aspect-ratio: 2400 / 1575; }
.story-scene { position: absolute; inset: 0; will-change: transform; }
.story-scene[data-scene="0"] { transform: none; }
.story-scene:not([data-scene="0"]) { transform: translate3d(106%, 0, 0); }
.story-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Craft: brand-blue field. */
.craft { position: relative; padding: 140px 0; margin-top: 120px; isolation: isolate; overflow: hidden; }
.craft-field { position: absolute; inset: 0; z-index: -1; background: url("brand-system/promo/field-mist.jpg") center / cover var(--mist); }
.craft-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.craft-shot { align-self: start; }
.craft-shot figcaption { position: absolute; left: 18px; bottom: 16px; font-size: 13px; color: #fff; padding: 6px 12px; border-radius: 999px; background: rgba(17, 18, 22, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.craft-cards { display: grid; gap: 14px; }
.glass-card { padding: 24px 24px 22px; border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); }
.glass-card h3 { font-size: 20px; margin-bottom: 8px; }
.glass-card p { font-size: 14.5px; color: var(--muted); }
.caret-demo { position: relative; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 17px; min-height: 52px; line-height: 24px; }
.caret-text { white-space: pre; }
.caret { position: absolute; top: 14px; width: 2px; height: 24px; border-radius: 1px; background: var(--ripple); transition: left 120ms cubic-bezier(.2, .8, .2, 1); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.caret.is-typing { animation: none; }

/* Agent + Space: split rows. */
.agent, .space-section { padding: 150px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.14; letter-spacing: -.035em; }
.split-copy h2 span { color: #8a8b96; }
.split-copy .lead kbd, .basics kbd { background: #fff; border-color: var(--line); box-shadow: 0 2px 0 var(--line); color: var(--ink); }
.agent-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.agent-list li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; color: var(--muted); }
.checks .icon { color: #fff; background: var(--ripple); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.checks b { color: var(--ink); font-weight: 650; }
.split-visual { position: relative; }
.zoom-scene { aspect-ratio: 1.12; }
.zoom-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--zx) var(--zy); transform: scale(var(--zs)); transform-origin: var(--zx) var(--zy); }
.review-card { position: absolute; left: -28px; bottom: -26px; width: 300px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 24px 60px -20px rgba(20, 22, 60, .45); border: 1px solid #fff; font-size: 13.5px; }
.rc-title { margin-bottom: 10px; }
.rc-row { display: flex; gap: 10px; color: var(--muted); }
.rc-row span:nth-child(2) { color: var(--ink); flex: 1; }
.plus { color: #2f9e57; } .minus { color: #c4475a; }
.rc-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rc-actions span { padding: 6px 12px; border-radius: 9px; font-weight: 600; }
.rc-actions .ghost { background: #eeeef2; }
.rc-actions .solid { background: #1e88ff; color: #fff; }
.theme-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-chips li { display: flex; align-items: center; font-size: 13.5px; padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

/* Basics */
.basics { padding: 160px 0 140px; }
.basics-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.basics-grid li { padding: 24px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.basics-grid b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--mist); color: var(--ripple); font-size: 16px; font-weight: 700; }
.basics-grid h3 { font-size: 18px; margin: 18px 0 6px; }
.basics-grid p { font-size: 14px; color: var(--muted); }

/* Roadmap: night field. */
.roadmap { color: #fff; padding: 140px 0; background: url("brand-system/promo/field-night.jpg") center / cover var(--night); }
.roadmap-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roadmap-grid li { padding: 28px 26px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.roadmap-grid span { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #9fa3f8; }
.roadmap-grid h3 { font-size: 22px; margin: 16px 0 10px; }
.roadmap-grid p { font-size: 14.5px; color: rgba(255, 255, 255, .7); }

/* FAQ */
.faq { padding: 140px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 60px; }
.faq .section-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 17.5px; font-weight: 600; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary span { font-size: 22px; font-weight: 400; color: var(--ripple); transition: transform .3s var(--ease); }
.questions details[open] summary span { transform: rotate(45deg); }
.questions p { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.questions a { color: var(--ripple); text-decoration: underline; text-underline-offset: 3px; }

/* Closing */
.closing { position: relative; color: #fff; text-align: center; padding: 170px 0 180px; overflow: hidden; isolation: isolate; background: var(--night); }
.closing-field { position: absolute; inset: 0; z-index: -2; background: url("brand-system/promo/field-night.jpg") center / cover; }
.closing-mark { position: absolute; z-index: -1; width: 1100px; right: -260px; bottom: -420px; opacity: .06; --ripple-color: #fff; transform: rotate(16deg) scale(.96); }
.closing-mark .rpl__ring { display: none; }
.closing-logo { width: 84px; margin-bottom: 30px; --ripple-color: var(--ripple); }
.closing h2 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.08; letter-spacing: -.045em; }
.closing p { margin-top: 20px; font-size: 19px; color: rgba(255, 255, 255, .8); }

.site-footer { padding: 46px 0 50px; }
.footer-inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer .brand-lockup { --ripple-word: var(--ink); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a:hover { color: var(--ripple); }
.site-footer p { margin-left: auto; font-size: 13px; }

.film-dialog { padding: 0; border: 0; border-radius: 18px; background: #000; width: min(1100px, 92vw); overflow: hidden; }
.film-dialog::backdrop { background: rgba(8, 9, 16, .8); backdrop-filter: blur(8px); }
.film-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-close { position: absolute; right: 12px; top: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; line-height: 1; }
body.modal-open { overflow: hidden; }

[data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.feature-index [data-reveal]:nth-child(n), .basics-grid [data-reveal]:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }

@media (max-width: 1080px) {
  .feature-index { grid-template-columns: repeat(2, 1fr); }
  .feature-index li:first-child { grid-column: span 2; }
  .basics-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid, .split { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .review-card { left: 12px; }
}
/* Narrow screens and reduced motion read in order: no pinned scenes. */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-shell { justify-content: space-between; }
  .hero { padding-top: 120px; }
  .hero-stage { height: auto; margin-top: 46px; padding-bottom: 40px; }
  .hero-pin { position: static; height: auto; display: block; }
  .hero-scene { width: calc(100% - 32px); margin: 0 auto; transform: none; }
  .story-track { height: auto; }
  .story-pin { position: static; height: auto; display: block; }
  .story-steps { margin-bottom: 26px; }
  .story-step p { max-height: none; opacity: 1; padding: 8px 18px 4px; }
  .story-windows { aspect-ratio: auto; display: grid; gap: 22px; }
  .story-scene, .story-scene:not([data-scene="0"]) { position: static; transform: none; }
  .story-caption { display: none; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 10px; }
  .site-footer p { margin-left: 0; width: 100%; }
  .hero-mark { width: 440px; top: 420px; opacity: .05; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .feature-index, .basics-grid { grid-template-columns: 1fr; }
  .feature-index li:first-child { grid-column: auto; }
  .hero-sub .wide { display: none; }
  .scene { border-radius: 14px; }
  .review-card { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 12px 0; }
  .section-head { margin-bottom: 36px; }
  .features, .basics, .faq { padding: 96px 0; }
  .agent, .space-section { padding-top: 96px; }
  .craft, .roadmap { padding: 96px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-stage { height: auto; margin-top: 46px; }
  .hero-pin { position: static; height: auto; display: block; }
  .hero-scene { transform: none; margin: 0 auto; }
  .story-track { height: auto; }
  .story-pin { position: static; height: auto; display: block; }
  .story-steps { margin-bottom: 26px; }
  .story-step p { max-height: none; opacity: 1; padding: 8px 18px 4px; }
  .story-windows { aspect-ratio: auto; display: grid; gap: 22px; }
  .story-scene, .story-scene:not([data-scene="0"]) { position: static; transform: none; }
  .caret { transition: none; }
}
