:root {
  color-scheme: light;
  --brand: #1769e0;
  --brand-dark: #0f50b4;
  --brand-soft: #eaf2ff;
  --brand-softer: #f5f8ff;
  --ink: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e9f2;
  --line-strong: #d5ddea;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef3f9;
  --danger: #c9362b;
  --danger-soft: #fff1f0;
  --success: #16845b;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 12px 34px rgba(30, 57, 94, .12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --editor-size: 18px;
  --header-height: 72px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --brand: #64a2ff;
  --brand-dark: #91bdff;
  --brand-soft: #152c4f;
  --brand-softer: #111c2f;
  --ink: #edf2fa;
  --muted: #a8b3c5;
  --muted-2: #8190a7;
  --line: #2a374b;
  --line-strong: #38475e;
  --surface: #111a29;
  --surface-2: #0c1421;
  --surface-3: #1a2638;
  --danger: #ff8f86;
  --danger-soft: #3b2024;
  --success: #65d5aa;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .18);
  --shadow: 0 14px 38px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--brand-dark); }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-height);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  width: min(1520px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #2479ed, #0f57c5);
  box-shadow: 0 7px 18px rgba(23, 105, 224, .25);
  font-size: 22px;
  font-weight: 850;
}
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.site-nav a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .square-button, .round-button, .modal-close {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 18px;
}
.icon-button:hover, .square-button:hover, .round-button:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
#mobileSidebarButton { display: none; }

main { width: min(1520px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 4px 24px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero h1, .content-section h2, .faq-section h2 { margin: 0; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.hero > div:first-child > p:last-child { max-width: 760px; margin: 13px 0 0; color: var(--muted); font-size: 17px; }
.privacy-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
  padding: 13px 16px;
  border: 1px solid #bad7c8;
  border-radius: 13px;
  background: color-mix(in srgb, #e7f8ef 80%, var(--surface));
  color: #12633f;
}
html[data-theme="dark"] .privacy-chip { border-color: #275943; background: #152b24; color: #76ddb3; }
.privacy-chip > span:first-child { font-size: 24px; }
.privacy-chip strong, .privacy-chip small { display: block; line-height: 1.25; }
.privacy-chip small { margin-top: 3px; opacity: .78; font-size: 12px; }

.notepad-app {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.notes-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}
.sidebar-top { display: grid; grid-template-columns: 1fr 44px; gap: 8px; padding: 16px 14px 10px; }
.primary-button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #2579ed, #125dcf);
  color: #fff;
  box-shadow: 0 7px 18px rgba(23, 105, 224, .22);
  cursor: pointer;
  font-weight: 760;
}
.primary-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.new-note-button { min-height: 44px; padding: 10px 15px; text-align: left; }
.square-button { width: 44px; height: 44px; border-radius: 10px; font-size: 20px; }
.search-field {
  min-height: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
kbd {
  min-width: 23px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.sidebar-tabs { display: flex; gap: 4px; padding: 0 14px 9px; border-bottom: 1px solid var(--line); }
.sidebar-tab { flex: 1; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.sidebar-tab:hover { background: var(--surface-3); }
.sidebar-tab.is-active { color: var(--brand-dark); background: var(--brand-soft); }
.count-badge { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 4px; padding: 0 5px; border-radius: 99px; background: var(--surface); font-size: 10px; }
.notes-list { flex: 1; min-height: 300px; overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.note-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 10px 10px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.note-item:hover { background: var(--surface); border-color: var(--line); }
.note-item.is-active { background: var(--surface); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.note-item.is-active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.note-item__title { display: block; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 760; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.note-item__preview { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.note-item__meta { display: block; margin-top: 7px; color: var(--muted-2); font-size: 10px; font-weight: 650; }
.note-item__pin { color: var(--brand-dark); font-size: 12px; }
.empty-list { display: grid; place-items: center; min-height: 230px; padding: 30px 18px; color: var(--muted); text-align: center; }
.empty-list span { display: block; margin-bottom: 8px; font-size: 31px; }
.sidebar-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 9px; border-top: 1px solid var(--line); }
.text-button { padding: 8px 5px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 650; }
.text-button:hover { color: var(--brand-dark); background: var(--brand-soft); }

.editor-panel { min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
.editor-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.save-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.save-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 13%, transparent); }
.save-state.is-saving .save-dot { background: #e29c24; animation: pulse 1s infinite; }
.save-state.is-error { color: var(--danger); }
.save-state.is-error .save-dot { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
.editor-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.action-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.action-button:hover, .action-button[aria-pressed="true"] { border-color: var(--line); background: var(--surface-2); color: var(--brand-dark); }
.danger-on-hover:hover { color: var(--danger); background: var(--danger-soft); }
.menu-wrap, .insert-menu-wrap { position: relative; }
.dropdown-menu, .theme-menu {
  position: absolute;
  z-index: 100;
  min-width: 205px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.dropdown-menu { top: calc(100% + 7px); right: 0; }
.dropdown-menu button, .theme-menu button { width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; text-align: left; }
.dropdown-menu button:hover, .theme-menu button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.title-row { min-height: 70px; display: flex; align-items: center; gap: 14px; padding: 10px 22px 4px; }
.note-title { min-width: 0; flex: 1; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: clamp(25px, 2.3vw, 36px); font-weight: 800; letter-spacing: -.035em; }
.note-title::placeholder { color: var(--muted-2); }
.title-tools { display: flex; gap: 6px; }
.round-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; }
.format-toolbar {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  margin: 0 16px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  scrollbar-width: thin;
}
.format-toolbar button, .format-toolbar select {
  min-width: 34px;
  height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.format-toolbar button:hover, .format-toolbar button.is-active, .format-toolbar select:hover { border-color: var(--line); background: var(--surface); color: var(--brand-dark); }
.format-toolbar select { min-width: 112px; }
.toolbar-divider { width: 1px; height: 22px; flex: 0 0 auto; margin: 0 3px; background: var(--line-strong); }
.toolbar-spacer { flex: 1; }
.insert-menu { min-width: 190px; }
.editor-wrap { min-height: 420px; flex: 1; overflow: auto; padding: 12px 20px 20px; }
.note-editor {
  width: min(900px, 100%);
  min-height: 430px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 60px) 80px;
  outline: 0;
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: var(--editor-size);
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.note-editor:empty::before { content: attr(data-placeholder); color: var(--muted-2); pointer-events: none; }
.note-editor h2 { margin: 1.25em 0 .55em; font-size: 1.55em; line-height: 1.25; }
.note-editor h3 { margin: 1.1em 0 .45em; font-size: 1.25em; line-height: 1.3; }
.note-editor p { margin: .55em 0; }
.note-editor blockquote { margin: 1em 0; padding: 9px 16px; border-left: 4px solid var(--brand); background: var(--brand-softer); color: var(--muted); }
.note-editor pre { overflow-x: auto; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; line-height: 1.5; }
.note-editor a { color: var(--brand-dark); }
.note-editor hr { margin: 1.7em 0; border: 0; border-top: 2px solid var(--line); }
.note-editor ul.checklist { padding-left: 0; list-style: none; }
.note-editor ul.checklist li { position: relative; padding-left: 29px; }
.note-editor ul.checklist li::before { content: "☐"; position: absolute; left: 2px; top: 0; color: var(--brand-dark); font-family: Arial, sans-serif; }
.note-editor ul.checklist li[data-checked="true"] { color: var(--muted); text-decoration: line-through; }
.note-editor ul.checklist li[data-checked="true"]::before { content: "☑"; color: var(--success); }
.editor-statusbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
}
.document-stats, .status-actions { display: flex; align-items: center; gap: 13px; }
.status-actions label { font-weight: 700; }
.status-actions select { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 11px; }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 72px; }
.trust-strip article { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.trust-strip article > span { font-size: 21px; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip strong { font-size: 13px; }
.trust-strip small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.content-section { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding: 0 24px 66px; }
.content-main { max-width: 900px; }
.content-section h2, .faq-section h2 { margin: 0 0 14px; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
.content-section p { color: var(--muted); }
.content-section .content-main > h2:not(:first-of-type) { margin-top: 44px; font-size: 26px; }
.use-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 22px; }
.use-cases article { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.use-cases span { font-size: 22px; }
.use-cases h3 { margin: 8px 0 5px; font-size: 16px; }
.use-cases p { margin: 0; font-size: 13px; }
.shortcut-card { position: sticky; top: calc(var(--header-height) + 22px); padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.shortcut-card h2 { font-size: 21px; }
.shortcut-card dl { margin: 0; }
.shortcut-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shortcut-card dl > div:last-child { border-bottom: 0; }
.shortcut-card dt { color: var(--muted); font-size: 13px; }
.shortcut-card dd { margin: 0; font-size: 12px; white-space: nowrap; }
.faq-section { width: min(1000px, 100%); margin: 0 auto; padding: 60px 0 80px; }
.faq-section > h2 { margin-bottom: 25px; }
.faq-section details { margin: 9px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq-section summary { padding: 16px 18px; cursor: pointer; font-weight: 750; }
.faq-section details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

.template-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 31, .62); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(950px, 100%); max-height: min(760px, 90vh); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-header h2 { margin: 0; font-size: 28px; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; font-size: 25px; line-height: 1; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.template-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); cursor: pointer; text-align: left; }
.template-card:hover { border-color: var(--brand); background: var(--brand-softer); transform: translateY(-2px); }
.template-card span { font-size: 25px; }
.template-card strong { display: block; margin: 9px 0 5px; font-size: 15px; }
.template-card small { color: var(--muted); line-height: 1.4; }
.theme-menu { position: fixed; top: 64px; right: 17px; z-index: 150; min-width: 150px; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: 9px; pointer-events: none; }
.toast { max-width: 360px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.site-footer { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 42px max(24px, calc((100vw - 1460px) / 2)); border-top: 1px solid var(--line); background: var(--surface); }
.brand--footer { margin-bottom: 10px; }
.site-footer > div > p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: center; justify-content: flex-end; gap: 8px 18px; max-width: 650px; }
.site-footer nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.site-footer nav a:hover { color: var(--brand-dark); }
.copyright { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; }
.noscript-message { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; padding: 12px; background: #8b251d; color: #fff; text-align: center; }

body.focus-mode .site-header,
body.focus-mode .hero,
body.focus-mode .notes-sidebar,
body.focus-mode .trust-strip,
body.focus-mode .content-section,
body.focus-mode .faq-section,
body.focus-mode .site-footer { display: none; }
body.focus-mode main { width: 100%; }
body.focus-mode .notepad-app { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
body.focus-mode .editor-panel { min-height: 100vh; }
body.focus-mode .editor-wrap { min-height: calc(100vh - 225px); }
body.focus-mode .note-editor { min-height: calc(100vh - 240px); }

@media print {
  body { background: #fff !important; color: #111 !important; }
  .site-header, .hero, .notes-sidebar, .editor-topbar, .format-toolbar, .title-tools, .editor-statusbar, .trust-strip, .content-section, .faq-section, .site-footer { display: none !important; }
  main, .notepad-app { width: 100% !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
  .notepad-app { display: block !important; min-height: 0 !important; }
  .editor-panel { display: block !important; }
  .title-row { padding: 0 0 14px !important; }
  .note-title { color: #111 !important; font-size: 28px !important; }
  .editor-wrap { min-height: 0 !important; padding: 0 !important; overflow: visible !important; }
  .note-editor { width: 100% !important; min-height: 0 !important; padding: 0 !important; color: #111 !important; font-size: 12pt !important; }
  a { color: #111 !important; text-decoration: underline; }
}

@media (max-width: 1180px) {
  .site-nav a:nth-last-child(-n+2) { display: none; }
  .notepad-app { grid-template-columns: 270px minmax(0, 1fr); }
  .action-button span:nth-child(2) { display: none; }
  .content-section { grid-template-columns: minmax(0, 1fr) 300px; padding-inline: 10px; }
}

@media (max-width: 860px) {
  :root { --header-height: 64px; }
  .site-header__inner, main { width: min(100% - 20px, 1520px); }
  .site-nav { display: none; }
  #mobileSidebarButton { display: grid; }
  .hero { align-items: flex-start; padding-top: 26px; }
  .privacy-chip { display: none; }
  .notepad-app { min-height: 720px; grid-template-columns: 1fr; }
  .notes-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(320px, 88vw);
    border-right: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .notes-sidebar.is-open { transform: translateX(0); }
  .mobile-backdrop { position: absolute; inset: 0; z-index: 50; background: rgba(12, 20, 33, .48); }
  .editor-topbar { align-items: flex-start; }
  .editor-actions { overflow-x: auto; justify-content: flex-start; }
  .action-button { min-width: 38px; justify-content: center; }
  .action-button span:nth-child(2) { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 55px; }
  .content-section { grid-template-columns: 1fr; gap: 30px; }
  .shortcut-card { position: static; }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .site-header__inner, main { width: min(100% - 12px, 1520px); }
  .brand small { display: none; }
  .brand__mark { width: 37px; height: 37px; border-radius: 10px; }
  .hero { padding: 22px 4px 18px; }
  .hero h1 { font-size: 31px; }
  .hero > div:first-child > p:last-child { font-size: 14px; }
  .notepad-app { min-height: 690px; border-radius: 14px; }
  .editor-topbar { min-height: 51px; padding: 7px 9px; }
  .save-state span:last-child { display: none; }
  .title-row { min-height: 58px; padding: 6px 14px 0; }
  .note-title { font-size: 26px; }
  .title-tools .round-button:nth-child(-n+2) { display: none; }
  .format-toolbar { margin: 0 8px; }
  .format-toolbar select { min-width: 96px; }
  .editor-wrap { min-height: 420px; padding: 8px 6px 15px; }
  .note-editor { min-height: 430px; padding: 18px 14px 70px; }
  .editor-statusbar { align-items: flex-start; padding: 8px 10px; }
  .document-stats { gap: 8px; }
  .document-stats span:nth-child(2) { display: none; }
  .status-actions label, #lastSaved { display: none; }
  .trust-strip { grid-template-columns: 1fr; margin: 12px 0 48px; }
  .content-section { padding: 0 5px 45px; }
  .use-cases { grid-template-columns: 1fr; }
  .faq-section { padding: 40px 0 58px; }
  .template-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 18px; }
  .modal-header h2 { font-size: 23px; }
  .site-footer { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
