:root {
  color-scheme: light;
  --ink: #202126;
  --muted: #696d76;
  --line: #e3e5e9;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --accent: #c9141c;
  --accent-dark: #9f0d14;
  --accent-soft: #fff0f1;
  --accent-ink: #9f1117;
  --shadow: 0 22px 58px rgba(34, 37, 43, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.notes-site {
  --accent: #8a5c00;
  --accent-dark: #684500;
  --accent-soft: #fff7d6;
  --accent-ink: #765000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
}

img { max-width: 100%; }
a { color: inherit; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #2367cf;
  outline-offset: 4px;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 100;
}

.skip-link:focus { top: 16px; }

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  min-height: 72px;
  padding: 0 6vw;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  gap: 11px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  border-radius: 10px;
  height: 36px;
  width: 36px;
}

.site-header nav,
.site-footer nav {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  gap: 22px;
}

.site-header nav { justify-content: flex-end; }
nav a { text-decoration: none; }
nav a:hover { color: var(--ink); }

.header-cta,
.button {
  border-radius: 9px;
  font-weight: 780;
  text-decoration: none;
}

.header-cta {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  padding: 10px 14px;
}

.header-cta:hover,
.primary:hover { background: var(--accent-dark); }

main { overflow: hidden; }

.hero {
  align-items: start;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  min-height: 760px;
  padding: 62px 6vw 70px;
}

.hero-copy { max-width: 810px; }

.hero-icon {
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: block;
  height: 96px;
  margin-bottom: 27px;
  width: 96px;
}

.eyebrow,
.feature-grid article > span {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(60px, 7.8vw, 104px);
  line-height: 0.92;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.03;
  margin-bottom: 22px;
  max-width: 980px;
}

h3 {
  font-size: 21px;
  line-height: 1.18;
  margin-bottom: 10px;
}

.hero-promise {
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.1;
  margin-bottom: 22px;
  max-width: 760px;
}

.lead,
.section-lead {
  color: var(--muted);
  line-height: 1.56;
}

.lead {
  font-size: clamp(18px, 1.8vw, 23px);
  max-width: 750px;
}

.section-lead {
  font-size: 19px;
  max-width: 820px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.secondary {
  border: 1px solid #cbd0d7;
  color: var(--ink);
}

.secondary:hover { background: var(--soft); }

.beta-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.app-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 27px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 24px;
  position: relative;
}

.preview-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
}

.preview-header > div {
  display: grid;
  gap: 5px;
}

.preview-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.preview-header strong { font-size: 30px; }

.preview-action {
  color: var(--accent-ink) !important;
  font-weight: 800 !important;
}

.recording-card {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.recording-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 12px 0;
}

.recording-title {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 32px 1fr;
}

.recording-title > div {
  display: grid;
  gap: 4px;
}

.recording-title strong { font-size: 17px; }
.recording-title span { color: var(--muted); font-size: 12px; }

.record-dot,
.play-symbol {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.record-dot::after {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 12px;
  width: 12px;
}

.play-symbol { font-size: 12px; padding-left: 2px; }

.waveform {
  align-items: center;
  display: flex;
  gap: 4px;
  height: 58px;
  margin: 15px 0 9px;
}

.waveform i {
  background: var(--accent);
  border-radius: 4px;
  display: block;
  height: 30%;
  opacity: 0.88;
  width: 4px;
}

.waveform i:nth-child(3n) { height: 75%; }
.waveform i:nth-child(4n) { height: 48%; }
.waveform i:nth-child(5n) { height: 92%; }
.waveform i:nth-child(7n) { height: 62%; }

.recording-meta {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
}

.record-control {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.record-control span {
  background: var(--accent);
  border: 7px solid var(--accent-soft);
  border-radius: 999px;
  height: 58px;
  width: 58px;
}

.notes-label {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0.06em;
  padding: 18px 0 10px;
  text-transform: uppercase;
}

.notes-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  min-height: 168px;
  padding: 16px;
}

.yellow-note,
.soft-yellow {
  background: var(--accent-soft);
  border-color: #efd676;
}

.note-card h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

.note-card p {
  color: #62646b;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.note-card small {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.pin-mark {
  color: var(--accent-ink);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.floating-add {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 9px 22px rgba(75, 54, 0, 0.25);
  color: #fff;
  display: flex;
  font-size: 32px;
  font-weight: 300;
  height: 58px;
  justify-content: center;
  position: absolute;
  right: 18px;
  width: 58px;
}

.section {
  border-top: 1px solid var(--line);
  padding: 82px 6vw;
}

.soft-section,
.connection-section,
.beta-section { background: var(--soft); }

.split-section,
.connection-section,
.beta-section {
  align-items: start;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.section-heading {
  margin-bottom: 34px;
  max-width: 980px;
}

.section-heading.compact { margin-bottom: 30px; }

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

.principle-list article {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.principle-list strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.principle-list p,
.feature-grid p,
.process-list p,
.privacy-grid p,
.beta-section p,
.faq-list p,
.connection-flow span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 0;
}

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

.feature-grid article,
.privacy-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}

.feature-grid article > span {
  display: block;
  margin-bottom: 16px;
}

.process-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  max-width: 980px;
  padding: 0;
}

.process-list li {
  align-items: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: 42px 1fr;
  padding: 20px;
}

.process-list li > span {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 850;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.connection-section { align-items: center; }

.connection-flow {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.connection-flow div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 17px;
}

.connection-flow strong { font-size: 16px; }
.connection-flow span { font-size: 13px; }
.connection-flow b { color: var(--accent); font-size: 23px; }

.privacy-section { background: #fff; }

.privacy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.legal-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 30px 0 0;
  padding-top: 22px;
}

.legal-note a {
  color: var(--accent-ink);
  font-weight: 700;
}

.editorial-link,
.inline-link {
  color: var(--accent-ink);
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.editorial-link:hover,
.inline-link:hover { color: var(--accent-dark); }

.ecosystem-section { background: var(--paper); }
.ecosystem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.beta-section {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.beta-section h2 { margin-bottom: 14px; }
.beta-section p { max-width: 760px; }
.beta-section .hero-actions { justify-content: flex-end; margin-top: 0; }

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 960px;
}

details {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 780;
  list-style: none;
  padding: 20px 22px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  color: var(--accent-ink);
  content: "+";
  float: right;
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 22px 22px; }

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px 6vw;
}

.footer-brand img { border-radius: 8px; }
.footer-brand div { display: grid; gap: 2px; }
.footer-brand strong { color: var(--ink); font-size: 15px; }
.footer-brand span { font-size: 13px; }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header nav { display: none; }
  .header-cta { justify-self: end; }
  .hero, .split-section, .connection-section, .beta-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .app-preview { max-width: 620px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beta-section .hero-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .site-header { min-height: 64px; padding: 0 20px; }
  .brand { font-size: 17px; }
  .brand-icon { height: 34px; width: 34px; }
  .header-cta { font-size: 13px; padding: 9px 11px; }
  .hero, .section { padding-left: 22px; padding-right: 22px; }
  .hero { gap: 38px; padding-bottom: 52px; padding-top: 42px; }
  .hero-icon { height: 88px; width: 88px; }
  h1 { font-size: 60px; }
  h2 { font-size: 36px; }
  .hero-promise { font-size: 29px; }
  .lead { font-size: 18px; }
  .hero-actions .button { flex: 1 1 auto; }
  .app-preview { border-radius: 19px; padding: 18px; }
  .preview-header strong { font-size: 26px; }
  .notes-board, .feature-grid, .privacy-grid { grid-template-columns: 1fr; }
  .note-card { min-height: auto; }
  .process-list li { gap: 14px; grid-template-columns: 38px 1fr; }
  .connection-flow { grid-template-columns: 1fr; }
  .connection-flow b { text-align: center; transform: rotate(90deg); }
  .section { padding-bottom: 64px; padding-top: 64px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; padding: 24px 22px; }
  .site-footer nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
