:root {
  --bg: #101112;
  --panel: #171819;
  --panel-high: #202225;
  --text: #f3f0ec;
  --muted: #a7a19a;
  --line: #34302c;
  --brand: #ff8e34;
  --brand-dark: #8f4519;
  --green: #46c983;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(16, 17, 18, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
.header-action:hover {
  color: var(--text);
}

.header-action {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.help-icon-link:hover {
  color: var(--text);
  border-color: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(560px, 920px);
  justify-content: center;
  gap: clamp(44px, 5vw, 84px);
  max-width: 1540px;
  margin: 0 auto;
  min-height: calc(92vh - 72px);
  align-items: center;
  padding: clamp(28px, 5vh, 56px) clamp(24px, 5vw, 72px) 36px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(58px, 5.2vw, 88px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.lead {
  max-width: 620px;
  color: #d5d0ca;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 900;
  line-height: 1.05;
}

.hero-detail {
  max-width: 560px;
  color: #d5d0ca;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.primary-action,
.secondary-action,
.pricing-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.primary-action {
  background: var(--brand);
  color: #19110b;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
}

.microcopy {
  color: var(--muted);
  font-size: 14px;
}

.fineprint {
  color: var(--muted);
  font-size: 12px;
  opacity: 0.75;
}

.product-visual {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.desktop-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #3a342f;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 142, 52, 0.24) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #24272a;
  background-size: 64px 100%, auto, auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.desktop-frame::before {
  content: "";
  position: absolute;
  inset: 31% 12% 20%;
  border: 0;
}

.app-toolbar {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(250px, calc(100% - 40px));
  transform: translateX(-50%);
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.toolbar-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.crop-box {
  position: absolute;
  top: calc(31% + 25px);
  right: calc(12% + 90px);
  bottom: calc(20% - 25px);
  left: calc(12% + 90px);
  border: 2px dashed rgba(255, 255, 255, 0.55);
}

.selection-box {
  position: absolute;
  left: 8%;
  top: 28%;
  width: 82%;
  height: 40%;
  border: 2px solid var(--brand);
  background: rgba(255, 142, 52, 0.12);
  z-index: 0;
}

.selection-box > span {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #ffd2ad;
  font-size: 12px;
  font-weight: 800;
}

.crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #c8c8c8;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(16, 17, 18, 0.85);
}

.handle-tl {
  left: -7px;
  top: -7px;
}

.handle-tm {
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
}

.handle-tr {
  right: -7px;
  top: -7px;
}

.handle-ml {
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
}

.handle-mr {
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
}

.handle-bl {
  left: -7px;
  bottom: -7px;
}

.handle-bm {
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
}

.handle-br {
  right: -7px;
  bottom: -7px;
}

.hero-status {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: min(390px, calc(100% - 44px));
  padding: 15px 16px;
  border: 1px solid #4a4038;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hero-status strong,
.hero-status span,
.hero-status small {
  display: block;
}

.hero-status strong {
  color: #f3f0ec;
}

.hero-status span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero-status small {
  margin-top: 7px;
  color: #8f8a83;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #141516;
}

.proof-strip div {
  padding: 28px 7vw;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.metric {
  display: block;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
}

.proof-strip span:last-child {
  color: var(--muted);
}

.preview-showcase {
  max-width: 920px;
  margin: 44px auto 0;
  text-align: center;
}

.preview-showcase img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-showcase figcaption {
  max-width: 520px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.human-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 48vw, 640px);
  padding: 86px 7vw;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(16, 17, 18, 0.94) 0%, rgba(16, 17, 18, 0.72) 38%, rgba(16, 17, 18, 0.22) 72%),
    linear-gradient(180deg, rgba(48, 67, 87, 0.38), rgba(16, 17, 18, 0.72));
}

.human-band-copy {
  max-width: 720px;
}

.human-band h2 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
}

.human-band p:not(.eyebrow) {
  max-width: 560px;
  color: #d5d0ca;
  font-size: 19px;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  /* Cap the horizontal padding: 7vw keeps growing on wide/fullscreen windows
     while max-width holds the section at 1280px, so beyond ~1256px the padding
     silently squeezes the content area and can force the token table to
     overflow (cutting off the Reduction column). clamp() stops that. */
  padding: 86px clamp(20px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 760px;
}

.token-section .section-heading h2,
.pricing-section .section-heading h2,
.roadmap .section-heading h2 {
  max-width: 680px;
  font-size: clamp(27px, 2.5vw, 36px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.feature-grid article,
.pricing-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid p,
.comparison p,
.pricing-grid li,
.roadmap span,
.section-heading > p:not(.eyebrow),
.token-example p,
.table-note {
  color: var(--muted);
}

.split-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 44px;
  align-items: start;
  background: #15110f;
}

.split-band > * {
  position: relative;
  z-index: 1;
}

.split-band-macro::before {
  content: "";
  position: absolute;
  inset: -86px -7vw;
  background: radial-gradient(circle at 72% 38%, rgba(89, 148, 198, 0.24), transparent 42%), linear-gradient(135deg, #182331, #101112 68%);
  opacity: 0.42;
  filter: saturate(0.88) brightness(0.9);
  pointer-events: none;
  z-index: 0;
}

.split-band-macro::after {
  content: "";
  position: absolute;
  inset: -86px -7vw;
  background: linear-gradient(90deg, rgba(21, 17, 15, 0.72) 0%, rgba(21, 17, 15, 0.58) 34%, rgba(21, 17, 15, 0.58) 66%, rgba(21, 17, 15, 0.72) 100%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.split-band h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.06;
}

.comparison {
  display: grid;
  gap: 14px;
}

.comparison div {
  padding: 20px;
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.04);
}

.comparison span {
  font-weight: 900;
}

.workflow-section {
  background: #161311;
}

.token-section {
  background: #121416;
}

.token-example {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Below this, the 0.55fr/1fr split leaves the table narrower than its
   460px min-width before the shared 1120px breakpoint would stack it,
   causing it to need horizontal scroll even though the viewport is wide. */
@media (max-width: 1250px) {
  .token-example {
    grid-template-columns: 1fr;
  }
}

.token-example > div {
  padding-top: 4px;
}

.token-example p a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.token-example p a:hover {
  color: var(--text);
}

.token-table-scroll {
  overflow-x: auto;
}

.token-example table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.token-example th,
.token-example td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}

.token-example th {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.token-example td {
  color: #d5d0ca;
}

.token-example td:last-child {
  color: var(--green);
  font-weight: 900;
}

.token-example tr:last-child td {
  border-bottom: 0;
}

.table-note {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 14px;
}

.pricing-section {
  background: #111315;
}

.price {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 42px;
  font-weight: 900;
}

.price-period {
  margin-left: 8px;
  color: #9a9a9a;
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
}

.pricing-grid ul {
  min-height: 116px;
  margin: 0 0 22px;
  padding-left: 18px;
}

.pricing-grid a {
  width: 100%;
  background: #242424;
}

.pro-microcopy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.featured-plan {
  border-color: var(--brand) !important;
  background: var(--panel-high) !important;
}

.featured-plan a {
  background: var(--brand);
  color: #1b120c;
}

.roadmap ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.roadmap strong {
  color: var(--brand);
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 7vw 36px;
  color: var(--muted);
  text-align: center;
}

footer span:first-child {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .site-header {
    padding: 0 20px;
  }

  nav {
    display: none;
  }

  .hero,
  .split-band {
    grid-template-columns: 1fr;
  }

  .split-band-macro::after {
    background: linear-gradient(180deg, rgba(21, 17, 15, 0.74) 0%, rgba(21, 17, 15, 0.62) 36%, rgba(21, 17, 15, 0.7) 100%);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .product-visual {
    width: min(760px, 100%);
    justify-self: center;
  }

  .proof-strip,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .human-band {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(20, 34, 49, 0.92) 0%, rgba(33, 54, 71, 0.74) 46%, rgba(16, 17, 18, 0.92) 100%);
  }
}

@media (max-width: 560px) {
  .header-action {
    display: none;
  }

  .hero,
  .section,
  .human-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .human-band {
    align-items: flex-end;
    min-height: 520px;
    padding-top: 64px;
    padding-bottom: 46px;
  }

  .split-band-macro::after {
    background: linear-gradient(180deg, rgba(21, 17, 15, 0.78) 0%, rgba(21, 17, 15, 0.68) 44%, rgba(21, 17, 15, 0.76) 100%);
  }

  .human-band p:not(.eyebrow) {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(48px, 18vw, 64px);
  }

  .lead {
    font-size: 22px;
  }

  .desktop-frame {
    aspect-ratio: 1 / 1;
    background-size: 56px 100%, auto, auto;
  }

  .desktop-frame::before {
    inset: 46% 9% 18%;
  }

  .crop-box {
    top: calc(46% + 25px);
    right: 9%;
    bottom: calc(18% - 25px);
    left: 9%;
  }

  .app-toolbar {
    top: 20px;
    width: min(250px, calc(100% - 44px));
  }

  .selection-box {
    left: 8%;
    top: 24%;
    width: 84%;
    height: 34%;
  }

  .selection-box > span {
    right: 8px;
    bottom: 6px;
    font-size: 9px;
  }

  .crop-handle {
    width: 10px;
    height: 10px;
  }

  .hero-status {
    right: 20px;
    bottom: 18px;
    width: calc(100% - 40px);
    padding: 13px 14px;
  }

  .hero-status strong {
    font-size: 15px;
  }

  .hero-status span {
    font-size: 12px;
  }

  .hero-status small {
    font-size: 10px;
  }

  footer {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.thanks-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}

.thanks-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.thanks-card h1 {
  font-size: 24px;
  margin: 8px 0 12px;
}

.thanks-body {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.thanks-key-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-high);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.thanks-key-box input {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

.thanks-key-box button {
  background: var(--brand);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.thanks-copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.thanks-copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--panel);
}

.thanks-copy-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.thanks-footnote {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* Help page (help.html) */

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 26px;
}

.help-toc a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}

.help-toc a:hover {
  color: var(--text);
  border-color: var(--brand);
}

.help-section .section-heading {
  margin-bottom: 28px;
}

.help-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.help-block > div {
  min-width: 0;
}

@media (max-width: 900px) {
  .help-block {
    grid-template-columns: 1fr;
  }
}

.help-block ul {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.help-block li {
  margin-bottom: 10px;
}

.help-block li strong {
  color: var(--text);
}

.help-block img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-block img:last-child {
  margin-bottom: 0;
}

.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

kbd {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-high);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.help-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.help-table th,
.help-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.help-table th {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.help-table td {
  color: #d5d0ca;
}

.help-table tr:last-child td {
  border-bottom: 0;
}

.help-table-tokens td:last-child {
  color: var(--green);
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

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