/* The same colours as the extension, so the site and Nah feel like one thing. */
:root {
  --bg: #f5f4f0;
  --surface: #ebe9e3;
  --text: #1d1d1b;
  --text-muted: #5f5e59;
  --border: #cfcdc6;
  --accent: #2f4a43;
  --accent-text: #f5f4f0;
  --pro: linear-gradient(135deg, #17463b, #1c7560 60%, #218a6e);
  --gold: #ffd166;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151614;
    --surface: #22231f;
    --text: #ecebe6;
    --text-muted: #a9a8a1;
    --border: #3b3c38;
    --accent: #b9d3c9;
    --accent-text: #142420;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

mark {
  padding: 0 0.25em;
  border-radius: 0.25em;
  background: #ffd166;
  color: #3a2a00;
}

.draft {
  padding: 0.5rem 1rem;
  background: #ffd166;
  color: #3a2a00;
  font-weight: 700;
  text-align: center;
}

.top,
main,
.foot {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  border-radius: 0.5rem;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.langs a {
  text-decoration: none;
}

.langs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.langs [aria-current] {
  color: var(--text);
  font-weight: 650;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
}

section {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 5vw, 3.5rem);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.lead {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.cta {
  display: inline-block;
  padding: 1rem 1.5rem;
  border-radius: 0.875rem;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.cta:hover {
  filter: brightness(1.1);
}

.cta.off {
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
}

.note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* A browser window around each screenshot. */

.frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--surface);
  box-shadow: 0 18px 40px rgb(0 0 0 / 14%);
}

.bar {
  display: flex;
  gap: 0.3125rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.bar span {
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: var(--border);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* How it works */

/* Sections run full width so their dividing lines do; the text inside stays narrow. */
.band > *,
.privacy > * {
  max-width: 46rem;
}

.hook {
  margin: 0 0 2.5rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 650;
  line-height: 1.35;
}

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

.steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1875rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

.study {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--surface);
}

/* Extras */

.checks {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 1.75rem;
}

.checks li::before {
  content: '';
  position: absolute;
  top: 0.45em;
  left: 0.25rem;
  width: 0.5rem;
  height: 0.875rem;
  border: solid var(--accent);
  border-width: 0 0.1875rem 0.1875rem 0;
  transform: rotate(45deg);
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 48rem;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  font-size: 1.25rem;
}

.plan p {
  margin: 0;
}

.amount {
  margin: 0.25rem 0 !important;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.pro {
  border: none;
  background: var(--pro);
  color: #fff;
  box-shadow: 0 0 0 2px var(--gold), 0 14px 34px rgb(33 138 110 / 35%);
}

.pro svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: var(--gold);
}

.refund {
  margin-top: 0.5rem !important;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.small {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Privacy */

.privacy p {
  margin: 0 0 1rem;
}

/* Legal pages */

.legal {
  max-width: 46rem;
  padding: 2rem 0 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.updated {
  margin: 0.5rem 0 2rem;
  color: var(--text-muted);
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
}

.legal li + li {
  margin-top: 0.25rem;
}

/* Footer */

.foot {
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.foot p {
  margin: 1rem 0 0;
}

@media (max-width: 52rem) {
  .hero,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .shots {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
  }
}
