/* Bascaso — light, the way macOS is light.
   Accent violet and score green come from the app icon. */
:root {
  --bg:      #FFFFFF;
  --alt:     #F5F5F7;
  --line:    #D2D2D7;
  --text:    #1D1D1F;
  --muted:   #6E6E73;
  --violet:  #6B3BD4;
  --btn:     #7C4DEE;

  --w: 1080px;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--text); text-decoration-color: rgba(107, 59, 212, .45); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--violet); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 3px; }

code {
  font: 400 .86em/1.5 var(--mono);
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .12em .4em;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--btn); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; letter-spacing: -.01em; text-decoration: none;
}
.nav-brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 1.5rem; font-size: .95rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  max-width: var(--w);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.1rem); letter-spacing: -.035em; line-height: 1.06; }
.lede { margin: 1.4rem 0 2rem; color: var(--muted); font-size: 1.1rem; max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.3rem;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: #6B3BD4; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn-ghost:hover { border-color: #A9A9B2; background: var(--alt); }
.gh { flex: none; }

.free { margin-top: 1.2rem; font-size: .94rem; font-weight: 500; }
.req { margin-top: .35rem; color: var(--muted); font-size: .86rem; max-width: 32em; }
.req a { color: var(--muted); }

/* ── Hero mock: the keyword field, as the app draws it ───────── */
.mock {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .28);
  font-size: 14px;
}
.mock-bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .9rem;
  background: #F6F6F8;
  border-bottom: 1px solid #E5E5EA;
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #E0E0E4; }
.dots i:first-child { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.mock-crumb { font-weight: 600; }
.mock-locale { margin-left: auto; color: var(--muted); }
.mock-locale b { color: var(--text); font-weight: 500; }

.mock-body { padding: 1.1rem .9rem 1.1rem; }
.mock-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.mock-label { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.tag {
  font-size: .72rem;
  padding: .16rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag-warn { border-color: #E0BE8A; color: #8A5200; }

.mock-field { border: 1px solid #E5E5EA; border-radius: 9px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem; }
.chip {
  display: inline-flex; align-items: baseline; gap: .35rem;
  background: #F2F2F7;
  border-radius: 999px;
  padding: .26rem .6rem;
  font-size: .82rem;
}
.chip b { font: 600 .78rem var(--mono); }
.s-hi  { color: #157A43; }
.s-mid { color: #8A5200; }
.s-low { color: #B3261E; }
.mock-count {
  padding: .45rem .75rem;
  background: #FAFAFC;
  border-top: 1px solid #E5E5EA;
  font: 400 .78rem var(--mono);
  color: var(--muted);
}

/* ── Bands ───────────────────────────────────────────────────── */
.band {
  max-width: var(--w);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--line);
}
.band h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); margin-bottom: 1.2rem; }
.eyebrow {
  margin: 0 0 .9rem;
  font: 600 .72rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
}
.section-lede { color: var(--muted); max-width: 42em; font-size: 1.03rem; }
.footnote { margin-top: 2rem; color: var(--muted); font-size: .9rem; max-width: 46em; }

/* ── Cards ───────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.card-logo { border-radius: 10px; flex: none; }
.card-meta { font: 400 .78rem var(--mono); color: var(--violet); margin: 0; }

/* ── Features ────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}
/* Keep the screenshot in the wide column when the order flips. */
.feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-flip .feature-text { order: 2; }
.feature h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.feature-text p { color: var(--muted); font-size: .99rem; }

.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35);
  background: #fff;
}
.shot figcaption { margin-top: .6rem; font-size: .82rem; color: var(--muted); }

.grid-title { font-size: 1.25rem; margin: 4rem 0 1.5rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ── Spec list ───────────────────────────────────────────────── */
.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.5rem;
}
.specs li { border-top: 1px solid var(--line); padding-top: 1rem; }
.specs h4 { font-size: 1rem; margin-bottom: .35rem; }
.specs p { color: var(--muted); font-size: .94rem; }

/* ── Open source ─────────────────────────────────────────────── */
.disclosure {
  margin: 2rem 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 0 12px 12px 0;
  background: var(--alt);
}
.disclosure h3 { font-size: 1rem; margin-bottom: .5rem; }
.disclosure p { color: var(--muted); font-size: .96rem; max-width: 48em; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 1.05rem 2rem 1.05rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .3rem; top: 50%;
  transform: translateY(-50%);
  color: var(--violet);
  font-weight: 400;
  font-size: 1.3rem;
}
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 2rem 1.3rem 0; color: var(--muted); font-size: .98rem; max-width: 46em; }

/* ── Closer ──────────────────────────────────────────────────── */
.closer { text-align: center; padding-top: 5rem; padding-bottom: 5rem; }
.closer .free, .closer .req { margin-left: auto; margin-right: auto; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--alt);
}
.footer-cols {
  max-width: var(--w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; font-weight: 600; }
.footer nav a { display: block; color: var(--muted); text-decoration: none; font-size: .92rem; padding: .22rem 0; }
.footer nav a:hover { color: var(--text); }
.footer-note { margin-top: .8rem; color: var(--muted); font-size: .9rem; }

.footer-legal {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.8rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

/* ── Narrow ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; }
  .feature, .cards, .cards-3, .grid, .specs { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .specs { gap: 1.2rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { flex-wrap: wrap; }
  .nav-links { gap: 1rem; font-size: .88rem; }
  .band { padding: 3.2rem 1.25rem; }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
