/* Caderno landing page — the app's own tokens: paper, ink blue, amber marker, Inter. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #F7F6F3;
  --surface: #FFFFFF;
  --muted: #F0EFEB;
  --border: #E6E4DF;
  --text: #1B1B1A;
  --text-2: #5F5E5A;
  --text-3: #9A9893;
  --ink: #3256E6;
  --ink-deep: #2443C4;
  --ink-soft: #E9EEFF;
  --amber: #F2A516;
  --amber-soft: #FFE9BF;
  --night: #0E0E10;
  --night-2: #18181B;
  --night-border: #2C2C30;
  --night-text: #EDECE8;
  --night-text-2: #A6A49E;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -30px rgba(27, 27, 26, .35), 0 10px 30px -15px rgba(27, 27, 26, .2);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; padding: 12px 22px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 650;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn small { display: block; font-weight: 500; font-size: .74rem; opacity: .8; letter-spacing: 0; }
.btn span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-small { padding: 8px 16px; background: var(--text); color: var(--paper); font-size: .92rem; }
.btn-big { padding: 16px 28px; font-size: 1.06rem; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(50, 86, 230, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(50, 86, 230, .8); background: var(--ink-deep); }
.btn-ghost { border-color: var(--border); background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--text-3); }
.btn-light { background: #fff; color: var(--ink-deep); }
.btn-light:hover { transform: translateY(-2px) scale(1.02); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 14px 0; }
.nav.scrolled { background: rgba(247, 246, 243, .82); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--border); padding: 8px 0; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; }
.brand.small { font-size: 1rem; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-2); font-weight: 550; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; margin-left: 8px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: grid; gap: 4px; padding: 12px 24px 18px; background: rgba(247, 246, 243, .97); border-bottom: 1px solid var(--border); }
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 12px 4px; text-decoration: none; font-weight: 600; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.paper-grid {
  position: absolute; inset: -40px; pointer-events: none;
  background-image: radial-gradient(rgba(27, 27, 26, .11) 1.2px, transparent 1.3px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.ink-stroke { position: absolute; inset: auto 0 6% 0; width: 100%; height: 50%; pointer-events: none; opacity: .5; }
.ink-stroke path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 3.2s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--text-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 4px rgba(46, 158, 91, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(46, 158, 91, 0); } }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 800; margin: 22px 0 20px; }
.marker { position: relative; white-space: nowrap; z-index: 0; }
.marker::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: .06em; height: .42em; z-index: -1;
  background: var(--amber); opacity: .75; border-radius: .2em .5em .3em .6em; transform: skew(-8deg) scaleX(0); transform-origin: left;
  animation: mark .9s 1.1s var(--ease) forwards;
}
@keyframes mark { to { transform: skew(-8deg) scaleX(1); } }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 18px; }
.fine { font-size: .86rem; color: var(--text-3); max-width: 38em; }

.hero-stage { position: relative; aspect-ratio: 1.25; perspective: 1400px; }
.layer { position: absolute; transition: transform .6s var(--ease); will-change: transform; }
.layer-tablet { inset: 6% 0 auto 6%; width: 94%; }
.layer-phone { left: -4%; bottom: -4%; width: 31%; }
.layer-chip { z-index: 3; }
.chip-pen { right: -2%; top: -2%; }
.chip-theme { right: 6%; bottom: 4%; }
.chip-search { left: 18%; top: -6%; }
.device { position: relative; background: #111; border-radius: 22px; padding: 10px; box-shadow: var(--shadow); }
.device img { border-radius: 14px; width: 100%; height: auto; }
.device.phone { border-radius: 34px; padding: 9px; }
.device.phone img { border-radius: 26px; }
.device::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08); pointer-events: none; }
.float-card {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -18px rgba(27, 27, 26, .45); font-size: .9rem; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.chip-theme .float-card { animation-delay: -2s; }
.chip-search .float-card { animation-delay: -4s; }
.float-card em { font-style: normal; color: var(--text-3); font-size: .8rem; }
.float-card svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.pen-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--border); }
.mini-toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--night); position: relative; }
.mini-toggle i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); animation: flip 4s ease-in-out infinite; }
@keyframes flip { 0%, 40% { left: 3px; } 50%, 90% { left: 17px; } 100% { left: 3px; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); padding: 16px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 50s linear infinite; }
.marquee span { font-weight: 650; font-size: 1.05rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 40px; }
.marquee span::after { content: "✦"; color: var(--amber); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; padding: 0 24px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; margin: 10px 0 14px; }
.section-head p:not(.kicker) { color: var(--text-2); font-size: 1.1rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 750; color: var(--ink); }

/* ---------- showcase ---------- */
.showcase { padding: 120px 24px; transition: background .6s var(--ease), color .6s var(--ease); }
.showcase[data-theme="dark"] { background: var(--night); color: var(--night-text); }
.showcase[data-theme="dark"] .section-head p:not(.kicker) { color: var(--night-text-2); }
.showcase[data-theme="dark"] .kicker { color: #7D97FF; }
.showcase-controls { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--muted); border: 1px solid var(--border); }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text-2); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .3); }
.showcase[data-theme="dark"] .seg { background: var(--night-2); border-color: var(--night-border); }
.showcase[data-theme="dark"] .seg button { color: var(--night-text-2); }
.showcase[data-theme="dark"] .seg button[aria-pressed="true"] { background: #2F2F33; color: var(--night-text); }
.theme-switch { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; color: var(--text); }
.theme-switch .track { width: 46px; height: 26px; border-radius: 999px; background: var(--muted); position: relative; transition: background .3s; }
.theme-switch .track i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); transition: left .35s var(--ease), background .35s; }
.theme-switch[aria-pressed="true"] { background: var(--night-2); border-color: var(--night-border); color: var(--night-text); }
.theme-switch[aria-pressed="true"] .track { background: #000; }
.theme-switch[aria-pressed="true"] .track i { left: 23px; background: #7D97FF; }
.showcase-body { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: center; }
.screen-tabs { display: grid; gap: 8px; }
.screen-tabs button {
  text-align: left; border: 1px solid transparent; background: transparent; border-radius: 18px; padding: 14px 18px; cursor: pointer; font: inherit; color: inherit;
  position: relative; overflow: hidden; transition: background .3s, border-color .3s, opacity .3s;
}
.screen-tabs b { display: block; font-size: 1.05rem; }
.screen-tabs span { display: block; font-size: .9rem; color: var(--text-2); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), margin .4s; }
.screen-tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--border); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .4); }
.screen-tabs button[aria-selected="true"] span { max-height: 4em; margin-top: 4px; }
.screen-tabs button:disabled { opacity: .35; cursor: not-allowed; }
.screen-tabs .progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--ink); }
.screen-tabs button[aria-selected="true"] .progress.run { animation: fill var(--cycle, 5s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.showcase[data-theme="dark"] .screen-tabs span { color: var(--night-text-2); }
.showcase[data-theme="dark"] .screen-tabs button[aria-selected="true"] { background: var(--night-2); border-color: var(--night-border); }
.showcase[data-theme="dark"] .screen-tabs .progress { background: #7D97FF; }
.device-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; min-height: 560px; justify-content: center; }
.showcase-device { transition: width .6s var(--ease), border-radius .6s, transform .6s var(--ease); }
.showcase-device.tablet { width: 100%; }
.showcase-device.portrait { width: min(440px, 100%); }
.showcase-device.phone { width: min(270px, 72%); border-radius: 38px; padding: 10px; }
.showcase-device.phone img { border-radius: 28px; }
.showcase-device img { transition: opacity .35s var(--ease), transform .5s var(--ease); }
.showcase-device img.swap { opacity: 0; transform: scale(.985); }
.showcase-caption { font-size: .9rem; color: var(--text-3); font-weight: 550; }

/* ---------- stories ---------- */
.stories { padding: 60px 24px 40px; display: grid; gap: 40px; }
.story { max-width: var(--max); margin: 0 auto; width: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 60px 0; }
.story.reverse .story-copy { order: 2; }
.story-copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; margin: 10px 0 18px; }
.story-copy p:not(.kicker) { color: var(--text-2); font-size: 1.1rem; }
.story-copy .hint { margin-top: 18px; font-size: .95rem; color: var(--ink); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%233256E6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.story-media { position: relative; }
.story-media .device { will-change: transform; }
.tilt-left { transform: rotate(-2.5deg); }
.tilt-right { transform: rotate(2.5deg); }
.story-media .stacked { position: absolute; width: 58%; right: -6%; bottom: -16%; transform: rotate(4deg); }
.dark-story { background: var(--night); color: var(--night-text); border-radius: 40px; padding: 72px 64px; max-width: calc(var(--max) + 64px); }
.dark-story .story-copy p:not(.kicker) { color: var(--night-text-2); }
.dark-story .kicker, .dark-story .hint { color: #7D97FF !important; }
.compare { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; }
.compare > img { width: 100%; }
.compare-top { position: absolute; inset: 10px; overflow: hidden; border-radius: 14px; clip-path: inset(0 0 0 var(--pos)); }
.compare-top img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.compare-handle { position: absolute; top: 10px; bottom: 10px; left: calc(10px + (100% - 20px) * var(--pos-n, .5)); width: 3px; margin-left: -1.5px; background: var(--amber); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--amber); color: var(--night); font-size: .7rem; font-weight: 800; padding: 10px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- bento ---------- */
.bento-wrap { padding: 100px 24px; }
.bento { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d;
}
.tile:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.tile h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.tile p { color: var(--text-2); font-size: .97rem; }
.tile-icon { font-size: 1.8rem; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--muted); }
.tile-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 6px; padding: 0; }
.tile-wide img { border-bottom: 1px solid var(--border); aspect-ratio: 16 / 10; object-fit: cover; object-position: center 20%; width: 100%; }
.tile-wide > div { padding: 22px 26px 26px; }
.tile-wide h3 { margin-top: 0; }
.tile-accent { background: linear-gradient(140deg, var(--ink) 0%, #5B4FE0 100%); color: #fff; border: 0; }
.tile-accent p { color: rgba(255, 255, 255, .85); }
.tile-accent .tile-icon { background: rgba(255, 255, 255, .18); }
.badge { position: absolute; top: 20px; right: 20px; background: var(--amber); color: var(--night); font-weight: 750; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }

/* ---------- stats ---------- */
.stats { max-width: var(--max); margin: 0 auto; padding: 20px 24px 100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 12px; border-top: 2px solid var(--text); }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; }
.stat span { color: var(--text-2); font-weight: 550; }

/* ---------- install ---------- */
.install { padding: 100px 24px; background: var(--surface); border-block: 1px solid var(--border); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.step .num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.15rem; }
.step h3 { margin: 18px 0 10px; font-size: 1.25rem; }
.step p { color: var(--text-2); }
.install-cta { text-align: center; margin-top: 48px; display: grid; justify-items: center; gap: 14px; }

/* ---------- faq ---------- */
.faq { padding: 100px 24px; }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 4px 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .3); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--ink); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 20px; }

/* ---------- final ---------- */
.final { margin: 0 24px 60px; border-radius: 40px; background: radial-gradient(120% 140% at 10% 0%, #5B4FE0 0%, var(--ink) 45%, #1D2F9E 100%); color: #fff; overflow: hidden; }
.final-inner { max-width: 820px; margin: 0 auto; text-align: center; padding: 110px 24px; display: grid; gap: 34px; justify-items: center; position: relative; z-index: 1; }
.final h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
.final-scribble { position: absolute; width: 60%; left: 20%; bottom: 8%; opacity: .35; }
.final-scribble path { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; }

.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 26px 24px 40px; display: flex; gap: 24px; align-items: center; color: var(--text-3); font-size: .9rem; }
.footer-inner a { margin-left: auto; color: var(--text-3); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* The first screen animates on load, without waiting for the scroll observer. */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; }
.hero-copy > .reveal:nth-child(2) { animation-delay: .08s; }
.hero-copy > .reveal:nth-child(3) { animation-delay: .16s; }
.hero-copy > .reveal:nth-child(4) { animation-delay: .24s; }
.hero-copy > .reveal:nth-child(5) { animation-delay: .32s; }
.hero-stage { animation: rise 1.1s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 110px; }
  .hero-stage { max-width: 720px; margin: 0 auto; width: 100%; }
  .showcase-body { grid-template-columns: 1fr; gap: 28px; }
  .screen-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .screen-tabs::-webkit-scrollbar { display: none; }
  .screen-tabs span { display: none; }
  .screen-tabs button { padding: 10px 16px; border-radius: 999px; }
  .story, .story.reverse { grid-template-columns: 1fr; gap: 36px; }
  .story.reverse .story-copy { order: 0; }
  .dark-story { padding: 56px 28px; border-radius: 32px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .device-wrap { min-height: 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav .btn-small { margin-left: auto; }
  .chip-search, .chip-pen { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; grid-row: auto; }
  .story-media .stacked { display: none; }
  .final { border-radius: 28px; margin: 0 12px 40px; }
  .final-inner { padding: 80px 20px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ink-stroke path { stroke-dashoffset: 0; }
  .marker::after { transform: skew(-8deg) scaleX(1); }
}
