/* ===========================================================================
   TagSet site — custom layer on top of Pico.css (dark theme committed)
   =========================================================================== */

:root {
  --tagset-accent: #6f9bff;       /* link / accent on dark */
  --tagset-accent-strong: #2f6df6;
  --tagset-bezel: #050608;
  --tagset-glow: 111, 155, 255;   /* rgb for soft glows */
}

[data-theme="dark"] {
  --pico-primary: #6f9bff;
  --pico-primary-hover: #8eb0ff;
  --pico-primary-focus: rgba(111, 155, 255, 0.25);
  --pico-primary-underline: rgba(111, 155, 255, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 66rem;
  margin-inline: auto;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(111, 155, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(111, 155, 255, 0.06), transparent 55%);
  background-attachment: fixed;
}

::selection {
  background: rgba(111, 155, 255, 0.35);
}

/* --------------------------------- Nav ---------------------------------- */
nav .brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
nav .brand span {
  color: var(--tagset-accent);
}

/* ------------------------------ Typography ------------------------------ */
.landing h1,
.landing h2,
.landing h3 {
  letter-spacing: -0.03em;
}
.section-head {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
  max-width: 30rem;
  margin: 0 auto 2.5rem;
  line-height: 1.1;
}
.accent { color: var(--tagset-accent); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tagset-accent);
  margin-bottom: 0.75rem;
}

/* ================================ HERO ================================== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 3.5rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}
.hero .tagline {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--pico-muted-color);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero .tagline em { font-style: normal; color: var(--pico-color); font-weight: 600; }

.platforms {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--pico-muted-color);
}

/* CTA row + buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.cta-row--center { justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
}
.badge--soon {
  background: #000;
  color: #fff;
  border: 1px solid #2a2f3a;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  text-decoration: none;
}
.btn-primary {
  background: var(--tagset-accent-strong);
  color: #fff;
  box-shadow: 0 6px 24px rgba(47, 109, 246, 0.35);
}
.btn-primary:hover { background: var(--tagset-accent); }
.btn-ghost {
  color: var(--pico-color);
  border: 1px solid var(--pico-muted-border-color);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--tagset-accent); color: var(--tagset-accent); }

/* The capture → label → upload strip */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 2rem 0 0;
}
.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pico-color);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--pico-card-border-color);
  border-radius: 12px;
}
.flow-ico {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  color: var(--tagset-accent);
  background: rgba(var(--tagset-glow), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--tagset-glow), 0.22);
}
.flow-ico svg { width: 1.05rem; height: 1.05rem; }
.flow-arrow {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--pico-muted-color);
  opacity: 0.7;
}

/* Hero phones (overlapping) */
.hero-shots {
  position: relative;
  height: clamp(20rem, 42vw, 30rem);
}
.hero-shots .device {
  position: absolute;
  top: 50%;
}
.device--back {
  left: 8%;
  width: 56%;
  transform: translateY(-50%) rotate(-6deg);
  opacity: 0.92;
  filter: saturate(0.95);
}
.device--front {
  right: 4%;
  width: 60%;
  transform: translateY(-48%) rotate(4deg);
  z-index: 2;
}

/* ============================ Phone device frame ======================== */
.device {
  background: var(--tagset-bezel);
  border: 1px solid #23262e;
  border-radius: 2.2rem;
  padding: 0.5rem;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.device img,
.device video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
}

/* ================================ DEMO ================================== */
.demo {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--pico-card-border-color);
}
.demo h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.demo p { color: var(--pico-muted-color); font-size: 1.05rem; }
.demo .device--video { max-width: 17rem; margin-inline: auto; }

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.ticks li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
  color: var(--pico-color);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tagset-accent);
  font-weight: 800;
}

/* ============================== PROOF =================================== */
.proof {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--pico-card-border-color);
}
.proof-copy { min-width: 0; }
.proof h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.proof p { color: var(--pico-muted-color); margin-bottom: 1.5rem; }
.proof code { font-size: 0.85em; }

.code {
  background: #0c0e13;
  border: 1px solid #20242e;
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
}
.code code { background: none; padding: 0; color: #e6e9ef; font-size: inherit; }
.c-kw  { color: #c792ea; }
.c-fn  { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-cm  { color: #5c6370; font-style: italic; }

.bucket {
  margin: 0;
  border: 1px solid #20242e;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}
.bucket img { display: block; width: 100%; height: auto; }
.bucket figcaption {
  background: var(--pico-card-background-color);
  color: var(--pico-muted-color);
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid #20242e;
}

/* ============================ HOW IT WORKS ============================== */
.how {
  padding: 4rem 0;
  border-top: 1px solid var(--pico-card-border-color);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step { margin: 0; text-align: center; }
.device--mini {
  width: 62%;
  max-width: 11rem;
  margin: 0 auto 1.5rem;
  border-radius: 1.6rem;
}
.device--mini img { border-radius: 1.2rem; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(111, 155, 255, 0.15);
  color: var(--tagset-accent);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--pico-muted-color); font-size: 0.95rem; }

/* ============================== TRUST ================================== */
.trust {
  padding: 4rem 0;
  border-top: 1px solid var(--pico-card-border-color);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.trust-grid article {
  margin: 0;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.trust-grid h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.trust-grid p { color: var(--pico-muted-color); font-size: 0.95rem; margin: 0; }

/* ============================ FINAL CTA ================================ */
.cta-final {
  text-align: center;
  padding: 4.5rem 1.5rem;
  margin: 2rem 0 0;
  border-radius: 24px;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(111, 155, 255, 0.16), transparent 70%),
    var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
}
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.cta-final p { color: var(--pico-muted-color); margin-bottom: 1.75rem; }

/* ============================== Footer ================================= */
footer.site {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pico-card-border-color);
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* ===================== Legal / support readability ===================== */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { margin-bottom: 1rem; }
.effective-date {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
}

/* ============================ Responsive =============================== */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 0 3rem;
  }
  .hero .tagline { margin-inline: auto; }
  .cta-row, .flow { justify-content: center; }
  .hero-shots {
    order: -1;
    width: 100%;
    height: clamp(22rem, 80vw, 28rem);
    max-width: 24rem;
    margin: 0 auto 1rem;
  }
  .demo, .proof {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .demo-copy { min-width: 0; }
  .demo .device--video { max-width: 14rem; }
  /* show the proof image above the code on stacked layout */
  .bucket { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; max-width: 22rem; margin-inline: auto; }
}

@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
  .code { font-size: 0.74rem; padding: 1rem 1.1rem; }
}

@media (max-width: 480px) {
  .flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .flow-step { justify-content: flex-start; }
  .flow-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
  .cta-row { flex-direction: column; align-items: stretch; }
  .badge, .btn-primary, .btn-ghost { justify-content: center; }
}

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