/* The platform site (commerce.edesy.in): marketing pages, the theme gallery
 * and /start. Built on edesy-ui.css's tokens and components, so it is the same
 * black and white as the back office and every other Edesy app. These rules
 * used to live in storefront.css and wore the Aurum store theme.
 */

.mk { font-size: 1rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { width: 100%; max-width: 48rem; }

/* ---------- header and footer ---------- */

.mk-row { max-width: 72rem; height: 4rem; gap: 2rem; }
.mk-nav { display: flex; gap: 0.25rem; }
.mk-nav a {
  padding: 0.375rem 0.75rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); text-decoration: none;
}
.mk-nav a:hover { color: var(--foreground); background: var(--accent); }
.mk-nav a.is-active { color: var(--foreground); }

.mk-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 2rem; font-size: 0.875rem; }
.mk-footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 2rem; }
.mk-footer-brand p { color: var(--muted-foreground); max-width: 32ch; margin: 1rem 0 0; line-height: 1.6; }
.mk-footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.mk-footer-nav p { margin: 0 0 0.75rem; font-weight: 500; }
.mk-footer-nav a { display: block; color: var(--muted-foreground); text-decoration: none; padding: 0.2rem 0; }
.mk-footer-nav a:hover { color: var(--foreground); }
.mk-legal { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.8125rem; }

/* ---------- type ---------- */

.section { padding: 4rem 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.2; margin: 0 0 1rem; text-wrap: balance;
}
.mk .eyebrow {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 500; color: var(--foreground);
  padding: 0.125rem 0.625rem; margin: 0 0 1rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--background);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.mk-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--border); }
.mk-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.05; margin: 0; max-width: 18ch; text-wrap: balance;
}
.mk-lede { margin: 1.5rem 0 0; max-width: 60ch; font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.7; color: var(--muted-foreground); }
.mk-body { max-width: 65ch; line-height: 1.7; color: var(--muted-foreground); margin: 0 0 2rem; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.mk-hero .mk-actions .button { height: 2.5rem; padding: 0 1.5rem; }

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

/* ---------- cards ---------- */

.mk-cards, .mk-demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.mk-card, .mk-demo {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.5rem; background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.mk-card--link, .mk-demo { transition: border-color 0.15s, background-color 0.15s; }
.mk-card--link:hover, .mk-demo:hover { border-color: var(--ring); background: color-mix(in oklch, var(--muted) 40%, var(--card)); }
.mk-card-title { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.3; }
.mk-card-body { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.mk-card-more, .mk-demo-go { margin-top: auto; padding-top: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--foreground); }

.mk-demo-vertical { font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; }
.mk-demo-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.mk-demo-blurb { font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.mk-demo-points { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.25rem; }
.mk-point {
  font-size: 0.75rem; font-weight: 500; padding: 0.125rem 0.5rem; border-radius: 999px;
  background: var(--secondary); color: var(--secondary-foreground);
}

/* ---------- lists and tags ---------- */

.mk-list { margin: 0; }
.mk-list-row {
  display: grid; grid-template-columns: minmax(10rem, 18rem) 1fr; gap: 0.5rem 2rem;
  padding: 1rem 0; border-top: 1px solid var(--border); align-items: baseline;
}
.mk-list-row:last-child { border-bottom: 1px solid var(--border); }
.mk-list dt { font-weight: 500; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mk-list dd { margin: 0; color: var(--muted-foreground); line-height: 1.6; }
.mk-tag {
  display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 500; line-height: 1rem;
  padding: 0.125rem 0.5rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.mk-tag--live { background: var(--primary); color: var(--primary-foreground); }
.mk-tag--wip { background: transparent; color: var(--foreground); border-color: var(--border); }

/* ---------- plans ---------- */

.mk-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; align-items: stretch; }
.mk-plan {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.mk-plan--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
.mk-plan-flag { align-self: flex-start; margin: 0; font-size: 0.75rem; font-weight: 500; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); }
.mk-plan-name { font-size: 1.125rem; font-weight: 600; margin: 0; }
.mk-plan-price { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.04em; margin: 0; font-variant-numeric: tabular-nums; }
.mk-plan-period { font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--muted-foreground); }
.mk-plan-blurb { margin: 0; color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.6; }
.mk-plan-features { list-style: none; margin: 0.5rem 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; font-size: 0.875rem; }
.mk-plan-features li { padding-left: 1.5rem; position: relative; line-height: 1.5; }
.mk-plan-features li::before {
  content: ""; position: absolute; left: 0.125rem; top: 0.3em; width: 0.75rem; height: 0.4rem;
  border-left: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); transform: rotate(-45deg);
}
.mk-plan .button { margin-top: auto; width: 100%; }
.mk-note { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- FAQ (accordion) ---------- */

.mk-faqs { display: flex; flex-direction: column; }
.mk-faq { border-bottom: 1px solid var(--border); }
.mk-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0; margin: 0; cursor: pointer; list-style: none;
  font-size: 0.9375rem; font-weight: 500;
}
.mk-faq summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
  content: ""; flex-shrink: 0; width: 0.5rem; height: 0.5rem; margin-right: 0.25rem;
  border-right: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg) translateY(-2px); transition: transform 0.2s;
}
.mk-faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.mk-faq p { margin: 0 0 1rem; color: var(--muted-foreground); line-height: 1.7; font-size: 0.875rem; max-width: 68ch; }

/* ---------- forms ---------- */

.mk-form-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: 1.5rem;
}
.mk-form-card .section-title { font-size: 1.25rem; }
.mk-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.mk-field { display: flex; flex-direction: column; gap: 0.5rem; }
.mk-field--wide { grid-column: 1 / -1; }
.mk-field label { font-size: 0.875rem; font-weight: 500; }
.mk-optional { font-weight: 400; color: var(--muted-foreground); }
.mk-field .button { justify-self: start; width: fit-content; }

.mk-address {
  display: flex; align-items: stretch; overflow: hidden;
  border: 1px solid var(--input); border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
}
.dark .mk-address { background: color-mix(in oklch, var(--input) 30%, transparent); }
.mk-address input, .dark .mk-address input { border: 0; border-radius: 0; box-shadow: none; flex: 1 1 auto; background: transparent; }
.mk-address input:focus-visible { box-shadow: none; }
.mk-address:focus-within { border-color: var(--ring); box-shadow: var(--focus-ring); }
.mk-address-suffix {
  display: flex; align-items: center; padding: 0 0.75rem; white-space: nowrap;
  font-size: 0.875rem; color: var(--muted-foreground); background: var(--muted); border-left: 1px solid var(--input);
}
.mk-hint { font-size: 0.8125rem; color: var(--muted-foreground); margin: 0; }
.mk-hint.is-bad { color: var(--destructive); }
.mk-hint.is-good { color: var(--ok); }

/* 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; }

.notice {
  margin: 1.5rem 0 0; padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.6;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: var(--muted-foreground);
}
.mk-form-card .notice { margin: 0 0 1rem; }
.notice--bad { color: var(--destructive); border-color: color-mix(in oklch, var(--destructive) 35%, var(--border)); }

/* ---------- theme gallery (/demos) ---------- */

.theme-shelf-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; }
.theme-chip { display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.38rem 0.85rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.88rem; text-decoration: none; opacity: 0.85; }
.theme-chip:hover { opacity: 1; }
.theme-chip span { font-size: 0.75rem; opacity: 0.7; }
.theme-shelf-title { margin: 2.2rem 0 1rem; font-size: 1.3rem; scroll-margin-top: 5rem; }
.theme-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.theme-tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.theme-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--muted); }
.theme-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.4s ease; }
.theme-shot:hover img { transform: scale(1.02); }
.theme-tile-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.theme-tile-vertical { margin: 0; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; }
.theme-tile-name { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.theme-tile-tagline { margin: 0; color: var(--muted-foreground); font-size: 0.875rem; }
.theme-tile-best { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--muted-foreground); }
.theme-tile-best span { color: var(--foreground); font-weight: 500; }
.theme-tile-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
.theme-tile-actions .button { height: 2rem; padding: 0 0.75rem; }

.mk-menu { display: none; }
@media (max-width: 56rem) {
  .mk-nav, .mk-hide-sm { display: none; }
  .mk-menu { display: inline-block; }
  .mk-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .wrap, .mk-row { padding: 0 1rem; }
  .mk-list-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .mk-footer-nav { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
}

/* Legal pages (LP-5): long-form text at reading width. */
.mk-legal-section { margin: 2.5rem 0 0; }
.mk-legal-section .section-title { font-size: 1.25rem; }
.mk-legal-section .mk-body { margin: 0 0 1rem; }
.mk-legal-list { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--muted-foreground); line-height: 1.7; max-width: 65ch; }
.mk-legal-list li + li { margin-top: 0.5rem; }

/* ---------- pricing: price lists and the calculator ---------- */

.mk-notice {
  margin: 0; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--card); font-size: 0.9375rem; line-height: 1.6;
}
.mk-table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.mk-table th, .mk-table td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.mk-table thead th { font-weight: 600; color: var(--muted-foreground); }
.mk-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-calc { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin: 0 0 1.5rem; }
.mk-calc label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; }
.mk-calc input[type=number] { width: 9rem; max-width: 100%; padding: 0.5rem 0.625rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; }
.mk-calc .mk-calc-check { flex-direction: row; align-items: center; gap: 0.5rem; padding-bottom: 0.5rem; }
.mk-calc-result { max-width: 36rem; }
