/* ==========================================================================
   Notila — landing prototype (Change 058b, brand rename — Change 060)
   Pure HTML/CSS/JS. No frameworks, no external fonts, no analytics.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0B0C0E;
  --surface: #101113;
  --surface-2: #141619;
  --border: #1E2024;
  --border-strong: #2A2E33;
  --text: #F2F1EC;
  --text-soft: #C9CCD1;
  --muted: #8B9098;
  --paper: #F1E9D8;
  --paper-hi: #FBF5E8;
  --paper-lo: #E7DCC5;
  --ink: #171717;
  --mint: #A7F3D0;
  --cream: #EDE3CF;

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Source Serif 4", "Times New Roman", serif;
  --font-hand: "Segoe Print", "Bradley Hand", "Segoe Script", "Comic Sans MS", cursive;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);
  --radius: 16px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #2A2E33 #0B0C0E;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(167, 243, 208, .065), transparent 62%),
    radial-gradient(900px 480px at 4% 2%, rgba(237, 227, 207, .05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; max-width: 100%; }

figure { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }

a { color: inherit; }

::selection {
  background: rgba(167, 243, 208, .28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

[aria-disabled="true"] { cursor: not-allowed; }

[id] { scroll-margin-top: 84px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-primary {
  background: var(--cream);
  color: #17181A;
  box-shadow: 0 10px 30px -18px rgba(237, 227, 207, .75);
}
.btn-primary:hover {
  background: #F6EEDF;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -18px rgba(237, 227, 207, .85);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, .012);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .045);
  border-color: #3A3F46;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: .84rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, .72);
  border-bottom: 1px solid rgba(30, 32, 36, .85);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 12, 14, .9);
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand-icon {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(167, 243, 208, .22);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  letter-spacing: -.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a {
  color: var(--muted);
  font-size: .93rem;
  text-decoration: none;
  transition: color .18s ease;
}
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-login {
  color: var(--muted);
  font-size: .89rem;
  text-decoration: none;
  padding: 6px 2px;
  transition: color .18s ease;
}
.header-login:hover { color: var(--text); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  flex: none;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] {
  background: #1C1F23;
  color: var(--text);
}

.cta-short { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(40px, 6.4vw, 92px) clamp(48px, 7vw, 108px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy { min-width: 0; }

.kicker {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--mint);
  opacity: .6;
  flex: none;
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 4.8vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.hero-title-line { display: block; }
.hero-title-accent { color: #E6DCC9; }

.hero-sub {
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(.98rem, 1.15vw, 1.06rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 36px);
}

.hero-micro {
  margin-top: 18px;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .01em;
}

/* ----- Hero art: one paper sheet + product mockup + one drawn line ----- */
.hero-art {
  position: relative;
  height: clamp(400px, 40vw, 560px);
  min-width: 0;
  container-type: inline-size;
}

.shot {
  position: relative;
  border: 1px solid #262A30;
  border-radius: 14px;
  background: #101113;
  padding: 6px;
  box-shadow:
    0 34px 80px -34px rgba(0, 0, 0, .95),
    0 0 110px -34px rgba(167, 243, 208, .3),
    0 1px 0 rgba(255, 255, 255, .05) inset;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: var(--surface);
}
.shot-caption {
  padding: 8px 6px 3px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .05em;
  text-align: right;
}

.hero-shot {
  position: absolute;
  top: 0;
  right: 0;
  width: 86%;
  transform: rotate(1.3deg);
  transform-origin: 70% 30%;
  z-index: 1;
}

.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.thread-path {
  fill: none;
  stroke: rgba(167, 243, 208, .55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s cubic-bezier(.2, .65, .2, 1);
  filter: drop-shadow(0 0 5px rgba(167, 243, 208, .28));
}
.thread-dot {
  fill: var(--mint);
  opacity: 0;
  transition: opacity .5s ease .95s;
}
.hero-art.is-drawn .thread-path { stroke-dashoffset: 0; }
.hero-art.is-drawn .thread-dot { opacity: .8; }

/* ----- The notebook: cover edge, wire binding, elastic band, bookmark ----- */
.notebook {
  position: absolute;
  left: -2%;
  bottom: 2%;
  z-index: 3;
  width: 93%;
  transform: rotate(-2.4deg);
  transform-origin: 26% 88%;
}

.notebook-cover {
  position: absolute;
  inset: -12px -8px -10px -10px;
  z-index: 0;
  border-radius: 7px 10px 10px 7px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 7%),
    linear-gradient(155deg, #3D3930 0%, #2D2A23 52%, #211F1A 100%);
  box-shadow:
    0 30px 64px -26px rgba(0, 0, 0, .95),
    0 10px 24px -14px rgba(0, 0, 0, .8),
    0 1px 0 rgba(255, 255, 255, .07) inset;
  transform: rotate(.7deg);
}

.notebook-page {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 6.4cqw, 34px) clamp(26px, 7.6cqw, 40px) clamp(20px, 5.8cqw, 30px) clamp(30px, 8.6cqw, 46px);
  color: var(--ink);
  background:
    radial-gradient(120% 92% at 8% 0%, var(--paper-hi) 0%, var(--paper) 54%, var(--paper-lo) 100%);
  border-radius: 3px 7px 7px 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    -2px 1px 0 -1px rgba(231, 220, 197, .9),
    0 30px 58px -26px rgba(0, 0, 0, .92),
    0 6px 16px -8px rgba(0, 0, 0, .6);
}
.notebook-page::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 20px;
  border-radius: 3px 0 0 3px;
  background:
    radial-gradient(circle at 8px 7.4px,
      rgba(58, 48, 34, .55) 0 2.6px,
      rgba(255, 255, 255, .5) 2.9px 3.4px,
      rgba(255, 255, 255, 0) 3.8px) 0 0 / 100% 19px repeat-y,
    linear-gradient(90deg, rgba(92, 78, 56, .26), rgba(92, 78, 56, 0));
  pointer-events: none;
}
.notebook-page::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  border-radius: 0 0 7px 0;
  background: linear-gradient(135deg, transparent 48%, rgba(23, 23, 23, .08) 50%, rgba(23, 23, 23, .02) 100%);
  pointer-events: none;
}

/* Wire binding: metallic loops down the left edge, punched holes in the page. */
.notebook-spiral {
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 28px;
  background:
    repeating-linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0 6px,
      rgba(240, 233, 219, .92) 6px 7.4px,
      rgba(112, 104, 90, .82) 7.4px 9px,
      rgba(0, 0, 0, 0) 9px 19px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent);
  mask-image: linear-gradient(180deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent);
  pointer-events: none;
}

/* Barely visible elastic band holding the pages. */
.notebook-band {
  position: absolute;
  top: -10px;
  bottom: -8px;
  right: 12px;
  z-index: 2;
  width: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(20, 19, 17, .62) 0,
    rgba(112, 102, 86, .5) 45%,
    rgba(20, 19, 17, .7) 100%);
  box-shadow: 0 0 7px rgba(0, 0, 0, .3);
  opacity: .55;
  pointer-events: none;
}

/* Ribbon bookmark sticking out above the page. */
.notebook-bookmark {
  position: absolute;
  top: -26px;
  right: 21%;
  z-index: 2;
  width: 16px;
  height: 46px;
  background: linear-gradient(180deg, #CDA871, #A87F4B);
  clip-path: polygon(0 0, 50% 16%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .45);
  transform: rotate(2.2deg);
  pointer-events: none;
}

/* ----- Handwritten notes on the page ----- */
.paper-notes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 2.2cqw, 13px);
  font-family: var(--font-hand);
  font-size: clamp(12px, 3.3cqw, 17px);
  line-height: 1.5;
  letter-spacing: .01em;
  color: rgba(23, 23, 23, .88);
}

.paper-note {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1em .45em;
  transform: rotate(var(--tilt, 0deg));
}
.paper-note:nth-child(odd) { font-size: .97em; }
.paper-task { white-space: nowrap; }
.paper-remind {
  display: inline-flex;
  align-items: baseline;
  gap: .32em;
  white-space: nowrap;
}
.paper-arrow {
  color: rgba(23, 23, 23, .42);
  font-size: .95em;
}
.paper-remind-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(23, 23, 23, .25);
}

/* One item emphasized with a muted marker circle. */
.paper-note--marked { align-self: flex-start; }
.paper-note--marked::before {
  content: "";
  position: absolute;
  inset: -6px -10px -7px -9px;
  border: 2.2px solid rgba(172, 84, 58, .52);
  border-radius: 52% 48% 56% 44% / 60% 62% 38% 42%;
  transform: rotate(-1.3deg);
  pointer-events: none;
}

.hero-art-note {
  position: absolute;
  right: 4px;
  bottom: -30px;
  z-index: 4;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .05em;
  text-align: right;
}

/* ---------- Cases ---------- */
.cases {
  padding-block: 0 clamp(48px, 7vw, 92px);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.case {
  padding: 22px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .006));
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.case:hover {
  border-color: #2C3036;
  transform: translateY(-2px);
}
.case::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--mint);
  opacity: .55;
}
.case h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.24;
  letter-spacing: -.005em;
}
.case p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
}

/* ---------- Shared section layout ---------- */
.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  line-height: 1.13;
  letter-spacing: -.016em;
  text-wrap: balance;
}
.title-dim {
  display: block;
  color: #9AA1A9;
}

/* ---------- Flow: the problem and the three moves in one block ---------- */
.flow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(26px, 3.6vw, 42px);
}
.flow-head .section-title { margin: 0; }
.flow-lead {
  max-width: 38ch;
  padding-bottom: 4px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4.6vw, 68px);
  align-items: start;
}

.flow-problems {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
}
.problem-item {
  border-left: 1px solid rgba(167, 243, 208, .3);
  padding-left: clamp(16px, 1.8vw, 22px);
}
.problem-item h3 {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  letter-spacing: -.005em;
}
.problem-item p {
  max-width: 46ch;
  color: var(--muted);
  font-size: .95rem;
}

.flow-steps-title {
  margin: 0 0 4px;
  color: var(--mint);
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.steps { border-top: 1px solid var(--border); }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  align-items: start;
  padding: 18px 0 17px;
  border-bottom: 1px solid var(--border);
}
.step-num {
  padding-top: 3px;
  color: var(--mint);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1;
  opacity: .8;
}
.step-body { min-width: 0; }
.step h4 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  letter-spacing: -.005em;
}
.step p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

/* ---------- Inside ---------- */
.inside-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  grid-column: span 2;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, .004));
  transition: border-color .2s ease;
}
.feature:hover { border-color: #2C3036; }
.feature-wide { grid-column: span 3; }
.feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.13rem;
}
.feature p {
  color: var(--muted);
  font-size: .95rem;
}
.feature-wide p { max-width: 46ch; }

/* ---------- Demo ---------- */
.demo-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4.6vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(110% 130% at 88% 6%, rgba(167, 243, 208, .075), transparent 58%),
    linear-gradient(180deg, #101113, #0D0E10);
  overflow: hidden;
}
.demo-copy { min-width: 0; }
.demo-copy .section-title { margin-bottom: 16px; }
.demo-text {
  max-width: 44ch;
  color: var(--muted);
  font-size: 1rem;
}
.demo-actions { margin-top: clamp(24px, 3vw, 32px); }
.demo-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .8rem;
}

.demo-visual { min-width: 0; }
.demo-shot {
  max-width: 520px;
  margin-left: auto;
  transform: rotate(-1.1deg);
}
.demo-shot .shot-caption { text-align: left; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 860px; }
.faq .section-title { margin-bottom: clamp(20px, 3vw, 30px); }

.faq-list { border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 2px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 22px;
  text-align: center;
  color: var(--mint);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .18s ease;
}
.faq-item summary:hover { color: var(--mint); }
.faq-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}
.faq-item p {
  max-width: 68ch;
  padding: 0 44px 22px 2px;
  color: var(--muted);
  font-size: .97rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(34px, 5vw, 56px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: grid; gap: 14px; }
.footer-tagline {
  max-width: 36ch;
  color: var(--muted);
  font-size: .9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: .9rem;
}
.footer-links > a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease;
}
.footer-links > a:hover { color: var(--text); }
.lang-switch-footer { margin-left: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .header-inner { gap: 20px; }
}

@media (max-width: 900px) {
  .nav { display: none; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(36px, 6vw, 56px);
  }
  .hero-art {
    width: 100%;
    max-width: 660px;
    height: clamp(400px, 68vw, 560px);
    margin-inline: auto;
  }
  .hero-shot { width: 88%; }
  .notebook { width: 92%; left: 0; bottom: 1%; }
  .paper-note:nth-child(n + 4) { display: none; }

  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .flow-lead { max-width: 52ch; padding-bottom: 0; }
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-steps { margin-top: clamp(6px, 1.6vw, 14px); }

  .inside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature,
  .feature-wide { grid-column: span 1; }

  .demo-panel { grid-template-columns: minmax(0, 1fr); }
  .demo-shot { max-width: 560px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .header-login { display: none; }
  .header-inner { gap: 14px; min-height: 60px; }
  .header-actions { gap: 8px; }
}

@media (max-width: 600px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .header-cta { padding: 0 13px; }
}

@media (max-width: 560px) {
  .cases-grid { grid-template-columns: minmax(0, 1fr); }
  .inside-grid { grid-template-columns: minmax(0, 1fr); }

  .hero { padding-top: 34px; }
  .hero-title { font-size: clamp(1.95rem, 8.6vw, 2.6rem); }
  .hero-micro { font-size: .78rem; }

  .hero-art { height: clamp(330px, 80vw, 460px); }
  .hero-shot { width: 90%; }
  .notebook { width: 94%; left: 0; }
  .notebook-bookmark { right: 17%; }

  .faq-item summary { font-size: .96rem; padding: 17px 2px; }
  .faq-item p { padding-right: 12px; }

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 16px 18px; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 1.08rem; }
  .brand-icon { width: 25px; height: 25px; }
  .hero-art { height: 320px; }
  .notebook { width: 95%; }
  .notebook-spiral { left: -13px; width: 27px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .thread-path { stroke-dashoffset: 0; }
  .thread-dot { opacity: .8; transition-delay: 0s; }
}
