:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --sunken: #efeeea;
  --text: #1c1b19;
  --muted: #67655f;
  --border: #e7e5e0;
  --accent: #3b5bdb;
  --accent-text: #2f4bc0;
  --on-accent: #ffffff;
  --amber: #ffc94d;
  --amber-soft: rgba(255, 201, 77, 0.38);
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.05), 0 8px 24px rgba(28, 27, 25, 0.06);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191918;
    --surface: #222220;
    --sunken: #1e1e1d;
    --text: #edece9;
    --muted: #a9a69f;
    --border: #33322f;
    --accent: #6d8bff;
    --accent-text: #93a8ff;
    --on-accent: #0f1530;
    --amber-soft: rgba(255, 201, 77, 0.24);
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

.wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 28px;
  }
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand .logo {
  width: 28px;
  height: 28px;
}

.brand-sm {
  font-size: 16px;
}

.brand-sm .logo {
  width: 22px;
  height: 22px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--sunken);
}

@media (max-width: 560px) {
  .site-nav a:not([href$='#pricing']):not([href='contact.html']) {
    display: none;
  }
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.footer-row {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .footer-row {
    grid-template-columns: 1fr auto auto;
    align-items: start;
  }
}

.footer-about p {
  margin: 8px 0 0;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--muted);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  border-color: var(--accent);
  filter: brightness(1.06);
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

.btn.is-disabled {
  cursor: default;
  opacity: 0.75;
  filter: none;
}

/* Home */

.hero {
  padding: 72px 0 40px;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: -0.03em;
}

.hl {
  background: linear-gradient(transparent 58%, var(--amber-soft) 58%, var(--amber-soft) 92%, transparent 92%);
  padding: 0 0.08em;
}

.lede {
  max-width: 600px;
  margin: 20px 0 28px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.shot {
  margin: 48px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.section {
  padding: 72px 0 0;
}

.section > .wrap > h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
}

.section-lede {
  max-width: 620px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
}

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

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--amber);
  color: #3a2a00;
  font-weight: 700;
  font-size: 14px;
}

.steps h3,
.features h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.steps p,
.features p {
  margin: 0;
  color: var(--muted);
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--sunken);
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.features {
  display: grid;
  gap: 28px 32px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features > div {
  padding-left: 16px;
  border-left: 3px solid var(--amber);
}

.privacy-band {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--sunken);
  border: 1px solid var(--border);
}

.privacy-band h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.6vw, 30px);
}

.privacy-band ul {
  display: grid;
  gap: 8px 28px;
  margin: 20px 0 16px;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .privacy-band ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-band li {
  position: relative;
  padding-left: 26px;
}

.check::before,
.privacy-band li::before,
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Pricing */

.plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan-pro {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan h3 {
  margin: 0;
  font-size: 20px;
}

.tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--amber);
  color: #3a2a00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price {
  margin: 14px 0 2px;
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price small {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-sub {
  margin: 6px 0 18px;
  color: var(--muted);
}

.plan ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 26px;
}

.plan-foot {
  margin-top: auto;
}

.fine {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.pricing-notes {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* FAQ */

.faq {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  color: var(--muted);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Policy pages */

.doc {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 56px 16px 0;
}

@media (min-width: 720px) {
  .doc {
    padding: 64px 28px 0;
  }
}

.doc h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 5vw, 42px);
}

.doc .updated {
  margin: 0 0 32px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 10px;
  font-size: 22px;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.summary {
  margin: 0 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.summary ul {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--sunken);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.contact-card {
  display: grid;
  gap: 4px;
  margin: 8px 0 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card .email {
  font-size: 22px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

h3 .tag {
  margin-left: 6px;
  vertical-align: 2px;
}
