/* Mediant Technologies — one stylesheet for the whole site. */

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5fb;
  --surface: #ffffff;
  --ink: #17151f;
  --ink-2: #4a4658;
  --muted: #6c6879;
  --line: #e4e1ee;
  --accent: #5a38ac;
  --accent-ink: #ffffff;
  --accent-soft: #efe9fb;
  --hero-from: #281668;
  --hero-to: #5a38ac;
  --hero-ink: #ffffff;
  --hero-sub: #d9cff5;
  --ok: #1d7a46;
  --warn-bg: #fff6e0;
  --warn-line: #f0d48a;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(20 10 50 / 6%), 0 8px 24px rgb(20 10 50 / 8%);
  --font-head: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  color-scheme: light;
}

/* Per-app accents. */
.theme-mail {
  --accent: #1e3a5f;
  --accent-soft: #e6edf6;
  --hero-from: #142a47;
  --hero-to: #2c5282;
  --hero-sub: #c9d8ec;
}
.theme-kruti {
  --accent: #c2410c;
  --accent-soft: #fdeee4;
  --hero-from: #c2410c;
  --hero-to: #ea7a2e;
  --hero-sub: #ffe7d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111017;
    --bg-soft: #18161f;
    --surface: #1d1b25;
    --ink: #f1eff7;
    --ink-2: #c9c5d6;
    --muted: #9a96a8;
    --line: #2d2a38;
    --accent: #a98bf0;
    --accent-ink: #160b33;
    --accent-soft: #2a2140;
    --warn-bg: #2b2414;
    --warn-line: #6b5520;
    --ok: #5fd08f;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
  .theme-mail { --accent: #7fa6d6; --accent-ink: #0d1b33; --accent-soft: #1c2633; }
  .theme-kruti { --accent: #fb9a5c; --accent-ink: #3a1500; --accent-soft: #33221a; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #281668, #5a38ac); color: #fff; font-weight: 700; font-size: 17px;
}
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; color: var(--ink); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .brand-name { font-size: 15px; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: var(--hero-ink);
  padding: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
}
.hero a:not(.btn) { color: inherit; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--hero-sub); max-width: 34em; }
.hero .app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero .app-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 20px rgb(0 0 0 / 25%); }
.hero .app-id span { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--hero-sub); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; margin-inline: auto; }
}

/* Home hero: the app icons */
.icon-stack { position: relative; height: 340px; }
.icon-stack img {
  position: absolute; width: 168px; height: 168px; border-radius: 40px;
  box-shadow: 0 24px 50px rgb(10 0 30 / 40%), 0 0 0 1px rgb(255 255 255 / 10%);
}
.icon-stack img:nth-child(1) { left: 6%; top: 20px; transform: rotate(-8deg); }
.icon-stack img:nth-child(2) { left: 38%; top: 120px; transform: rotate(6deg); z-index: 1; }
.icon-stack img:nth-child(3) { left: 58%; top: 0; transform: rotate(-3deg); }
.hero-icon { display: block; width: 100%; max-width: 300px; height: auto; margin-inline: auto; border-radius: 64px; box-shadow: 0 24px 50px rgb(10 0 30 / 40%), 0 0 0 1px rgb(255 255 255 / 10%); }
@media (max-width: 860px) { .icon-stack { display: none; } }

/* Phone frame around a raw screenshot */
.phone {
  border-radius: 36px; padding: 10px; background: #15121e;
  box-shadow: 0 30px 60px rgb(10 0 30 / 35%), inset 0 0 0 1px rgb(255 255 255 / 8%);
  max-width: 320px; margin-inline: auto;
}
.phone img { border-radius: 27px; width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 600 16px/1 var(--font-body); padding: 14px 22px; border-radius: 12px; border: 0;
}
.btn-play { background: #000; color: #fff; padding: 10px 20px 10px 14px; }
.btn-play svg { width: 26px; height: 26px; flex: none; }
.btn-play small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; }
.btn-play strong { display: block; font-size: 18px; font-weight: 600; margin-top: 2px; }
.btn-ghost { background: rgb(255 255 255 / 14%); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 28%); }
.btn-ghost:hover { background: rgb(255 255 255 / 22%); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-quiet { background: var(--bg-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hero .eyebrow { color: var(--hero-sub); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--ink-2); }

/* App cards on the home page */
.app-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform 0.15s ease; }
.app-card:hover { transform: translateY(-3px); }
.app-card .top { display: flex; gap: 14px; align-items: center; }
.app-card img.icon { width: 60px; height: 60px; border-radius: 15px; }
.app-card h3 { margin: 0; }
.app-card .pkg { font-size: 13px; color: var(--muted); }
.app-card .more { margin-top: auto; color: var(--accent); font-weight: 600; }

/* Screenshot strip */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px;
}
.shots img { border-radius: 18px; scroll-snap-align: start; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Video */
.video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .tag { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.plan.featured { border: 2px solid var(--accent); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-2); border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.checks li.no::before { border: 0; content: "–"; color: var(--muted); top: 6px; transform: none; left: 5px; }
.checks li.no { color: var(--muted); }
.checks li.plain::before { border: 0; content: "•"; color: var(--muted); top: 6px; left: 7px; transform: none; }
[id] { scroll-margin-top: 80px; }

/* Notes */
.note {
  border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: 12px; padding: 16px 18px;
  color: var(--ink); font-size: 15.5px;
}
.note strong { font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 12px; font-size: 24px; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }

/* Long-form text: policies, terms */
.prose > * { max-width: 46em; }
.prose > .table-scroll { max-width: 60em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.prose th { background: var(--bg-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.page-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 40em; }
.updated { font-size: 14px; color: var(--muted); }

/* Kruti Dev converter tool */
.tool { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } }
.pane { display: flex; flex-direction: column; gap: 8px; }
.pane label { font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pane label span { font-weight: 400; font-size: 14px; color: var(--muted); }
.pane textarea {
  width: 100%; min-height: 240px; resize: vertical; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 19px/1.6 var(--font-body);
}
.pane textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.pane textarea.kruti { font-family: "Kruti Dev 010", var(--font-body); }
.pane .row { display: flex; gap: 8px; flex-wrap: wrap; }
.swap { align-self: center; }
.swap button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); cursor: pointer; box-shadow: var(--shadow); }
.swap svg { width: 24px; height: 24px; }
@media (max-width: 820px) { .swap { justify-self: center; } .swap svg { transform: rotate(90deg); } }
.tool-status { min-height: 1.5em; font-size: 14px; color: var(--ok); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 24px; margin-top: 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-h { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card { transition: none; }
}
