/* SpendEven website styles.
   Copied from the Tvasti Solutions site (vamadrasi-hash/tvastisolutions), in the order its
   SpendEven page loads them: src/index.css, src/spendeven/spendeven.css, src/yarn2fabric/yarn2fabric.css.
   SpendEven-site additions are at the end. */

/* ==========================================================================
   Tvasti Solutions — design tokens
   Palette is derived from the Tvasti logo: #25516D teal-blue, #F0A323 gold.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  /* Colour */
  --ink:        #0E2233;
  --brand:      #25516D;
  --brand-deep: #14324A;
  --brand-tint: #E9F0F5;
  --gold:       #F0A323;
  --gold-deep:  #B9761A;
  --paper:      #F4F6F8;
  --surface:    #FFFFFF;
  --rule:       #DBE3EA;
  --rule-soft:  #EDF1F4;
  --muted:      #5B7183;

  /* Type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Rhythm */
  --shell: 1140px;
  --header-h: 86px;
  --gap: 24px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Depth — used sparingly */
  --lift: 0 1px 2px rgba(14, 34, 51, .05), 0 8px 24px -12px rgba(14, 34, 51, .18);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.16rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(64px, 9vw, 108px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.section--tint { background: var(--surface); border-block: 1px solid var(--rule); }
.section--deep {
  background: var(--brand-deep);
  color: #E7EEF3;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Signature restraint: one oversized mark, very low contrast, bleeding off
   the edge. It is the only ornament on the page. */
.section--deep::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -12%;
  width: min(680px, 62vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url('/mark-light.svg') center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

@media (max-width: 760px) {
  .section--deep::after { right: -30%; opacity: 0.05; }
}

/* The eyebrow is a ledger folio marker — mono, uppercase, gold rule beneath. */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold);
}
.section--deep .eyebrow { color: var(--gold); }

.lede {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 56ch;
  margin-top: 18px;
}
.section--deep .lede { color: #A9C0D0; }

.section-head { max-width: 62ch; margin-bottom: 44px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  /* A button squeezed by its neighbours must shrink the row, not break its
     own label across lines — "+91 98241 10248" is one unit. */
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-deep); }

.btn--line { border-color: var(--rule); background: var(--surface); color: var(--ink); }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }

.btn--gold { background: var(--gold); color: #331F00; }
.btn--gold:hover { background: #FFB640; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 246, 248, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* --------------------------------------------------------------------------
   Logo lockup — the real Tvasti mark plus a typeset wordmark.
   The mark is a vector, so it stays sharp at any size and on any screen.
   -------------------------------------------------------------------------- */

.lockup { display: inline-flex; align-items: center; gap: 14px; }

.lockup__mark {
  height: 46px;
  width: 46px;
  flex: none;
  /* One quarter-turn settle on page load — the mark is rotational, so the
     motion is the mark's own logic rather than decoration. */
  animation: mark-settle 900ms cubic-bezier(.22, 1, .36, 1) both;
}

.lockup__type { display: grid; line-height: 1; }

.lockup__name {
  font-family: var(--display);
  font-size: 1.44rem;
  font-weight: 500;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: var(--brand);
}

.lockup__unit {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.335em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
  padding-left: 2px;
}

/* The tagline sits under a hairline, the way it does in the printed lockup. */
.lockup__tag {
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.185em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 7px;
  padding-top: 6px;
  padding-left: 2px;
  border-top: 1px solid var(--gold);
  white-space: nowrap;
}

.lockup--light .lockup__mark { animation: none; }
.lockup--light .lockup__name { color: #fff; }
.lockup--light .lockup__unit { color: #7E98AC; }
.lockup--light .lockup__tag  { color: var(--gold); border-top-color: rgba(240, 163, 35, .5); }

@keyframes mark-settle {
  from { transform: rotate(-90deg); opacity: 0; }
  to   { transform: rotate(0deg);   opacity: 1; }
}

.header__nav { display: flex; align-items: center; gap: 30px; }
.header__nav a {
  font-size: 0.92rem;
  color: var(--muted);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
  /* A squeezed flex item would otherwise break "What we build" across two or
     three lines and leave the bar ragged. Hold each label on one line; the
     burger takes over below the width where they all fit. */
  white-space: nowrap;
}
.header__nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }

.header__cta { display: flex; align-items: center; gap: 12px; }

/* Shown only inside the open mobile menu — see the 900px block below. */
.header__navcta { display: none; }

.header__burger { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 9px 11px; }

/* The call button is the first thing to go when the bar gets tight: the nav
   plus both buttons no longer fit once the fifth link is in, and the number
   is still one tap away in the contact section and the footer. */
@media (max-width: 1100px) {
  .header__cta .btn--line { display: none; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__burger { display: inline-flex; }
  .lockup__mark { height: 40px; width: 40px; }
  .lockup__name { font-size: 1.24rem; }
  .header__nav--open {
    display: flex;
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 20px;
  }
  .header__nav--open a { width: 100%; border-bottom: 1px solid var(--rule-soft); padding-block: 14px; }
  .header__nav--open .header__navcta {
    display: block;
    margin-top: 14px;
    border-bottom: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    text-align: center;
    font-weight: 500;
  }
  .header__nav--open .header__navcta:hover { background: var(--brand-deep); border-bottom-color: transparent; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-block: clamp(56px, 8vw, 96px) clamp(56px, 8vw, 88px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--brand);
}

.hero__sub {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Our own products, on the cover — each links to its product page */
.hero__products { margin-top: 26px; }
.hero__products-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero__products-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero__product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hero__product:hover { border-color: var(--gold); box-shadow: var(--lift); }
.hero__product img { width: 34px; height: 34px; flex: none; }
.hero__product span { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.hero__product strong { font-family: var(--display); font-weight: 500; font-size: 1.12rem; color: var(--brand); }
.hero__product em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.hero__product svg { flex: none; color: var(--brand); transition: transform .2s ease; }
.hero__product:hover svg { transform: translateX(3px); }
@media (max-width: 520px) {
  .hero__products-list { grid-template-columns: 1fr; }
}


@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Signature element — the Ledger Panel
   A DOS-era account row and its modern replacement, side by side in time.
   ========================================================================== */

.ledger {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--lift);
  overflow: hidden;
}

.ledger__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #FBFCFD, #F3F6F8);
}

.ledger__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger__toggle { display: flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.ledger__toggle button {
  background: var(--surface);
  border: 0;
  padding: 6px 13px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background-color .18s ease, color .18s ease;
}
.ledger__toggle button + button { border-left: 1px solid var(--rule); }
.ledger__toggle button[aria-pressed='true'] { background: var(--brand); color: #fff; }

.ledger__body { position: relative; min-height: 336px; }

.ledger__stage { padding: 0; }

/* --- Legacy view: amber phosphor on black --- */
.dos {
  background: #0A0A08;
  color: #F0A323;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.85;
  padding: 20px 18px;
  min-height: 336px;
}
.dos__bar { color: #0A0A08; background: #F0A323; padding: 1px 8px; display: inline-block; margin-bottom: 12px; letter-spacing: 0.08em; }
.dos__row { white-space: pre; overflow-x: auto; }
.dos__dim { color: #8A6318; }
.dos__caret { animation: blink 1.1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* --- Live view: a clean ledger with tabular figures --- */
.live { padding: 18px 18px 20px; min-height: 336px; }

.live__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.live__title strong { font-weight: 600; font-size: 0.98rem; }
.live__title span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; }

.live__table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.live__table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 0 8px 9px;
  border-bottom: 1px solid var(--rule);
}
.live__table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
}
.live__table tr:last-child td { border-bottom: 0; }
.live__num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.live__cr { color: #17714F; }
.live__dr { color: var(--ink); }

.live__chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
}

.live__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.ledger__note {
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  background: #FCFDFE;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
   Capability row — ruled like an account book
   ========================================================================== */

.rows { border-top: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding-block: 26px;
  border-bottom: 1px solid var(--rule);
}

.row__folio {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  padding-top: 4px;
}

.row__title { font-size: 1.24rem; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.row__body { color: var(--muted); font-size: 0.98rem; }

.row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.row__tags span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row__folio { padding-top: 0; }
}

/* ==========================================================================
   Work / case cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: #BFD0DC; transform: translateY(-2px); box-shadow: var(--lift); }

.card__kind {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.card__name { font-size: 1.12rem; font-weight: 600; }
.card__desc { color: var(--muted); font-size: 0.94rem; flex: 1; }
.card__foot {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  text-transform: uppercase;
}

.section--deep .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.section--deep .card:hover { border-color: rgba(240,163,35,.5); }
.section--deep .card__desc { color: #A9C0D0; }
.section--deep .card__foot { color: #85A0B4; border-top-color: rgba(255,255,255,.12); }
.section--deep .card__kind { color: var(--gold); }

/* ==========================================================================
   Products — one feature panel per product of our own
   ========================================================================== */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift);
  overflow: hidden;
}
.product + .product { margin-top: 28px; }

.product__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  border-top: 3px solid var(--gold);
  transition: background-color .2s ease;
}
.product__main:hover { background: #FBFCFD; }
.product__lock { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.product__lock img { width: 52px; height: 52px; flex: none; }
.product__name { font-family: var(--display); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.01em; color: var(--brand); line-height: 1; }
.product__by {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.product__tagline { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.product__desc { color: var(--muted); font-size: 0.98rem; max-width: 58ch; }
.product__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 500; color: var(--brand); }
.product__main:hover .product__more svg { transform: translateX(3px); }
.product__more svg { transition: transform .2s ease; }

.product__side {
  background: var(--brand-deep);
  color: #E7EEF3;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.product__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.product__points li { display: flex; gap: 12px; align-items: baseline; font-size: 0.96rem; }
.product__points li::before { content: ''; width: 12px; height: 2px; flex: none; background: var(--gold); transform: translateY(-4px); }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product__side .btn--solid { background: var(--gold); color: #331F00; }
.product__side .btn--solid:hover { background: #FFB640; }
.product__side .btn--line { background: transparent; color: #E7EEF3; border-color: rgba(255,255,255,.28); }
.product__side .btn--line:hover { border-color: var(--gold); color: #fff; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
}

/* "Coming soon" — a quiet gold-ruled tag beside a product name */
.soon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  padding: 3px 8px 2px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: #FFF8EC;
  transform: translateY(-3px);
}
.hero__product .soon { display: inline-block; flex: none; margin-left: 7px; font-size: 0.5rem; padding: 2px 6px 1px; transform: translateY(-2px); }

.card__name a:hover { color: var(--gold); }

/* ==========================================================================
   Process — a real sequence, so it is numbered
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; }

.step {
  padding: 22px 20px 24px;
  border-top: 2px solid var(--rule);
  position: relative;
}
.step:first-child { border-top-color: var(--gold); }
.step__n {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 8px;
}
.step__t { font-weight: 600; font-size: 1.02rem; margin-bottom: 6px; }
.step__d { color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   Stack strip
   ========================================================================== */

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack span {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: #C7D8E4;
}

/* ==========================================================================
   Founder story + facts — narrative on the left, the figures ruled alongside
   ========================================================================== */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.founder__prose p { color: var(--muted); font-size: 1rem; max-width: 62ch; }
.founder__prose p + p { margin-top: 18px; }
.founder__prose p:first-child {
  font-size: 1.14rem;
  color: var(--ink);
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}
.facts__fig {
  grid-row: 1 / 3;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.facts dt { font-weight: 600; font-size: 0.98rem; }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; row-gap: 4px; }
  .facts__fig { grid-row: auto; margin-bottom: 4px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.contact__list { margin-top: 28px; border-top: 1px solid var(--rule); }
.contact__list a, .contact__list div {
  display: flex;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.contact__list dt, .contact__k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  width: 92px;
  flex: none;
}
.contact__v { font-size: 0.98rem; }
.contact__list a:hover .contact__v { color: var(--brand); }

.form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: grid;
  gap: 16px;
  box-shadow: var(--lift);
}
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.96rem;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #FCFDFE;
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }

.form__note { font-size: 0.82rem; color: var(--muted); }
.form__status { font-size: 0.9rem; padding: 10px 12px; border-radius: var(--radius); }
.form__status--ok { background: #E8F5EE; color: #17714F; }
.form__status--err { background: #FDF0E4; color: var(--gold-deep); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--ink); color: #9FB4C4; padding-block: 48px 32px; font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7E98AC;
  margin: 0 0 14px;
  font-weight: 400;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

/* auto-fit keeps a 150px floor per column; below roughly 900px those floors
   plus the brand column add up to more than the viewport and scroll the whole
   page sideways. Drop to two columns, then to one on a phone. */
@media (max-width: 900px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #7E98AC;
}

/* ==========================================================================
   Motion preference
   ========================================================================== */

@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .lockup { gap: 10px; }
  .lockup__mark { height: 36px; width: 36px; }
  .lockup__name { font-size: 1.12rem; letter-spacing: 0.09em; }
  .lockup__unit { font-size: 0.55rem; letter-spacing: 0.24em; margin-top: 5px; }
  .lockup__tag  { font-size: 0.52rem; letter-spacing: 0.14em; margin-top: 5px; padding-top: 4px; }

  /* The bar cannot hold the full lockup, a button and the menu toggle at this
     width — the button moves into the menu so the tagline stays visible. */
  .header__cta .btn--solid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* An odd last product card takes the full row, so the grid never leaves a gap. */
.hero__products-list > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ==========================================================================
   SpendEven product page
   Uses the Yarn2Fabric product-page layout (yarn2fabric.css) and changes only
   what makes SpendEven its own: a soft mint ground, the Bricolage wordmark and
   the SpendEven palette — green, deep green and the Tvasti gold coin.
   Brand kit: Daily-Expense-Buddy/brand/spendeven/README.md
   ========================================================================== */

.y2f.spe {
  --paper: #F3F8F5;
  --indigo: #0E9F78;         /* SpendEven green — the flow line */
  --amber: #F0A323;          /* the gold coin */
  --ink: #12261F;
  --brand: #0E7A5D;
  --brand-deep: #0F3B32;
  --brand-tint: #E2F3EC;
  --gold: #F0A323;
  --gold-deep: #B9761A;
  --rule: #DCE7E1;
  --rule-soft: #ECF3EF;
}

.spe .header { background: rgba(243, 248, 245, .9); }
.spe .hero h1 .accent { color: var(--indigo); }
.spe .plock__name {
  font-family: 'Bricolage Grotesque', var(--body);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}
.spe .se-even { color: var(--indigo); }
.spe .plock__by { border-top-color: var(--gold); }
.spe .flow li::before { border-color: var(--amber); }

.spe .flow.se-flow { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.spe .flow.se-flow li { padding-top: 18px; }
@media (max-width: 900px) { .spe .flow.se-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Phone frames -------------------------------------------------------- */
.se-phone {
  margin: 0;
  border-radius: 34px;
  padding: 9px;
  background: #0B2A24;
  box-shadow: 0 24px 50px -24px rgba(15, 59, 50, .45), 0 2px 6px rgba(15, 59, 50, .12);
}
.se-phone img { display: block; width: 100%; height: auto; border-radius: 26px; }

.se-hero__phones { position: relative; align-self: center; min-height: 560px; }
.se-hero__phones .se-phone { position: absolute; width: 250px; }
.se-phone--front { right: 4%; top: 0; z-index: 2; }
.se-phone--back { right: 42%; top: 60px; transform: rotate(-4deg); opacity: .96; }
@media (max-width: 900px) {
  .se-hero__phones { min-height: 0; display: flex; justify-content: center; }
  .se-hero__phones .se-phone { position: static; width: 220px; transform: none; }
  .se-phone--back { display: none; }
}

/* --- Screen tour --------------------------------------------------------- */
.se-tour {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
}
.se-tour__item .se-phone { width: min(230px, 100%); margin: 0 auto 18px; }
.se-tour__item h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 1.25rem; text-align: center; color: var(--ink); }
.se-tour__item p { margin: 0 auto; max-width: 34ch; text-align: center; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .se-tour { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; } }
@media (max-width: 520px) { .se-tour { grid-template-columns: 1fr; } }

/* --- Download band ------------------------------------------------------- */
.se-downloads {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.se-downloads strong { display: block; color: var(--ink); }
.se-downloads span { color: var(--muted); font-size: .92rem; }
.se-downloads .hero__actions { margin: 0; }

.se-faq .faq { max-width: 860px; }

/* The Tvasti Solutions lockup and footer keep the Tvasti colours on this page. */
.spe .lockup,
.spe .footer {
  --brand: #25516D;
  --brand-deep: #14324A;
  --brand-tint: #E9F0F5;
  --gold: #F0A323;
  --gold-deep: #B9761A;
  --rule: #DBE3EA;
  --rule-soft: #EDF1F4;
}

/* ==========================================================================
   Yarn2Fabric product page
   Builds on the site stylesheet (index.css) and changes only what makes the
   product its own: an ivory ground, Cormorant headings, and an indigo
   "thread" accent. Gold stays a thin accent, as in the product brief.
   ========================================================================== */

.y2f {
  --paper: #F6F1E7;          /* ivory ground */
  --indigo: #3B4F9A;         /* the thread */
  --ink: #1B2130;
  --serif: 'Cormorant Garamond', 'Fraunces', Georgia, serif;

  /* The ERP's own colours, used only inside the demo screens */
  --app-navy: #1F3447;
  --app-navy-2: #31495D;
  --app-side-text: #D6E1EB;
  --app-brand: #2F4A63;
  --app-saffron: #F2A93B;
  --app-bg: #F4F6F9;
  --app-ink: #1B2733;
}

.y2f .header { background: rgba(246, 241, 231, .9); }

.y2f h1, .y2f h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.y2f h1 { font-size: clamp(2.6rem, 5.8vw, 4.3rem); margin-top: 22px; }
.y2f h2 { font-size: clamp(2rem, 3.9vw, 2.85rem); }
.y2f .hero h1 .accent { color: var(--indigo); }

.link { color: var(--brand); border-bottom: 1px solid var(--gold); }
.link:hover { color: var(--indigo); }

.btn--ghost { border-color: rgba(255,255,255,.28); color: #E7EEF3; background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: #fff; }

/* --- Product lockup ------------------------------------------------------ */

.plock { display: flex; align-items: center; gap: 14px; }
.plock img { width: 56px; height: 56px; flex: none; }
.plock__name {
  display: block;
  font-variant-numeric: lining-nums;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  letter-spacing: 0.01em;
}
.plock__by {
  display: block;
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid var(--gold);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.y2f-hero__one { color: var(--ink); font-size: 1.16rem; }
.y2f-hero .hero__sub + .hero__sub { margin-top: 14px; font-size: 1rem; }

/* --- Flow strip ---------------------------------------------------------- */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--indigo);
}
.flow li {
  position: relative;
  padding: 18px 16px 20px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 4px;
}
/* The thread: a dot on the rule for every step */
.flow li::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--indigo);
}
.flow li:nth-child(n + 6) { padding-top: 22px; }
.flow__n { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--gold-deep); margin-top: 8px; }
.flow__t { font-weight: 600; font-size: 1rem; }
.flow__d { color: var(--muted); font-size: 0.86rem; }

@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Today / with Yarn2Fabric ------------------------------------------- */

.compare { margin-top: 56px; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.compare__head, .compare__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.compare__head span {
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: #FBF8F2;
  border-bottom: 1px solid var(--rule);
}
.compare__head span + span { color: var(--indigo); border-left: 1px solid var(--rule); }
.compare__row + .compare__row { border-top: 1px solid var(--rule-soft); }
.compare__row p { padding: 14px 20px; font-size: 0.95rem; }
.compare__before { color: var(--muted); }
.compare__after { border-left: 1px solid var(--rule-soft); color: var(--ink); }
.compare__after::before { content: '→ '; color: var(--gold-deep); }

@media (max-width: 640px) {
  .compare__head { display: none; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__before { padding-bottom: 2px !important; font-size: 0.88rem !important; }
  .compare__after { border-left: 0; padding-top: 2px !important; }
}

/* --- Tick list (modules, audience) -------------------------------------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink); font-size: 0.96rem; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 11px;
  height: 2px;
  background: var(--indigo);
}
.y2f-mod__lede { margin-top: 8px; font-size: 0.94rem; }

/* --- Demo tour ----------------------------------------------------------- */

.tour { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour__tabs { display: grid; gap: 2px; border-left: 1px solid rgba(255,255,255,.14); }
.tour__tabs button {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  margin-left: -1px;
  padding: 11px 14px;
  color: #A9C0D0;
  font-size: 0.95rem;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.tour__tabs button:hover { color: #fff; }
.tour__tabs button[aria-selected='true'] { color: #fff; border-left-color: var(--gold); background: rgba(255,255,255,.05); }
.tour__n { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--gold); }
.tour__stage { min-width: 0; }
.tour__caption { margin-top: 16px; color: #A9C0D0; font-size: 0.94rem; max-width: 70ch; }

.demo__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; gap: 18px; }
  .tour__tabs {
    display: flex;
    overflow-x: auto;
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    scrollbar-width: none;
  }
  .tour__tabs button { flex: none; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 10px 12px; white-space: nowrap; }
  .tour__tabs button[aria-selected='true'] { border-bottom-color: var(--gold); }
}

/* --- The ERP window ------------------------------------------------------ */

.app {
  background: var(--app-bg);
  color: var(--app-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 24px 48px -24px rgba(0,0,0,.45);
  border: 1px solid rgba(14, 34, 51, .12);
  font-size: 0.84rem;
  line-height: 1.45;
}
.app__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  background: #E7EBF0;
  border-bottom: 1px solid #D5DCE3;
}
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: #C3CCD5; }
.app__url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: #6A7C8C;
}
.app__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 360px; }
.app__side {
  background: var(--app-navy);
  color: var(--app-side-text);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 8px;
}
.app__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
}
.app__nav { padding: 5px 8px; border-radius: 4px; font-size: 0.74rem; opacity: .82; }
.app__nav--on { background: var(--app-navy-2); opacity: 1; color: #fff; box-shadow: inset 2px 0 0 var(--app-saffron); }
.app__fy { margin-top: auto; padding: 10px 8px 0; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; opacity: .6; }
.app__main { padding: 16px 18px 18px; min-width: 0; }

.app--compact .app__body { grid-template-columns: 124px minmax(0, 1fr); min-height: 0; }
.app--compact .app__nav:nth-child(n + 8) { display: none; }

@media (max-width: 640px) {
  .app__body, .app--compact .app__body { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__main { padding: 14px 12px; }
}

/* Screen parts */
.scr__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scr__title strong { display: block; font-size: 1rem; font-weight: 600; }
.scr__title span { font-size: 0.72rem; color: #6A7C8C; }
.scr__btn {
  flex: none;
  background: var(--app-brand);
  color: #fff !important;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.72rem !important;
  font-weight: 500;
}

.scr__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scr__tile { background: #fff; border: 1px solid #E1E6EC; border-radius: 6px; padding: 10px; display: grid; gap: 2px; }
.scr__tile:first-child { box-shadow: inset 0 2px 0 var(--app-saffron); }
.scr__k { font-size: 0.66rem; color: #6A7C8C; text-transform: uppercase; letter-spacing: 0.06em; }
.scr__v { font-size: 1.12rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scr__u { font-size: 0.66rem; color: #6A7C8C; }

.scr__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.scr__panel { background: #fff; border: 1px solid #E1E6EC; border-radius: 6px; padding: 10px 10px 4px; }
.scr__ph { display: block; font-size: 0.7rem; font-weight: 600; margin-bottom: 4px; }
.scr__li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #EEF1F4; font-size: 0.74rem; }
.scr__muted { color: #6A7C8C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app--compact .scr__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .scr__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scr__split { grid-template-columns: 1fr; }
}

.pill { display: inline-block; font-size: 0.64rem; padding: 2px 8px; border-radius: 999px; background: #EEF1F4; color: #55677A; white-space: nowrap; }
.pill--ok { background: #E4F3EA; color: #1C7A4E; }
.pill--warn { background: #FDF1DE; color: #9A5B0B; }
.warn { color: #9A5B0B; font-weight: 600; }
.bad { color: #B23A2E; font-weight: 600; }

.scr__scroll { overflow-x: auto; background: #fff; border: 1px solid #E1E6EC; border-radius: 6px; }
.scr__table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.scr__table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6A7C8C;
  background: #F7F9FB;
  padding: 8px 10px;
  border-bottom: 1px solid #E1E6EC;
  white-space: nowrap;
}
.scr__table td { padding: 8px 10px; border-bottom: 1px solid #EEF1F4; white-space: nowrap; }
.scr__table tr:last-child td { border-bottom: 0; }
.scr__table .n { text-align: right; font-variant-numeric: tabular-nums; }

/* Invoice */
.inv { background: #fff; border: 1px solid #E1E6EC; border-radius: 6px; padding: 14px; }
.inv .scr__scroll { border-radius: 0; border-left: 0; border-right: 0; }
.inv__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--app-brand); }
.inv__head strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.inv__head span { font-size: 0.68rem; color: #6A7C8C; }
.inv__tag { align-self: flex-start; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--app-brand); border: 1px solid var(--app-brand); padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.inv__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px 0 12px; font-size: 0.74rem; }
.inv__meta em { display: block; font-style: normal; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6A7C8C; }
.inv__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 12px; }
.inv__qr { display: grid; gap: 4px; justify-items: center; font-size: 0.6rem; color: #6A7C8C; }
.inv__qr svg { fill: var(--app-ink); }
.inv__sum { margin: 0; min-width: 210px; font-size: 0.76rem; }
.inv__sum div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.inv__sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.inv__total { border-top: 1px solid #E1E6EC; margin-top: 4px; padding-top: 6px !important; font-weight: 600; font-size: 0.86rem; }

@media (max-width: 640px) {
  .inv__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv__sum { min-width: 0; flex: 1; }
}

/* Shop-floor phone */
.kiosk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
.kiosk__note { color: #A9C0D0; max-width: 40ch; }
.phone {
  width: 270px;
  background: var(--app-bg);
  color: var(--app-ink);
  border: 8px solid #0B1620;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.6);
}
.phone__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--app-navy); color: #fff; padding: 16px 12px 12px; }
.phone__bar strong { font-size: 0.95rem; }
.phone__lang { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; overflow: hidden; }
.phone__lang button { background: none; border: 0; color: var(--app-side-text); font-size: 0.72rem; padding: 4px 8px; }
.phone__lang button[aria-pressed='true'] { background: var(--app-saffron); color: #2A1A00; }
.phone__body { padding: 12px; display: grid; gap: 8px; font-size: 0.82rem; }
.phone__row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; background: #fff; border: 1px solid #E1E6EC; border-radius: 6px; }
.phone__row span, .phone__field span { color: #6A7C8C; }
.phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone__field { display: grid; gap: 2px; padding: 8px 10px; background: #fff; border: 1.5px solid var(--app-brand); border-radius: 6px; }
.phone__field b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.phone__check { display: flex; align-items: center; gap: 8px; color: #55677A; }
.phone__save { display: block; text-align: center; background: var(--app-saffron); color: #2A1A00; font-weight: 600; border-radius: 6px; padding: 11px; margin-top: 2px; }

@media (max-width: 640px) {
  .kiosk { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .kiosk__note { text-align: center; }
}

/* --- Founder / audience -------------------------------------------------- */

.y2f-founder { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--rule); }
.y2f-founder__title { margin-bottom: 22px; }
.y2f-sub { font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

/* --- Getting started + FAQ ---------------------------------------------- */

.y2f-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.y2f-faq .facts__fig { font-size: 1.3rem; color: var(--gold-deep); font-family: var(--mono); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  position: relative;
  font-weight: 600;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--gold-deep);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 0.95rem; }

@media (max-width: 860px) {
  .y2f-faq { grid-template-columns: 1fr; }
}

/* --- Download band ------------------------------------------------------- */

.y2f-band { padding-block: clamp(56px, 7vw, 84px); }
.y2f-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.y2f-band__cta { display: grid; gap: 10px; justify-items: start; }
.y2f-band__cta span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: #85A0B4; }
@media (max-width: 760px) {
  .y2f-band__grid { grid-template-columns: 1fr; }
}

/* The hero window is narrower: keep the sidebar wordmark inside its column. */
.app--compact .app__brand { font-size: 0.9rem; gap: 6px; padding-inline: 2px; }
.app--compact .app__brand img { width: 18px; height: 18px; }

/* ==========================================================================
   October 2026 additions: new demo screens and page sections
   ========================================================================== */

.ok { color: #1C7A4E; font-weight: 600; }

/* AI scan screen: the handwritten page beside the review grid */
.scan { display: grid; grid-template-columns: minmax(0, 0.95fr) auto minmax(0, 1.25fr); gap: 10px; align-items: center; }
.scan__paper {
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(59, 79, 154, .16) 25px 26px),
    #FBF6E8;
  border: 1px solid #E4D9BE;
  border-radius: 4px;
  padding: 8px 8px 10px;
  transform: rotate(-1.2deg);
  box-shadow: 0 10px 18px -12px rgba(0,0,0,.35);
  overflow: hidden;
}
.scan__paper table { width: 100%; border-collapse: collapse; font-family: 'Noto Sans Gujarati', 'Segoe Print', cursive; color: #22356B; }
.scan__paper th { font-size: 0.66rem; font-weight: 600; text-align: left; padding: 3px 4px; border-bottom: 1.5px solid #B23A2E; }
.scan__paper td { font-size: 0.72rem; padding: 0 4px; height: 26px; white-space: nowrap; font-style: italic; }
.scan__arrow { font-size: 1.4rem; color: var(--app-saffron); font-weight: 700; }
@media (max-width: 760px) {
  .scan { grid-template-columns: 1fr; }
  .scan__arrow { transform: rotate(90deg); justify-self: center; }
}

/* Live stock: six kinds, quality × factory matrix */
.scr__tiles--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scr__tile--kind { box-shadow: inset 3px 0 0 var(--kind) !important; }
.kind { display: inline-block; font-size: 0.58rem; color: #fff; background: var(--kind); border-radius: 3px; padding: 0 4px; margin-right: 2px; letter-spacing: .04em; }
.scr__panel--matrix { margin-top: 8px; padding-bottom: 10px; }
.mx { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 0.74rem; }
.mx th { font-weight: 500; text-align: left; color: #55677A; font-size: 0.68rem; white-space: nowrap; }
.mx thead th { text-align: center; }
.mx td { text-align: center; border-radius: 4px; padding: 5px 0; font-variant-numeric: tabular-nums; background: #F4F6F9; }
.mx td.mx__t { background: none; font-weight: 600; }
@media (max-width: 760px) { .scr__tiles--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Taka Journey timeline */
.jr { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.jr li {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  grid-template-areas: 'k t date' 'k d date';
  column-gap: 12px;
  padding: 7px 0 7px 18px;
  border-left: 2px solid #D5DCE3;
  background: none;
}
.jr li::before { content: ''; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--app-brand); }
.jr li:last-child::before { background: var(--app-saffron); border-color: var(--app-saffron); }
.jr__k { grid-area: k; font-size: 0.64rem; letter-spacing: .08em; text-transform: uppercase; color: #6A7C8C; padding-top: 2px; }
.jr__t { grid-area: t; font-weight: 600; font-size: 0.78rem; }
.jr__d { grid-area: d; font-size: 0.7rem; color: #6A7C8C; }
.jr__date { grid-area: date; font-size: 0.68rem; color: #6A7C8C; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .jr li { grid-template-columns: 1fr auto; grid-template-areas: 'k date' 't t' 'd d'; } }

/* Payments Due */
.fund { display: flex; justify-content: space-between; gap: 6px; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.fund em { font-style: normal; color: #6A7C8C; font-size: 0.66rem; }

/* --- Page section: AI scanning ------------------------------------------ */

.y2f-scan__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.reads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.reads li { border-top: 1px solid var(--rule); padding-top: 12px; }
.reads b { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.reads p { color: var(--muted); font-size: 0.9rem; }
.gu-tag {
  display: inline-block;
  margin-left: 6px;
  vertical-align: 2px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--indigo);
  border: 1px solid rgba(59, 79, 154, .35);
  border-radius: 999px;
  padding: 0 7px;
}
.scan-steps { counter-reset: s; display: grid; gap: 0; border-left: 2px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 8px 0; }
.scan-steps > div { padding: 14px 22px; }
.scan-steps > div + div { border-top: 1px solid var(--rule-soft); }
.scan-steps i { font-style: normal; font-family: var(--mono); font-size: 0.68rem; color: var(--gold-deep); letter-spacing: .12em; }
.scan-steps b { display: block; font-size: 1.02rem; margin: 2px 0 3px; }
.scan-steps p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) { .y2f-scan__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .reads { grid-template-columns: 1fr; } }

/* --- Page section: What's new -------------------------------------------- */

.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.news > div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 16px 18px; }
.news b { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.news b::before { content: 'New'; font-family: var(--mono); font-size: 0.6rem; letter-spacing: .14em; text-transform: uppercase; color: #331F00; background: var(--gold); border-radius: 3px; padding: 1px 5px; margin-right: 8px; vertical-align: 2px; }
.news p { color: #A9C0D0; font-size: 0.9rem; }

/* --- Page section: Editions ---------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.plan--featured { border-color: var(--indigo); box-shadow: inset 0 3px 0 var(--indigo), var(--lift); }
.plan__tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.plan h3 { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; line-height: 1.05; color: var(--brand-deep); margin: 0; }
.plan__for { color: var(--muted); font-size: 0.92rem; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.plan .ticks li { font-size: 0.93rem; }
.plans__note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* --- Page section: TradeCircle ------------------------------------------ */

.tc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.tc__badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.tc__name { font-family: 'Sora', var(--body); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--ink); }
.tc__circle { font-weight: 400; color: #17594A; }
.tc__soon { font-family: var(--mono); font-size: 0.62rem; letter-spacing: .16em; text-transform: uppercase; background: var(--gold); color: #331F00; border-radius: 3px; padding: 2px 7px; }
.tc__kind { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.tc__notes { margin-top: 22px; }
.tc__roles { display: grid; gap: 12px; }
.tc__role { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px 20px; }
.tc__role h3 { font-size: 1.02rem; margin: 0 0 10px; }
.tc__role:last-child { border-style: dashed; background: transparent; }
@media (max-width: 900px) { .tc { grid-template-columns: 1fr; } }

/* Download band with two documents */
.y2f-band__cta--two { grid-template-columns: auto auto; column-gap: 14px; }
.y2f-band__cta--two span { grid-row: 2; }
@media (max-width: 560px) { .y2f-band__cta--two { grid-template-columns: 1fr; } .y2f-band__cta--two span { grid-row: auto; } }

/* ==========================================================================
   SpendEven website additions (spendeven.com only)
   ========================================================================== */

/* The SpendEven lockup takes the place of the Tvasti lockup in the header and footer. */
.se-logo { display: inline-flex; align-items: center; }
.se-logo img { height: 58px; width: auto; display: block; }
@media (max-width: 760px) { .se-logo img { height: 46px; } }
.footer .se-logo img { height: 60px; }

/* The watermark in the dark band uses the SpendEven mark. */
.spe .section--deep::after { background-image: url('/spendeven-mark-light.svg'); }

.form__status { margin: 10px 0 0; font-size: .92rem; }
.form__status--err { color: #B42318; }

/* Privacy and Terms pages */
.legal { padding: 56px 0 80px; }
.legal__body { max-width: 760px; }
.legal h1 { margin: 12px 0 6px; }
.legal__updated { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.legal p, .legal ul { margin: 10px 0; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
