/* =============================================================================
 * style.css — Design system. No framework, no CDN.
 *
 * Deliberately dependency-free: the same stylesheet ships to the web and into
 * the Electron bundle, and the desktop app must render identically with the
 * network unplugged.
 * ========================================================================== */

/* Reserve the scrollbar's width whether or not there is a scrollbar.
 *
 * Without this, a page that grows past the viewport DURING load makes the
 * scrollbar appear, the viewport narrows by ~15px, and every element reflows —
 * including the header, which is why a CLS report named `a` and `a.btn` on a
 * page whose only change was longer body text. Measured 0.102 on /privacy.html
 * against Google's 0.1 threshold; every other page was under only because their
 * content happened not to cross the fold mid-load.
 *
 * This is the general fix rather than trimming the text: the next paragraph
 * anyone adds would have re-created it. */
html { scrollbar-gutter: stable; }

:root {
  --saffron:      #D4761A;
  --saffron-dark: #B85C10;
  --maroon:       #8E1F2F;
  --gold:         #C9A227;
  --cream:        #FFFBF3;
  --cream-2:      #F7EEDD;
  --ink:          #2E1F16;
  --ink-soft:     #6B5644;
  --line:         #E7DACA;
  --white:        #FFFFFF;
  --ok:           #1E7A4B;
  --danger:       #B31E3B;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(46,31,22,.06), 0 8px 24px rgba(46,31,22,.08);
  --shadow-lg: 0 2px 6px rgba(46,31,22,.08), 0 20px 50px rgba(46,31,22,.14);

  --font-ui:   'Mukta', 'Noto Sans Devanagari', 'Nirmala UI', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Tiro Devanagari Marathi', 'Noto Serif Devanagari', 'Nirmala UI', Georgia, serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

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

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

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

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 780px; }

.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--cream-2); }

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px;
  font: inherit; font-weight: 600;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

/* A .btn with no variant class (account page, 404 page) must still look like a
   button, not like bare text — default to the secondary look. Variant classes
   are defined after this and win. */
.btn { background: var(--white); color: var(--ink); border-color: var(--line); }

.btn-primary   { background: var(--saffron); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(212,118,26,.32); }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--saffron); color: var(--saffron-dark); }
.btn-ghost     { background: transparent; color: var(--ink-soft); border-color: transparent; padding: 10px 16px; }
.btn-ghost:hover { color: var(--saffron-dark); }
.btn-success   { background: var(--ok); color: #fff; border-color: transparent; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,251,243,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* A thin shubh band — saffron to maroon to gold — across the very top of every
   page. One gradient line, no image, and the whole site reads "wedding" before
   a single word is parsed. */
.site-header::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--saffron) 38%, var(--gold) 72%, var(--maroon));
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  display: grid; place-items: center; color: #fff; font-size: 1.05rem;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.nav a:hover { background: var(--cream-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--saffron-dark); font-weight: 700; }

/* The account entry: visible on EVERY page at EVERY width. The audience is
   overwhelmingly on phones, and a link that vanishes below 620px is a link
   that does not exist for them. Below 420px the label yields to the icon. */
.nav a.nav-account {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white);
  color: var(--ink); font-weight: 600; font-size: .92rem;
  white-space: nowrap;
}
.nav a.nav-account:hover { border-color: var(--saffron); color: var(--saffron-dark); background: var(--white); }
.nav a.nav-account svg { flex: none; color: var(--saffron-dark); }
.nav a.nav-account[aria-current="page"] { border-color: var(--saffron); }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 68px 0 56px; text-align: center; }
/* A whisper of saffron and gold behind the headline. Pure CSS, no image to
   load, and quiet enough that the text stays the loudest thing on screen. */
body.has-hero-glow {
  background:
    radial-gradient(560px 300px at 18% 0%, rgba(212,118,26,.07), transparent 70%),
    radial-gradient(640px 320px at 85% 4%, rgba(201,162,39,.09), transparent 70%),
    var(--cream);
}
.hero .eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(212,118,26,.12); color: var(--saffron-dark);
  font-size: .86rem; font-weight: 600; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .9rem; color: var(--ink-soft); }

/* --- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.card:hover { border-color: var(--saffron); box-shadow: var(--shadow); text-decoration: none; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(212,118,26,.12); color: var(--saffron-dark);
  display: grid; place-items: center; font-size: 1.3rem;
}

/* --- Template gallery ---------------------------------------------------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }

/* The gallery is built by JavaScript, so at first paint this container is
 * empty and whatever follows it sits high on the screen. When 189 cards land,
 * that content is shoved down a whole page — measured at CLS 0.29 on a phone,
 * three times Google's "poor" threshold and a direct ranking penalty.
 *
 * Reserving a screen of height keeps the next section below the fold, so the
 * fill happens off-screen where it shifts nothing the visitor can see. The
 * class is removed once real cards exist, otherwise filtering down to two
 * designs would leave a screen of blank space under them. */
.tpl-grid.is-loading { min-height: 100vh; }
.tpl-card {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tpl-card:hover { border-color: var(--saffron); box-shadow: var(--shadow); transform: translateY(-2px); }
.tpl-card.selected { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(212,118,26,.2); }
.tpl-card canvas, .tpl-card img { width: 100%; height: auto; display: block; background: var(--cream-2); }
.tpl-meta { padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-name { font-weight: 600; font-size: .94rem; }
.badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; flex: none;
}
/* FREE must read as an open door, not a smaller lock. Solid green, white text —
   unmissable at thumbnail size. Premium stays a quiet gold price tag: honest
   about the ₹36, but never dressing the design up as locked. */
.badge-free    { background: var(--ok); color: #fff; }
.badge-premium { background: rgba(201,162,39,.18); color: #7A600F; border: 1px solid rgba(201,162,39,.45); }

/* Lift the two genuinely-free designs out of a wall of 189 cards: a green edge
   and a corner ribbon, applied purely in CSS off the badge the JS already
   emits — the gallery builders never need to know. Browsers without :has()
   simply show the normal card; the solid green badge still carries the
   message. */
.tpl-card:has(.badge-free) { border-color: rgba(30,122,75,.5); }
.tpl-card:has(.badge-free)::after {
  content: 'वॉटरमार्क नाही';
  position: absolute; top: 10px; left: -1px;
  background: var(--ok); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .03em;
  padding: 3px 10px 3px 8px; border-radius: 0 999px 999px 0;
  box-shadow: 0 1px 4px rgba(46,31,22,.25);
  pointer-events: none;
}
.tpl-card:has(.badge-free):hover { border-color: var(--ok); }
.tpl-card.selected:has(.badge-free) { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(30,122,75,.2); }
/* The galleries set <html lang> from their language pickers; the ribbon
   follows. */
:root:lang(hi) .tpl-card:has(.badge-free)::after { content: 'वॉटरमार्क नहीं'; }
:root:lang(en) .tpl-card:has(.badge-free)::after { content: 'No watermark'; }

/* One-line legend above a template chooser: what the two badges mean. */
.tpl-legend { color: var(--ink-soft); margin: 4px 0 14px; }
.tpl-legend .badge { vertical-align: 1px; }

/* --- Forms --------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 5px; }
.field .hint { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
/* The account page marks up labels as <span class="field-label"> inside the
   <label> so the whole block stays clickable; give the span the label look. */
.field-label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 5px; }

.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(212,118,26,.15);
}
.textarea { min-height: 84px; resize: vertical; }
.select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B5644' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

.field-row { display: flex; gap: 10px; align-items: flex-end; }
.field-row .field { flex: 1; margin-bottom: 0; }

.switch-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.switch-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--saffron); flex: none; }
.switch-row label { margin: 0; font-weight: 500; font-size: .95rem; cursor: pointer; }

/* Segmented control (language switch) */
.segmented { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 4px; gap: 3px; }
.segmented button {
  border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .9rem;
  padding: 7px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-soft);
}
.segmented button.active { background: var(--white); color: var(--saffron-dark); box-shadow: var(--shadow); }

/* --- Editor layout ------------------------------------------------------- */
.editor { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,520px); gap: 30px; align-items: start; }
.editor-form { min-width: 0; }

/* Hold the space until the form exists.
 *
 * The form is built by JavaScript, so the browser paints an EMPTY container and
 * then everything below jumps when the fields arrive — measured CLS 0.44 on
 * /create.html when the build landed inside the measurement window, and ~0.001
 * when it landed just outside. A race the harness sometimes wins is a race a
 * slow phone loses every time.
 *
 * :empty needs no JavaScript and stops applying the instant the first panel is
 * appended. Same pattern the template grid already uses (.tpl-grid.is-loading).
 *
 * It targets #fieldPanels, not .editor-form: the latter already contains the
 * privacy notice in the HTML, so :empty could never match it and the first
 * version of this rule did precisely nothing. */
#fieldPanels:empty { min-height: 100vh; }
.editor-preview { position: sticky; top: 86px; }

.preview-shell {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.preview-shell canvas {
  width: 100%; height: auto; display: block; border-radius: 6px;
  box-shadow: 0 2px 12px rgba(46,31,22,.14);
}
.preview-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.preview-actions .btn { flex: 1; min-width: 130px; }
/* A label that does not fit must WRAP, not spill and not be clipped.
   `.btn` sets white-space: nowrap, so without this the text ran out of the
   button and across the one beside it. Ellipsis was the other option and it is
   worse here: the label carries a price, and "Rs 36 — remove waterma…" is a
   cut-off price. Let the button grow a line instead. */
.preview-actions .btn { white-space: normal; line-height: 1.25; }

/* The restore entry: present and findable, but visibly secondary to the
   download buttons above it. */
.restore-line { margin-top: 10px; text-align: center; }
.linklike {
  background: none; border: 0; padding: 6px 4px;
  font: inherit; font-size: .88rem; color: var(--saffron-dark);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; min-height: 36px;
}
.linklike:hover { color: var(--maroon); }

.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 18px; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px; cursor: pointer; user-select: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.06rem;
  background: var(--cream-2); border-bottom: 1px solid var(--line);
}
.panel-head .chev { margin-left: auto; transition: transform .18s ease; color: var(--ink-soft); }
.panel.collapsed .chev { transform: rotate(-90deg); }
.panel.collapsed .panel-body { display: none; }
.panel-body { padding: 20px; }

/* Draggable / removable field rows */
.frow { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.frow .field { flex: 1; margin-bottom: 0; }
.frow-remove {
  flex: none; margin-top: 26px; width: 34px; height: 38px;
  border: 1.5px solid var(--line); background: var(--white); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink-soft); font-size: 1.05rem; line-height: 1;
}
.frow-remove:hover { border-color: var(--danger); color: var(--danger); }

/* --- Pricing ------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; max-width: 760px; margin-inline: auto; }
.price-card {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-align: center;
  transition: box-shadow .15s ease;
}
.price-card:hover { box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--saffron); position: relative; box-shadow: var(--shadow); }
.price-card.featured::before {
  content: attr(data-tag); position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--saffron); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
}
.price-amount { font-family: var(--font-head); font-size: 2.9rem; font-weight: 700; line-height: 1; margin: 10px 0 4px; }
.price-list { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.price-list li { padding: 7px 0 7px 28px; position: relative; font-size: .96rem; }
.price-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-list li.no::before { content: '✕'; color: var(--ink-soft); }
.price-list li.no { color: var(--ink-soft); }

/* --- FAQ ----------------------------------------------------------------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; color: var(--saffron); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > p { margin: 0 0 16px; color: var(--ink-soft); }

/* --- Steps --------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--saffron); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-head);
}

/* --- Toast / status ------------------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .94rem; box-shadow: var(--shadow-lg); z-index: 200;
  transition: transform .25s cubic-bezier(.2,.8,.3,1); max-width: calc(100vw - 40px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }

/* --- Modal --------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(46,31,22,.55);
  display: none; align-items: center; justify-content: center; z-index: 150; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg);
}
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal-head h3 { margin: 0; }
/* 40px, not the 26px the glyph happens to occupy. A close button smaller than
   a fingertip is the one control a frustrated person jabs at repeatedly on a
   phone — and this is the dialog standing between them and their download. */
.modal-close {
  margin-left: auto; background: none; border: 0;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-soft);
  min-width: 40px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--cream-2); color: var(--ink); }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* --- Notices ------------------------------------------------------------- */
.notice {
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .94rem;
  border-left: 4px solid var(--saffron); background: rgba(212,118,26,.09); margin-bottom: 18px;
}
.notice.ok     { border-color: var(--ok);     background: rgba(30,122,75,.09); }
.notice.danger { border-color: var(--danger); background: rgba(179,30,59,.09); }
/* create.js puts "this purchase is already spent" into a .notice.warn — the
   class had no rule, so the one warning about money rendered unstyled. */
.notice.warn   { border-color: var(--gold);   background: rgba(201,162,39,.12); }

/* --- Free strip (templates page) ----------------------------------------- */
/* The honest sales pitch, in one band the eye cannot miss: exactly two designs
   are free with no watermark, everything else is ₹36 once. */
.free-strip {
  display: flex; align-items: flex-start; gap: 14px;
  max-width: 720px; margin: 0 auto 26px;
  background: var(--white);
  border: 1.5px solid rgba(30,122,75,.4); border-radius: var(--radius);
  padding: 16px 20px; text-align: left;
  box-shadow: 0 2px 10px rgba(30,122,75,.08);
}
.free-strip-badge {
  flex: none; margin-top: 2px;
  background: var(--ok); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.free-strip p { margin: 0; font-size: .95rem; }
.free-strip a { font-weight: 600; }

/* --- Trust row ----------------------------------------------------------- */
/* Sits beside anything that asks for money: payment method, one-time price,
   privacy — short, verifiable claims only. */
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 22px;
  margin: 26px auto 0; max-width: 760px;
  color: var(--ink-soft); font-size: .9rem;
}
.trust-row .trust-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.trust-row svg { flex: none; color: var(--ok); }
.trust-row a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Compact variant for inside the payment dialog. */
.trust-row.tight { margin-top: 14px; font-size: .84rem; gap: 6px 16px; }

/* --- Photo picker -------------------------------------------------------- */
.photo-pick {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; cursor: pointer; background: var(--cream);
}
.photo-pick:hover { border-color: var(--saffron); }
.photo-pick img { width: 108px; height: 130px; object-fit: cover; border-radius: 8px; margin: 0 auto 12px; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #E8DCCD; padding: 52px 0 26px; margin-top: 60px; }
.site-footer .footer-trust {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 6px; opacity: .75; font-size: .88rem;
}
.site-footer .footer-trust svg { flex: none; }
.site-footer a { color: #E8DCCD; opacity: .82; font-size: .95rem; }
.site-footer a:hover { opacity: 1; }
.site-footer h4 { color: #fff; font-family: var(--font-ui); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; opacity: .65; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 34px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; opacity: .7; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 940px) {
  .editor { grid-template-columns: 1fr; }
  .editor-preview { position: static; order: -1; }
  .preview-shell canvas { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 44px 0 36px; }
  .nav a { padding: 8px 9px; font-size: .9rem; }
  .nav a.nav-hide-sm { display: none; }
  .card { padding: 20px; }
  .btn { padding: 12px 22px; }

  /* The editor header carries a 3-way language switch plus a reset button,
     which cannot sit beside the brand at 360px. Wrap it onto its own row
     rather than letting the page scroll sideways. */
  .site-header .wrap {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    padding-block: 9px;
    row-gap: 8px;
  }
  .nav {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  .segmented { padding: 3px; }
  .segmented button { padding: 7px 13px; font-size: .87rem; }

  .preview-actions .btn { min-width: 0; }
  .field-row { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .free-strip { flex-direction: column; gap: 10px; padding: 14px 16px; }
  .trust-row { gap: 6px 14px; font-size: .85rem; }
}

/* Below 420px the account pill keeps its icon and drops its label — the
   button must survive, the word can go. */
@media (max-width: 420px) {
  .nav a.nav-account { padding: 7px 10px; }
  .nav a.nav-account .nav-account-label { display: none; }
}

/* Very narrow phones: shed the last of the horizontal padding. */
@media (max-width: 380px) {
  .wrap { padding-inline: 14px; }
  .segmented button { padding: 7px 10px; font-size: .84rem; }
  .btn { padding: 11px 16px; }
}

/* --- Focus --------------------------------------------------------------- */
/* Keyboard users get a ring the brand colour; mouse clicks stay clean. */
.btn:focus-visible, .nav a:focus-visible, .linklike:focus-visible,
.segmented button:focus-visible, .tpl-card:focus-visible {
  outline: 3px solid rgba(212,118,26,.5);
  outline-offset: 2px;
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .preview-actions, .editor-form, .no-print { display: none !important; }
  .editor { grid-template-columns: 1fr; }
  body { background: #fff; }
}

/* Available to screen readers and crawlers, invisible on screen. Used for the
   editor's <h1>, which the layout has no room to show but every page needs. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The English line under a Marathi headline. Present for the many people who
   search in Latin script, but deliberately quieter than the Marathi above it —
   the page is still a Marathi page. */
.h1-sub {
  display: block;
  margin-top: .35em;
  font-family: var(--font-ui);
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-soft);
}
