/* Diya's Mart website: "Artisanal Warm Minimalist". */
:root {
  --bg: #F5F2EB;
  --surface: #FAF8F5;
  --text: #222222;
  --primary: #C85A32;
  --primary-dark: #A8482A;
  --primary-soft: #F3E3D7;
  --olive: #708238;
  --olive-soft: #E9EEDC;
  --muted: #6E6E6E;
  --border: #E4DED4;
  --error: #B84032;
  --charcoal: #2E2A26;
  --radius-card: 16px;
  --radius-lg: 20px;
  --radius-btn: 13px;
  --radius-tag: 8px;
  --heading: "Playfair Display", Lora, Georgia, serif;
  --body: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(34, 34, 34, .04), 0 8px 24px rgba(34, 34, 34, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.section { padding: clamp(40px, 7vw, 88px) 0; }
.section-alt { background: #EFE9DF; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head .section-title { margin: 0; text-align: left; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-light { color: rgba(245, 242, 235, .75); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); }

/* Buttons */
.btn { display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn); border: 1px solid transparent; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-primary { background: var(--primary); color: #FAF8F5; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-olive { background: var(--olive); color: #FAF8F5; }
.btn-olive:hover { background: #5C6B2E; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 242, 235, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 1.25rem var(--heading); }
.brand img, .brand .leaf { border-radius: 8px; }
.brand-light { color: #FAF8F5; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav-menu ul { display: flex; gap: 24px; }
.nav-menu a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu summary { display: none; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu:not([open]) ul { display: flex; }
@media (max-width: 860px) {
  .nav-menu summary { display: grid; gap: 4px; width: 40px; height: 40px; place-content: center; cursor: pointer; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
  .nav-menu summary span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
  .nav-menu ul, .nav-menu:not([open]) ul { display: none; }
  .nav-menu[open] ul { display: grid; gap: 4px; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px 16px; box-shadow: var(--shadow); }
  .nav-menu[open] ul a { display: block; padding: 10px 4px; }
}

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--olive-soft); color: var(--olive); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: var(--radius-tag); margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.trust { color: var(--muted); font-size: .9rem; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-art { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-1 { width: 58%; height: 58%; left: 10%; top: 12%; background: radial-gradient(circle at 40% 35%, #E07A50, var(--primary)); }
.blob-2 { width: 36%; height: 36%; right: 10%; top: 18%; background: radial-gradient(circle at 40% 35%, #93A55A, var(--olive)); }
.blob-3 { width: 30%; height: 30%; right: 22%; bottom: 14%; background: radial-gradient(circle at 40% 35%, #E9C08F, #C9A27E); }
.hero-card { position: absolute; left: 8%; bottom: 8%; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .9rem; }
.hero-card span { color: var(--muted); }

/* PIN checker */
.checker { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; border-color: var(--primary-soft); }
.checker h2 { margin-bottom: 4px; }
.checker p { margin: 0; }
.checker-form { display: flex; gap: 8px; }
.checker-form input { min-height: 48px; width: 200px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-btn); font: 500 1rem var(--body); background: #fff; letter-spacing: .08em; }
.checker-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.checker-result { grid-column: 1 / -1; min-height: 1.6em; font-weight: 600; }
.checker-result.is-good { color: var(--olive); }
.checker-result.is-bad { color: var(--error); }

/* Steps, features, categories */
.steps, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; margin-bottom: 12px; }
.step p, .features p { color: var(--muted); margin: 0; }
.features h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 20px; }
.category-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px; text-align: center; }
.category-card img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 10px; }
.category-card h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.category-card p { font-size: .82rem; color: var(--muted); margin: 0; }

/* Split / app showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { display: grid; gap: 12px; margin: 16px 0 28px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.split-media img { border-radius: var(--radius-lg); }
.phone { width: 240px; margin: auto; aspect-ratio: 9 / 18; border-radius: 34px; background: var(--charcoal); padding: 12px; box-shadow: var(--shadow); }
.phone-screen { height: 100%; border-radius: 24px; background: var(--bg); display: grid; gap: 10px; padding: 18px; align-content: start; }
.phone-screen span { height: 56px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.phone-screen span:first-child { height: 110px; background: linear-gradient(120deg, var(--primary-soft), var(--olive-soft)); }

/* Store buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: var(--radius-btn); background: var(--charcoal); color: #FAF8F5; text-decoration: none; }
.store-btn span { display: grid; line-height: 1.15; font-weight: 600; }
.store-btn small { font-size: .7rem; font-weight: 500; opacity: .8; }
.store-btn:hover { background: #000000cc; }
.store-btn.is-soon { background: var(--surface); color: var(--muted); border: 1px dashed var(--border); cursor: default; }

/* Sellers + CTA */
.sellers { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--olive-soft); border-color: #D9E2C4; }
.sellers p { color: #4E5A26; max-width: 56ch; }
.sellers img { border-radius: var(--radius-card); }
.cta { text-align: center; background: var(--charcoal); color: #FAF8F5; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px) 24px; }
.cta p { color: rgba(245, 242, 235, .8); }
.cta .store-buttons { justify-content: center; }
.cta .store-btn { background: var(--primary); }
.cta .store-btn.is-soon { background: transparent; color: rgba(245, 242, 235, .7); border-color: rgba(245, 242, 235, .3); }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.4rem; color: var(--primary); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Blog */
.page-head { padding-bottom: 0; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.post-card a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card img, .post-cover-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-cover-placeholder { display: grid; place-items: center; background: linear-gradient(120deg, var(--primary-soft), var(--olive-soft)); }
.post-body { padding: 18px 20px 22px; }
.post-body h3 { font-size: 1.2rem; }
.post-body p:last-child { color: var(--muted); margin: 0; }
.post-meta { color: var(--muted); font-size: .85rem; }
.post-title { margin-top: 8px; }
.post-cover { border-radius: var(--radius-lg); margin: 24px 0 32px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-cta { margin-top: 48px; background: var(--primary-soft); border-color: #EBCDB8; }
.preview-banner { background: #F8EBD8; border: 1px solid #EBCDB8; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; }
.pagination a { font-weight: 600; }

/* Long-form content (blog posts, policy pages) */
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; font-family: var(--body); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-card); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--primary); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.contact-card { margin-top: 32px; }
.contact-list { display: grid; gap: 8px; margin-bottom: 16px; }

/* Footer */
.site-footer { background: var(--charcoal); color: #FAF8F5; padding: 56px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-title { font-family: var(--body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(245, 242, 235, .6); }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #FAF8F5; text-decoration: none; }
.site-footer a:hover { color: #F0B79C; }
.social { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-bottom { border-top: 1px solid rgba(245, 242, 235, .15); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: rgba(245, 242, 235, .6); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .steps, .features, .post-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .checker { grid-template-columns: 1fr; }
  .checker-form input { flex: 1; width: auto; min-width: 0; }
  .sellers { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 420px) { .site-header .btn-sm { padding: 0 12px; font-size: .85rem; } }
