/* I'm John Doe — dark theme, Anthropic brand tokens.
   Inspired by the moustache app icon: sharp, monochrome, incognito. */

:root {
  /* Ink / paper */
  --color-dark: #0e0e0d;      /* ink — text, accents, inverted surfaces */
  --color-light: #ffffff;     /* paper — page background */

  /* Light surfaces */
  --color-dark-2: #f4f4f4;    /* card background — neutral cool off-white */
  --color-dark-3: #e8e8e8;    /* deeper surface — inline code, hover */
  --color-line: #d8d8d8;      /* borders / hairlines */
  --color-mid-gray: #6f6f6f;  /* muted text */

  /* Sole accent — IBM Carbon Blue 60. Used ONLY on real CTAs, links, and focus. */
  --color-accent: #0f62fe;
  --color-accent-hover: #0353e9;

  --font-heading: "Poppins", Arial, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --max-width: 1040px;
  --radius: 14px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--color-light); }

body {
  background: var(--color-light);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; }

::selection {
  background: var(--color-accent);
  color: var(--color-light);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 140px 0;
  border-top: 1px solid var(--color-line);
  text-align: center;
}

section:first-of-type { border-top: none; }
section h4 { margin-bottom: 18px; }
section h2 { max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 56px; }
section .container > p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(44px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-weight: 600;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

h4 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-mid-gray);
  margin-bottom: 14px;
}

p { margin-bottom: 16px; color: var(--color-dark); opacity: 0.78; }

a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
a:hover { border-bottom-color: var(--color-accent); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-dark-3);
  color: var(--color-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-dark);
  color: var(--color-light);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-dark);
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.6;
}

strong { font-weight: 600; color: var(--color-dark); opacity: 1; }

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--color-line);
  z-index: 50;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
nav .brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--color-dark);
  border-bottom: none;
  white-space: nowrap;
  flex-shrink: 0;
}
nav .brand .dot { color: var(--color-dark); }
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: nowrap;
}
nav ul a {
  color: var(--color-dark);
  opacity: 0.72;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  border-bottom: none;
  transition: opacity 150ms ease;
  white-space: nowrap;
}
nav ul a:hover { opacity: 1; color: var(--color-dark); }

/* ---------- Buttons ---------- */
[hidden] { display: none !important; }
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover { border-bottom-color: transparent; }
.btn-primary {
  background: var(--color-dark);
  color: var(--color-light);
}
.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-light);
}
.btn-secondary {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-line);
}
.btn-secondary:hover {
  background: var(--color-dark-2);
  border-color: var(--color-mid-gray);
  color: var(--color-dark);
}
.btn.is-disabled,
.btn:disabled {
  background: var(--color-dark-3);
  color: var(--color-mid-gray);
  border-color: var(--color-line);
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- App Store badge ---------- */
.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-bottom: 0;
  transition: transform 150ms ease, opacity 150ms ease;
}
.app-store-badge:hover {
  border-bottom-color: transparent;
  transform: translateY(-1px);
  opacity: 0.9;
}
.app-store-badge img {
  height: 92px;
  width: auto;
  display: block;
}
.app-store-badge--block {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.app-store-badge--center {
  display: inline-flex;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  padding: 132px 0 72px;
  text-align: center;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .signature-mark {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 32px;
  color: var(--color-dark);
}
.hero h1 .moustache {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  min-width: 26px;
  min-height: 26px;
  vertical-align: -0.12em;
  margin: 0 0.12em;
  object-fit: contain;
}
.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-mid-gray);
  margin-bottom: 20px;
}
.hero p.lede {
  font-size: 24px;
  line-height: 1.45;
  color: var(--color-dark);
  opacity: 0.82;
  max-width: 720px;
  margin: 28px auto 40px;
  font-family: var(--font-heading);
  font-weight: 400;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-promise {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0 auto 8px;
  max-width: 720px;
}
.hero-promise__chip {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
  background: transparent;
  padding: 0;
  white-space: nowrap;
}
.hero-promise__chip::after {
  content: "·";
  margin-left: 12px;
  color: var(--color-line);
}
.hero-promise__text {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-dark);
  opacity: 0.78;
  line-height: 1.5;
  font-weight: 400;
}
.hero-promise__text strong { color: var(--color-dark); opacity: 1; font-weight: 600; }
.hero .meta {
  font-size: 13px;
  color: var(--color-mid-gray);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.center-block { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Screenshots ---------- */
.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark-2);
  border: 1px dashed var(--color-line);
  border-radius: 0;
  color: var(--color-mid-gray);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
.shot::before {
  content: attr(data-label);
  padding: 24px;
}
.shot:has(img) {
  border-style: solid;
  border-color: var(--color-line);
}
.shot:has(img)::before { display: none; }
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.shot-hero {
  max-width: 920px;
  margin: 48px auto 0;
  width: 100%;
}
.shot-hero img {
  height: auto;
  object-fit: contain;
}
.shot-step {
  margin-bottom: 20px;
}
.shot-step img {
  height: auto;
  object-fit: contain;
}
.shot-wide {
  aspect-ratio: 16 / 9;
  margin-top: 40px;
}

/* Phone-shaped screenshots (portrait, iPhone aspect ~1284:2778 ≈ 9:19.5) */
.shot-phone {
  aspect-ratio: 9 / 19.5;
  width: 100%;
  max-width: 300px;
  border-radius: 36px;
  background: #000;
  margin-left: auto;
  margin-right: auto;
}
.shot-phone img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  background: #000;
}
.shot-phone-hero {
  max-width: 320px;
  margin: 40px auto 0;
}
.shot-settings-phone {
  max-width: 340px;
  margin-top: 40px;
}

/* Platform tabs (iOS / macOS) — centered, larger */
.platform-tabs {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 44px auto 0;
  padding: 6px;
  background: var(--color-dark-2);
  border: 1px solid var(--color-line);
  border-radius: 999px;
}
.platform-tab {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  opacity: 0.55;
  background: transparent;
  border: none;
  padding: 14px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease, color 160ms ease;
}
.platform-tab:hover { opacity: 0.88; }
.platform-tab.is-active {
  background: var(--color-dark);
  color: var(--color-light);
  opacity: 1;
}
.platform-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Platform panels — hide when not active */
.platform-panel { margin-top: 28px; }
.platform-panel .cta-row { margin-top: 56px; margin-bottom: 36px; align-items: center; }
.platform-panel .meta { margin: 32px auto 0; text-align: center; line-height: 1.85; }

/* Centered CTA row — stack vertically, secondary on its own line */
.cta-row--centered {
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.cta-secondary-break { align-self: center; }

/* Hero quick-actions: two labeled App Store badges side by side, always visible */
.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px 44px;
  margin: 36px auto 28px;
}
.hero-secondary-link {
  display: inline-block;
  margin: 0 auto 56px;
}

/* App Store badge pair — used in pricing and final CTA */
.app-store-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px 36px;
  margin: 8px auto 0;
}
.app-store-pair--center { margin-top: 12px; }

/* Responsive 16:9 video wrap */
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  max-width: 880px;
  margin: 24px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.10);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* App Store badge with platform label underneath */
.app-store-badge--labeled {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  line-height: 1;
}
.app-store-badge--labeled .app-store-badge__platform {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
  margin-top: 0;
}

.price-card__sub {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-mid-gray);
  margin: 0 0 4px;
  opacity: 1;
}

/* ---------- Pillar cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  margin-top: 8px;
  text-align: center;
}
.pillar {
  padding: 0;
  background: transparent;
  border: none;
}
.pillar .badge { display: none; }
.pillar h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.pillar p {
  font-size: 16px;
  color: var(--color-dark);
  opacity: 0.66;
  margin-bottom: 0;
  line-height: 1.55;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 96px;
  margin-top: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.step {
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
}
.step .shot-step { margin: 0 auto 32px; }
.step .num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-mid-gray);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.step p {
  font-size: 17px;
  opacity: 0.7;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 540px;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  margin-top: 16px;
  text-align: center;
}
.feature {
  padding: 0;
  border: none;
  background: transparent;
}
.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 15px;
  opacity: 0.68;
  margin: 0 auto;
  line-height: 1.55;
  max-width: 280px;
}
.feature--accent {
  grid-column: 1 / -1;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 24px;
}
.feature--accent h3 {
  font-size: 38px;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.feature--accent p {
  opacity: 0.7;
  font-size: 19px;
  max-width: 600px;
  line-height: 1.45;
}

/* ---------- Proof block ---------- */
.proof {
  background: transparent;
  color: var(--color-dark);
  border-radius: 0;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}
.proof h4 { color: var(--color-mid-gray); }
.proof h2 { color: var(--color-dark); }
.proof p { color: var(--color-dark); opacity: 0.7; max-width: 640px; margin-left: auto; margin-right: auto; }
.proof pre {
  background: var(--color-dark);
  color: var(--color-light);
  border: none;
  margin: 24px auto;
  text-align: left;
  max-width: 600px;
}

/* ---------- Pricing ---------- */
.pricing {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.price-card {
  text-align: center;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  max-width: 720px;
  width: 100%;
  box-shadow: none;
}
.price-card .amount {
  font-family: var(--font-heading);
  font-size: 88px;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  line-height: 1;
}
.price-card .amount .unit {
  font-size: 18px;
  color: var(--color-mid-gray);
  font-weight: 500;
  letter-spacing: normal;
}
.price-card ul {
  list-style: none;
  text-align: center;
  margin: 36px auto 40px;
  font-size: 16px;
  max-width: 360px;
}
.price-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  opacity: 0.78;
}
.price-card li:last-child { border-bottom: none; }
.price-card .btn { width: 100%; }
.price-card__sub {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--color-mid-gray);
  margin: 0;
  opacity: 1;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.faq-item {
  border-top: 1px solid var(--color-line);
  padding: 32px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--color-line); }
.faq-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.faq-item p {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---------- Final CTA ---------- */
#cta h2 { color: var(--color-dark); }
#cta p { color: var(--color-dark); opacity: 0.7; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--color-line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--color-mid-gray);
  font-family: var(--font-heading);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer a {
  color: var(--color-mid-gray);
  border-bottom: none;
  transition: color 150ms ease;
}
footer a:hover { color: var(--color-accent); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 104px 24px 120px;
}
.legal h1 {
  font-size: 44px;
  margin-bottom: 10px;
}
.legal .updated {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-mid-gray);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}
.legal h2 {
  font-size: 22px;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal p, .legal li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-dark);
  opacity: 0.78;
}
.legal ul {
  margin: 12px 0 16px 24px;
}
.legal strong { opacity: 1; }

/* ---------- Click-to-copy email ---------- */
.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  color: var(--color-accent);
  background: transparent;
  border: 1px dashed var(--color-line);
  border-radius: 8px;
  padding: 2px 10px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  line-height: inherit;
  vertical-align: baseline;
}
.copy-email:hover {
  background: var(--color-dark-3);
  border-color: var(--color-accent);
}
.copy-email.is-copied {
  color: var(--color-dark);
  border-color: var(--color-dark);
  border-style: solid;
}
.copy-email-status {
  font-size: 0.85em;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 150ms ease;
}
.copy-email.is-copied .copy-email-status {
  opacity: 1;
}
.copy-email.is-copied .copy-email-status::before {
  content: "✓ copied";
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  body { font-size: 17px; }
  section { padding: 72px 0; }
  .hero { padding: 96px 0 56px; }
  .hero .signature-mark { width: 160px; margin-bottom: 28px; }
  .hero p.lede { font-size: 19px; margin-top: 22px; margin-bottom: 24px; }
  .hero-promise { padding: 12px 16px 12px 12px; gap: 10px; }
  .hero-promise__text { font-size: 14px; }
  .pillars, .steps, .features { grid-template-columns: 1fr; }
  .platform-tab { padding: 8px 16px; font-size: 13px; }
  .shot-phone-hero { max-width: 260px; }
  .proof { padding: 36px 28px; }
  .price-card { padding: 40px 28px; }
  .price-card .amount { font-size: 48px; }
  nav .container { gap: 12px; }
  nav ul { gap: 18px; }
  nav ul li.nav-hide-mobile,
  nav ul a.nav-hide-mobile { display: none; }
  .legal { padding: 64px 24px 80px; }
  pre { font-size: 12.5px; padding: 18px; }
  .proof pre { font-size: 12px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 48px; }
  .shot-phone-hero { max-width: 220px; }
  .platform-tabs { width: 100%; justify-content: center; display: flex; }
  .platform-tab { flex: 1 1 50%; text-align: center; }
  .hero .signature-mark { width: 130px; margin-bottom: 24px; }
  .hero p.lede { font-size: 17px; }
  nav .container { height: 56px; gap: 10px; }
  nav .brand { font-size: 15px; }
  nav ul { gap: 14px; }
  nav ul a { font-size: 13px; }
  nav ul li.nav-hide-sm { display: none; }
  .price-card { padding: 32px 22px; }
  .price-card .amount { font-size: 40px; }
  .proof { padding: 28px 20px; }
  .step { padding: 24px 22px 28px; }
  .feature { padding: 24px 22px; }
  .pillar { padding: 28px 24px; }
  .cta-row { gap: 10px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .app-store-badge img { height: 80px; }
}

@media (max-width: 420px) {
  nav .brand { font-size: 14px; }
  nav ul { gap: 12px; }
  nav ul a { font-size: 12.5px; }
  nav ul li.nav-hide-xs { display: none; }
  .hero h1 .moustache { width: 0.7em; height: 0.7em; min-width: 22px; min-height: 22px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn,
  .cta-row .app-store-badge { width: 100%; text-align: center; }
  .cta-row .app-store-badge img { margin: 0 auto; }
}
