/* NoteHarbor · AFFiNE-informed composition / Raycast-informed depth · 2026-11-02.
   Scoped marketing layer. Account, entitlement and checkout behavior are unchanged. */
:root {
  --ref-page: #0b111e;
  --ref-surface: #111a2e;
  --ref-raised: #16233a;
  --ref-line: rgba(255, 255, 255, .1);
  --ref-ink: #f1f5f9;
  --ref-muted: #b2bdce;
  --ref-blue: #0b84f3;
  --ref-blue-soft: #8bc8ff;
  --ref-radius: 24px;
  --ref-ease: cubic-bezier(.22, 1, .36, 1);
}

/* A quiet, floating navigation shared by the public pages. */
.site-header, .site-header.header-scrolled {
  top: 12px;
  padding-inline: 24px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.site-header .header-inner {
  min-height: 68px;
  max-width: 1200px;
  padding: 0 22px;
  border: 1px solid var(--ref-line);
  border-radius: 18px;
  background: rgba(12, 19, 32, .98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .13);
}
.site-header .brand { gap: 10px; }
.site-header .brand strong { font-size: 19px; letter-spacing: -.6px; }
.site-header nav { gap: 25px; font-size: 13px; }
.site-header .header-actions { gap: 14px; }
.site-header .header-account { font-size: 13px; }
.site-header .header-download { border-radius: 10px; font-size: 12px; }
.site-header .language-trigger { border-radius: 10px; min-height: 42px; }
.site-header.header-hidden:not(:focus-within) { transform: translateY(calc(-100% - 16px)); }

body[data-home] { background: var(--ref-page); color: var(--ref-ink); }
body[data-home] main { overflow: clip; }
body[data-home] .section-shell { max-width: 1200px; }
body[data-home] h1, body[data-home] h2, body[data-home] h3 {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 600;
  color: var(--ref-ink);
}
body[data-home] .section-heading h2,
body[data-home] .faq-heading h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 21ch;
  margin-block: 12px 20px;
}
body[data-home] .section-heading > p {
  max-width: 57ch;
  line-height: 1.7;
  font-size: 17px;
  color: var(--ref-muted);
}
.section-kicker { font-size: 13px; font-weight: 500; color: var(--ref-blue-soft); }

/* The opening takes its personality from the owner's illustrated welcome. */
body[data-home] .hero {
  position: relative;
  isolation: isolate;
  padding-top: 70px;
  padding-bottom: 0;
  overflow: visible;
}
body[data-home] .hero::before {
  content: "";
  position: absolute;
  inset: -80px -20vw 150px;
  background: radial-gradient(ellipse at 50% 43%, rgba(11, 132, 243, .13), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
body[data-home] .hero-composition { display: flex; flex-direction: column; gap: 48px; }
body[data-home] .hero-copy { text-align: center; max-width: 100%; padding: 0; }
.hero-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .01em;
}
.hero-platform .icon { width: 15px; height: 15px; color: var(--ref-blue-soft); }
body[data-home] .hero-copy h1 {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(62px, 7vw, 94px);
  line-height: 1.02;
  letter-spacing: -5.5px;
  font-weight: 600;
}
body[data-home] .hero-copy h1 > .hero-emphasis {
  display: block;
  color: var(--ref-blue-soft);
  margin-top: 2px;
  padding-bottom: 7px;
  width: fit-content;
  margin-inline: auto;
}
body[data-home] .hero-emphasis .living-ink-svg { bottom: -4px; height: 17px; opacity: .65; }
body[data-home] .hero-subtitle { margin: 24px auto 0; max-width: 48ch; font-size: 18px; line-height: 1.65; }
body[data-home] .hero-ctas { justify-content: center; margin-top: 26px; gap: 16px; }
body[data-home] .hero-ctas .button { border-radius: 12px; }
body[data-home] .hero-tour-link { border: 0; background: transparent; padding-inline: 12px; }
body[data-home] .hero-tour-link:hover { background: var(--ref-raised); }
body[data-home] .hero-meta { justify-content: center; margin-top: 19px; font-size: 12px; gap: 20px; }
body[data-home] .hero-meta .icon { width: 14px; height: 14px; }
body[data-home] .product-stage {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  perspective: none;
}
body[data-home] .product-surface {
  padding: 10px;
  border: 1px solid rgba(139, 200, 255, .22);
  border-radius: 22px;
  background: #101b2c;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .3), 0 -12px 70px rgba(11, 132, 243, .07);
}
body[data-home] .product-stage-label { padding: 6px 9px 15px; font-size: 12px; }
body[data-home] .product-stage-label .icon { width: 15px; height: 15px; }
body[data-home] .product-surface .product-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); }
body[data-home] .product-stage figcaption { padding: 10px 4px 0; color: var(--ref-muted); }
body[data-home] .product-stage figcaption > span { display: flex; gap: 7px; align-items: center; }
body[data-home] .product-stage figcaption .icon { width: 14px; height: 14px; color: var(--ref-blue-soft); }
.stage-note {
  display: grid;
  position: absolute;
  inset-inline-end: -156px;
  top: 17px;
  width: 130px;
  color: var(--ref-blue-soft);
  font: italic 15px/1.4 "Segoe UI", sans-serif;
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 1;
}
.stage-note svg { width: 58px; height: 45px; margin-inline-start: 6px; transform: scaleX(-1); }
body[data-home] .product-principles {
  width: 100%;
  margin-top: 42px;
  padding-block: 22px;
  border-block: 1px solid var(--ref-line);
}
body[data-home] .product-principles > span { justify-content: center; font-size: 13px; }
body[data-home] .product-principles > span + span { border-color: var(--ref-line); }

/* A wide document story, then paired media and organization stories. */
body[data-home] .features { padding-top: 100px; }
body[data-home] .features .section-heading { margin-bottom: 38px; }
body[data-home] .bento-grid { gap: 22px; }
body[data-home] .features .bento-card {
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  background: #101929;
  padding: 32px;
  min-width: 0;
}
body[data-home] .feature-copy h3, body[data-home] .backup-copy h3 {
  font-size: 31px;
  line-height: 1.17;
  letter-spacing: -1px;
  margin-block: 18px 16px;
  max-width: none;
}
body[data-home] .feature-copy p, body[data-home] .backup-copy p { font-size: 16px; line-height: 1.7; color: var(--ref-muted); }
body[data-home] .feature-icon { width: 30px; height: 30px; padding: 0; background: none; border: 0; }
body[data-home] .feature-icon .icon { width: 25px; height: 25px; color: var(--ref-blue-soft); }
body[data-home] .features .bento-card:hover { border-color: var(--ref-line); }
body[data-home] .features .f1-card { display: grid; grid-template-columns: .8fr 1.3fr; gap: 38px; align-items: center; padding: 38px; }
body[data-home] .f1-card .feature-copy { max-width: 340px; }
body[data-home] .f1-card .feature-copy h3 { font-size: 36px; max-width: 16ch; }
body[data-home] .f1-card .feature-shot { margin: 0; border: 1px solid var(--ref-line); border-radius: 14px; padding: 0; overflow: hidden; aspect-ratio: 1.6; }
body[data-home] .f1-card .feature-shot img { width: 100%; height: 100%; object-fit: contain; }
body[data-home] .feature-shot { background: transparent; border: 0; border-radius: 14px; margin-top: 28px; padding: 0; }
body[data-home] .f4-card .feature-shot { aspect-ratio: 1.8; height: auto; display: flex; align-items: center; }
body[data-home] .f4-card .media-view-cutout { width: 100%; }
body[data-home] .f3-card .feature-shot { min-height: 250px; display: grid; place-items: center; position: relative; }
body[data-home] .f3-card .feature-shot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse, rgba(11, 132, 243, .13), transparent 70%); pointer-events: none; }
body[data-home] .f3-card .media-view-cutout { width: min(100%, 360px); position: relative; }
body[data-home] .features .folder-card, body[data-home] .features .backup-card { background: transparent; }
body[data-home] .folder-preview { margin-top: 28px; border: 1px solid var(--ref-line); padding: 0; border-radius: 16px; background: #121212; }
body[data-home] .folder-preview img { width: 100%; height: auto; }
body[data-home] .card-caption { color: var(--ref-blue-soft); font-size: 12px; margin-top: 20px; }
body[data-home] .backup-file { margin-top: 28px; padding: 22px; border-radius: 16px; background: #111b2d; border: 1px solid var(--ref-line); }
body[data-home] .backup-file > .media-view { width: 64px; }
body[data-home] .backup-privacy { border-color: var(--ref-line); margin-top: 28px; color: var(--ref-muted); }

/* Compact workflow, a four-step reading rhythm rather than tall sticky panels. */
body[data-home] .stacking-cards-section { padding-top: 88px; padding-bottom: 0; }
body[data-home] .stacking-cards-section .section-heading { max-width: 700px; margin-bottom: 30px; }
body[data-home] .stacking-cards-deck { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; border-block: 1px solid var(--ref-line); }
body[data-home] .stacking-card {
  position: relative !important;
  top: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  height: auto;
  padding: 28px 20px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
}
body[data-home] .stacking-card + .stacking-card { border-inline-start: 1px solid var(--ref-line) !important; }
body[data-home] .stack-card-body h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 12px; }
body[data-home] .stack-card-body p { font-size: 14px; line-height: 1.65; margin: 0; }
body[data-home] .stack-card-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 0; border: 0; }
body[data-home] .stack-card-step { font-size: 12px; color: var(--ref-blue-soft); }
body[data-home] .stack-card-tag { font-size: 12px; border: 0; background: transparent; padding: 0; color: var(--ref-muted); }
body[data-home] .stack-card-tag + .stack-card-tag { display: none; }

body[data-home] .library-section { padding-top: 100px; }
body[data-home] .library-preview { margin-top: 38px; padding: 12px; border-radius: 22px; border: 1px solid var(--ref-line); background: #121b2b; }
body[data-home] .library-preview img { border-radius: 12px; width: 100%; height: auto; }
body[data-home] .library-preview figcaption { padding-top: 14px; color: var(--ref-muted); font-size: 12px; }
body[data-home] .tools-section { padding-top: 100px; }
body[data-home] .tools-gif-grid { gap: 22px; }
body[data-home] .tool-gif-card { padding: 24px; background: #101929; border-color: var(--ref-line); border-radius: 20px; }
body[data-home] .tool-gif-heading { gap: 10px; margin-bottom: 22px; }
body[data-home] .tool-gif-heading h3 { font-size: 18px; letter-spacing: -.3px; }
body[data-home] .tool-gif-heading .icon { color: var(--ref-blue-soft); width: 20px; height: 20px; }
body[data-home] .tool-gif-card .media-view { display: flex; justify-content: center; align-items: flex-start; height: 430px; overflow: hidden; padding: 0; border: 0; background: transparent; }
body[data-home] .tool-gif-card .media-view svg { width: auto; max-width: 100%; height: auto; max-height: 430px; }
body[data-home] .tool-gif-card p { color: var(--ref-muted); font-size: 14px; line-height: 1.65; margin: 22px 0 0; }
body[data-home] #showcase { padding-top: 100px; }
body[data-home] .showcase-tabs { margin-top: 30px; padding-bottom: 14px; gap: 8px; border-color: var(--ref-line); }
body[data-home] .showcase-tab { min-height: 46px; border-radius: 10px; border-color: transparent; font-weight: 500; font-size: 14px; }
body[data-home] .showcase-tab.active { border-color: rgba(139, 200, 255, .2); background: #172c46; }
body[data-home] .showcase-gif-panel { border-color: var(--ref-line); border-radius: 20px; background: #101929; }
body[data-home] .showcase-footer { padding: 28px 32px; border-top: 1px solid var(--ref-line); background: transparent; }
body[data-home] .showcase-desc-box h3 { font-size: 26px; letter-spacing: -.7px; margin: 0 0 10px; }
body[data-home] .showcase-desc-box p { max-width: 72ch; font-size: 15px; }
body[data-home] .split-preview { border-top: 1px solid var(--ref-line); padding: 28px; background: #0e1727; }
body[data-home] .split-preview-heading h4 { font-size: 20px; }

body[data-home] #pricing { padding-top: 100px; }
body[data-home] #pricing > .section-heading { margin-bottom: 32px; }
body[data-home] .price-card { border-radius: 20px; border-color: var(--ref-line); background: #101929; padding: 28px 25px; }
body[data-home] .price-card.price-featured { border-color: #456482; background: #131f32; }
body[data-home] .price-card h3 { font-size: 24px; letter-spacing: -.5px; }
body[data-home] .price-card .price-amount { font-size: 42px; letter-spacing: -1.5px; }
body[data-home] .plan-label { color: var(--ref-muted); letter-spacing: .05em; font-size: 10px; }
body[data-home] .popular-badge { border-radius: 8px; background: #0b84f3; color: #061728; border: 0; font-size: 11px; }
body[data-home] .studio-edition-card { border-radius: 24px; border-color: var(--ref-line); }
body[data-home] .studio-section-heading h2 { max-width: none; font-size: 38px; letter-spacing: -1.5px; }
body[data-home] .studio-edition-details h3 { font-size: 34px; letter-spacing: -1px; }
body[data-home] .faq { padding-top: 100px; padding-bottom: 50px; }
body[data-home] .faq-heading p { font-size: 16px; line-height: 1.7; color: var(--ref-muted); }
body[data-home] .faq-list details { border-color: var(--ref-line); }
body[data-home] .bottom-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 55px; padding: 48px; border-radius: 24px; background: #111d31; border-color: var(--ref-line); }
body[data-home] .bottom-cta h2 { font-size: 40px; line-height: 1.1; letter-spacing: -1.5px; max-width: 15ch; margin: 0 0 18px; }
body[data-home] .bottom-cta p { max-width: 45ch; font-size: 16px; line-height: 1.65; color: var(--ref-muted); }
body[data-home] .bottom-cta .hero-ctas { flex-shrink: 0; display: grid; margin: 0; }
body[data-home] .release-details { padding-block: 25px 42px; }
body[data-home] .site-footer { border-color: var(--ref-line); }

/* Motion adds continuity without moving the reading surface under the pointer. */
@keyframes harbor-opening { from { opacity: .75; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  body[data-home] .hero-copy { animation: harbor-opening 560ms var(--ref-ease) both; }
  body[data-home] .product-surface { animation: harbor-opening 680ms var(--ref-ease) both; }
}
body[data-home] .motion-reveal { filter: none !important; }
body[data-home] a.text-link, body[data-home] .hero-tour-link { transition: color 180ms ease, background-color 180ms ease; }
body[data-home] .button:focus-visible, body[data-home] .showcase-tab:focus-visible { outline-color: var(--ref-blue-soft); }

@media (max-width: 1100px) {
  .stage-note { display: none; }
  .site-header nav { gap: 17px; }
  .site-header .header-actions { gap: 10px; }
  body[data-home] .features .f1-card { gap: 26px; padding: 30px; }
  body[data-home] .f1-card .feature-copy h3 { font-size: 31px; }
}
@media (max-width: 900px) {
  body[data-home] .hero { padding-top: 48px; }
  body[data-home] .hero-copy h1 { font-size: 78px; letter-spacing: -4px; }
  body[data-home] .features .f1-card { grid-template-columns: 1fr; }
  body[data-home] .f1-card .feature-copy { max-width: 600px; }
  body[data-home] .f1-card .feature-copy h3 { max-width: 23ch; }
  body[data-home] .f3-card .feature-shot { min-height: 190px; }
  body[data-home] .stacking-cards-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-home] .stacking-card:nth-child(3) { border-inline-start: 0 !important; }
  body[data-home] .stacking-card:nth-child(n+3) { border-top: 1px solid var(--ref-line) !important; }
  body[data-home] .tool-gif-card { padding: 18px; }
  body[data-home] .tool-gif-card .media-view { height: 330px; }
  body[data-home] .tool-gif-card .media-view svg { max-height: 330px; }
  body[data-home] .bottom-cta { flex-direction: column; align-items: flex-start; }
  body[data-home] .bottom-cta .hero-ctas { display: flex; }
}
@media (max-width: 800px) {
  .site-header, .site-header.header-scrolled { padding-inline: 16px; top: 8px; }
  .site-header .header-inner { padding: 0 16px; min-height: 62px; }
  .site-header #site-nav { background: #101b2c; border: 1px solid var(--ref-line); border-radius: 16px; inset-inline: 16px; top: 72px; padding: 16px; }
  body[data-home] .product-principles { gap: 8px; flex-wrap: wrap; justify-content: center; }
  body[data-home] .product-principles > span { border: 0; padding: 7px 12px; }
}
@media (max-width: 600px) {
  body[data-home] .hero { padding-top: 42px; }
  body[data-home] .hero-copy h1 { font-size: clamp(47px, 11vw, 65px); line-height: 1.06; letter-spacing: -2.8px; }
  .hero-platform { font-size: 12px; padding: 0; margin-bottom: 18px; }
  body[data-home] .hero-subtitle { font-size: 16px; margin-top: 20px; max-width: 31ch; }
  body[data-home] .hero-ctas { gap: 8px; flex-wrap: wrap; }
  body[data-home] .hero-meta { font-size: 11px; gap: 14px; margin-top: 15px; }
  body[data-home] .hero-composition { gap: 35px; }
  body[data-home] .product-surface { border-radius: 15px; padding: 6px; }
  body[data-home] .product-stage-label { padding: 7px 7px 10px; font-size: 11px; }
  body[data-home] .product-stage figcaption { font-size: 10px; gap: 8px; }
  body[data-home] .product-stage figcaption > a { font-size: 11px; }
  body[data-home] .product-principles { margin-top: 25px; padding-block: 14px; }
  body[data-home] .product-principles > span { font-size: 12px; }
  body[data-home] .section-heading h2, body[data-home] .faq-heading h2 { font-size: 34px; letter-spacing: -1.2px; }
  body[data-home] .section-heading > p { font-size: 16px; }
  body[data-home] .features, body[data-home] .library-section, body[data-home] .tools-section,
  body[data-home] #showcase, body[data-home] #pricing, body[data-home] .faq { padding-top: 68px; }
  body[data-home] .features .bento-card { padding: 25px 22px; border-radius: 20px; }
  body[data-home] .feature-copy h3, body[data-home] .backup-copy h3, body[data-home] .f1-card .feature-copy h3 { font-size: 29px; }
  body[data-home] .f3-card .feature-shot { min-height: 215px; }
  body[data-home] .stacking-cards-section { padding-top: 65px; }
  body[data-home] .stacking-card { padding: 23px 13px; }
  body[data-home] .stack-card-body h3 { font-size: 18px; }
  body[data-home] .stack-card-body p { font-size: 13px; }
  body[data-home] .stack-card-tag { display: none; }
  body[data-home] .library-preview { padding: 6px; border-radius: 14px; }
  body[data-home] .library-preview figcaption { font-size: 11px; line-height: 1.5; padding: 12px 6px 6px; }
  body[data-home] .tools-gif-grid { grid-template-columns: 1fr; gap: 18px; }
  body[data-home] .tool-gif-card { padding: 24px; }
  body[data-home] .tool-gif-card .media-view { height: 350px; }
  body[data-home] .tool-gif-card .media-view svg { max-height: 350px; }
  body[data-home] .showcase-tabs { gap: 7px; }
  body[data-home] .showcase-tab { flex-basis: calc(50% - 7px); font-size: 13px; }
  body[data-home] .showcase-footer { padding: 24px 22px; }
  body[data-home] .showcase-desc-box h3 { font-size: 23px; }
  body[data-home] .split-preview { padding: 20px; }
  body[data-home] .bottom-cta { padding: 32px 25px; margin-top: 20px; gap: 24px; }
  body[data-home] .bottom-cta h2 { font-size: 34px; }
  body[data-home] .bottom-cta .hero-ctas { display: grid; width: 100%; }
}
html[lang=ar] body[data-home] h1, html[lang=ar] body[data-home] h2, html[lang=ar] body[data-home] h3 { font-family: var(--font-arabic-display); letter-spacing: 0; }
html[lang=ar] body[data-home] .hero-copy h1 { font-size: clamp(45px, 6.5vw, 84px); line-height: 1.5; }
html[lang=ar] .stage-note { transform: rotate(-8deg); font-style: normal; }
html[lang=ar] .stage-note svg { transform: none; }
@media (max-width: 600px) {
  html[lang=ar] body[data-home] .hero-copy h1 { font-size: 48px; line-height: 1.5; }
  html[lang=ar] body[data-home] .section-heading h2 { font-size: 29px; line-height: 1.6; }
  html[lang=ar] body[data-home] .feature-copy h3, html[lang=ar] body[data-home] .backup-copy h3 { font-size: 25px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-home] .hero-copy, body[data-home] .product-surface { animation: none; }
  body[data-home] .motion-reveal { transform: none !important; opacity: 1 !important; }
}

/* An orbit of actual app captures. The detail uses the native modal top layer. */
body[data-home] .orbit-gallery { padding-block: 76px 30px; }
.orbit-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; }
.orbit-heading h2 { margin-block:14px; font-size:clamp(32px,4vw,48px); letter-spacing:-.035em; line-height:1.15; }
.orbit-heading p { max-width:560px; color:var(--ref-muted,#b2bdce); font-size:16px; line-height:1.65; }
.orbit-pause { display:inline-flex; align-items:center; justify-content:center; gap:9px; flex:0 0 auto; min-height:44px; padding:10px 15px; border:1px solid #34475e; border-radius:10px; background:#111c2c; color:#d4e7fa; font:inherit; font-size:13px; cursor:pointer; }
.orbit-pause:hover { background:#1a2c43; }
.orbit-pause .icon { width:16px; height:16px; }
.orbit-stage { height:445px; position:relative; perspective:1200px; isolation:isolate; margin-top:26px; }
.orbit-axis { position:absolute; width:76%; height:150px; border:1px solid #25374b; border-radius:50%; inset:calc(50% - 45px) 12% auto; transform:rotateX(58deg); pointer-events:none; }
.orbit-card { position:absolute; left:50%; top:39%; translate:-50% -50%; width:310px; height:224px; padding:10px; border:1px solid #46586e; border-radius:17px; background:#122033; color:#f1f5f9; text-align:start; cursor:pointer; box-shadow:0 16px 34px #0006; backface-visibility:hidden; }
.orbit-card-shot { display:flex; align-items:center; justify-content:center; width:100%; height:165px; border-radius:10px; overflow:clip; background:#0b1523; }
.orbit-card-shot :is(img,svg) { display:block; width:100%; height:100%; object-fit:contain; }
.orbit-card[data-orbit-card=audio] .orbit-card-shot svg { width:76%; height:90%; }
.orbit-card-label { display:block; padding:12px 24px 0 3px; font-size:13px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.orbit-card-open { position:absolute; inset-inline-end:13px; bottom:13px; color:#91c6ff; }
.orbit-card-open .icon { width:15px; height:15px; }
.orbit-card:hover,.orbit-card.is-selected { border-color:#8cc8ff; }
.orbit-card:focus-visible { outline:3px solid #a3d4ff; outline-offset:5px; opacity:1!important; z-index:101!important; }
.orbit-pause:focus-visible,.orbit-detail :is(a,button):focus-visible { outline:2px solid #a3d4ff; outline-offset:4px; }
.orbit-hint { display:flex; align-items:center; justify-content:center; gap:10px; color:#99afc7; font-size:13px; }
.orbit-hint .icon { width:16px; height:16px; }
dialog.orbit-detail { width:min(980px,calc(100vw - 40px)); max-width:980px; max-height:calc(100dvh - 40px); padding:0; border:1px solid #3b506a; border-radius:22px; background:#101b2a; color:#f1f5f9; box-shadow:0 36px 100px #0009; overflow:auto; }
.orbit-detail::backdrop { background:rgba(3,8,17,.85); }
.orbit-detail[open]:not(.is-closing) { animation:orbit-open 420ms cubic-bezier(.16,1,.3,1) both; }
.orbit-detail-top { display:flex; align-items:center; justify-content:space-between; padding:16px 22px; border-bottom:1px solid #293b51; }
.orbit-detail-top .brand { font-size:15px; }
.orbit-detail-top .icon-button { width:44px; height:44px; }
.orbit-detail-media { display:grid; place-items:center; min-height:260px; padding:22px; background:#0b1421; }
.orbit-detail-media figure { width:100%; margin:0; }
.orbit-detail-media figure[hidden] { display:none; }
.orbit-detail-media :is(img,svg) { display:block; width:100%; height:clamp(240px,45vh,510px); object-fit:contain; border-radius:10px; }
.orbit-detail-media [data-orbit-detail=audio] svg { max-width:460px; margin:auto; }
.orbit-detail-copy { padding:25px 30px 30px; }
.orbit-detail-copy h3 { font-size:clamp(24px,3vw,32px); line-height:1.2; letter-spacing:-.025em; margin:0 0 12px; }
.orbit-detail-copy p { color:#b7c5d6; font-size:16px; line-height:1.65; max-width:72ch; margin:0 0 18px; }
.orbit-static .orbit-stage { display:flex; align-items:stretch; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; height:auto; padding:16px 5px 24px; perspective:none; }
.orbit-static .orbit-card { position:relative; left:auto; top:auto; translate:none; flex:0 0 280px; height:224px; scroll-snap-align:center; }
.orbit-static .orbit-axis,.orbit-static .orbit-pause { display:none; }
@keyframes orbit-open { from{opacity:0;transform:translateY(18px) scale(.93)}to{opacity:1;transform:none} }
@media(max-width:680px) {
 body[data-home] .orbit-gallery { padding-block:50px 12px; }
 .orbit-heading { display:block; }
 .orbit-heading h2 { font-size:32px; }
 .orbit-hint { justify-content:flex-start; line-height:1.5; }
 dialog.orbit-detail { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); border-radius:16px; }
 .orbit-detail-media { padding:12px; min-height:200px; }
 .orbit-detail-media :is(img,svg) { height:250px; }
 .orbit-detail-copy { padding:22px; }
}
@media(prefers-reduced-motion:reduce) {
 .orbit-detail[open] { animation:none!important; }
 .scroll-motion .bento-card :is(.feature-copy,.backup-copy,.feature-shot,.folder-preview,.backup-file) { opacity:1!important; transform:none!important; transition:none!important; }
}

/* Reference-informed motion: staged arrival, small offsets, independent surfaces. */
body[data-home] .hero-copy,body[data-home] .product-surface { animation:none; }
body[data-home] .product-stage:not(.is-tilting) { animation:none; }
.product-depth { transform:perspective(1400px) translate3d(0,var(--product-rise,0px),0) rotateX(var(--product-tilt,0deg)) scale(var(--product-scale,1)); transform-origin:50% 45%; }
.motion-word { display:inline-block; }
@media(prefers-reduced-motion:no-preference) {
 body[data-home] .hero-platform { animation:nh-arrive 550ms var(--nh-ease-decel) 30ms both; }
 body[data-home] .hero-copy h1 > span[data-i18n] { display:block; animation:nh-title-arrive 650ms var(--nh-ease-decel) 100ms both; }
 body[data-home] .hero-copy h1 > .hero-emphasis { animation:nh-title-arrive 650ms var(--nh-ease-decel) 190ms both; }
 body[data-home] .hero-subtitle { animation:nh-arrive 600ms var(--nh-ease-decel) 290ms both; }
 body[data-home] .hero-copy > .hero-ctas { animation:nh-arrive 550ms var(--nh-ease-decel) 360ms both; }
 body[data-home] .hero-meta { animation:nh-arrive 500ms var(--nh-ease-decel) 420ms both; }
 body[data-home] .product-surface { animation:nh-preview-arrive 700ms cubic-bezier(.215,.61,.355,1) 440ms both; }
 body[data-home] .living-ink-stroke { animation-delay:400ms; }
 .scroll-motion .section-heading.motion-reveal:not(.motion-seen) .motion-word { opacity:0; transform:translateY(16px); }
 .scroll-motion .section-heading.motion-reveal.motion-seen .motion-word { animation:nh-word-arrive 580ms cubic-bezier(.215,.61,.355,1) calc(var(--word-order,0)*45ms) both; }
 body[data-home] .bento-card.motion-reveal { transition-duration:480ms,700ms!important; }
}
@media(hover:hover) and (pointer:fine) {
 body[data-home] :is(.text-link,.hero-tour-link,figcaption a) .icon { transition:transform 200ms ease-out; }
 body[data-home] :is(.text-link,.hero-tour-link,figcaption a):hover .icon { transform:translateX(3px); }
 html[dir=rtl] body[data-home] :is(.text-link,.hero-tour-link,figcaption a):hover .icon { transform:translateX(-3px); }
}
.showcase-tab { transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease; }
.language-menu[open] .language-popover { animation:nh-menu-arrive 180ms cubic-bezier(.16,1,.3,1) both; }
@keyframes nh-arrive { from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none} }
@keyframes nh-title-arrive { from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none} }
/* Starts visible (owner, Nov 19 2026): the hero is painted at once, so the page counts as loaded sooner (LCP). */
@keyframes nh-preview-arrive { from{opacity:.4;transform:translateY(20px) scale(.985)}to{opacity:1;transform:none} }
@keyframes nh-word-arrive { from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none} }
@keyframes nh-menu-arrive { from{opacity:0;transform:translateY(-3px) scale(.98)}to{opacity:1;transform:none} }
@media(prefers-reduced-motion:reduce) {
 .product-depth { transform:none; }
 body[data-home] .hero-copy > *,body[data-home] .hero-copy h1 > *,body[data-home] .product-surface,.motion-word,.language-menu[open] .language-popover { animation:none!important; opacity:1!important; transform:none!important; }
 body[data-home] :is(.text-link,.hero-tour-link,figcaption a) .icon { transition:none; transform:none!important; }
}

/* Alternating product stories — each image stays beside its own description. */
body[data-home] :is(.bento-grid,.tools-gif-grid) {display:flex;flex-direction:column;align-items:stretch;gap:0;}
body[data-home] :is(.features .bento-card,.tool-gif-card).story-row {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(36px,6vw,90px);min-height:540px;padding:68px 0;border:0;border-bottom:1px solid var(--ref-line);border-radius:0;background:transparent;box-shadow:none;}
body[data-home] .story-row:nth-child(even) {grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);}
body[data-home] .story-row .story-copy {grid-column:1;grid-row:1;max-width:460px;}
body[data-home] .story-row .story-visual {grid-column:2;grid-row:1;width:100%;margin:0;min-height:0;}
body[data-home] .story-row:nth-child(even) .story-copy {grid-column:2;}
body[data-home] .story-row:nth-child(even) .story-visual {grid-column:1;}
body[data-home] .story-row :is(.feature-copy,.backup-copy,.tool-gif-heading) h3 {max-width:18ch;font-size:clamp(30px,3.4vw,44px);line-height:1.14;letter-spacing:-1.25px;}
body[data-home] .story-row :is(.story-copy p,.backup-copy p) {font-size:17px;line-height:1.75;color:var(--ref-muted);}
body[data-home] .story-row .card-caption {display:block;margin-top:24px;}
body[data-home] .f1-card .story-visual {aspect-ratio:auto;border:1px solid var(--ref-line);border-radius:16px;background:#111b2b;padding:8px;}
body[data-home] .f1-card .story-visual img {display:block;width:100%;height:auto;}
body[data-home] .f3-card .story-visual {display:grid;place-items:center;min-height:280px;}
body[data-home] .f3-card .story-visual .media-view {width:min(100%,420px);}
body[data-home] .f4-card .story-visual {aspect-ratio:auto;}
body[data-home] .folder-preview.story-visual {padding:10px;border-radius:18px;}
body[data-home] .backup-card .backup-file {display:flex;align-items:center;gap:24px;margin:0;padding:32px;border-radius:20px;}
body[data-home] .backup-card .backup-file > .media-view {width:92px;flex:0 0 92px;}
body[data-home] .backup-card .backup-file bdi {display:block;margin-top:10px;color:var(--ref-blue-soft);}
body[data-home] .backup-card .backup-privacy {border:0;padding:0;display:flex;align-items:center;gap:9px;font-size:13px;}
body[data-home] .tool-gif-card.story-row {min-height:550px;}
body[data-home] .tool-gif-card.story-row .tool-gif-heading {align-items:center;}
body[data-home] .tool-gif-card.story-row .tool-gif-heading .icon {width:27px;height:27px;}
body[data-home] .tool-gif-card.story-row .media-view {height:440px;align-items:center;}
body[data-home] .tool-gif-card.story-row .media-view svg {max-height:440px;width:auto;}
body[data-home] .tool-gif-card.story-row .story-copy p {max-width:32ch;}
html[lang=ar] body[data-home] .story-row :is(.feature-copy,.backup-copy,.tool-gif-heading) h3 {line-height:1.55;letter-spacing:0;}
/* Progressive enhancement: no script/observer means all stories stay readable. */
body[data-home].story-motion .story-row {--copy-delay:0ms;--visual-delay:180ms;}
body[data-home].story-motion .story-row:nth-child(even) {--copy-delay:180ms;--visual-delay:0ms;}
body[data-home].story-motion .story-row :is(.story-copy,.story-visual) {opacity:0!important;transform:translate3d(0,28px,0)!important;transition:opacity 360ms ease-out,transform 540ms cubic-bezier(.16,1,.3,1)!important;transition-delay:0ms!important;will-change:auto;}
body[data-home].story-motion .story-row.story-entered .story-copy {opacity:1!important;transform:none!important;transition-delay:var(--copy-delay)!important;}
body[data-home].story-motion .story-row.story-entered .story-visual {opacity:1!important;transform:none!important;transition-delay:var(--visual-delay)!important;}
body[data-home].story-motion .story-row:focus-within :is(.story-copy,.story-visual) {opacity:1!important;transform:none!important;transition-delay:0ms!important;}
.scroll-motion .motion-reveal:not(.motion-seen) {transition-delay:0ms!important;}
/* Four scroll-linked study steps, with a short native-scroll sticky interval. */
body[data-home].story-motion [data-workflow] {min-height:150vh;padding-bottom:120px;}
body[data-home].story-motion .workflow-stage {position:sticky;top:118px;}
body[data-home].story-motion .workflow-stage .stacking-card {opacity:var(--step-reveal,1);transform:translate3d(0,var(--step-y,0px),0)!important;transition:background-color 260ms ease,border-color 260ms ease;}
body[data-home] .workflow-stage .stacking-card::before {content:'';position:absolute;inset-inline:0;top:-1px;height:2px;background:#3898ff;transform:scaleX(var(--step-progress,0));transform-origin:left;}
html[dir=rtl] body[data-home] .workflow-stage .stacking-card::before {transform-origin:right;}
body[data-home] .workflow-stage .stacking-card.workflow-active {background:#0b84f30d!important;}
body[data-home] .workflow-stage .stacking-card.workflow-active h3 {color:#8bc8ff;}
body[data-home] .workflow-stage .stacking-card h3 {transition:color 260ms ease;}
/* Raycast-like focus arrival, retaining NoteHarbor type and Harbor Blue. */
@media(prefers-reduced-motion:no-preference) {
 body[data-home] .hero-copy h1 > span[data-i18n] {animation:nh-hero-focus 850ms cubic-bezier(.16,1,.3,1) 80ms both;}
 body[data-home] .hero-copy h1 > .hero-emphasis {animation:nh-hero-focus 850ms cubic-bezier(.16,1,.3,1) 200ms both;}
 body[data-home] .hero-subtitle {animation-delay:380ms;}
 body[data-home] .hero-copy > .hero-ctas {animation-delay:480ms;}
 body[data-home] .hero-meta {animation-delay:560ms;}
}
@keyframes nh-hero-focus {from{opacity:0;filter:blur(7px);transform:translate3d(0,24px,0) scale(.975)}to{opacity:1;filter:blur(0);transform:none}}
/* Phones and small tablets: the hero is the first thing people read, so it is painted at once.
   Entrance animations here started at opacity 0 with a blur, which made the headline appear late
   (and never, wherever animations do not run). */
@media (max-width: 760px) {
 body[data-home] :is(.hero-platform, .hero-subtitle, .hero-copy > .hero-ctas, .hero-meta, .hero-copy h1 > span[data-i18n], .hero-copy h1 > .hero-emphasis) {animation:none!important;opacity:1!important;filter:none!important;transform:none!important;}
}
@media(max-width:760px) {
 body[data-home] :is(.features .bento-card,.tool-gif-card).story-row,body[data-home] .story-row:nth-child(even) {grid-template-columns:minmax(0,1fr);gap:30px;min-height:0;padding:44px 0;}
 body[data-home] .story-row .story-copy,body[data-home] .story-row:nth-child(even) .story-copy {grid-column:1;grid-row:1;max-width:100%;}
 body[data-home] .story-row .story-visual,body[data-home] .story-row:nth-child(even) .story-visual {grid-column:1;grid-row:2;}
 body[data-home] .story-row :is(.feature-copy,.backup-copy,.tool-gif-heading) h3 {font-size:31px;max-width:22ch;}
 body[data-home] .story-row .story-copy p {font-size:16px;}
 body[data-home] .tool-gif-card.story-row .media-view {height:380px;}
 body[data-home] .tool-gif-card.story-row .media-view svg {max-height:380px;}
 body[data-home].story-motion [data-workflow] {min-height:0;padding-bottom:0;}
 body[data-home].story-motion .workflow-stage {position:relative;top:auto;}
 body[data-home].story-motion .workflow-stage .stacking-card {opacity:1;transform:none!important;}
 body[data-home] .workflow-stage .stacking-card::before {transform:none;opacity:.45;}
 body[data-home] .backup-card .backup-file {gap:18px;padding:24px;}
}
@media(prefers-reduced-motion:reduce) {
 body[data-home] .story-row :is(.story-copy,.story-visual) {opacity:1!important;transform:none!important;transition:none!important;}
 body[data-home] .hero-copy h1 > * {filter:none!important;}
 body[data-home] .workflow-stage .stacking-card {opacity:1!important;transform:none!important;transition:none!important;}
 body[data-home] .workflow-stage .stacking-card::before {transform:none;opacity:.45;}
}

/* NoteHarbor Arabic type: Marhey (hand-drawn, pen-on-paper) for headings, Tajawal for reading text. Self-hosted, SIL OFL 1.1 (see /fonts). Arabic characters only; Latin text keeps the English fonts. */
@font-face { font-family: "NH Marhey"; src: url("/fonts/marhey-arabic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "NH Tajawal"; src: url("/fonts/tajawal-arabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "NH Tajawal"; src: url("/fonts/tajawal-arabic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "NH Tajawal"; src: url("/fonts/tajawal-arabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
html[lang=ar] body { font-family: var(--font-arabic); }
html[lang=ar] :is(button, input, select, textarea) { font-family: inherit; }
html[lang=ar] :is(h1, h2, h3) { font-family: var(--font-arabic-display); letter-spacing: 0; }
html[lang=ar] :is(h4, h5, h6, .eyebrow) { font-family: var(--font-arabic); letter-spacing: 0; }

/* 2026-11-13: tool demos fill their 16:9 card with rounded corners (owner request). */
body[data-home] .tool-gif-card .media-view-video { border-radius: 18px; overflow: hidden; }
body[data-home] .tool-gif-card .media-view-video video { display: block; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 1px rgba(148, 163, 184, .16), 0 18px 48px rgba(2, 6, 23, .45); }

/* Homepage headline (owner, Nov 19 2026): "The note app for students on Windows: write, record, review."
   Fraunces serif (owner picked it from a preview, Nov 19 2026; SIL OFL, self-hosted, opsz+wght axes; Latin only, Arabic keeps the Tajawal display font).
   The first line is a smaller lead-in; "write, record, review." keeps the large blue highlight. */
@font-face { font-family: "NH Fraunces"; src: url("/fonts/fraunces-latin-opsz.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
body[data-home] .hero-copy h1 { font-family: "NH Fraunces", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.02em; font-optical-sizing: auto; }
body[data-home] .hero-copy h1 .hero-lead { display: block; font-size: .46em; line-height: 1.18; font-weight: 600; letter-spacing: -0.015em; margin-bottom: .18em; color: #dbe5f3; }
html[lang=ar] body[data-home] .hero-copy h1 { font-family: var(--font-arabic-display); letter-spacing: 0; }
html[lang=ar] body[data-home] .hero-copy h1 .hero-lead { letter-spacing: 0; }
body[data-home] .hero-meta { flex-wrap: wrap; justify-content: center; row-gap: 6px; }

/* Desktop sign-in return pages (Nov 19 2026) */
.app-return h1{font-size:clamp(34px,5vw,52px)}
.app-return .app-return-foot{font-size:13px;color:var(--muted);margin-top:-8px}
