/* Landing, privacy and terms pages: light theme scoped to `.land` (studio and share stay dark via base.css). */
html:has(body.land) {
  background: #fafaf9;
}
.land {
  --bg: #fafaf9;
  --bg-2: #f5f5f4;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --panel-3: #f5f5f4;
  --line: #e7e5e4;
  --line-2: #d6d3d1;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #6f6a65;
  --ink: #1c1917;
  --brand: #6d28d9;
  --brand-strong: #781ff3;
  --brand-soft: #f3edff;
  --brand-line: #dccbff;
  --ok: #15803d;
  --ok-soft: #e8f5ec;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px rgba(28, 25, 23, 0.06);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  color-scheme: light;
  font-size: 16px;
  line-height: 1.6;
}
.land ::selection {
  background: var(--brand-soft);
  color: var(--ink);
}
.wrap {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  z-index: 50;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  transform: none;
}

/* --- primitives on light ---------------------------------------------------------------------------------------- */
.land .btn {
  border-color: var(--line-2);
  background: var(--panel);
  color: var(--text);
}
.land .btn:hover {
  background: var(--bg-2);
  border-color: #a8a29e;
}
.land .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.land .btn-primary:hover {
  background: #44403c;
  border-color: #44403c;
}
.land .btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.land .btn-ghost:hover {
  background: var(--bg-2);
  color: var(--text);
  border-color: transparent;
}
.land .btn-invert {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.land .btn-invert:hover {
  background: #e7e5e4;
  border-color: #e7e5e4;
}
.land .btn-lg {
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
}
.land .pill {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--text-2);
}
.land .pill-ok {
  background: var(--ok-soft);
  border-color: #c6e6d0;
  color: var(--ok);
}
.land .lang-switch {
  background: var(--bg-2);
  border-color: var(--line);
}
.land .lang-switch button[aria-pressed="true"] {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.land :focus-visible {
  outline-color: var(--brand);
}

/* --- nav -------------------------------------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 16px;
}
.nav-links a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-2);
}
.nav-r {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* --- hero ------------------------------------------------------------------------------------------------------- */
.hero {
  padding: 80px 0 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(250, 250, 249, 0.82), var(--bg) 70%);
  pointer-events: none;
}
.hero > * {
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-strong);
}
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.grad {
  color: #78716c;
}
.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.cta-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

/* Merge request card: the product output, shown as proof next to the headline. */
.mr {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
}
.mr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 6px;
}
.mr-state {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}
.mr-id {
  color: var(--text-3);
}
.mr-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-meta {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
  color: var(--text-3);
  font-size: 12px;
}
.mr-meta span:first-child {
  color: var(--brand);
}
.mr-file {
  margin: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.mr-file-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
}
.mr-stat b {
  font-weight: 500;
}
.add-n {
  color: var(--ok);
}
.del-n {
  color: #b91c1c;
}
.mr-diff {
  display: grid;
  grid-template-columns: 34px 1fr;
  margin: 0;
  padding: 6px 0;
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
}
.mr-diff .ln {
  padding-right: 10px;
  text-align: right;
  color: #a8a29e;
}
.mr-diff .ctx {
  color: var(--text-2);
}
.mr-diff .del,
.mr-diff .add {
  padding-right: 12px;
}
.del {
  background: #fdecec;
  color: #991b1b;
}
.add {
  background: #e6f4ea;
  color: #166534;
}
.mr-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 16px;
  color: var(--text-2);
  font-size: 12.5px;
}
.mr-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mr-check::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}
.mr-review {
  color: var(--text-3);
  font-size: 12px;
}

.works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.works-label {
  font-size: 13px;
  color: var(--text-3);
}
.stacks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.shot {
  margin: 48px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #f0efee;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 24px 60px -24px rgba(28, 25, 23, 0.25);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f5f5f4;
}
.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d3d1;
}
.shot-bar span {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-3);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  color: var(--text-2);
}
.shot-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shot-legend b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}

/* --- sections --------------------------------------------------------------------------------------------------- */
.sec {
  padding: 112px 0;
}
.hero + .sec {
  padding-top: 120px;
}
.sec-alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.label {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.label span:first-child {
  color: var(--brand);
}
.sec h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.sec-lead {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 17px;
}

/* Steps + features: hairline grid instead of floating cards. */
.steps,
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step,
.feat {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step-n {
  font-size: 12px;
  color: var(--text-3);
}
.step h3,
.feat h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.step p,
.feat p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}
.mini {
  margin-top: auto;
  padding-top: 24px;
}
.mini > * {
  font-size: 13px;
}
.mini-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mini-url .pill {
  white-space: nowrap;
}
.mini-url .mono {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.mini-props {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  color: var(--text-3);
}
.mini-props .mono {
  justify-self: start;
  min-width: 64px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.mini-props .sw {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #0f766e;
  border: 1px solid var(--line-2);
}
.mini-diff {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.mini-diff span {
  padding: 5px 10px;
}

.features {
  border-color: var(--line);
}
.feat {
  transition: background 200ms var(--ease);
}
.feat:hover {
  background: var(--bg);
}
.feat svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat h3 {
  margin-top: 20px;
}

.integrate {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.integrate .btn {
  margin-top: 32px;
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}
.term {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 15px;
}
.term li {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  color: var(--text);
}
.term li + li {
  border-top: 1px solid var(--line);
}
.term-n {
  flex: none;
  padding-top: 2px;
  font-size: 12px;
  color: var(--brand);
}

.pricing {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  gap: 72px;
  align-items: start;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.price {
  margin: 18px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-3);
  font-size: 14px;
}
.price strong {
  font-size: 48px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.plan .checks {
  margin: 24px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.plan .btn {
  margin-top: auto;
}
.btn-block {
  width: 100%;
}

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 72px;
  align-items: start;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--text-2);
}

.final {
  padding: 96px 0;
  background: var(--ink);
  color: #fafaf9;
}
.final-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.final h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 600;
  text-wrap: balance;
}

.foot {
  padding: 28px 0;
  background: var(--ink);
  border-top: 1px solid #292524;
}
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.foot .hint {
  color: #a8a29e;
  font-size: 13px;
}
.foot nav {
  display: flex;
  gap: 20px;
}
.foot a {
  color: #a8a29e;
  text-decoration: none;
  font-size: 14px;
}
.foot a:hover {
  color: #fafaf9;
}

/* --- legal pages ------------------------------------------------------------------------------------------------ */
.doc {
  max-width: 760px;
  padding: 64px 0 96px;
}
.doc h1 {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.doc h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.doc p,
.doc li {
  color: var(--text-2);
}
.doc a {
  color: var(--brand);
}

/* --- responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid,
  .integrate,
  .pricing,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .mr {
    max-width: 560px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .steps,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 48px;
  }
  .mr-head {
    flex-wrap: wrap;
  }
  .mr-title {
    white-space: normal;
  }
  .mr-review {
    display: none;
  }
  .sec,
  .hero + .sec {
    padding: 72px 0;
  }
  .lead {
    font-size: 16px;
  }
  .shot-legend {
    gap: 16px;
    flex-wrap: wrap;
  }
  .final-in {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-r .btn {
    padding: 0 12px;
  }
  .nav-r .lang-switch {
    display: none;
  }
  .foot-in {
    flex-direction: column;
    align-items: flex-start;
  }
}
