/* Maroc Web Agency — main stylesheet */

@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Kufi";
	src: url("../fonts/kufi-arabic.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face { font-family: "Receipt"; src: url("../fonts/mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Receipt"; src: url("../fonts/mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--ink: #161935;        /* medina night */
	--ink-2: #1f2347;      /* raised surface */
	--ink-3: #2a2f5c;      /* borders, tracks */
	--text: #eeecf6;
	--muted: #a9a7c7;
	--saffron: #f4b740;    /* actions, money kept */
	--saffron-2: #ffcd6b;
	--pom: #f2645c;        /* money lost */
	--mint: #4fd6a0;       /* money kept */
	--paper: #fbf6ea;      /* receipt */
	--paper-ink: #2b2620;
	--paper-line: #d9cfb8;

	--font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Receipt", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--wrap: 1120px;
	--gutter: clamp(16px, 4vw, 32px);
	--r-sm: 8px;
	--r: 14px;
	--r-lg: 22px;
}
/* Arabic: Kufi for Arabic letters, Bricolage still draws Latin words and digits. */
:lang(ar) { --font: "Kufi", "Bricolage", system-ui, sans-serif; --mono: "Kufi", "Receipt", ui-monospace, monospace; }
:lang(ar) body { line-height: 1.75; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .promise, :lang(ar) .answer-big, :lang(ar) .price strong, :lang(ar) .receipt-lines .total dd { letter-spacing: 0; line-height: 1.35; }
:lang(ar) .hero-title { font-size: clamp(2.3rem, 6.4vw, 4.6rem); }
:lang(ar) .stamp { letter-spacing: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 62ch; }
.section { padding-block: clamp(56px, 8vw, 100px); }
.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); }

.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 50; background: var(--saffron); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.3em;
	background: var(--saffron); color: var(--ink);
	font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
	border: 2px solid var(--saffron); border-radius: var(--r-sm);
	transition: background .15s, transform .15s;
}
.btn:hover { background: var(--saffron-2); border-color: var(--saffron-2); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ink-3); }
.btn-ghost:hover { background: var(--ink-2); border-color: var(--muted); }
.btn-lg { min-height: 56px; font-size: 1.125rem; padding-inline: 1.6em; }
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: .95rem; }

/* Banner + header */
.banner { background: var(--saffron); color: var(--ink); font-size: .95rem; text-align: center; }
.banner p { margin: 0; padding-block: .55em; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-3); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; margin: 0; }
.logo-mark { width: 30px; height: 30px; color: var(--saffron); flex: none; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: .97rem; }
.nav a:hover { color: var(--text); }
.header-end { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.nav + .header-end { margin-inline-start: 8px; }
.lang-switch { display: flex; border: 1px solid var(--ink-3); border-radius: var(--r-sm); overflow: hidden; }
.lang-switch a { padding: .35em .6em; font-size: .85rem; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current] { background: var(--ink-3); color: var(--text); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 480px) { .site-header .btn-sm { display: none; } }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px); text-align: center; }
.hero-title { font-size: clamp(2.6rem, 7.4vw, 5.4rem); letter-spacing: -0.035em; max-width: 17ch; margin-inline: auto; font-variation-settings: "opsz" 96; }
.hero-lead { margin: 1.4em auto 2em; font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-guarantee { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: .5em 1em .5em .6em; border-radius: 999px; background: color-mix(in srgb, var(--saffron) 14%, transparent); color: var(--saffron-2); text-decoration: none; font-weight: 600; font-size: .98rem; }
.hero-guarantee svg { width: 26px; height: 26px; color: var(--saffron); flex: none; }
.hero-guarantee:hover { background: color-mix(in srgb, var(--saffron) 22%, transparent); }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--muted); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* Calculator */
.calc-section { background: linear-gradient(var(--ink), var(--ink-2) 30%, var(--ink-2) 70%, var(--ink)); }
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); margin-top: 40px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.calc-inputs { display: grid; gap: 22px; padding: 28px; border: 1px solid var(--ink-3); border-radius: var(--r-lg); background: var(--ink); }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.field label span { color: var(--text); font-size: 1rem; }
.field output { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--saffron-2); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--saffron) var(--fill), var(--ink-3) var(--fill)); }
[dir="rtl"] input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--saffron) var(--fill), var(--ink-3) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--ink-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--saffron); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--text); border: 4px solid var(--saffron); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--saffron); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--saffron) 45%, transparent); }

.calc-results { display: grid; gap: 20px; }

.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field-label { margin: 0; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: .4em .9em; border: 1px solid var(--ink-3); border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; }
.segmented label:hover span { border-color: var(--muted); }
.segmented input:checked + span { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }

.calc-more { border-top: 1px solid var(--ink-3); padding-top: 16px; }
.calc-more summary { cursor: pointer; color: var(--muted); font-size: .95rem; list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.calc-more summary::-webkit-details-marker { display: none; }
.calc-more summary::before { content: "+"; color: var(--saffron); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.calc-more[open] summary::before { content: "−"; }
.calc-more[open] summary { margin-bottom: 18px; }
.calc-more .field + .field { margin-top: 22px; }

.answer { padding: 22px 24px; border-radius: var(--r-lg); background: var(--ink); border: 1px solid var(--ink-3); }
.answer p { margin: 0; color: var(--muted); }
.answer-label { color: var(--text) !important; font-weight: 700; margin-bottom: 4px !important; }
.answer-big { color: var(--mint) !important; font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.4rem); text-wrap: balance; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px !important; }
.answer .segmented { margin-block: 12px; }
.answer-keep { color: var(--text) !important; font-size: 1.15rem; }
.answer-keep strong { color: var(--mint); }
.fineprint { font-size: .85rem; margin: 0; color: var(--muted); }

/* The receipt */
.receipt {
	position: relative;
	background: var(--paper); color: var(--paper-ink);
	font-family: var(--mono); font-size: .95rem;
	padding: 28px 28px 36px;
	border-radius: 4px 4px 0 0;
	transform: rotate(-.6deg);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
	--zig: 12px;
	-webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
	        mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
}
[dir="rtl"] .receipt { transform: rotate(.6deg); }
.receipt-head { border-bottom: 2px dashed var(--paper-line); padding-bottom: 14px; margin-bottom: 14px; padding-inline-end: 112px; } /* room for the stamp */
.receipt-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.receipt-period { margin: 0; color: #7a705f; font-size: .85rem; }
.receipt-lines { margin: 0; }
.receipt-lines div { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.receipt-lines dt { color: #5c5447; }
.receipt-lines dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt-lines .total { border-top: 2px dashed var(--paper-line); margin-top: 8px; padding-top: 14px; align-items: baseline; }
.receipt-lines .total dt { color: var(--paper-ink); font-weight: 700; }
.receipt-lines .total dd { color: #c9372f; font-size: clamp(1.5rem, 3.6vw, 2.1rem); letter-spacing: -0.02em; }
.receipt-lines .sub dd { color: #c9372f; }
.stamp {
	position: absolute; inset-inline-end: 22px; top: 22px;
	font-family: var(--font); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em;
	color: #c9372f; border: 3px solid #c9372f; border-radius: 8px; padding: .05em .45em;
	transform: rotate(-12deg); opacity: .82;
	mix-blend-mode: multiply;
}
.receipt.bump .total dd { animation: bump .35s ease-out; }
@keyframes bump { 0% { transform: scale(1.06); } 100% { transform: scale(1); } }


/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: 28px; border-radius: var(--r-lg); }
.compare-col h3 { font-size: 1.35rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare-col li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.compare-col li::before { font-weight: 800; line-height: 1.6; text-align: center; }
.without { background: color-mix(in srgb, var(--pom) 12%, var(--ink)); border: 1px solid color-mix(in srgb, var(--pom) 35%, transparent); }
.without h3 { color: var(--pom); }
.without li::before { content: "✕"; color: var(--pom); }
.with { background: color-mix(in srgb, var(--mint) 10%, var(--ink)); border: 1px solid color-mix(in srgb, var(--mint) 35%, transparent); }
.with h3 { color: var(--mint); }
.with li::before { content: "✓"; color: var(--mint); }

/* Tabs */
.tabs { margin-top: 36px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-list button { font: inherit; font-weight: 600; font-size: .98rem; color: var(--muted); background: transparent; border: 1px solid var(--ink-3); border-radius: 999px; padding: .5em 1.1em; cursor: pointer; }
.tab-list button:hover { color: var(--text); border-color: var(--muted); }
.tab-list button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; padding: clamp(24px, 4vw, 40px); background: var(--ink-2); border-radius: var(--r-lg); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 760px) { .tab-panel { grid-template-columns: 1fr; } }
.stats { margin: 0; display: grid; gap: 14px; align-content: start; }
.stats div { padding: 18px 20px; border-radius: var(--r); background: var(--ink); }
.stats dt { color: var(--muted); font-size: .92rem; }
.stats dd { margin: 0; font-weight: 800; font-size: 1.45rem; color: var(--mint); line-height: 1.2; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--saffron); font-weight: 800; text-align: center; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--ink-3); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-2); color: var(--saffron); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; }

/* Guarantee */
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg); background: var(--ink-2); border: 2px solid var(--saffron); }
@media (max-width: 760px) { .guarantee { grid-template-columns: 1fr; justify-items: start; } }
.seal { position: relative; width: clamp(150px, 20vw, 220px); aspect-ratio: 1; }
.seal svg { width: 100%; height: 100%; }
.seal span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--ink); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1; letter-spacing: -0.02em; padding: 22%; }
.promise { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--saffron-2); text-wrap: balance; }
.guarantee-body > p:not(.promise) { color: var(--muted); max-width: 60ch; }
.guarantee-body h3 { font-size: 1.05rem; margin-top: 1.4em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; margin-top: 44px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--ink-3); }
.plan.featured { border: 2px solid var(--saffron); }
.plan h3 { font-size: 1.6rem; margin-bottom: .2em; }
.plan .badge { position: absolute; top: -14px; inset-inline-start: 28px; margin: 0; background: var(--saffron); color: var(--ink); font-weight: 700; font-size: .85rem; padding: .25em .8em; border-radius: 999px; }
.price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: clamp(2.2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--muted); }
.setup { color: var(--muted); margin-bottom: 22px; }
.setup s { color: var(--muted); text-decoration-color: var(--pom); text-decoration-thickness: 2px; }
.setup strong { color: var(--mint); }
.plan .ticks { margin-bottom: 28px; flex: 1; }
.plan .btn { width: 100%; }
.pricing-notes { text-align: center; margin-top: 28px; font-size: .95rem; }
.pricing-notes p { margin: 0 auto .4em; max-width: 64ch; }
.offer-note { color: var(--saffron-2); font-weight: 600; }

/* Founder */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--ink-2); }
.founder h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.founder p { color: var(--muted); }
.founder p:last-child { margin-bottom: 0; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: var(--ink); font-weight: 800; font-size: 1.8rem; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--ink-3); }
.faq details { border-bottom: 1px solid var(--ink-3); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--saffron); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 65ch; }

/* Final */
.final { text-align: center; }
.final-title { font-size: clamp(2.2rem, 5.6vw, 4rem); letter-spacing: -0.03em; max-width: 16ch; margin-inline: auto; }
.final .btn { margin: 12px 0 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--ink-3); padding-block: 40px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer-row p { margin: 0 0 .3em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Home chooser */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .choose { grid-template-columns: 1fr; } }
.choose a { display: block; padding: 32px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--ink-3); text-decoration: none; }
.choose a:hover { border-color: var(--saffron); }
.choose h2 { font-size: 1.8rem; }
.choose p { color: var(--muted); margin: 0; }

.prose { max-width: 70ch; }

/* Book-a-call popup */
.modal { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--ink-3); border-radius: var(--r-lg); background: var(--ink-2); color: var(--text); overflow: auto; }
.modal::backdrop { background: rgba(8, 9, 24, .72); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal-inner { position: relative; padding: clamp(24px, 5vw, 40px); }
.modal h2 { font-size: clamp(1.5rem, 4vw, 2rem); padding-inline-end: 40px; }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--ink-3); border-radius: 50%; color: var(--text); cursor: pointer; }
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { border-color: var(--muted); }
.modal-alt { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.modal-alt a { color: var(--saffron-2); }

/* Formidable form inside the popup (form styling is turned off in Formidable, the theme does it) */
.modal-form { margin-top: 20px; }
.modal-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.modal-form .frm_screen_reader, .modal-form .frm_hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.modal-form .frm_fields_container, .modal-form .frm_form_fields > fieldset > div { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.modal-form .frm_form_field { grid-column: span 12; margin: 0; }
.modal-form .frm_half, .modal-form .frm6 { grid-column: span 6; }
@media (max-width: 560px) { .modal-form .frm_half, .modal-form .frm6 { grid-column: span 12; } }
.modal-form .frm_primary_label { display: block; margin-bottom: 6px; font-size: .95rem; font-weight: 600; }
.modal-form .frm_required { color: var(--saffron); }
.modal-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .modal-form select, .modal-form textarea {
	width: 100%; min-height: 48px; padding: .65em .85em; font: inherit; color: var(--text);
	background: var(--ink); border: 1px solid var(--ink-3); border-radius: var(--r-sm);
}
.modal-form textarea { min-height: 96px; resize: vertical; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 30%, transparent); }
.modal-form ::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.modal-form .frm_error { color: var(--pom); font-size: .88rem; margin-top: 4px; }
.modal-form .frm_blank_field input, .modal-form .frm_blank_field select { border-color: var(--pom); }
.modal-form .frm_error_style { color: var(--pom); margin-bottom: 12px; }
.modal-form .frm_submit { grid-column: span 12; margin-top: 8px; }
.modal-form .frm_button_submit, .modal-form button[type="submit"] {
	width: 100%; min-height: 54px; font: inherit; font-weight: 700; font-size: 1.1rem;
	background: var(--saffron); color: var(--ink); border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.modal-form .frm_button_submit:hover { background: var(--saffron-2); }
.modal-form .frm_message { padding: 18px 20px; border-radius: var(--r); background: color-mix(in srgb, var(--mint) 14%, var(--ink)); border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); }
.modal-form .frm_message p { margin: 0; }
.modal-form .frm_description, .modal-form .frm_form_title { display: none; }
