/* NoteCurrent marketing site — dark-first, no external resources. */

:root {
  --ink: #0A1020;
  --panel: #111A2F;
  --panel-2: #16213B;
  --line: #22304F;
  --violet: #7A5CFF;
  --cyan: #35D7FF;
  --mint: #4BE1B5;
  --text: #E8ECF7;
  --muted: #A7B1C9;
  --radius: 16px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--mint); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 32, .9);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }
.site-nav ul {
  display: flex;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  color: var(--ink);
}
.btn-primary:hover { color: var(--ink); filter: brightness(1.08); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel);
}
.btn-ghost:hover { color: var(--text); border-color: var(--violet); }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(122, 92, 255, .28), transparent);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--mint);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gradient-text {
  background: linear-gradient(90deg, var(--violet), var(--cyan) 60%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-note { margin-top: 14px; font-size: .95rem; color: var(--muted); }

/* Store badges — hidden with the `hidden` attribute until the apps are live. */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.store-badges[hidden] { display: none; }

/* Example result card */
.result-card {
  margin: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px -30px rgba(53, 215, 255, .25);
}
.result-card .label {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.result-key { font-size: clamp(2.25rem, 9vw, 3rem); white-space: nowrap; font-weight: 800; line-height: 1.1; margin: 4px 0 18px; }
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.result-row dt { color: var(--muted); }
.result-row dd { margin: 0; font-weight: 600; }
.meter {
  height: 8px;
  margin: 4px 0 14px;
  border-radius: 999px;
  background: var(--ink);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}
.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.notes li {
  min-width: 34px;
  padding: 6px 8px;
  text-align: center;
  border-radius: 10px;
  background: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
}
.notes li.tonic { border-color: var(--mint); color: var(--mint); }
.card-caption { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 40em; color: var(--muted); margin-bottom: 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.tile p { color: var(--muted); margin: 0; }
.tile-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.3rem;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
}
.steps p { color: var(--muted); margin: 0; }

.privacy-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 10px;
  border-left: 3px solid var(--mint);
  border-bottom: 3px solid var(--mint);
  transform: rotate(-45deg);
}

.cta-final { text-align: center; }
.cta-final .cta-row { justify-content: center; }

/* Long-form pages (privacy, support) */
.page { padding: 56px 0 72px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.meta { color: var(--muted); }
.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
}
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > :last-child { margin-bottom: 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: .95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .privacy-band { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; }
  .privacy-band, .result-card { padding: 22px; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .gradient-text { color: CanvasText; background: none; }
  .btn { border: 1px solid ButtonText; }
}

.center { margin-inline: auto; }
