:root {
  --desk: #f3efe6;
  --surface: #fbf9f4;
  --ink: #1a1814;
  --ink-soft: #4a463f;
  --muted: #8a8478;
  --line: #e4ddcf;
  --accent: #2f45ff;
  --accent-soft: rgb(47 69 255 / 0.1);
  --shadow: 0 1px 2px rgb(70 50 20 / 0.06), 0 10px 30px rgb(70 50 20 / 0.08);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

/* `hidden` must win over component display rules such as .field's flex. */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 450 17px/1.55 ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: var(--desk);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.15 0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
}

code {
  font: 500 0.88em ui-monospace, 'SF Mono', monospace;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgb(26 24 20 / 0.06);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  height: 50px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-ink {
  background: var(--ink);
  color: var(--surface);
}

.btn-ink:hover {
  background: #000;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  background: rgb(243 239 230 / 0.86);
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo svg {
  width: 24px;
  height: 22px;
  fill: var(--ink);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}

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

.nav-signin {
  max-width: 220px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- hero ---------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.035em;
}

h1 span {
  display: block;
  color: var(--accent);
}

.lead {
  margin: 22px 0 28px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 18px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.trust li::before {
  content: '✓';
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}

.hero-video {
  margin: 0;
}

.paper {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(70 50 20 / 0.08), 0 24px 60px rgb(70 50 20 / 0.16);
  transform: rotate(-1.2deg);
}

.paper video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- sections ---------- */

.section {
  padding: 72px 0 24px;
}

h2 {
  margin: 0 0 32px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.sub {
  max-width: 40em;
  margin: -16px 0 32px;
  color: var(--ink-soft);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.shot figure {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgb(70 50 20 / 0.06), 0 30px 70px rgb(70 50 20 / 0.14);
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

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

.plan.featured {
  border: 2px solid var(--accent);
}

.badge {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.badge.muted {
  background: rgb(26 24 20 / 0.06);
  color: var(--ink-soft);
}

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

.price {
  margin: 6px 0 16px;
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

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

.plan ul {
  flex: 1;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.plan li {
  padding: 5px 0 5px 24px;
  position: relative;
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

/* ---------- roadmap & faq ---------- */

.roadmap ol {
  display: grid;
  gap: 10px;
  max-width: 44em;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

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

.faq details {
  max-width: 48em;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 16px 0;
  font-weight: 650;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 500;
}

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

.faq details p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.final {
  padding: 96px 0 72px;
  text-align: center;
}

.final h2 {
  margin-bottom: 24px;
}

/* ---------- footer ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 4px 0;
}

.legal {
  font-size: 12.5px;
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 32px;
  }

  .features,
  .plans {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-signin {
    margin-left: auto;
  }
}

/* ---------- sign in ---------- */

.auth-page {
  min-height: 100vh;
}

.auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 20px;
}

.auth-logo {
  margin-bottom: 28px;
}

.auth-card {
  width: 100%;
  padding: 30px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 6px 0 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 12px;
  background: rgb(26 24 20 / 0.06);
}

.auth-tabs button {
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tabs button[aria-selected='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(70 50 20 / 0.12);
}

.btn-block {
  display: flex;
  width: 100%;
}

button.btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.google {
  gap: 10px;
}

.google svg {
  width: 18px;
  height: 18px;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.field em {
  font-style: normal;
  font-weight: 450;
  color: var(--muted);
}

.field input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: 450 16px/1 ui-rounded, system-ui, sans-serif;
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field small {
  color: var(--muted);
  font-weight: 450;
}

.auth-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdeae4;
  color: #9b2c10;
  font-size: 14px;
}

.auth-fine {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.auth-back {
  margin-top: 22px;
  font-size: 14px;
}

.auth-back a {
  color: var(--ink-soft);
  text-decoration: none;
}

/* ---------- legal pages ---------- */

.legal-page {
  max-width: 46em;
}

/* ---------- 404 ---------- */

.not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 16px 96px;
  text-align: center;
}

.not-found-art {
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 24px rgb(70 50 20 / 0.12));
}

.not-found h1 {
  font-size: clamp(32px, 6vw, 46px);
  letter-spacing: -0.02em;
}

.not-found .cta {
  justify-content: center;
}

.legal-page h1 {
  font-size: 44px;
}

.legal-page h2 {
  margin: 34px 0 8px;
  font-size: 23px;
}

.legal-page ul {
  padding-left: 20px;
  color: var(--ink-soft);
}

.legal-page li {
  margin: 4px 0;
}
