/* ==========================================================================
   getsaaz.app — AppSaaz Automated GST Invoice marketing site
   One stylesheet, no build step, no external fonts or CDNs. Every page
   shares this file; page-specific rules live at the bottom under a
   `body.page-x` scope rather than in per-page <style> blocks.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */

:root {
  --brand: #2563d9;
  --brand-dark: #1b4bab;
  --brand-ink: #14306e;
  --brand-tint: #eef3fd;
  --accent: #12a05f;
  --accent-tint: #e6f6ee;
  --warn-tint: #fdf3e3;
  --warn-ink: #8a5a08;

  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef1f7;
  --ink: #0f1520;
  --ink-soft: #35405280;
  --muted: #5a6478;
  --line: #e2e7f0;
  --line-strong: #cdd5e3;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 21, 32, 0.06), 0 1px 3px rgba(15, 21, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 21, 32, 0.07), 0 12px 32px rgba(15, 21, 32, 0.06);
  --shadow-lg: 0 12px 28px rgba(15, 21, 32, 0.1), 0 32px 64px rgba(15, 21, 32, 0.09);

  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6f9dff;
    --brand-dark: #8db3ff;
    --brand-ink: #cbdcff;
    --brand-tint: #16203a;
    --accent: #3ecb8b;
    --accent-tint: #122e22;
    --warn-tint: #302615;
    --warn-ink: #e5be74;

    --bg: #0c1017;
    --surface: #121823;
    --surface-2: #182031;
    --ink: #e9edf5;
    --muted: #9aa5ba;
    --line: #212a3a;
    --line-strong: #2e394c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}

/* --- Reset -------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Long unbroken strings — GSTINs, filing-pack filenames, support email —
     otherwise push the whole page sideways on a 375px screen. */
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
li {
  margin-bottom: 0.4em;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}

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

/* --- Layout primitives -------------------------------------------------- */

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

.narrow {
  max-width: 760px;
}

.section {
  padding: 80px 0;
}
.section--tight {
  padding: 56px 0;
}
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-dark);
}
@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #0c1017;
  }
}

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.btn-ghost {
  color: var(--brand);
  padding-left: 4px;
  padding-right: 4px;
}
.btn-ghost:hover {
  text-decoration: underline;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-row--center {
  justify-content: center;
}

/* --- Header / nav ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.brand span small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The nav CTA exists twice in the markup: once inside .nav-menu (for the
   mobile drawer) and once as a direct child of .nav (for desktop). Exactly
   one is visible at a time — without this rule both render side by side. */
.nav-menu .nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 22px;
  }
  .nav-menu.is-open {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-menu .nav-cta {
    display: flex;
    margin-top: 16px;
  }
  .nav-menu .btn {
    width: 100%;
  }
  .nav > .nav-cta {
    display: none;
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background:
    radial-gradient(1000px 460px at 78% -12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(700px 380px at 6% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 18px;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 34em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 0.83rem;
  font-weight: 650;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-note strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero {
    padding: 52px 0 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* --- Invoice mock (hero illustration) ----------------------------------- */

.mock {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-bar span {
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.mock-body {
  padding: 22px 24px 24px;
}

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brand);
}
.mock-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.mock-sub {
  color: var(--muted);
  font-size: 11.5px;
}
.mock-right {
  text-align: right;
}

.mock-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 11.5px;
}
.mock-meta div span {
  color: var(--muted);
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-meta div b {
  font-weight: 650;
  font-family: var(--mono);
  font-size: 11.5px;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 11.5px;
}
.mock-table th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 650;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.mock-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.mock-table .num {
  text-align: right;
  font-family: var(--mono);
}

.mock-totals {
  margin-top: 12px;
  margin-left: auto;
  width: 62%;
  font-size: 11.5px;
}
.mock-totals div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--muted);
}
.mock-totals div b {
  font-family: var(--mono);
  color: var(--ink);
  font-weight: 550;
}
.mock-totals .total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
}
.mock-totals .total b {
  font-weight: 700;
  font-size: 13px;
}

.mock-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 6px;
  padding: 5px 10px;
}

/* --- Cards / grids ------------------------------------------------------ */

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin-bottom: 8px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--accent {
  background: var(--accent-tint);
  color: var(--accent);
}

/* --- Steps -------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  .step::before {
    color: #0c1017;
  }
}
.step p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* --- Split feature rows ------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}
.split + .split {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}
.split--flip .split-media {
  order: -1;
}
@media (max-width: 860px) {
  .split--flip .split-media {
    order: 0;
  }
  .split + .split {
    margin-top: 56px;
    padding-top: 56px;
  }
}

.split-body h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
}
.split-body > p {
  color: var(--muted);
}

/* --- Checklists --------------------------------------------------------- */

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.97rem;
}
.checks li strong {
  color: var(--ink);
  font-weight: 650;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-tint);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a05f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.checks--tight li {
  margin-bottom: 8px;
}

/* The monospace filename/number-format lists inside panels have no natural
   break opportunities at all, so they need the more aggressive value. */
.panel .checks li {
  overflow-wrap: anywhere;
}

/* --- Panels / callouts -------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.note {
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 0.97rem;
  color: var(--ink);
}
.note p:last-child {
  margin-bottom: 0;
}
.note--warn {
  border-left-color: #d99b21;
  background: var(--warn-tint);
}

/* --- Stat strip --------------------------------------------------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
}
.strip div b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.strip div span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Pricing ------------------------------------------------------------ */

.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  border: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.price-head {
  padding: 34px 34px 28px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brand-tint), transparent);
}
.price-amount {
  font-size: 3.2rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 10px 0 6px;
}
.price-amount small {
  font-size: 1rem;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
}
.price-body {
  padding: 30px 34px 34px;
}

/* --- FAQ / accordion ---------------------------------------------------- */

.faq-group + .faq-group {
  margin-top: 48px;
}
.faq-group > h2 {
  font-size: 1.3rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

details.qa {
  border-bottom: 1px solid var(--line);
}
details.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 650;
  font-size: 1.02rem;
}
details.qa summary::-webkit-details-marker {
  display: none;
}
details.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
details.qa[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}
details.qa summary:hover {
  color: var(--brand);
}
.qa-body {
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 0.99rem;
}
.qa-body p:last-child,
.qa-body ul:last-child {
  margin-bottom: 0;
}

/* --- CTA band ----------------------------------------------------------- */

.cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.cta h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin: 0 auto 26px;
}
.cta .btn-primary {
  background: #fff;
  color: var(--brand-ink);
}
.cta .btn-primary:hover {
  background: #eef3fd;
}
.cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.cta-fine {
  margin: 22px 0 0;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px 0 32px;
  margin-top: 0;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
}
@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-about p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 14px 0 0;
  max-width: 30ch;
}
.site-footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer li a {
  color: var(--ink);
  font-weight: 500;
}
.site-footer li a:hover {
  color: var(--brand);
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.87rem;
}

/* --- Page header (interior pages) --------------------------------------- */

.page-head {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 300px at 88% -30%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%);
}
.page-head h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  max-width: 18ch;
}
.page-head .lede {
  max-width: 60ch;
  margin-bottom: 0;
}

/* --- Contact ------------------------------------------------------------ */

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card .icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.contact-card h3 {
  margin-bottom: 6px;
}
.contact-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 8px;
}
.mail {
  font-weight: 650;
  word-break: break-word;
}

/* --- 404 ---------------------------------------------------------------- */

.center-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.center-page .code {
  font-family: var(--mono);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.03em;
}

/* --- Utilities ---------------------------------------------------------- */

.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.text-center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ Guides
   The blog (blog/), built by blog/build.mjs. One reading column, the
   answer first, the app's own call to action once at the foot. */
.post-meta { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }
.post { font-size: 1.05rem; line-height: 1.7; }
.post h2 { font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.post p { margin: 0 0 16px; }
.post a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.post strong { font-weight: 600; }
.post-cta {
  margin: 40px 0 0; padding: 24px 26px; border-radius: var(--radius-lg);
  background: var(--brand-tint); border: 1px solid var(--line);
}
.post-cta h2 { margin: 0 0 6px; font-size: 1.15rem; }
.post-cta p { margin: 0 0 16px; color: var(--muted); }
.post-related { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.post-related h2, .post-cluster h2 { font-size: 1.1rem; margin: 0 0 10px; }
.post-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.post-related a { color: var(--brand-dark); }
.post-cluster { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.post-cluster-lede { color: var(--muted); margin: 0 0 14px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-list li { display: grid; gap: 3px; }
.post-list a { font-weight: 600; color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--brand-dark); text-decoration: underline; }
.post-list span { color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   /returns — AppSaaz Returns & Exchanges. Its palette is the app's own
   request-stage colours (to review, approved, shipping back, received),
   so the page, the dashboard and the customer emails read as one product.
   ========================================================================== */

body.page-returns {
  --rx-amber: #e0a021;
  --rx-amber-ink: #4a3200;
  --rx-lav: #a996f0;
  --rx-lav-ink: #241a55;
  --rx-violet: #5b3fd6;
  --rx-teal: #177566;
  --rx-coral: #c8412d;
  --rx-deep: #1c1537;
  --rx-tint: #f4f1ff;
  --rx-glow: 0.22;
  --brand: #5b3fd6;
  --brand-dark: #4a31bd;
  --brand-tint: #f1edff;
}
@media (prefers-color-scheme: dark) {
  body.page-returns {
    --rx-tint: #1b1733;
    --rx-glow: 0.16;
    --brand: #9d8bff;
    --brand-dark: #b6a8ff;
    --brand-tint: #1f1a3d;
  }
}

.page-returns .rx-logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--rx-violet), var(--rx-teal));
  flex: none;
}

/* Hero */
.rx-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(620px 420px at 92% 8%, color-mix(in srgb, var(--rx-lav) calc(var(--rx-glow) * 200%), transparent), transparent 70%),
    radial-gradient(520px 380px at 70% 100%, color-mix(in srgb, var(--rx-amber) calc(var(--rx-glow) * 120%), transparent), transparent 70%),
    radial-gradient(560px 360px at 0% 0%, color-mix(in srgb, var(--rx-teal) calc(var(--rx-glow) * 70%), transparent), transparent 70%);
}
.rx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.rx-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.rx-hero .lede {
  font-size: 1.18rem;
  max-width: 34em;
}
.rx-grad {
  background: linear-gradient(100deg, var(--rx-violet) 5%, var(--rx-coral) 55%, var(--rx-amber) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rx-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 650;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.rx-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rx-amber);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rx-amber) 30%, transparent);
}

.rx-shot {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(140deg, var(--rx-amber), var(--rx-lav) 38%, var(--rx-violet) 68%, var(--rx-teal));
  box-shadow: var(--shadow-lg);
}
.rx-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
}
.rx-chip {
  position: absolute;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 8px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.rx-chip b { font-variant-numeric: tabular-nums; }
.rx-chip--amber { top: -14px; left: 26px; background: var(--rx-amber); color: var(--rx-amber-ink); }
.rx-chip--teal { top: 44%; right: -12px; background: var(--rx-teal); color: #fff; }
.rx-chip--violet { bottom: -14px; left: 18%; background: var(--rx-violet); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .rx-chip { animation: rx-float 6s ease-in-out infinite; }
  .rx-chip--teal { animation-delay: -2s; }
  .rx-chip--violet { animation-delay: -4s; }
}
@keyframes rx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 900px) {
  .rx-hero { padding: 52px 0 64px; }
  .rx-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .rx-shot { padding: 14px; }
  .rx-chip--teal { right: 8px; }
}

/* The four stages */
.rx-journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}
.rx-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rx-step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--c);
}
.rx-step--amber { --c: var(--rx-amber); --c-ink: var(--rx-amber-ink); }
.rx-step--lav { --c: var(--rx-lav); --c-ink: var(--rx-lav-ink); }
.rx-step--violet { --c: var(--rx-violet); --c-ink: #fff; }
.rx-step--teal { --c: var(--rx-teal); --c-ink: #fff; }
.rx-step__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  color: var(--c-ink);
  font-weight: 750;
  margin-bottom: 14px;
}
.rx-step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.rx-step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.rx-step code, .page-returns .qa-body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--rx-tint);
  padding: 1px 6px;
  border-radius: 6px;
}
@media (max-width: 900px) { .rx-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rx-journey { grid-template-columns: 1fr; } }

/* Feature tiles */
.rx-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rx-tile {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  background: var(--t);
  color: var(--t-ink);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.rx-tile--wide { grid-column: span 2; }
.rx-tile h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.01em; color: inherit; }
.rx-tile p { margin: 0; font-size: 0.97rem; opacity: 0.92; max-width: 46ch; color: inherit; }
.rx-tile--violet { --t: linear-gradient(135deg, #5b3fd6, #7a5cf0); --t-ink: #fff; }
.rx-tile--amber { --t: var(--rx-amber); --t-ink: var(--rx-amber-ink); }
.rx-tile--teal { --t: var(--rx-teal); --t-ink: #fff; }
.rx-tile--lav { --t: var(--rx-lav); --t-ink: var(--rx-lav-ink); }
.rx-tile--coral { --t: var(--rx-coral); --t-ink: #fff; }
.rx-tile--ink { --t: linear-gradient(135deg, var(--rx-deep), #2e2560); --t-ink: #f1edff; }
@media (max-width: 900px) {
  .rx-bento { grid-template-columns: 1fr 1fr; }
  .rx-tile--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .rx-bento { grid-template-columns: 1fr; }
  .rx-tile--wide { grid-column: auto; }
  .rx-tile { min-height: 0; }
}

/* Showcase rows */
.rx-show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.rx-show + .rx-show { margin-top: 80px; }
.rx-show--flip .rx-show__text { order: 2; }
.rx-show h2 { text-wrap: balance; }
.rx-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.rx-ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.rx-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rx-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.rx-frame {
  padding: 18px;
  border-radius: 24px;
  background: var(--f);
}
.rx-frame img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-md); background: #fff; }
.rx-frame--lav { --f: linear-gradient(150deg, var(--rx-lav), var(--rx-violet)); }
.rx-frame--amber { --f: linear-gradient(150deg, var(--rx-amber), var(--rx-coral)); }
@media (max-width: 900px) {
  .rx-show { grid-template-columns: 1fr; gap: 32px; }
  .rx-show--flip .rx-show__text { order: 0; }
  .rx-show + .rx-show { margin-top: 64px; }
}

/* Pricing */
.rx-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.rx-plan {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.rx-plan--pop {
  border: 2px solid var(--rx-violet);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--rx-violet) 22%, transparent);
}
.rx-plan__badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--rx-amber);
  color: var(--rx-amber-ink);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.rx-plan h3 { margin: 0; font-size: 1.1rem; }
.rx-price { font-size: 2.6rem; font-weight: 780; letter-spacing: -0.04em; line-height: 1.1; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.rx-price small { font-size: 0.95rem; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.rx-quota { margin: 0 0 16px; font-weight: 650; color: var(--brand); }
.rx-plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.rx-plan li { position: relative; padding-left: 20px; font-size: 0.95rem; color: var(--ink); }
.rx-plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--rx-lav); }
.rx-extra { text-align: center; color: var(--muted); max-width: 640px; margin: 28px auto 0; }
.rx-extra strong { color: var(--ink); }
@media (max-width: 900px) { .rx-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } .rx-plan--pop { margin-top: 8px; } }

/* Closing band */
.rx-cta {
  padding: 84px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(500px 260px at 12% 0%, color-mix(in srgb, var(--rx-amber) 55%, transparent), transparent 70%),
    radial-gradient(520px 300px at 92% 100%, color-mix(in srgb, var(--rx-teal) 70%, transparent), transparent 70%),
    linear-gradient(120deg, #3f2aa8, var(--rx-violet) 50%, #7b4fd8);
}
.rx-cta h2 { color: #fff; margin: 0 auto 12px; max-width: 18em; text-wrap: balance; }
.rx-cta p { color: rgba(255, 255, 255, 0.86); max-width: 36em; margin: 0 auto 26px; }
.rx-cta__btn { background: #fff; color: var(--rx-deep); font-weight: 700; }
.rx-cta__btn:hover { background: #fff7e6; color: var(--rx-deep); }
.rx-cta .rx-cta__fine { font-size: 0.9rem; margin: 18px auto 0; color: rgba(255, 255, 255, 0.75); }
