/* Home page, "Gold Dial" direction (Novamira design: gold-dial). */
@font-face {
	font-family: 'Archivo';
	src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.m30h {
	--bg: #f6f5ef;
	--surface: #ffffff;
	--ink: #0b0f0e;
	--accent: #d99a12;
	--dial: #101816;
	--dial-soft: #1f2a27;
	--gold-light: #fde463;
	--muted: #4a5652;
	--line: #e6e3d6;
	--gain: #087f3a;
	--loss: #c62828;
	--gain-on-dark: #5fe08f;
	--loss-on-dark: #ff8a8a;
	--gain-tint: #e3f4ea;
	--gain-ink: #066b3a;
	--on-dark: #f6f5ef;
	--on-dark-muted: #b9c2bd;
	--line-dark: rgba(246, 245, 239, 0.12);
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
}
.m30h :where(h1, h2, h3, p, ol, ul, li, figure, dl, dt, dd, details, summary) { margin: 0; padding: 0; border: 0; }
.m30h :where(ol, ul) { list-style: none; }
.m30h :where(h1, h2, h3) { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; color: inherit; }
.m30h a { color: inherit; }
.m30h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m30h-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.m30h-gold { color: var(--accent); }
.m30h h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

/* Buttons and links */
.m30h .m30h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border-radius: 8px; font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; transition: background-color 0.15s, transform 0.1s; }
.m30h .m30h-btn:active { transform: translateY(1px); }
.m30h .m30h-btn:focus-visible, .m30h a:focus-visible, .m30h summary:focus-visible, .m30h input:focus-visible, .m30h button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.m30h .m30h-btn-gold { background: var(--accent); color: var(--dial); box-shadow: 0 10px 30px rgba(217, 154, 18, 0.28); }
.m30h .m30h-btn-gold:hover { background: var(--gold-light); color: var(--dial); }
.m30h .m30h-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.m30h .m30h-link:hover { text-decoration-color: currentColor; }

/* Hero */
.m30h-hero {
	position: relative;
	z-index: 1;
	background: radial-gradient(55% 75% at 78% 45%, rgba(217, 154, 18, 0.22), transparent 65%), var(--dial);
	color: var(--on-dark);
	padding: 72px 0 72px;
}
.m30h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.m30h-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.m30h-lede { margin-top: 20px; max-width: 44ch; font-size: 1.15rem; color: var(--on-dark-muted); }
.m30h-emblem { justify-self: end; }
.m30h-emblem img { display: block; width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.45)); }

.m30h-search { display: flex; gap: 8px; margin-top: 28px; max-width: 520px; padding: 6px; border-radius: 12px; background: rgba(246, 245, 239, 0.06); border: 1px solid rgba(217, 154, 18, 0.45); }
.m30h .m30h-search input[type="text"] { box-shadow: none; flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--on-dark); font: inherit; font-size: 1.05rem; text-transform: uppercase; }
.m30h .m30h-search input[type="text"]::placeholder { color: var(--on-dark-muted); text-transform: none; opacity: 1; }
.m30h .m30h-search input[type="text"]:focus { outline: none; }
.m30h-search:focus-within { border-color: var(--gold-light); }
.m30h-search button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--on-dark); color: var(--dial); font: inherit; font-weight: 700; cursor: pointer; }
.m30h-search button:hover { background: var(--gold-light); }
/* Search result: a large status pill, not a line of small text. */
.m30h-search-result { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 20px 12px 12px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(246, 245, 239, 0.06); font-size: 1.1rem; font-weight: 600; color: var(--on-dark-muted); max-width: 100%; flex-wrap: wrap; }
.m30h-search-result:empty { display: none; }
.m30h-search-result.is-loading { padding-left: 20px; }
.m30h-search-result strong { color: var(--on-dark); font-size: 1.25rem; font-weight: 800; letter-spacing: 0.05em; }
.m30h-result-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 1.15rem; font-weight: 800; flex: none; }
.m30h-search-result.is-halal { background: rgba(95, 224, 143, 0.14); border-color: rgba(95, 224, 143, 0.55); color: var(--gain-on-dark); }
.m30h-search-result.is-halal .m30h-result-icon { background: var(--gain-on-dark); color: var(--dial); }
.m30h-search-result.is-haram { background: rgba(255, 138, 138, 0.12); border-color: rgba(255, 138, 138, 0.5); color: var(--loss-on-dark); }
.m30h-search-result.is-haram .m30h-result-icon { background: var(--loss-on-dark); color: var(--dial); }
.m30h-search-result.is-missing { background: rgba(217, 154, 18, 0.12); border-color: rgba(217, 154, 18, 0.5); color: var(--on-dark); }
.m30h-search-result.is-missing .m30h-result-icon { background: var(--accent); color: var(--dial); }
.m30h-search-result a { color: var(--gold-light); font-weight: 700; }

.m30h-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.m30h-micro { font-size: 0.9rem; color: var(--on-dark-muted); }

/* Ticker of real halal symbols */
.m30h-ticker { background: var(--dial-soft); border-block: 1px solid rgba(217, 154, 18, 0.3); overflow: hidden; }
.m30h-ticker-track { display: flex; width: max-content; animation: m30h-scroll 90s linear infinite; }
.m30h-ticker:hover .m30h-ticker-track { animation-play-state: paused; }
.m30h-ticker ul { display: flex; }
.m30h-ticker li { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-right: 1px solid var(--line-dark); white-space: nowrap; }
.m30h-ticker li span { color: var(--on-dark); font-weight: 800; letter-spacing: 0.06em; }
.m30h-ticker li em { font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(95, 224, 143, 0.14); color: var(--gain-on-dark); }
@keyframes m30h-scroll { to { transform: translateX(-50%); } }

/* Stats */
.m30h-stats { background: var(--dial); color: var(--on-dark); padding: 40px 0; }
.m30h-stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m30h-stat-row div { padding: 4px 24px; border-left: 1px solid var(--line-dark); display: flex; flex-direction: column-reverse; gap: 4px; }
.m30h-stat-row div:first-child { border-left: 0; padding-left: 0; }
.m30h-stat-row dd { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.m30h-stat-row dt { font-size: 0.9rem; color: var(--on-dark-muted); }

/* Routine */
.m30h-routine { padding: 104px 0 88px; }
.m30h-routine-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.m30h-routine-head { position: sticky; top: 110px; }
.m30h-routine-head p { margin-top: 16px; max-width: 40ch; color: var(--muted); }
.m30h-steps { counter-reset: step; }
.m30h-steps li { counter-increment: step; position: relative; padding: 26px 0 26px 64px; border-top: 1px solid var(--line); }
.m30h-steps li:last-child { border-bottom: 1px solid var(--line); }
.m30h-steps li::before { content: counter(step); position: absolute; left: 0; top: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--dial); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.m30h-steps h3 { font-size: 1.3rem; }
.m30h-steps p { margin: 6px 0 10px; max-width: 58ch; color: var(--muted); }
.m30h-steps a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Try the calculator */
.m30h-try { background: radial-gradient(45% 80% at 10% 0%, rgba(217, 154, 18, 0.14), transparent 60%), var(--dial); color: var(--on-dark); padding: 96px 0; }
.m30h-try-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.m30h-try-head p { margin-top: 16px; max-width: 40ch; color: var(--on-dark-muted); }
.m30h-calc { background: var(--dial-soft); border: 1px solid rgba(217, 154, 18, 0.35); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.m30h-calc-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.m30h-calc-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--on-dark-muted); }
.m30h .m30h-calc-inputs input[type="number"] { box-shadow: none; min-height: 48px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-dark); background: var(--dial); color: var(--on-dark); font: inherit; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; width: 100%; }
.m30h .m30h-calc-inputs input[type="number"]:focus { outline: none; border-color: var(--accent); }
.m30h-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m30h-side { border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; background: var(--dial); border-left: 4px solid; font-variant-numeric: tabular-nums; }
.m30h-side strong { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.m30h-side b { color: var(--on-dark); }
.m30h-side-long { border-color: var(--gain-on-dark); }
.m30h-side-long strong { color: var(--gain-on-dark); }
.m30h-side-short { border-color: var(--loss-on-dark); }
.m30h-side-short strong { color: var(--loss-on-dark); }
.m30h-note { margin-top: 14px; font-size: 0.85rem; color: var(--on-dark-muted); }

/* Tools bento: 4 tiles, 4 cells */
.m30h-tools { padding: 96px 0; }
.m30h-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: 'journal journal rules' 'money short short'; gap: 16px; margin-top: 36px; }
.m30h-tile { border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.m30h-tile h3 { font-size: 1.35rem; }
.m30h-tile p { color: var(--muted); }
.m30h-tile .m30h-link { margin-top: auto; }
.m30h-tile-journal { grid-area: journal; background: var(--surface); border: 1px solid var(--line); }
.m30h-formula { font-weight: 700; color: var(--ink) !important; background: var(--bg); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.m30h-tile-rules { grid-area: rules; background: var(--gain-tint); }
.m30h-ticks { display: grid; gap: 10px; }
.m30h-ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.m30h-ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px; background: var(--gain); }
.m30h-ticks li::after { content: ''; position: absolute; left: 6px; top: 6px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.m30h-tile-money { grid-area: money; background: var(--surface); border: 1px solid var(--line); }
.m30h-tile-short { grid-area: short; background: var(--dial-soft); color: var(--on-dark); }
.m30h-tile-short p { color: var(--on-dark-muted); }

/* Halal method */
.m30h-method { background: var(--dial-soft); color: var(--on-dark); padding: 88px 0; }
.m30h-method-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.m30h-method-list { display: grid; gap: 0; }
.m30h-method-list li { padding: 20px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.m30h-method-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.m30h-method-list strong { display: block; color: var(--on-dark); font-size: 1.15rem; margin-bottom: 4px; }

/* FAQ */
.m30h-faq { padding: 96px 0; }
.m30h-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.m30h-faq-list details { border-top: 1px solid var(--line); }
.m30h-faq-list details:last-child { border-bottom: 1px solid var(--line); }
.m30h-faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.1rem; }
.m30h-faq-list summary::-webkit-details-marker { display: none; }
.m30h-faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--dial); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.m30h-faq-list details[open] summary::after { content: '\2212'; }
.m30h-faq-list details p { padding: 0 0 20px; max-width: 62ch; color: var(--muted); }

/* Closing band */
.m30h-close { background: var(--dial); color: var(--on-dark); padding: 72px 0; }
.m30h-close-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.m30h-close h2 { max-width: 20ch; }

/* Sticky mobile CTA */
.m30h-sticky { display: none; }

@media (max-width: 960px) {
	.m30h-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'journal journal' 'rules money' 'short short'; }
	.m30h-routine-grid, .m30h-try-grid, .m30h-method-grid, .m30h-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.m30h-routine-head { position: static; }
	.m30h-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
	.m30h-stat-row div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
	.m30h-hero { padding: 48px 0 48px; }
	.m30h-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.m30h-emblem { justify-self: center; order: -1; }
	.m30h-emblem img { max-width: 200px; }
	.m30h-routine, .m30h-tools, .m30h-faq { padding: 64px 0; }
	.m30h-try, .m30h-method { padding: 64px 0; }
}
@media (max-width: 600px) {
	.m30h { font-size: 16px; }
	.m30h-wrap { padding: 0 16px; }
	.m30h-emblem { display: none; }
	.m30h-hero { padding: 40px 0 44px; }
	.m30h-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'journal' 'rules' 'money' 'short'; }
	.m30h-tile { padding: 22px; }
	.m30h-calc { padding: 18px; }
	.m30h-calc-inputs { grid-template-columns: minmax(0, 1fr); }
	.m30h-sides { grid-template-columns: minmax(0, 1fr); }
	.m30h-steps li { padding-left: 54px; }
	.m30h-cta .m30h-btn { flex: 1 1 100%; }
	.m30h-micro { width: 100%; text-align: center; }
	.m30h-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(16, 24, 22, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(217, 154, 18, 0.35); color: var(--on-dark); font-weight: 600; font-size: 0.95rem; transform: translateY(110%); transition: transform 0.25s ease; }
	.m30h-sticky[hidden] { display: none; }
	.m30h-sticky.is-on { transform: none; }
	.m30h-sticky .m30h-btn { min-height: 44px; padding: 10px 16px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
	.m30h-ticker-track { animation: none; }
	.m30h-ticker { overflow-x: auto; }
	.m30h .m30h-btn, .m30h-sticky { transition: none; }
}

/* Calculator sits right under the hero: both dark, so share the ground. */
.m30h-hero + .m30h-try { padding-top: 32px; }

/* Request a review */
.m30h .m30h-req-btn { margin-left: 4px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--dial); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.m30h .m30h-req-btn:hover { background: var(--gold-light); }
.m30h .m30h-req-btn:disabled { opacity: 0.7; cursor: wait; }
.m30h-search-result.is-form { border-radius: 16px; padding: 14px; width: 100%; max-width: 520px; }
.m30h-req-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.m30h-req-label { flex: 1 1 100%; font-size: 1rem; }
.m30h .m30h-req-form input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid rgba(217, 154, 18, 0.5); border-radius: 999px; background: var(--dial); color: var(--on-dark); font: inherit; font-size: 1rem; box-shadow: none; }
.m30h .m30h-req-form input[type="email"]::placeholder { color: var(--on-dark-muted); opacity: 1; }
.m30h .m30h-req-form input[type="email"]:focus { outline: none; border-color: var(--gold-light); }
.m30h .m30h-req-form .m30h-req-btn { margin-left: 0; min-height: 44px; }
.m30h-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.m30h-req-err { flex: 1 1 100%; color: var(--loss-on-dark); font-size: 0.9rem; }

/* Hero: copy left, live calculator right (replaces the big emblem). */
.m30h-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.m30h-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.m30h-hero .m30h-calc { justify-self: end; width: 100%; max-width: 560px; }
.m30h-calc-title { margin: 0 0 16px; font-size: 1.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--on-dark); }
@media (max-width: 960px) {
	.m30h-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.m30h-hero .m30h-calc { justify-self: stretch; max-width: none; }
}
@media (max-width: 600px) {
	.m30h-hero .m30h-calc-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.m30h-hero .m30h-calc-inputs label { font-size: 0.75rem; }
	.m30h .m30h-hero .m30h-calc-inputs input[type="number"] { font-size: 1.05rem; padding: 0 10px; min-height: 44px; }
	.m30h-hero .m30h-sides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.m30h-hero .m30h-side { padding: 12px; font-size: 0.88rem; }
	.m30h-calc-title { font-size: 1.05rem; }
}
