/* SnapNote — a warm, professional product site. Real screenshots, quiet confidence. */

:root {
  --paper: #faf7f0;
  --paper-deep: #f2ecdf;
  --card: #ffffff;
  --ink: #221c12;
  --muted: #6b6152;
  --line: #e6dfcd;
  --accent: #b04a29;
  --accent-deep: #933b1f;
  --accent-soft: #b04a2914;
  --gold: #b98a2e;
  --olive: #5c6b46;
  --night: #201a12;
  --night-2: #2a2318;
  --night-line: #3d3425;
  --night-ink: #f2ead9;
  --night-muted: #b3a78e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 2px 8px -2px rgba(34, 28, 18, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(34, 28, 18, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(34, 28, 18, 0.4);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.wrap.narrow {
  width: min(800px, 92vw);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 0.45em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 0.24em 0.55em;
  box-shadow: 0 2px 0 rgba(34, 28, 18, 0.55);
  white-space: nowrap;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.9em;
}

.eyebrow.on-dark {
  color: var(--gold);
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.8rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.text-link {
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.75em 1.5em;
  border: 1.5px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button.primary {
  background: var(--accent);
  color: #fff7ec;
  box-shadow: var(--shadow-sm);
}

.button.primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button.ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.button.ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.button.light {
  background: var(--paper);
  color: var(--ink);
}

.button.light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.button.small {
  font-size: 0.86rem;
  padding: 0.5em 1.1em;
}

.button.big {
  font-size: 1.05rem;
  padding: 0.9em 1.8em;
}

.muted-line {
  font-weight: 450;
  opacity: 0.75;
  font-size: 0.82em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand-word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
  margin-inline: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 550;
  padding: 0.4em 0;
}

.site-nav a:hover {
  color: var(--ink);
}

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(185, 138, 46, 0.12), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, rgba(176, 74, 41, 0.08), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2.2rem, 5vw, 4.4rem);
  align-items: center;
}

.lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0 1.4rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 550;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

/* Screenshot frames */
.frame {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.frame img {
  width: 100%;
}

.frame figcaption {
  padding: 0.8em 1.2em;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--card);
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--night);
  color: var(--night-muted);
  border-bottom: 1px solid var(--night-line);
  font-size: 12.5px;
  font-weight: 600;
}

.window-dots {
  color: #6b5f4a;
  letter-spacing: 3px;
  font-size: 10px;
}

.window-badge {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.window-badge kbd {
  background: var(--night-2);
  color: var(--night-ink);
  box-shadow: none;
  border: 1px solid var(--night-line);
}

/* Features */
.features {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 11px;
  margin-bottom: 14px;
  stroke-width: 1.7;
}

/* Quick access */
.quick {
  background: var(--night);
  color: var(--night-ink);
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.2rem, 5vw, 4.4rem);
  align-items: center;
}

.quick-shot {
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
  border-color: var(--night-line);
}

.quick-shot figcaption {
  border-top-color: var(--night-line);
  background: var(--night-2);
  color: var(--night-muted);
}

.quick-shot .window-titlebar {
  background: var(--night-2);
}

.quick-copy p {
  color: var(--night-muted);
}

.quick-copy .steps {
  margin-top: 1.8rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  font-size: 0.96rem;
  color: var(--night-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff7ec;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
}

.steps strong {
  color: var(--night-ink);
}

/* Screenshots */
.screenshots {
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

/* Privacy */
.privacy {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: center;
}

.privacy p {
  color: var(--muted);
}

.pledge {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 1.6rem;
  box-shadow: var(--shadow-md);
}

.pledge > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
}

.pledge > div + div {
  border-top: 1px dashed var(--line);
}

.pledge dt {
  font-weight: 650;
  color: var(--muted);
  font-size: 0.92rem;
}

.pledge dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

/* Download */
.download {
  background: var(--night);
  color: var(--night-ink);
  padding: clamp(3.6rem, 7vw, 6.4rem) 0;
}

.download-inner {
  text-align: center;
  display: grid;
  justify-items: center;
}

.download h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.download p {
  color: var(--night-muted);
  max-width: 46em;
}

.download-lede {
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.fine {
  font-size: 0.86rem;
}

.fine a {
  color: var(--gold);
}

.download-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.2rem;
  margin: 2.4rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--night-muted);
}

.download-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.download-meta .icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

/* FAQ */
.faq {
  padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(4rem, 7vw, 6.5rem);
}

.qa {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.qa summary {
  cursor: pointer;
  font-weight: 650;
  padding: 1.05rem 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.qa summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.qa[open] summary::after {
  transform: rotate(45deg);
}

.qa[open] summary {
  border-bottom: 1px solid var(--line);
}

.qa p {
  padding: 1rem 1.3rem 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Footer */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding: 2.8rem 0 1.6rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand .brand-mark {
  width: 48px;
  height: 48px;
}

.footer-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-base p {
  margin: 0;
}

.footer-base a {
  color: var(--muted);
  text-decoration: none;
}

.footer-base a:hover {
  color: var(--ink);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .feature-card,
  .qa summary::after {
    transition: none;
  }
}

/* Icon defaults */
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark {
  object-fit: contain;
}

[hidden] {
  display: none !important;
}

/* Responsive */
@media (max-width: 1020px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .quick-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    max-width: 640px;
    margin-inline: auto;
  }

  .quick-shot {
    order: 2;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 4vw 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--line);
  }
}

@media (min-width: 961px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
    width: 100%;
  }

  .download-buttons .button {
    justify-content: center;
  }

  .pledge > div {
    padding: 0.8rem 0;
  }

  .header-inner {
    gap: 0.65rem;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .header-actions .button.small {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand-word {
    font-size: 1.1rem;
  }

  .steps li {
    padding-left: 2.9rem;
  }
}
