/* Deck site design system — implements the Claude Design comps
   ("Deck Landing", "Support", "Privacy"). Dark stage, acid-yellow
   accent, IBM Plex Sans. One stylesheet for every deck page. */

:root {
  --bg: #0a0a0c;
  --panel: #0f0f12;
  --panel-hover: #131317;
  --line: #232327;
  --line-soft: #1e1e22;
  --text: #eceae6;
  --text-soft: #dedbd4;
  --text-mellow: #c9c6bf;
  --muted: #a4a19b;
  --muted-nav: #9a9892;
  --muted-deep: #8a8781;
  --footer-text: #6f6d67;
  --accent: #faff63;
  --accent-soft: #fdffa8;
  --accent-dim: #c3ca1f;
  --band: #1a1a1d;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-soft);
}

img {
  display: block;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px clamp(20px, 5vw, 56px);
  position: relative;
  z-index: 3;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.nav .brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav .brand span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

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

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

.nav-links a.get-deck {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
}

.nav-links a.get-deck:hover {
  background: var(--accent);
  color: var(--bg);
}

.back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-nav);
}

.back-link:hover {
  color: var(--text);
}

/* Hero — overlay layout on desktop (photo behind the copy), photo
   banner with the copy below it under 1000px */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 35%;
}

.hero-bg .scrim-x {
  position: absolute;
  inset: 0;
  background: linear-gradient(280deg, rgba(10, 10, 12, 0.82) 0%, rgba(10, 10, 12, 0.62) 36%, rgba(10, 10, 12, 0.2) 62%, rgba(10, 10, 12, 0.02) 100%);
}

.hero-bg .scrim-y {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 12, 0.9) 100%);
}

.hero-banner {
  position: relative;
}

.hero-banner img {
  width: 100%;
  height: clamp(240px, 45vw, 540px);
  object-fit: cover;
  object-position: center 42%;
}

.hero-banner .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.35) 0%, transparent 25%, transparent 75%, rgba(10, 10, 12, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(440px, 560px);
  gap: 24px;
  padding: clamp(40px, 8vw, 110px) clamp(20px, 5vw, 56px) clamp(48px, 7vw, 90px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(10, 10, 12, 0.9);
}

.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 40px;
  max-width: 620px;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(10, 10, 12, 0.9);
}

@media (max-width: 999px) {
  .nav-links {
    display: none;
  }

  .hero-bg {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-spacer {
    display: none;
  }
}

@media (min-width: 1000px) {
  .hero-banner {
    display: none;
  }
}

.fine-print {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted-deep);
  margin: 28px 0 0;
}

/* Store badges */

.store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff;
  border: 1.5px solid #9a9aa2;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: inherit;
  cursor: pointer;
}

.store-badge:hover {
  background: #131317;
  color: #ffffff;
  border-color: #d0d0d6;
}

.store-badge svg {
  flex-shrink: 0;
}

.badge-apple {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.badge-play {
  width: 24px;
  height: 24px;
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-small {
  font-size: 11px;
  font-weight: 500;
}

.badge-big {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
}

/* Sections */

.section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}

.kicker {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 16px;
}

.section h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 56px;
  max-width: 640px;
  text-wrap: balance;
}

/* Setup */

.setup-steps,
.setup-uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
}

.setup-uses {
  margin-top: 56px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 32px);
  background: var(--panel);
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 10px;
}

.step-num {
  font-weight: 500;
  font-size: 26px;
  color: var(--accent);
}

.step-head h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.use {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
}

.use h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.use p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Full-bleed live photo */

.live-photo {
  margin: 0;
  position: relative;
}

.live-photo img {
  width: 100%;
  height: clamp(240px, 45vw, 520px);
  object-fit: cover;
  object-position: center;
}

.live-photo .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.5), transparent 30%, transparent 70%, rgba(10, 10, 12, 0.6));
}

.live-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px clamp(20px, 5vw, 56px);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-mellow);
  text-shadow: 0 1px 8px rgba(10, 10, 12, 0.9);
}

/* Features */

.features-grid {
  display: grid;
  /* 340px min caps the grid at 3 columns, keeping the 9 tiles a balanced
     3×3 — the comp's 260px min lets a 4th column in at desktop width,
     stranding the last tile beside an empty cell. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.feature {
  background: var(--panel);
  padding: 28px;
}

.feature:hover {
  background: var(--panel-hover);
}

.feature-tag {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 10px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Screenshots — a full-width contrasting band around a standard section */

.screens-band {
  background: var(--band);
}

.screens-band .section h2 {
  margin-bottom: 40px;
}

.shot-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.shot-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.shot-track img {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  aspect-ratio: 2778 / 1284;
  object-fit: cover;
}

.shot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #3a3a40;
  background: rgba(10, 10, 12, 0.75);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.shot-arrow:hover {
  background: rgba(10, 10, 12, 0.95);
  border-color: var(--accent);
  color: var(--accent);
}

.shot-arrow.prev {
  left: 16px;
}

.shot-arrow.next {
  right: 16px;
}

.shot-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.shot-thumb {
  flex: 1 1 140px;
  max-width: 240px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  opacity: 0.55;
  font: inherit;
}

.shot-thumb:hover {
  opacity: 1;
}

.shot-thumb.selected {
  border-color: var(--accent-dim);
  opacity: 1;
}

.shot-thumb img {
  width: 100%;
  aspect-ratio: 2778 / 1284;
  object-fit: cover;
}

.shot-thumb span {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 8px 4px;
  background: var(--panel);
}

/* Videos */

.videos h2 {
  margin-bottom: 40px;
}

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

.video-figure {
  margin: 0;
}

.video-frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-figure figcaption {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 16px 0 0;
}

/* CTA */

.cta {
  position: relative;
  overflow: hidden;
}

.cta-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.cta-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.78);
}

.cta-inner {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta h2 {
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 700px;
  text-wrap: balance;
}

.cta .store-badges {
  justify-content: center;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.cta-tagline {
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  margin: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

/* Coming-soon dialog */

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dialog-overlay[hidden] {
  display: none;
}

.dialog {
  background: #131317;
  border: 1px solid #2b2b30;
  border-radius: 16px;
  padding: 40px 44px;
  max-width: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dialog img {
  width: 56px;
  height: 56px;
}

.dialog h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.dialog p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.dialog-ok {
  margin-top: 8px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.dialog-ok:hover {
  background: var(--accent-soft);
}

/* Subpages (support, privacy) */

.subpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.subpage main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 70px) clamp(20px, 5vw, 56px) clamp(64px, 9vw, 100px);
}

.subpage h1 {
  font-size: clamp(32px, 5.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.dateline {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted-deep);
  margin: 0 0 32px;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mellow);
  margin: 0 0 56px;
}

.doc-sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.doc-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.doc-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
}

.doc-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-mellow);
  margin: 0 0 6px;
}

.doc-section p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section strong {
  color: var(--text-mellow);
  font-weight: 600;
}

/* Feedback form */

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.form-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
}

/* The palette has no red — errors get the accent, like everything urgent here */
.form-error {
  font-size: 14px;
  color: var(--accent);
  margin: 0;
}

.form-fail {
  font-size: 15px;
  line-height: 1.6;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 24px;
}

.form-submit {
  align-self: flex-start;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--accent-soft);
}

/* Honeypot — parked off-screen rather than display:none so naive bots
   still see a fillable field */
.form-nectar {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 32px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line-soft);
  font-weight: 500;
  font-size: 13px;
  color: var(--footer-text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

@media (max-width: 720px) {
  .setup-steps,
  .setup-uses,
  .features-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta-tagline {
    animation: none;
  }

  .shot-track {
    transition: none;
  }
}
