/* flexsetu.com: the styles every page shares. Values follow DESIGN.md. */
/* Tokens: copied from packages/ui/src/tokens.css so the prototype opens on its own. See DESIGN.md. */
:root {
  color-scheme: light;
  --tc-brand: #b4430f;
  --tc-brand-strong: #933609;
  --tc-brand-soft: #fbeee6;
  --tc-on-brand: #ffffff;
  --tc-online: #185fa5;
  --tc-online-soft: #e6f0fa;
  --tc-offline: #1f6b47;
  --tc-offline-soft: #e5f3ec;
  --tc-success: #1f6b47;
  --tc-warning: #8a5a07;
  --tc-warning-soft: #fbf1dc;
  --tc-ink: #171a17;
  --tc-ink-muted: #5b625c;
  --tc-ink-faint: #6b726b;
  --tc-line: #dce0db;
  --tc-line-strong: #b9beb8;
  --tc-hover: #eef1ed;
  --tc-page: #f5f6f4;
  --tc-surface: #ffffff;
  --tc-focus: #075db7;
  --tc-rating: #e39b17;
  --tc-text-xs: 12px;
  --tc-text-sm: 14px;
  --tc-text-md: 16px;
  --tc-text-lg: 20px;
  --tc-text-xl: 28px;
  --tc-leading: 1.5;
  --tc-radius-sm: 6px;
  --tc-radius-md: 12px;
  --tc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --tc-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --tc-shadow-overlay: 0 8px 24px rgba(23, 26, 23, 0.16);
}
:lang(hi) {
  --tc-leading: 1.7;
  --tc-font: "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", system-ui, sans-serif;
}
:lang(zh) {
  --tc-font:
    "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --tc-brand: #f08a52;
    --tc-brand-strong: #ffa877;
    --tc-brand-soft: #3a2316;
    --tc-on-brand: #1a0e06;
    --tc-online: #7ab6f2;
    --tc-online-soft: #14283d;
    --tc-offline: #6cc79a;
    --tc-offline-soft: #12291e;
    --tc-success: #6cc79a;
    --tc-warning: #e6b450;
    --tc-warning-soft: #342a12;
    --tc-warning-soft: #342a12;
    --tc-ink: #e9ece8;
    --tc-ink-muted: #a8b0a7;
    --tc-ink-faint: #8c948b;
    --tc-line: #2f342f;
    --tc-line-strong: #4b524a;
    --tc-hover: #262a26;
    --tc-page: #121412;
    --tc-surface: #1b1e1b;
    --tc-focus: #8cc2ff;
    --tc-rating: #e6b450;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --tc-brand: #f08a52;
  --tc-brand-strong: #ffa877;
  --tc-brand-soft: #3a2316;
  --tc-on-brand: #1a0e06;
  --tc-online: #7ab6f2;
  --tc-online-soft: #14283d;
  --tc-offline: #6cc79a;
  --tc-offline-soft: #12291e;
  --tc-success: #6cc79a;
  --tc-warning: #e6b450;
  --tc-ink: #e9ece8;
  --tc-ink-muted: #a8b0a7;
  --tc-ink-faint: #8c948b;
  --tc-line: #2f342f;
  --tc-line-strong: #4b524a;
  --tc-hover: #262a26;
  --tc-page: #121412;
  --tc-surface: #1b1e1b;
  --tc-focus: #8cc2ff;
  --tc-rating: #e6b450;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--tc-page);
  color: var(--tc-ink);
  font-family: var(--tc-font);
  font-size: var(--tc-text-md);
  line-height: var(--tc-leading);
}
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--tc-focus);
  outline-offset: 2px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--tc-brand);
  border-radius: var(--tc-radius-sm);
  background: var(--tc-brand);
  color: var(--tc-on-brand);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--tc-brand-strong);
  background: var(--tc-brand-strong);
}
.btn-secondary {
  border-color: var(--tc-line-strong);
  background: var(--tc-surface);
  color: var(--tc-ink);
}
.btn-secondary:hover {
  border-color: var(--tc-line-strong);
  background: var(--tc-hover);
}
.link {
  color: var(--tc-brand);
  font-weight: 600;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* Top navigation: the wordmark and one button. */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--tc-line);
  background: var(--tc-page);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.wordmark {
  font-size: var(--tc-text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--tc-text-sm);
}

/* Hero: open, then the bridge. */
.hero {
  padding: 64px 0;
}
@media (min-width: 1000px) {
  .hero {
    padding-top: 96px;
  }
}
.kicker {
  color: var(--tc-brand);
  font-size: var(--tc-text-sm);
  font-weight: 600;
}
.hero h1 {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
@media (min-width: 720px) {
  .hero h1 {
    font-size: 40px;
    line-height: 1.15;
  }
}
:lang(hi) .hero h1 {
  line-height: 1.4;
  letter-spacing: 0;
}
.lead {
  max-width: 34em;
  margin-top: 16px;
  color: var(--tc-ink-muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
}

.bridge {
  position: relative;
  height: 150px;
  margin-top: 48px;
}
@media (min-width: 720px) {
  .bridge {
    height: 200px;
  }
}
.bridge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bridge line,
.bridge path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.bridge .deck {
  stroke: var(--tc-line-strong);
  stroke-width: 1.5;
}
.bridge .hanger {
  stroke: var(--tc-line);
  stroke-width: 1;
}
.bridge .arc {
  stroke: var(--tc-ink-faint);
  stroke-width: 1.5;
}
.bank {
  position: absolute;
  top: 91.667%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  background: var(--tc-ink-muted);
}
.token {
  position: absolute;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 999px;
  font-weight: 600;
  transition: opacity 0.3s;
}
.token-money {
  background: var(--tc-brand);
  color: var(--tc-on-brand);
}
.token-work {
  border: 1.5px solid var(--tc-success);
  background: var(--tc-surface);
  color: var(--tc-success);
}
.pool {
  position: absolute;
  top: 55%;
  left: 50%;
  padding: 2px 8px;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius-sm);
  background: var(--tc-page);
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-xs);
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 0.3s;
}
.bridge-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-sm);
}
.bridge-ends span:last-child {
  text-align: right;
}

/* Bands below the hero. */
.band {
  padding: 64px 0;
  border-top: 1px solid var(--tc-line);
}
.band-head {
  display: grid;
  gap: 8px;
  max-width: 40em;
  margin-bottom: 32px;
}
.band h2 {
  font-size: var(--tc-text-xl);
  font-weight: 600;
  line-height: 1.25;
}
.band-sub {
  color: var(--tc-ink-muted);
}
.note {
  color: var(--tc-ink-faint);
  font-size: var(--tc-text-xs);
}
.cols {
  display: grid;
  gap: 32px;
}
@media (min-width: 720px) {
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 880px) {
  .cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Markets: one column each, an example card under it. */
.market {
  display: grid;
  align-content: start;
  gap: 12px;
}
.market h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--tc-text-lg);
  font-weight: 600;
}
.market p {
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-sm);
}

.card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius-md);
  background: var(--tc-surface);
  cursor: pointer;
}
.card:hover {
  border-color: var(--tc-line-strong);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--tc-text-md);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.price {
  display: inline-flex;
  flex: none;
  align-items: baseline;
  gap: 3px;
  padding-top: 1px;
  white-space: nowrap;
}
.price strong {
  color: var(--tc-brand);
  font-size: var(--tc-text-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price small {
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-xs);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-sm);
}
.facts > span:not(:last-child)::after {
  content: "·";
  margin: 0 6px;
  color: var(--tc-ink-faint);
}
.distance {
  color: var(--tc-offline);
  font-weight: 600;
}
.star {
  color: var(--tc-rating);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--tc-radius-sm);
  background: var(--tc-hover);
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-xs);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}
.tag-online {
  background: var(--tc-online-soft);
  color: var(--tc-online);
  font-weight: 600;
}
.tag-offline {
  background: var(--tc-offline-soft);
  color: var(--tc-offline);
  font-weight: 600;
}
.tag-service {
  background: var(--tc-brand-soft);
  color: var(--tc-brand);
  font-weight: 600;
}

/* Money: four steps on one line. */
.flow-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--tc-line-strong);
}
.flow-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--tc-brand);
}
.num {
  justify-self: start;
  padding: 0 8px;
  border-radius: var(--tc-radius-sm);
  background: var(--tc-hover);
  color: var(--tc-ink-muted);
  font-family: var(--tc-font-mono);
  font-size: var(--tc-text-xs);
  line-height: 22px;
}
.flow-step h3,
.point h3 {
  font-size: var(--tc-text-md);
  font-weight: 600;
}
.flow-step p,
.point p {
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-sm);
}

/* Safety: four points. */
.point {
  display: grid;
  align-content: start;
  gap: 8px;
}
.point svg {
  width: 24px;
  height: 24px;
  color: var(--tc-ink-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* App: one line and the ways to get it. */
.app {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 880px) {
  .app {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.app .actions {
  margin-top: 0;
}
.qr {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-sm);
}
.qr-box {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1.5px dashed var(--tc-line-strong);
  border-radius: var(--tc-radius-md);
  color: var(--tc-ink-faint);
  font-family: var(--tc-font-mono);
  font-size: var(--tc-text-xs);
}
@media (min-width: 880px) {
  .qr {
    display: flex;
  }
}

/* Footer: three link columns and the legal band. */
.footer {
  padding: 48px 0 96px;
  border-top: 1px solid var(--tc-line);
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-sm);
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  }
}
.footer h3 {
  margin-bottom: 12px;
  color: var(--tc-ink);
  font-size: var(--tc-text-sm);
  font-weight: 600;
}
.footer li + li {
  margin-top: 8px;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--tc-ink);
}
.footer .wordmark {
  color: var(--tc-ink);
}
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--tc-line);
  font-size: var(--tc-text-xs);
}
.footer-contact {
  margin-top: 16px;
}

/* Prototype only: the review bar and the note a placeholder link shows. */
.review {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--tc-line-strong);
  border-radius: 999px;
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow-overlay);
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: 12px;
}
.review > span {
  color: var(--tc-ink-muted);
}
.seg {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 999px;
}
.seg button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--tc-ink-muted);
  font: inherit;
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: var(--tc-brand-soft);
  color: var(--tc-brand);
  font-weight: 600;
}
.toast {
  position: fixed;
  bottom: 64px;
  left: 50%;
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border-radius: var(--tc-radius-sm);
  background: var(--tc-ink);
  color: var(--tc-page);
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: var(--tc-text-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.2s;
}
.toast.is-on {
  opacity: 1;
}

/* Legal and company pages: one column of text under the same bar and footer. */
.doc {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.doc h1 {
  font-size: var(--tc-text-xl);
  font-weight: 600;
  line-height: 1.25;
}
.doc .updated {
  margin-top: 8px;
  color: var(--tc-ink-muted);
  font-size: var(--tc-text-sm);
}
.doc h2 {
  margin-top: 40px;
  font-size: var(--tc-text-lg);
  font-weight: 600;
  line-height: 1.4;
}
.doc h3 {
  margin-top: 24px;
  font-size: var(--tc-text-md);
  font-weight: 600;
}
.doc p,
.doc ul,
.doc ol,
.doc table,
.doc dl {
  margin-top: 12px;
}
.doc ul,
.doc ol {
  padding-left: 20px;
}
.doc ul {
  list-style: disc;
}
.doc li + li {
  margin-top: 6px;
}
.doc a {
  color: var(--tc-brand);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--tc-text-sm);
}
.doc th,
.doc td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--tc-line);
  text-align: left;
  vertical-align: top;
}
.doc th {
  font-weight: 600;
}
.doc dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
}
.doc dt {
  color: var(--tc-ink-muted);
}
.doc dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.table-scroll {
  overflow-x: auto;
}

/* Prototype only: a value still to be confirmed, and the notes for review at the top of a page. */
.tbd {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--tc-warning-soft);
  color: var(--tc-warning);
}
.review-note {
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px dashed var(--tc-line-strong);
  border-radius: var(--tc-radius-md);
  color: var(--tc-ink-muted);
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: var(--tc-text-sm);
}
.review-note strong {
  color: var(--tc-ink);
  font-weight: 600;
}
.review-note ul {
  margin-top: 8px;
}
.footer a[aria-current="page"] {
  color: var(--tc-ink);
  font-weight: 600;
}
