/* ── Text Snip landing page ─────────────────────────────── */

:root {
  --ink:        #16181d;
  --muted:      #656b78;  /* ~5.3:1 on white — clears WCAG AA for the 12–14px body text it's used on */
  --cyan:       #0fd2ee;
  --cyan-dark:  #08b7d4;
  --accent:     #1872fc;
  --card-line:  #e8e9ee;
  --hero-from:  #efecfa;
  --hero-to:    #f7f6fc;
  --radius:     14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { text-decoration: none; color: inherit; }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: #101114;
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 17, 20, .22);
}

.btn-cyan {
  background: var(--cyan);
  color: #06262b;
  font-weight: 700;
  box-shadow: 0 0 34px rgba(15, 210, 238, .55);
}
.btn-cyan:hover { background: #2adcf4; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 58%, #ffffff 100%);
  text-align: center;
  /* Top padding clears the fixed pill navbar (14px top + ~50px tall + gap). */
  padding: 142px 20px 70px;
}

.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(560px, calc(100% - 32px));
  background: rgba(16, 17, 20, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(10, 12, 20, .28);
}
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: #e7e8ea;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .15s ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, .1); }

/* Download CTA inside the pill (injected by nav.js) */
.nav-download {
  background: var(--cyan);
  color: #06262b !important;
  font-weight: 700 !important;
  margin-left: 6px;
}
.nav-download:hover { background: #2adcf4 !important; }

/* ── Accessibility: skip link + focus rings ─────────────── */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: #101114;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--cyan); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.navbar :focus-visible { outline-color: var(--cyan); }

/* Burger toggle — hidden on desktop, injected by nav.js */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.nav-burger:hover { background: rgba(255, 255, 255, .1); }
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
/* Burger → X when the menu is open */
.navbar.open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar.open .nav-burger span:nth-child(2) { opacity: 0; }
.navbar.open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero h1 {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 30px;
}

.hero-checks {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.hero-checks li::before {
  content: "✓";
  color: #1fb771;
  font-weight: 700;
  margin-right: 7px;
}

/* ── App mockup ─────────────────────────────────────────── */

.mockup {
  width: min(520px, 100%);
  margin: 56px auto 0;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(40, 40, 80, .18),
    0 4px 18px rgba(40, 40, 80, .08);
  text-align: left;
}

.mockup-header {
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}
.mockup-logo { height: 34px; width: auto; }
.mockup-header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mh-min {
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mockup-body { padding: 16px 18px 20px; }

.mockup-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.m-card {
  background: #f0f0f2;
  border: 1px solid #e7e7ea;
  border-radius: 18px;
  padding: 14px 16px;
}
.m-snip-text { flex: 1; }

.m-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 10px;
}

.m-keys {
  display: flex;
  align-items: center;
  gap: 6px;
}
.m-keys i {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.m-keys kbd {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  background: #eef7fa;
  border: 1px solid #c9dde6;
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 3px 9px 2px;
  color: #1d3742;
}

.m-snip-now {
  border: 0;
  cursor: pointer;
  background: var(--cyan);
  color: #053038;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 18px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.m-paste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.m-paste .m-card-title { margin-bottom: 0; }

.m-capture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 4px;
  margin-bottom: 9px;
}
.m-just-now {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.m-capture {
  position: relative;
  background: #e9f9fd;
  border: 1px solid #d4eff7;
  border-radius: 16px;
  padding: 14px 44px 14px 16px;
}
.m-capture p {
  font-size: 13px;
  line-height: 1.55;
  color: #233;
}
.m-copy {
  position: absolute;
  top: 12px;
  right: 13px;
  color: #44606b;
}

/* ── Features ───────────────────────────────────────────── */

.features {
  text-align: center;
  padding: 84px 20px 30px;
}

.pill {
  display: inline-block;
  background: #ece8fb;
  color: #6b4ee6;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.features h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 48px;
}

.grid {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  text-align: left;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  box-shadow: 0 14px 34px rgba(30, 35, 60, .08);
  transform: translateY(-2px);
}

.card-icon { font-size: 19px; margin-bottom: 14px; }

.card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 9px;
}

.card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
}
.badge-premium { background: #efeafd; color: #7a55e8; }

/* ── CTA ────────────────────────────────────────────────── */

.cta-wrap {
  padding: 70px 20px 90px;
}

.cta-wrap { background: transparent; }

.cta {
  position: relative;
  width: min(880px, 100%);
  margin: 0 auto;
  background: #0e0f12;
  border-radius: 30px;
  text-align: center;
  padding: 74px 30px 84px;
  overflow: hidden;
  box-shadow: 0 0 0 36px #ececef;
}
.cta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -130px;
  width: 540px;
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(15, 210, 238, .38) 0%, transparent 65%);
  pointer-events: none;
}

.cta h2 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.cta p {
  color: #9aa1ab;
  font-size: 14.5px;
  margin-bottom: 34px;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.os-pill {
  display: inline-flex;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 4px;
}
.os-pill span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfd3d9;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 16px;
}
.os-pill span.active {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* ── Footer ─────────────────────────────────────────────── */

footer {
  background: #f4f4f6;
  padding: 64px 20px 30px;
}

/* Footer content sits in the same centered 1000px column as the rest of
   the site instead of stretching to the page edges. */
.footer-main {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid #e2e2e6;
}

.footer-brand { max-width: 300px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.footer-logo img { height: 38px; width: auto; }
.footer-logo span {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.02;
  letter-spacing: .4px;
}
.footer-logo i {
  font-style: normal;
  color: var(--accent);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

.socials { display: flex; gap: 9px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e3e3e7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #3c4046;
  transition: border-color .15s ease;
}
.socials a:hover { border-color: #b9bcc4; }

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 58px;
}
.footer-cols h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.footer-cols a:hover { color: var(--ink); }

.footer-bottom {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-right { display: inline-flex; gap: 26px; }
.footer-right .muted { color: #767b85; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cta { box-shadow: 0 0 0 16px #ececef; }
}

@media (max-width: 620px) {
  .hero { padding-top: 118px; }

  /* Pill shows logo + burger; links become a dropdown panel below. */
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: rgba(16, 17, 20, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(10, 12, 20, .35);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .navbar.open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 13px 16px;
    font-size: 14px;
    text-align: center;
    border-radius: 14px;
  }
  .grid { grid-template-columns: 1fr; }
  .mockup-row { flex-direction: column; }
  .m-snip-now { padding: 14px 30px; justify-content: center; }
  .footer-main { flex-direction: column; }
}
