/* Storefront stylesheet.
 *
 * Every colour and face comes from the custom properties the theme emits, so
 * one stylesheet serves jewellery, fashion and electronics. Nothing here names
 * a literal colour except pure black/white overlays.
 */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}
.wrap.narrow { max-width: 44rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand { display: flex; align-items: center; gap: 0.8rem; margin-right: auto; }

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.brand-rule { width: 2rem; height: 1px; background: var(--accent); opacity: 0.7; }

.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.9rem; }
.nav a { color: var(--ink-muted); padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.bag { font-size: 0.9rem; color: var(--ink-muted); }
.bag:hover { color: var(--ink); }
.bag-count {
  display: inline-block;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 46rem) {
  .nav { display: none; }
}

/* ---------- hero ---------- */

.hero { padding: calc(5rem * var(--space)) 0 calc(3rem * var(--space)); }
.hero--compact { padding: calc(3rem * var(--space)) 0 calc(1.5rem * var(--space)); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero-body {
  max-width: 42ch;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  margin: 0 0 1.8rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- sections ---------- */

.section { padding: calc(3rem * var(--space)) 0; }
.section--tall { padding: calc(6rem * var(--space)) 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0 0 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.empty { color: var(--ink-muted); }

.notice {
  border-left: 2px solid var(--accent);
  background: var(--surface-alt);
  padding: 0.8rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

/* ---------- collections ---------- */

.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.collection {
  background: var(--surface);
  padding: 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.15s ease;
}
.collection:hover { background: var(--surface-alt); }
.collection-name { font-family: var(--font-display); font-size: 1.25rem; }
.collection-count { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-muted); text-transform: uppercase; }
.collections--large .collection { padding: 2.2rem 1.5rem; }

/* ---------- product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: calc(2rem * var(--space)) 1.4rem;
}

.card-link { display: block; }

.card-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
}
.card-art .artwork { width: 100%; height: 100%; transition: transform 0.5s ease; }
.card:hover .card-art .artwork { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
}

.card-body { padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.25rem; }
.card-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.card-name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin: 0; line-height: 1.25; }
.card-price { margin: 0.2rem 0 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
.card-price s { color: var(--ink-muted); font-size: 0.85em; margin-left: 0.4rem; }
.card-price--request { color: var(--ink-muted); font-size: 0.9rem; font-style: italic; }
.card-note { margin: 0; font-size: 0.72rem; color: var(--ink-muted); }

/* ---------- product detail ---------- */

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-top: calc(2.5rem * var(--space));
}
@media (max-width: 54rem) { .pdp-grid { grid-template-columns: 1fr; } }

.pdp-art {
  align-self: start;
  position: sticky;
  top: 6rem;
}
@media (max-width: 54rem) { .pdp-art { position: static; } }

.pdp-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
  text-wrap: balance;
}

.pdp-sku { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); margin: 0 0 1.4rem; letter-spacing: 0.05em; }

.pdp-price { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0; font-variant-numeric: tabular-nums; }
.pdp-price--request { font-size: 1.05rem; color: var(--ink-muted); font-style: italic; }
.pdp-price-note { font-size: 0.78rem; color: var(--ink-muted); margin: 0.25rem 0 1.2rem; }

.pdp-stock { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--success); margin: 0 0 1.6rem; }
.pdp-stock.is-out { color: var(--ink-muted); }

.pdp-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.pdp-feedback { font-size: 0.82rem; color: var(--success); }
.pdp-feedback.is-error { color: var(--danger); }

.pdp-copy { color: var(--ink-muted); margin-bottom: 2.5rem; max-width: 46ch; }

/* ---------- price breakup ---------- */

.breakup {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem 1.4rem 1.1rem;
  margin-bottom: 2.5rem;
}

.breakup-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.breakup-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.breakup-table th {
  text-align: left;
  font-weight: 400;
  padding: 0.5rem 0;
  color: var(--ink);
}
.breakup-table td {
  text-align: right;
  padding: 0.5rem 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.breakup-detail { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); margin-top: 0.1rem; }
.breakup-subtotal th, .breakup-subtotal td { border-top: 1px solid var(--line); padding-top: 0.7rem; }
.breakup-tax th, .breakup-tax td { color: var(--ink-muted); font-size: 0.85rem; padding: 0.3rem 0; }
.breakup-total th, .breakup-total td { border-top: 1px solid var(--line); padding-top: 0.7rem; font-size: 1.05rem; }
.breakup-rate { margin: 1rem 0 0; font-size: 0.72rem; color: var(--ink-muted); font-family: var(--font-mono); }

/* ---------- specification ---------- */

.spec { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.spec-title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; }

.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem 1.4rem; margin: 0 0 1.5rem; }
.spec-list div { display: flex; flex-direction: column; gap: 0.15rem; }
.spec-list dt { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.spec-list dd { margin: 0; font-size: 0.95rem; }

.spec-stones { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 1.2rem; }
.spec-stones th { text-align: left; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line); padding: 0.4rem 0.6rem 0.4rem 0; }
.spec-stones td { padding: 0.45rem 0.6rem 0.45rem 0; border-bottom: 1px solid var(--line); }
.spec-note { font-size: 0.78rem; color: var(--ink-muted); margin: 0; }

/* ---------- cart ---------- */

.cart-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cart-table th { text-align: left; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line); padding: 0.6rem 0.8rem 0.6rem 0; }
.cart-table td { padding: 0.9rem 0.8rem 0.9rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.cart-piece a { display: flex; align-items: center; gap: 0.9rem; }
.cart-thumb { width: 3.2rem; height: 3.2rem; display: block; flex: none; border: 1px solid var(--line); overflow: hidden; color: var(--accent); }
.cart-expired { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent); margin-top: 0.25rem; }
.cart-table tfoot th { border-bottom: 0; text-align: right; padding-top: 1rem; }
.cart-table tfoot td { border-bottom: 0; padding-top: 1rem; }
.cart-total th, .cart-total td { font-size: 1.1rem; color: var(--ink); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: calc(4rem * var(--space)); padding: calc(3rem * var(--space)) 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 46rem) { .footer-inner { grid-template-columns: 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 0.4rem; }
.footer-note { color: var(--ink-muted); margin: 0; max-width: 40ch; font-size: 0.9rem; }
.footer-meta p { margin: 0 0 0.3rem; color: var(--ink-muted); font-size: 0.88rem; }
.footer-legal { grid-column: 1 / -1; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- photography ---------- */

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-art .photo { transform: scale(1.04); }

/* The artwork placeholder and a real photograph occupy the same box, so a
 * catalogue that is half photographed does not render as a ragged grid. */
.card-art .photo, .card-art .artwork { display: block; }

.pdp-art-main {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  color: var(--accent);
}

.pdp-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.pdp-thumb {
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.pdp-thumb:hover { opacity: 0.9; }
.pdp-thumb.is-active { opacity: 1; border-color: var(--accent); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-thumb .photo, .cart-thumb .artwork { width: 100%; height: 100%; }

.notice--bad { border-left-color: var(--danger); }
.changes { margin: 0 0 1.5rem; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-muted); }
.changes li { margin-bottom: 0.25rem; }
.changes strong { color: var(--ink); font-weight: 500; }
.change--up { color: var(--danger); }
.change--down { color: var(--success); }

/* ---------- checkout ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 54rem) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.checkout-form legend {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); padding: 0; margin-bottom: 0.9rem;
}
.checkout-form label { display: flex; flex-direction: column; gap: 0.3rem; }
.checkout-form label > span { font-size: 0.78rem; color: var(--ink-muted); }
.checkout-form label > span em { font-style: normal; }
.checkout-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.checkout-form input {
  font: inherit; padding: 0.65rem 0.75rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.checkout-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.checkout-form .notes { margin-bottom: 1.5rem; }

.checkout-error {
  border-left: 2px solid var(--danger); background: var(--surface-alt);
  padding: 0.7rem 0.9rem; margin: 0 0 1.2rem; font-size: 0.9rem; color: var(--danger);
}
.price-moved { margin-bottom: 1.4rem; }
.price-moved .confirm { flex-direction: row; align-items: center; gap: 0.55rem; font-size: 0.88rem; }
.checkout-secure { font-size: 0.75rem; color: var(--ink-muted); margin: 0.9rem 0 0; }

.checkout-summary {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.3rem;
  position: sticky; top: 6rem;
}
@media (max-width: 54rem) { .checkout-summary { position: static; } }
.checkout-summary h2 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
}
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.summary-table th { text-align: left; font-weight: 400; padding: 0.45rem 0; }
.summary-table td { text-align: right; font-variant-numeric: tabular-nums; padding: 0.45rem 0; white-space: nowrap; }
.summary-total th, .summary-total td { border-top: 1px solid var(--line); padding-top: 0.8rem; font-size: 1.05rem; }
.summary-note { font-size: 0.74rem; color: var(--ink-muted); margin: 1rem 0 0; }
.qty { color: var(--ink-muted); font-size: 0.85em; }
.order-summary { margin: 2rem 0; }

.cart-actions { margin-top: 1.8rem; }

/* ---------- tax invoice ---------- */

.invoice { padding: 2rem 0 4rem; }
.invoice-actions {
  max-width: 52rem; margin: 0 auto 1.2rem;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.2rem;
}
.invoice-back { font-size: 0.88rem; color: var(--ink-muted); }

/* The sheet is deliberately plain and light whatever the storefront theme is:
 * an invoice is printed, and a dark theme wastes a cartridge and reads badly. */
.invoice-sheet {
  max-width: 52rem;
  margin: 0 auto;
  background: #ffffff;
  color: #14181d;
  border: 1px solid #d8dde3;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
}
.invoice-sheet .mono { font-family: var(--font-mono); font-size: 0.92em; }
.invoice-sheet .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.invoice-head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border-bottom: 2px solid #14181d; padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
.invoice-kind { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 0.4rem; color: #5a6069; }
.invoice-supplier { font-size: 1.35rem; margin: 0 0 0.35rem; font-family: var(--font-body); font-weight: 600; }
.invoice-addr { margin: 0 0 0.2rem; color: #4a525c; max-width: 34ch; }
.invoice-gstin { margin: 0.35rem 0 0.2rem; }
.invoice-meta { margin: 0; display: grid; gap: 0.35rem; }
.invoice-meta div { display: grid; grid-template-columns: 8rem auto; gap: 0.6rem; }
.invoice-meta dt { color: #5a6069; font-size: 0.8rem; }
.invoice-meta dd { margin: 0; font-weight: 500; }

.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.4rem; }
@media (max-width: 34rem) { .invoice-parties { grid-template-columns: 1fr; } }
.invoice-parties h2 { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #5a6069; margin: 0 0 0.5rem; }
.invoice-parties p { margin: 0 0 0.2rem; color: #4a525c; }
.party-name { color: #14181d !important; font-weight: 600; }

.invoice-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.invoice-table th { text-align: left; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #5a6069; border-bottom: 1px solid #14181d; padding: 0.5rem 0.5rem 0.5rem 0; }
.invoice-table td { padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid #e4e8ec; vertical-align: top; }

.invoice-totals { display: flex; justify-content: flex-end; margin-top: 1.2rem; }
.invoice-totals dl { margin: 0; min-width: 16rem; }
.invoice-totals div { display: flex; justify-content: space-between; gap: 2rem; padding: 0.3rem 0; }
.invoice-totals dt { color: #4a525c; }
.invoice-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.invoice-totals .grand { border-top: 2px solid #14181d; margin-top: 0.4rem; padding-top: 0.6rem; font-size: 1.05rem; font-weight: 600; }

.invoice-words { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid #e4e8ec; }
.invoice-foot { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #e4e8ec; color: #5a6069; font-size: 0.78rem; }
.invoice-foot p { margin: 0 0 0.25rem; }

@media print {
  body { background: #ffffff; }
  .site-header, .site-footer, .no-print { display: none !important; }
  .invoice { padding: 0; }
  .invoice-sheet { border: 0; max-width: none; padding: 0; }
  @page { margin: 14mm; }
}

.order-links { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; }

.delivery-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.delivery-option:last-child { border-bottom: 0; }
.delivery-option small { display: block; color: var(--ink-muted); font-size: 0.76rem; margin-top: 0.15rem; }
.delivery-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.delivery-note { font-size: 0.82rem; color: var(--ink-muted); margin: 0.6rem 0 0; }

/* Order tracking.
   Shown on the order page, which a customer comes back to a week later wanting
   to know where their ring is rather than to re-read the receipt. */
.tracking {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface-alt);
}

.tracking--attention { border-color: var(--danger); }

.tracking-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.tracking-status {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.tracking-carrier {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tracking-link {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.tracking-eta {
  margin: 0.9rem 0 0;
  color: var(--ink-muted);
}

.tracking-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tracking-step {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 0 0 1.25rem 0;
}

/* The rail joins the scans. The last step has no one below it to join to. */
.tracking-step::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.tracking-step:last-child { padding-bottom: 0; }
.tracking-step:last-child::before { display: none; }

.tracking-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.45rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tracking-step.is-done .tracking-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.tracking-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tracking-label { font-weight: 500; }

.tracking-detail {
  font-size: 0.9rem;
  color: var(--ink);
}

.tracking-meta {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.notice--warn { border-left: 2px solid var(--danger); }

/* ---------- platform marketing site ----------
   The pages at commerce.edesy.in. They share the storefront's tokens and type
   scale deliberately: one stylesheet means a change to the button or the
   heading rhythm lands on both sites, and there is no second design to keep
   in step. */

.site-header--platform .nav { margin-left: auto; }

.bag--cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.mk-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.mk-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  text-wrap: balance;
  margin: 0.4rem 0 0;
  max-width: 20ch;
}

.mk-lede {
  margin: 1.2rem 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

.mk-body {
  max-width: 68ch;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 1.6rem;
}

.mk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.button--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.mk-section { border-bottom: 1px solid var(--line); }
.mk-section:last-of-type { border-bottom: 0; }

/* Cards, demos and plans are all one object repeated, so they share their
   edges, padding and inner rhythm rather than each inventing their own. */
.mk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mk-card {
  background: var(--surface);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mk-card--link { text-decoration: none; color: inherit; }
.mk-card--link:hover { background: var(--surface-alt); }

.mk-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.mk-card-body {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.mk-card-more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.mk-list { margin: 0; }

.mk-list-row {
  display: grid;
  grid-template-columns: minmax(10rem, 18rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.mk-list-row:last-child { border-bottom: 1px solid var(--line); }

.mk-list dt {
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mk-list dd {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* A status chip. "In progress" has to read differently from "Live" at a
   glance, or the roadmap reads as a feature list. */
.mk-tag {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  white-space: nowrap;
}
.mk-tag--live { background: var(--success); color: var(--surface); }
.mk-tag--wip  { background: var(--surface-alt); color: var(--ink-muted); border: 1px solid var(--line); }

.mk-demos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mk-demo {
  background: var(--surface);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.mk-demo:hover { background: var(--surface-alt); }

.mk-demo-vertical {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.mk-demo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.mk-demo-blurb {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.mk-demo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.mk-point {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-muted);
}

.mk-demo-go {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.mk-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.mk-plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--surface);
}

.mk-plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.mk-plan-flag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.mk-plan-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0;
}

.mk-plan-price {
  font-size: 1.9rem;
  font-family: var(--font-display);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.mk-plan-period {
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--ink-muted);
}

.mk-plan-blurb {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mk-plan-features {
  list-style: none;
  margin: 0.4rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.mk-plan-features li {
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.mk-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}

.mk-plan .button { margin-top: auto; text-align: center; }

.mk-note {
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.mk-faqs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.mk-faq { border-bottom: 1px solid var(--line); }

.mk-faq summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; color: var(--accent); }
.mk-faq[open] summary::after { content: "\2013"; }

.mk-faq p {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 68ch;
}

.mk-form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  background: var(--surface);
}

.mk-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.mk-field { display: flex; flex-direction: column; gap: 0.35rem; }
.mk-field--wide { grid-column: 1 / -1; }

.mk-field label {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mk-optional { text-transform: none; letter-spacing: 0; opacity: 0.7; }

.mk-field input,
.mk-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.mk-field input:focus-visible,
.mk-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* The honeypot. Off-screen rather than display:none — some bots skip fields
   that are not rendered at all, and the point is that they fill it in. */
.mk-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mk-cta { text-align: left; }

@media (max-width: 640px) {
  .mk-list-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .mk-list-row:last-child { border-bottom: 1px solid var(--line); }
}
