:root {
  --flash-bg: #f4f1e9;
  --flash-paper: #fbfaf6;
  --flash-ink: #142a24;
  --flash-soft: #64736d;
  --flash-line: #cbd4ce;
  --flash-green: #174c3f;
  --flash-mint: #dcebe3;
  --flash-gold: #b88a43;
  --flash-display: "Source Serif 4", "Songti SC", serif;
  --flash-sans: "Figtree", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--flash-ink);
  background: var(--flash-bg);
  font-family: var(--flash-sans);
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.flash-skip {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: white;
}

.flash-skip:focus {
  top: 1rem;
}

.flash-wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.flash-top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(20, 42, 36, 0.12);
  background: rgba(244, 241, 233, 0.94);
  backdrop-filter: blur(14px);
}

.flash-top__inner {
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  gap: 1.5rem;
}

.flash-brand {
  flex: 0 0 auto;
  font: 800 1.45rem "Syne", sans-serif;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.flash-brand span {
  color: var(--flash-gold);
}

.flash-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.flash-nav a {
  font-size: 0.9rem;
  text-decoration: none;
}

.flash-nav a[aria-current="page"] {
  color: var(--flash-green);
  font-weight: 700;
}

.flash-back {
  font-size: 0.82rem;
  color: var(--flash-soft);
  text-decoration: none;
}

.flash-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 25%, rgba(184, 138, 67, 0.2), transparent 25%),
    linear-gradient(145deg, #0e2b24 0%, #183e34 62%, #28594c 100%);
  color: #f4f6f2;
}

.flash-kicker {
  margin: 0 0 1rem;
  color: #acd0bf;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flash-hero h1,
.flash-section h1,
.flash-section h2 {
  margin: 0;
  max-width: 900px;
  font-family: var(--flash-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.flash-hero h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.flash-hero__lede {
  max-width: 740px;
  margin: 1.5rem 0 0;
  color: #d2dfd8;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.flash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.flash-button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--flash-green);
  background: var(--flash-green);
  color: white;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.flash-button--ghost {
  border-color: currentColor;
  background: transparent;
}

.flash-button--quiet {
  min-height: 2.2rem;
  padding: 0.3rem 0.7rem;
  border-color: var(--flash-line);
  background: transparent;
  color: var(--flash-soft);
}

.flash-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.flash-section {
  padding: clamp(3.7rem, 7vw, 6.5rem) 0;
}

.flash-section--paper {
  border-block: 1px solid var(--flash-line);
  background: var(--flash-paper);
}

.flash-section--dark {
  color: #eef4f0;
  background: #102d26;
}

.flash-section h1,
.flash-section h2 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.flash-lede {
  max-width: 760px;
  margin: 1.2rem 0 0;
  color: var(--flash-soft);
  font-size: 1.08rem;
}

.flash-section--dark .flash-lede {
  color: #bdcec5;
}

.flash-grid,
.catalog-grid,
.pricing-grid,
.fragment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.flash-feature,
.flash-card,
.pricing-card,
.fragment-card {
  border: 1px solid var(--flash-line);
  background: var(--flash-paper);
  padding: 1.35rem;
}

.flash-feature h3,
.flash-card h3,
.fragment-card h3 {
  margin: 0.3rem 0 0.65rem;
  font: 600 1.45rem var(--flash-display);
}

.flash-feature p,
.flash-card p,
.fragment-card p {
  color: var(--flash-soft);
}

.flash-card__meta {
  margin: 0;
  color: var(--flash-green) !important;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flash-card dl {
  margin: 1rem 0;
  font-size: 0.85rem;
}

.flash-card dl div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.flash-card dt {
  color: var(--flash-ink);
  font-weight: 700;
}

.flash-card dd {
  margin: 0;
  color: var(--flash-soft);
}

.flash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.flash-tags span {
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--flash-line);
  color: var(--flash-soft);
  font-size: 0.72rem;
}

.flash-price {
  color: var(--flash-ink) !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.flash-link {
  font-weight: 700;
}

.flash-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.flash-filters button {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--flash-line);
  background: transparent;
  cursor: pointer;
}

.flash-filters button.is-active {
  border-color: var(--flash-green);
  color: white;
  background: var(--flash-green);
}

.flash-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.flash-field {
  display: grid;
  gap: 0.4rem;
}

.flash-field--wide {
  grid-column: 1 / -1;
}

.flash-field label,
.flash-field > span {
  font-weight: 700;
}

.flash-field input,
.flash-field select,
.flash-field textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--flash-line);
  color: var(--flash-ink);
  background: white;
}

.flash-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.flash-check input {
  width: auto;
  margin-top: 0.35rem;
}

.product-brief,
.flash-status,
.candidate-result,
.privacy-note,
.gap-report {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1rem;
  border-left: 3px solid var(--flash-gold);
  background: rgba(184, 138, 67, 0.09);
}

.fragment-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.fragment-card > :not(.quality-ring) {
  grid-column: 1 / -1;
}

.quality-ring {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 4px solid var(--flash-green);
  border-radius: 50%;
  font-weight: 800;
}

.fragment-card__boundary {
  padding-top: 0.7rem;
  border-top: 1px solid var(--flash-line);
  font-size: 0.86rem;
}

.flash-empty {
  grid-column: 1 / -1;
  padding: 3rem;
  border: 1px dashed var(--flash-line);
  text-align: center;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.slot {
  display: grid;
  min-height: 9rem;
  align-content: center;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px dashed #82938a;
  background: rgba(255, 255, 255, 0.55);
}

.slot.is-ready {
  border-style: solid;
  border-color: var(--flash-green);
  background: var(--flash-mint);
}

.slot span,
.slot em {
  color: var(--flash-soft);
  font-size: 0.76rem;
}

.slot strong {
  font: 600 1.25rem var(--flash-display);
}

.synthesis-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.synthesis-meter span {
  padding: 0.8rem;
  border: 1px solid var(--flash-line);
  background: var(--flash-paper);
}

.pricing-card p,
.pricing-card h3,
.pricing-card span {
  display: block;
  margin: 0;
}

.pricing-card h3 {
  margin: 0.5rem 0;
  font: 600 2rem var(--flash-display);
}

.pricing-card span {
  color: var(--flash-soft);
}

.flash-foot {
  padding: 2rem 0;
  border-top: 1px solid var(--flash-line);
  color: var(--flash-soft);
  font-size: 0.85rem;
}

.flash-foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
