/* Postwala — warm paper, hard ink borders, offset shadow cards.
   Mobile-first (375px), then desktop. */

@font-face { font-family: "Geist Sans"; src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Sans"; src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Sans"; src: url("/assets/fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Sans"; src: url("/assets/fonts/Geist-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/assets/fonts/NotoSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/assets/fonts/NotoSans-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("/assets/fonts/NotoSansDevanagari-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("/assets/fonts/NotoSansDevanagari-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #FFF6E6;
  --ink: #1B1209;
  --saffron: #E8590C;
  --green: #0B6B4F;
  --line: #1B1209;
  --muted: #6b5a49;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --font-sans: "Geist Sans", "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --font-deva: "Noto Sans Devanagari", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.4em; font-weight: 900; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.page { padding-top: 24px; padding-bottom: 56px; }

.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; }

.muted { color: var(--muted); }
code { background: rgba(27, 18, 9, 0.07); padding: 1px 6px; border-radius: 4px; }

/* ---- header ---- */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--saffron); color: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-deva); font-weight: 700; font-size: 20px; border-radius: 4px;
}
.brand-name { font-weight: 900; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 6px; border: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); background: #fff; }

/* ---- buttons ---- */
.btn {
  display: inline-block; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 800; font-family: inherit; font-size: 16px;
  cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); line-height: 1.1; text-align: center;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-danger { background: #B00020; color: #fff; }
.btn-big { font-size: 18px; padding: 16px 24px; }
.btn-small { padding: 8px 12px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }

/* ---- cards ---- */
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow);
  padding: 18px;
}
.card-title { font-size: 18px; margin-top: 0; }
.section { margin: 40px 0; }
.section-title { font-size: 26px; margin-bottom: 16px; }

/* ---- hero ---- */
.hero { display: grid; gap: 24px; padding: 24px 0 8px; }
.hero-copy .eyebrow { margin-bottom: 12px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--ink);
}
.hero-title { font-size: 46px; margin: 0 0 8px; }
.accent-word { color: var(--saffron); }
.hero-hindi { font-family: var(--font-deva); font-weight: 700; font-size: 26px; margin: 4px 0 12px; color: var(--green); }
.hero-sub { font-size: 18px; max-width: 34em; }
.hero-form { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; max-width: 460px; }
.hero-note { color: var(--muted); font-size: 14px; }
.hero-card { padding: 14px; }
.hero-card-head { font-weight: 800; margin-bottom: 10px; }
.sample-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.sample-poster { flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 6px; }

/* ---- how it works ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px;
  background: var(--green); color: #fff; border: 2px solid var(--ink); border-radius: 50%; font-weight: 900; box-shadow: 3px 3px 0 var(--ink);
}

/* ---- plans ---- */
.plan-grid { display: grid; gap: 16px; }
.plan-name { font-size: 20px; }
.plan-price { font-size: 34px; font-weight: 900; }
.plan-per { font-size: 16px; font-weight: 700; color: var(--muted); }
.plan-quotas { margin: 8px 0 16px; padding-left: 20px; }

/* ---- calendar ---- */
.cal-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.cal-tile { background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 10px; box-shadow: var(--shadow-sm); }
.cal-date { font-weight: 900; font-size: 22px; display: flex; flex-direction: column; }
.cal-date span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.cal-name { font-weight: 700; font-size: 14px; margin-top: 4px; }

/* ---- faq ---- */
.faq-list details { margin-bottom: 12px; }
.faq-list summary { cursor: pointer; font-weight: 800; }

/* ---- forms ---- */
label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 14px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; padding: 12px; margin-top: 4px; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 8px;
}
input[type="color"] { width: 48px; height: 40px; padding: 2px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
.stack-form { display: flex; flex-direction: column; gap: 4px; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check-row input { width: auto; }

/* ---- kit page ---- */
.kit-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.kit-name { font-size: 36px; margin: 8px 0 2px; }
.kit-tagline { font-size: 18px; }
.kit-mark {
  display: grid; place-items: center; width: 84px; height: 84px; flex: 0 0 auto;
  background: var(--saffron); color: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow);
  font-size: 30px; font-weight: 900; border-radius: 10px;
}
.kit-mark.small { width: 56px; height: 56px; font-size: 20px; box-shadow: var(--shadow-sm); }
.kit-grid { display: grid; gap: 16px; }
.kit-samples { margin: 32px 0; }
.sample-grid { display: grid; gap: 16px; }
.sample { margin: 0; }
.sample img { border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow-sm); width: 100%; }
.sample figcaption { font-weight: 700; font-size: 14px; margin-top: 6px; }
.swatch-row { display: flex; gap: 10px; margin-bottom: 12px; }
.swatch { display: inline-block; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }
.colour-fieldset, .radio-fieldset { border: 2px solid var(--ink); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.colour-fieldset legend, .radio-fieldset legend { font-weight: 800; padding: 0 6px; }
.colour-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.colour-row span { min-width: 88px; }
.font-list dt { font-weight: 800; }
.font-list dd { margin: 0 0 8px 16px; }
.lock-section { margin: 32px 0; }
.checkout-panel { margin-top: 16px; border-top: 2px dashed var(--ink); padding-top: 16px; }
.radio-card { display: flex; align-items: center; gap: 10px; border: 2px solid transparent; border-radius: 8px; padding: 8px; margin-bottom: 6px; }
.radio-card:has(input:checked) { border-color: var(--saffron); background: #fff7ed; }
.radio-card input { width: auto; }

/* ---- auth ---- */
.auth { display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: 100%; max-width: 440px; }
.flash { padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; }
.flash.error { background: #ffe4e1; }
.flash.ok { background: #e6f4ec; }

/* ---- dashboard ---- */
.dash-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.dash-title { font-size: 30px; margin-bottom: 2px; }
.quota-grid { display: grid; gap: 16px; margin-bottom: 8px; }
.meter-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; }
.meter-track { height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; margin-top: 6px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--green); }
.kit-card { display: flex; gap: 14px; align-items: center; }
.draft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.draft-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.draft-thumb { border: 2px solid var(--ink); border-radius: 6px; }
.draft-info { display: flex; flex-direction: column; gap: 6px; }
.report-form { grid-column: 1 / -1; border-top: 2px dashed var(--ink); padding-top: 10px; }
.report-panel textarea { margin-top: 4px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); font-size: 12px; font-weight: 800; background: #fff; }
.chip-pending_approval { background: #fff3d6; }
.chip-approved { background: #e6f4ec; }
.chip-sent { background: #e6f4ec; }
.chip-qa_failed, .chip-rejected { background: #ffe4e1; }
.chip-none { background: #f0ece4; }
.maker .maker-fields { border-left: 3px solid var(--green); padding-left: 12px; margin: 10px 0; }
.policy-note { font-size: 13px; color: var(--muted); }
.addon-grid { display: grid; gap: 10px; }
.addon-grid form { margin: 0; }
.addon-grid .btn { width: 100%; }
.cross-sell { display: grid; gap: 12px; margin-top: 32px; }
.cross-card { display: block; font-weight: 800; color: var(--ink); text-decoration: none; }
.cross-card:hover { color: var(--saffron); }

/* ---- admin ---- */
.admin-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.admin-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.report-text { white-space: pre-wrap; font-size: 14px; color: var(--muted); }
.admin-actions { display: flex; gap: 12px; margin-top: 16px; }
.preview-card img, .preview-card video { border: 2px solid var(--ink); border-radius: 8px; }

/* ---- legal ---- */
.legal { max-width: 720px; }

/* ---- footer ---- */
.site-foot { border-top: 2px solid var(--ink); margin-top: 48px; padding: 24px 0 40px; }
.foot-grid { display: grid; gap: 16px; }
.foot-brand p { margin: 0 0 6px; }
.foot-legal { font-size: 13px; color: var(--muted); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--ink); font-weight: 700; }

/* ---- motion ---- */
.btn, .brand-mark, .card, .site-nav a { transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- desktop ---- */
@media (min-width: 760px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
  .hero-title { font-size: 64px; }
  .hero-hindi { font-size: 30px; }
  .hero-form { flex-direction: row; }
  .hero-form input { flex: 1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .kit-grid { grid-template-columns: 1.2fr 1fr; }
  .sample-grid { grid-template-columns: repeat(3, 1fr); }
  .quota-grid { grid-template-columns: repeat(2, 1fr); }
  .draft-row { grid-template-columns: auto 1fr auto; }
  .report-form { grid-column: auto; border-top: none; padding-top: 0; }
  .addon-grid { grid-template-columns: repeat(3, 1fr); }
  .cross-sell { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr auto; align-items: end; }
}

/* layout fixes: grid children may shrink, form input fills row */
.hero > * { min-width: 0; }
.hero-form input { min-width: 0; width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: inherit; font-size: 17px; }
.hero-card { min-width: 0; max-width: 100%; }
.sample-strip { max-width: 100%; }
.sample-poster { flex: 0 0 150px; width: 150px; height: auto; border: 2px solid var(--ink); border-radius: 8px; }
@media (max-width: 480px) { .site-nav a[href="/"] { display: none; } .site-nav a { padding: 8px 8px; font-size: 14px; } }
.card input[type=text], .card input[type=email], .card input[type=tel], .card input[type=password], .card select, .card textarea { width: 100%; max-width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; margin: 4px 0 12px; }
.card label { display: block; font-weight: 700; }
.kit-logo { display: grid; place-items: center; background: #fff; padding: 8px; }
.kit-logo img { max-width: 88px; max-height: 88px; object-fit: contain; }
.dash-head, .kit-head { flex-wrap: wrap; min-width: 0; }
.dash-title, .kit-name { overflow-wrap: anywhere; font-size: clamp(20px, 6vw, 30px); }
.dash-head > *, .kit-head > * { min-width: 0; max-width: 100%; }
form label { display: block; font-weight: 700; margin-bottom: 4px; }
form label input, form label select, form label textarea { display: block; width: 100%; max-width: 100%; margin-top: 4px; }
form label input[type=checkbox], form label input[type=radio] { display: inline-block; width: auto; margin: 0 8px 0 0; }
html, body { overflow-x: hidden; }
