:root {
  /* Blueregan logo colours: navy wordmark, royal-blue "b", bright wave. */
  --navy: #0a3a8c;
  --royal: #0047ab;
  --wave: #1e8bff;
  --wave-light: #00b4ff;
  --wave-gradient: linear-gradient(90deg, var(--navy), #0055c3 40%, var(--wave) 72%, var(--wave-light));
  --bg: #fdfaf7;
  --surface: #ffffff;
  --text: #0f1f3d;
  --muted: #59657e;
  --border: #e7e3dd;
  --primary: var(--royal);
  --primary-dark: var(--navy);
  --install: #0055c3;
  --install-dark: var(--navy);
  --install-soft: #e5f0ff;
  --danger: #c53030;
  --success-bg: #e8f6ee;
  --success-text: #1d6b40;
  --error-bg: #fdecec;
  --error-text: #9b2323;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 58, 140, 0.06), 0 1px 3px rgba(10, 58, 140, 0.1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2 { line-height: 1.25; overflow-wrap: anywhere; }

.wrap {
  width: 100%; max-width: 1100px; margin: 0 auto;
  /* Keep clear of notches and rounded corners in landscape. */
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* Header and footer */
.site-header { background: var(--surface); position: relative; }
/* The logo's wave, as a thin band under the header. */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--wave-gradient); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; }
.brand img { display: block; }
.brand-word { width: auto; height: 22px; }
.site-header nav { display: flex; flex: none; gap: 4px; }
.site-header nav a { padding: 10px 6px; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.site-footer {
  color: var(--muted); font-size: 0.85rem; padding-top: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-footer nav a { padding: 6px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* About, Privacy, Terms, Contact */
.doc {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; max-width: 760px; margin: 0 auto; line-height: 1.6; overflow-wrap: anywhere;
}
.doc h1 { margin-top: 0; }
.doc h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.doc li + li { margin-top: 6px; }

.page-title { margin: 0 0 20px; }
.back { margin: 0 0 16px; }
.back a { text-decoration: none; }
.muted { color: var(--muted); }

/* Gallery */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Hover lift only with a real pointer; on touch it sticks after a tap. */
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 58, 140, 0.14); }
}
.card-link { display: flex; flex-direction: column; gap: 10px; padding: 16px; color: inherit; text-decoration: none; height: 100%; }
.card-head { display: flex; gap: 14px; align-items: center; }
.card-heading { min-width: 0; }
.card-title { font-size: 1.05rem; margin: 0; }
.card-byline { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }
.card-text { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Category filter and sections */
.category-bar {
  display: flex; gap: 8px; margin: 0 0 20px; padding-bottom: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.category-chip span { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.category-chip:hover { border-color: #a9c5f0; }
.category-chip[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.category-chip[aria-current] span { color: rgba(255, 255, 255, 0.85); }
.category + .category { margin-top: 32px; }
.category-title { font-size: 1.25rem; margin: 0 0 12px; }
.category-title a { color: var(--text); text-decoration: none; }
.category-title a:hover { color: var(--primary); }
a.chip { text-decoration: none; }
a.chip:hover { color: var(--text); border-color: #c7ccd4; }

/* App icons: rounded squares, like a phone home screen. */
.icon { flex: none; object-fit: cover; background: #e9ecf1; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.15); }
.icon-sm { width: 40px; height: 40px; border-radius: 10px; font-size: 1.1rem; }
.icon-md { width: 64px; height: 64px; border-radius: 15px; font-size: 1.7rem; }
.icon-lg { width: 96px; height: 96px; border-radius: 22px; font-size: 2.6rem; }

.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dce9ff, #f1f6ff);
  color: var(--primary); font-weight: 700; font-size: 2.2rem;
}
/* Letter tiles in shades of the logo's blues. */
.placeholder.tint-0 { background: linear-gradient(135deg, #0047ab, #1e8bff); color: #fff; }
.placeholder.tint-1 { background: linear-gradient(135deg, #0a3a8c, #0055c3); color: #fff; }
.placeholder.tint-2 { background: linear-gradient(135deg, #1e8bff, #00b4ff); color: #fff; }
.placeholder.tint-3 { background: linear-gradient(135deg, #10295c, #0047ab); color: #fff; }
.placeholder.tint-4 { background: linear-gradient(135deg, #0062d1, #3aa6ff); color: #fff; }
.placeholder.tint-5 { background: linear-gradient(135deg, #0a3a8c, #1e8bff); color: #fff; }

/*
 * Per-app colours (THEMES in lib/listing.js). Each sets the tile gradient, an
 * accent and the install button; white text on --app-from/--app-install is at
 * least 4.5:1.
 */
.theme-blue { --app-from: #0047ab; --app-to: #1e8bff; --app-accent: #0047ab; --app-soft: #e5f0ff; }
.theme-navy-amber { --app-from: #22324a; --app-to: #34507a; --app-accent: #f4b13e; --app-soft: #fdf1da; }
.theme-teal { --app-from: #0b7285; --app-to: #1098ad; --app-accent: #0b7285; --app-soft: #e3f5f8; }
.theme-green { --app-from: #0b7a6b; --app-to: #1b8a4b; --app-accent: #0b7a6b; --app-soft: #e2f4ef; }
.theme-purple { --app-from: #5b3593; --app-to: #8457c4; --app-accent: #5b3593; --app-soft: #efe8f8; }
.theme-coral { --app-from: #b4372c; --app-to: #e0613f; --app-accent: #b4372c; --app-soft: #fbe9e5; }
.placeholder[class*="theme-"] { background: linear-gradient(135deg, var(--app-from), var(--app-to)); color: #fff; }
.placeholder.theme-navy-amber { color: var(--app-accent); }
.listing[class*="theme-"] {
  --install: var(--app-from); --install-dark: var(--app-from); --install-soft: var(--app-soft);
  border-top: 5px solid var(--app-from);
}
.listing[class*="theme-"] .button.install { background: linear-gradient(135deg, var(--app-from), var(--app-to)); }
.listing[class*="theme-"] .developer { color: var(--app-from); }
.listing[class*="theme-"] .button.install:hover { background: var(--app-from); }
.listing.theme-navy-amber .button.install { box-shadow: inset 0 -3px 0 var(--app-accent); }
.card[class*="theme-"] { border-top: 4px solid var(--app-from); }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #eaf2ff; color: var(--royal); font-size: 0.78rem; font-weight: 600;
}
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem;
}

/* Listing page, laid out like an app store entry */
.listing-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
.listing-layout > :only-child { grid-column: 1 / -1; }
.listing { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.feature-graphic { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 10px; margin-bottom: 24px; background: #e9ecf1; }
.listing-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.listing-head > div { min-width: 0; }
.listing-head h1 { margin: 0; font-size: 1.9rem; }
.developer { margin: 4px 0 0; color: var(--royal); font-weight: 600; }
.tagline { margin: 4px 0 0; color: var(--muted); }

.stats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; }
.stats li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px 22px; min-width: 96px; text-align: center;
}
.stats li + li { border-left: 1px solid var(--border); }
.stats li:first-child { padding-left: 0; }
.stats strong { font-size: 0.98rem; }
.stats span { color: var(--muted); font-size: 0.8rem; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.button.install {
  background: linear-gradient(135deg, #0055c3, var(--wave)); border-color: transparent; color: #fff;
  min-width: 200px; justify-content: center;
}
.button.install:hover { background: var(--install-dark); }

.shots {
  list-style: none; margin: 0 0 8px; padding: 0 0 8px;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.shots li { flex: none; scroll-snap-align: start; }
.shots img { height: 360px; width: auto; max-width: 85vw; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); }

.section { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 20px; }
.section h2 { font-size: 1.2rem; margin: 16px 0 10px; }
.description { white-space: pre-line; overflow-wrap: anywhere; }
.features { margin: 14px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.features li { position: relative; padding-left: 28px; }
.features li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--install-soft); color: var(--install); font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; margin: 0; }
.info dt { color: var(--muted); font-size: 0.82rem; }
.info dd { margin: 2px 0 0; font-weight: 600; }
.hint { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 24px; }

.more { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.more h2 { font-size: 1.05rem; margin: 0 0 12px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.more a { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; }
.more a:hover { background: var(--bg); }
.more a > span { display: flex; flex-direction: column; min-width: 0; }

@media (max-width: 860px) {
  .listing-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  main { padding-top: 16px; }
  .page-title { font-size: 1.6rem; margin-bottom: 14px; }
  /* Chips swipe edge to edge. */
  .category-bar { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .listing, .doc, .panel { padding: 18px; }
  .listing-head { gap: 14px; }
  .listing-head h1 { font-size: 1.45rem; }
  .icon-lg { width: 72px; height: 72px; border-radius: 17px; font-size: 2rem; }
  /* One swipeable row, like the Play Store, instead of wrapping. */
  .stats { flex-wrap: nowrap; overflow-x: auto; margin-left: -18px; margin-right: -18px; padding: 0 18px; scrollbar-width: none; }
  .stats::-webkit-scrollbar { display: none; }
  .stats li { padding: 2px 14px; min-width: 84px; flex: none; }
  .stats strong { white-space: nowrap; }
  .actions .button { flex: 1 1 100%; justify-content: center; min-width: 0; padding-top: 12px; padding-bottom: 12px; }
  .shots img { height: 300px; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions .button { flex: 1; justify-content: center; }
  .narrow { margin: 16px auto; }
}
@media (max-width: 380px) {
  .listing-head { gap: 12px; }
  .icon-lg { width: 60px; height: 60px; border-radius: 14px; font-size: 1.7rem; }
  .listing-head h1 { font-size: 1.3rem; }
  .shots img { height: 260px; }
  .card-link { padding: 14px; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button:hover { border-color: #c7ccd4; }
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }
.button.danger { color: var(--danger); }
.button.danger:hover { border-color: var(--danger); }
.button.small { padding: 5px 12px; font-size: 0.85rem; }
.muted-on-primary { opacity: 0.8; font-weight: 400; font-size: 0.85em; }

/* Empty and error states */
.empty { text-align: center; padding: 64px 16px; }
.empty p { color: var(--muted); }

/* Ad slots */
.ad-slot { margin: 16px 0 24px; text-align: center; }
.ad-slot[hidden] { display: none; }
.ad-label { display: block; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.ad-slot iframe { display: block; width: 100%; max-width: 728px; margin: 0 auto; border: 0; }
.ad-field { border: 1px dashed var(--border); border-radius: 10px; padding: 14px 14px 0; margin: 0 0 16px; }
.ad-field legend { font-weight: 600; padding: 0 6px; }
.ad-field textarea { font-family: ui-monospace, monospace; font-size: 0.85rem; }

/* Admin panels and forms */
.panel {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 24px;
}
.panel h1, .panel h2 { margin-top: 0; }
.narrow { max-width: 400px; margin: 40px auto; }

label { display: block; font-weight: 600; margin-bottom: 16px; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
input[type=file] { display: block; margin-top: 6px; font-weight: 400; }
textarea { resize: vertical; }
.file-row { border: 1px dashed var(--border); border-radius: 10px; padding: 14px 14px 0; margin-bottom: 16px; }
.current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
label.inline { display: inline; font-weight: 400; margin: 0; }
.form-actions { display: flex; gap: 10px; }

.alert { padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; }
.alert.success { background: var(--success-bg); color: var(--success-text); }
.alert.error { background: var(--error-bg); color: var(--error-text); }
.alert.notice { background: #fff6e0; color: #7a5300; }

.apps-table { width: 100%; border-collapse: collapse; }
.apps-table th { text-align: left; color: var(--muted); font-size: 0.8rem; font-weight: 600; padding: 8px; border-bottom: 1px solid var(--border); }
.apps-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.shot-list { gap: 10px; }
.shot-pick { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.shot-pick img { height: 120px; width: auto; border-radius: 6px; border: 1px solid var(--border); }
.thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; font-size: 1rem; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.visibility-pick { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.visibility-pick legend { font-weight: 600; padding: 0 4px; }
.visibility-pick label.inline { display: flex; gap: 8px; align-items: baseline; margin: 6px 0; }
.visibility-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.visibility-form select { width: auto; margin: 0; }
.share { display: flex; gap: 6px; margin-top: 6px; }
.share-link { width: 14em; min-width: 0; margin: 0; font-size: 0.8rem; padding: 4px 6px; }

@media (max-width: 720px) {
  .apps-table thead { display: none; }
  .apps-table tr { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .apps-table td { border: 0; padding: 0; }
  .apps-table td:first-child { grid-row: span 5; }
  /* The GitHub sync table has no icon column: stack its cells instead. */
  .apps-table.sync-table tr { grid-template-columns: 1fr; }
  .apps-table.sync-table td:first-child { grid-row: auto; font-weight: 600; overflow-wrap: anywhere; }
  .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .visibility-form, .share { flex-wrap: wrap; }
  .share-link { flex: 1; }
  /* iOS zooms into inputs under 16px when they get focus. */
  .share-link, .visibility-form select { font-size: 16px; }
}
.small { font-size: 0.85rem; }
.alert-text { color: var(--error-text); }

/* ------------------------------------------------------------------
 * Free web app development offer (/free-website, home page intro)
 * ------------------------------------------------------------------ */

/* Home page banner */
.offer-banner {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 18px;
  border-radius: var(--radius); background: linear-gradient(110deg, var(--navy), #0055c3 55%, var(--wave));
  color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(10, 58, 140, 0.18);
}
.offer-banner:hover { box-shadow: 0 10px 26px rgba(10, 58, 140, 0.28); }
.offer-banner-badge {
  flex: none; padding: 6px 10px; border-radius: 8px; background: #ffd34d; color: var(--navy);
  font-weight: 800; letter-spacing: 0.06em; font-size: 0.85rem;
}
.offer-banner-text { flex: 1; min-width: 0; line-height: 1.35; }
.offer-banner-text span { display: block; opacity: 0.85; font-size: 0.9rem; }
.offer-banner-go { flex: none; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .offer-banner-go { display: none; } }

/* Hero, shared by the page and the intro */
.offer-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px; align-items: center; padding: 44px 40px; border-radius: 22px; color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(0, 180, 255, 0.45), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(30, 139, 255, 0.35), transparent 45%),
    linear-gradient(135deg, #072a66, var(--navy) 45%, #0055c3);
  box-shadow: 0 18px 40px rgba(10, 58, 140, 0.25);
}
.offer-kicker {
  display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.offer-hero h1, .offer-hero h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; }
.offer-hero h1 span, .offer-hero h2 span {
  background: linear-gradient(90deg, #ffd34d, #ffe9a3); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.offer-lead { margin: 16px 0 0; font-size: 1.1rem; opacity: 0.92; max-width: 34em; }
.offer-lead strong { color: #ffd34d; }
.offer-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.offer-points li { font-weight: 600; font-size: 0.95rem; }
.offer-points li::before { content: "✓"; display: inline-block; margin-right: 6px; color: #7ee2a8; font-weight: 800; }

/* Browser mock-up */
.offer-mock {
  position: relative; background: #fff; border-radius: 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg); color: var(--text); max-width: 420px; justify-self: center; width: 100%;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.mock-bar i:nth-child(2) { background: #fbbf24; }
.mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 8px; flex: 1; padding: 3px 10px; border-radius: 999px; background: #f1f4f9; color: var(--muted); font-size: 0.75rem; }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-hero { display: grid; gap: 7px; padding: 16px; border-radius: 10px; background: linear-gradient(135deg, #e5f0ff, #f4f8ff); }
.mock-hero b { display: block; height: 12px; border-radius: 6px; background: var(--navy); width: 70%; }
.mock-hero b + b { width: 45%; background: #9db7e3; height: 9px; }
.mock-hero em { display: block; width: 90px; height: 24px; border-radius: 8px; background: var(--wave); margin-top: 4px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-cards span { height: 54px; border-radius: 8px; background: #f1f4f9; border: 1px solid var(--border); }
.mock-ad {
  height: 34px; border-radius: 8px; border: 1px dashed #b9c3d3; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.mock-badge {
  position: absolute; right: -14px; top: -18px; width: 96px; height: 96px; border-radius: 50%;
  background: #ffd34d; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.45rem; line-height: 1; transform: rotate(-10deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); border: 4px solid #fff;
}
.mock-badge small { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-top: 3px; }

/* Page sections */
.offer { max-width: 1040px; margin: 0 auto; }
.offer-skipbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.offer-section { margin-top: 48px; }
.offer-section > h2 { font-size: 1.6rem; margin: 0 0 18px; letter-spacing: -0.01em; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.offer-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; border-top: 4px solid var(--wave); }
.offer-card h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.offer-card p { margin: 0; color: var(--muted); }
.offer-num { font-weight: 800; color: var(--wave); font-size: 0.9rem; letter-spacing: 0.06em; }

.offer-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.offer-split h2 { font-size: 1.6rem; margin: 0 0 18px; }
.offer-terms { list-style: none; counter-reset: term; margin: 0; padding: 0; display: grid; gap: 12px; }
.offer-terms li {
  counter-increment: term; position: relative; padding: 16px 18px 16px 62px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
}
.offer-terms li::before {
  content: counter(term); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.offer-terms strong { display: block; }
.offer-terms span { color: var(--muted); font-size: 0.95rem; }
.offer-costs { background: #0f1f3d; color: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 12px 30px rgba(15, 31, 61, 0.25); }
.offer-costs h3 { margin: 0 0 12px; font-size: 1.15rem; }
.offer-costs ul { list-style: none; margin: 0; padding: 0; }
.offer-costs li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.offer-costs li strong { display: block; }
.offer-costs li span { opacity: 0.75; font-size: 0.9rem; }
.offer-zero { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 0; }
.offer-zero span { opacity: 0.85; }
.offer-zero strong { font-size: 2.4rem; line-height: 1; color: #ffd34d; }

.offer-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.offer-steps li { counter-increment: step; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; }
.offer-steps li::before {
  content: "Step " counter(step); display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #eaf2ff; color: var(--royal); font-weight: 700; font-size: 0.8rem;
}
.offer-steps h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.offer-steps p { margin: 0; color: var(--muted); }

.offer-work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.offer-work a { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.offer-work a:hover { box-shadow: 0 8px 20px rgba(10, 58, 140, 0.14); }
.offer-work span { min-width: 0; }
.offer-work strong { display: block; }
.offer-work small { display: block; color: var(--muted); }

.offer-faq { display: grid; gap: 10px; }
.offer-faq details { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; }
.offer-faq summary { cursor: pointer; font-weight: 700; }
.offer-faq p { margin: 10px 0 0; color: var(--muted); }

.offer-request { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 32px; border-top: 5px solid var(--wave); scroll-margin-top: 16px; }
.offer-request > h2 { margin-bottom: 6px; }
.offer-form { margin-top: 18px; }
.offer-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.offer-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.offer-sent { margin-top: 18px; padding: 22px; border-radius: 14px; background: var(--success-bg); color: var(--success-text); }
.offer-sent p { margin: 6px 0 14px; }

.button.offer-cta {
  background: linear-gradient(135deg, #ffcf3a, #ffb703); border-color: transparent; color: #0f1f3d;
  font-weight: 800; padding: 13px 24px; font-size: 1rem; box-shadow: 0 6px 16px rgba(255, 183, 3, 0.35);
}
.button.offer-cta:hover { background: #ffc21a; }
.button.offer-ghost { background: transparent; color: var(--navy); border-color: #b9c9e6; font-weight: 700; padding: 13px 22px; }

.intro-skip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: rgba(15, 31, 61, 0.78); color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.intro-skip:hover { background: #0f1f3d; }
.intro-skip span { font-size: 1.15rem; line-height: 1; }

/* The intro over the home page, like a full-screen ad with Skip. */
body:has(.intro) { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(7, 20, 48, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 24px max(14px, env(safe-area-inset-left));
  animation: intro-in 0.35s ease-out;
}
@keyframes intro-in { from { opacity: 0; } to { opacity: 1; } }
.intro-top { max-width: 1040px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.intro-label { color: rgba(255, 255, 255, 0.75); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.intro-inner {
  max-width: 1040px; margin: 0 auto; background: var(--bg); border-radius: 24px; padding: 14px 14px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); animation: intro-up 0.45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes intro-up { from { transform: translateY(40px) scale(0.98); } to { transform: none; } }
.offer-small-title { margin: 22px 8px 12px; font-size: 1.2rem; }
.intro-inner .offer-terms { margin: 0 8px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 8px 0; }
.intro-skip-text { margin-left: auto; color: var(--muted); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .intro, .intro-inner { animation: none; } }

@media (max-width: 760px) {
  .offer-hero { grid-template-columns: 1fr; padding: 30px 22px; gap: 26px; }
  .offer-mock { max-width: 320px; transform: rotate(1.5deg); }
  .mock-badge { width: 84px; height: 84px; font-size: 1.15rem; right: -8px; }
  .mock-badge small { font-size: 0.42rem; letter-spacing: 0; }
  /* On a phone the intro keeps to the message and the buttons. */
  .intro .offer-mock { display: none; }
  .intro .offer-hero { padding: 26px 20px; }
  .offer-split { grid-template-columns: 1fr; }
  .offer-form-row { grid-template-columns: 1fr; }
  .offer-request { padding: 22px 18px; }
  .intro-actions .button { flex: 1 1 100%; justify-content: center; text-align: center; }
  .intro-skip-text { margin: 0 auto; }
}

/* Admin: requests */
.request-idea { white-space: pre-wrap; max-width: 420px; overflow-wrap: anywhere; }

/* Instagram, the site's contact */
.button.instagram-button {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border-color: transparent; color: #fff; font-weight: 700;
}
.button.instagram-button:hover { filter: brightness(1.05); }
.intro-actions .button.instagram-button { padding: 13px 20px; }
.offer-instagram { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--muted); }
