:root {
  --brand: #f6cd46;
  --brand-dark: #e0b82e;
  --brand-soft: rgba(246, 205, 70, 0.18);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --bg: #000000;
    --surface: #161617;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --brand-soft: rgba(246, 205, 70, 0.12);
  }
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* Header */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.header-cta {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #1d1d1f;
  transition: background 0.2s ease, transform 0.15s ease;
}

.header-cta:hover {
  background: var(--brand-dark);
}

.header-cta.is-pending {
  opacity: 0.85;
  cursor: default;
}

/* Hero */

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 34ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-app-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.app-icon {
  display: block;
}

.hero-sub {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #1d1d1f;
  box-shadow: 0 8px 24px rgba(246, 205, 70, 0.35);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-primary.is-pending {
  cursor: default;
  transform: none;
}

.btn-large {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.apple-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bmc-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  border-radius: 4px;
  background-color: #ffdd00;
  color: #000000;
  font-family: "Cookie", cursive;
  font-size: 28px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bmc-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.bmc-button img {
  width: 26px;
  height: 35px;
}

.bmc-button-large {
  margin-top: 8px;
}

/* Hero visual + screenshots */

.hero-visual {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.screenshot-shot,
.screenshot-card img,
.screenshot-device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.screenshot-device-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
}

.hero-shot {
  max-width: 640px;
}

.screenshots {
  padding: 72px 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.screenshot-platforms {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.screenshot-platform-mac {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.screenshot-platform-mac > .screenshot-platform-label {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.screenshot-mobile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  max-width: 520px;
  margin-inline: auto;
}

.screenshot-mobile .screenshot-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.screenshot-mobile .screenshot-platform-label {
  font-size: 0.7rem;
  width: 100%;
  text-align: center;
}

.screenshot-mobile .screenshot-card {
  width: 100%;
}

.screenshot-device-frame {
  width: 100%;
  height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.screenshot-mobile .screenshot-device-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.screenshot-mobile .screenshot-card figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.screenshot-platform {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screenshot-platform.screenshot-platform-mac {
  display: grid;
  gap: 24px 32px;
}

.screenshot-platform-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.screenshot-card {
  margin: 0;
}

.screenshot-card figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
}

.screenshot-card.is-hidden {
  display: none;
}

.sync-visual {
  display: flex;
  justify-content: center;
}

.sync-device-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding-bottom: 12%;
}

.sync-device {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.sync-device-mac {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
}

.sync-device-iphone {
  position: absolute;
  z-index: 3;
  left: -5%;
  bottom: -2%;
  width: 22%;
  border-radius: 16px;
}

.sync-device-ipad {
  position: absolute;
  z-index: 2;
  right: -8%;
  bottom: -6%;
  width: 44%;
  border-radius: 12px;
}

/* Promo */

.promo {
  padding: 24px 0 64px;
}

.promo blockquote {
  margin: 0;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
}

/* Features */

.features {
  padding: 72px 0;
}

.features.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-intro {
  max-width: 52ch;
  margin-bottom: 40px;
}

.section-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.features.alt .feature-card {
  background: var(--bg);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--brand-soft);
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 56ch;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
}

/* Sync section */

.sync {
  padding: 72px 0;
}

.sync-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sync h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.sync p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Privacy */

.privacy {
  padding: 56px 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.privacy-inner {
  text-align: center;
  max-width: 52ch;
}

.privacy h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.privacy p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA */

.cta-section {
  padding: 80px 0 96px;
}

.cta-inner {
  text-align: center;
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-inline: auto;
}

.cta-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.cta-inner p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.brand-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

/* Legal pages */

.legal-page {
  padding: 48px 0 80px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-meta {
  margin: 0 0 32px;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.legal-content h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--brand-dark);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .sync-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy {
    text-align: center;
  }

  .lead {
    max-width: none;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-app-icon {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
  }

  .screenshot-platforms {
    gap: 32px;
  }

  .screenshot-platform-mac {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .screenshot-mobile {
    gap: 20px 24px;
    max-width: 100%;
  }

  .screenshot-device-frame {
    height: clamp(260px, 38vw, 300px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .sync-grid > div:first-child {
    text-align: center;
  }

  .sync-grid > div:last-child {
    order: -1;
  }

  .sync-device-iphone {
    left: -2%;
    width: 20%;
  }

  .sync-device-ipad {
    right: -4%;
    width: 40%;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .promo blockquote {
    padding: 20px;
    font-size: 1.05rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}
