/* Palette and type from promorepublic.com (theme child-style.css). */
:root {
  --coral: #ff755d;
  --coral-deep: #f54e02;
  --coral-soft: rgba(255, 117, 93, 0.12);
  --violet: #787aff;
  --violet-soft: #ededff;
  --ink: #1d1e20;
  --ink-2: #5c646f;
  --muted: #7a7f85;
  --line: #e4e6ea;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --ok: #1f9d55;
  --warn: #c2410c;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(29, 30, 32, 0.28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; max-width: 18ch; }
h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; max-width: 26ch; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.eyebrow {
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Top bar ── */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--coral); }
.topbar__nav { display: none; gap: 28px; font-size: 14px; font-weight: 600; }
.topbar__nav a { text-decoration: none; color: var(--ink-2); }
.topbar__nav a:hover { color: var(--coral-deep); }
@media (min-width: 720px) { .topbar__nav { display: flex; } }

/* ── Intro ── */
.intro { padding-top: 56px; padding-bottom: 32px; }
.intro em { font-style: normal; color: var(--coral); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; }

/* ── Browser frame around the sample site ── */
.stage { padding-bottom: 72px; }
.browser {
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--mist); border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #d7d9de; flex: none; }
.browser__url {
  margin-left: 8px; flex: 1; min-width: 0;
  background: var(--paper); border-radius: 999px; padding: 4px 14px;
  font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* The "customer site" deliberately uses its own look (serif, green) to show the card inherits it. */
.site { --site-accent: #2f5d50; font-family: Georgia, 'Times New Roman', serif; color: #2b2b2b; }
.site__nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid #ecebe6;
}
.site__brand { font-weight: 700; letter-spacing: 0.02em; color: var(--site-accent); }
.site__links { display: none; gap: 22px; font-size: 15px; color: #555; }
@media (min-width: 720px) { .site__links { display: flex; } }

.site__hero { padding: 40px 24px 32px; background: #f6f4ee; }
.site__hero h2 { font-family: inherit; font-weight: 700; font-size: clamp(26px, 4vw, 40px); max-width: none; }
.site__crumb { font-size: 13px; color: #7d7a70; margin-bottom: 8px; }
.site__address { color: #555; }
.site__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font: 600 15px/1.2 Montserrat, Arial, sans-serif; text-decoration: none;
}
.btn--site { background: var(--site-accent); color: #fff; font-family: inherit; }
.btn--ghost { border: 1px solid #cfccc2; color: #2b2b2b; font-family: inherit; }

.site__grid { display: grid; gap: 32px; padding: 32px 24px 40px; }
@media (min-width: 860px) { .site__grid { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.site__about h3, .hours-card h3 { font-family: inherit; }
.site__about p { color: #4a4a4a; }
.site__facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.site__facts li { display: grid; gap: 2px; font-size: 15px; color: #4a4a4a; }
.site__facts strong { color: #2b2b2b; }

.hours-card {
  border: 2px solid var(--coral);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  position: relative;
}
.hours-card::before {
  content: 'Managed by PromoRepublic';
  position: absolute; top: -12px; left: 16px;
  background: var(--coral); color: #fff;
  font: 700 11px/1 Montserrat, Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.hours-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 12px; }
.hours-card__head h3 { margin: 0; }
.hours-card .pr-hours { font-size: 16px; overflow-x: auto; }

.badge {
  font: 700 12px/1 Montserrat, Arial, sans-serif; padding: 6px 10px; border-radius: 999px;
  background: var(--mist); color: var(--ink-2); white-space: nowrap;
}
.badge[data-tone="ok"] { background: rgba(31, 157, 85, 0.12); color: var(--ok); }
.badge[data-tone="warn"] { background: var(--coral-soft); color: var(--warn); }

.langs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font: 500 12px/1 Montserrat, Arial, sans-serif; color: var(--muted);
}
.langs span { margin-right: 4px; }
.langs button {
  font: 600 12px/1 Montserrat, Arial, sans-serif; color: var(--ink-2);
  background: var(--mist); border: 1px solid transparent; border-radius: 999px;
  padding: 6px 10px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--violet-soft); border-color: var(--violet); color: #3d3fbf; }

.site__footer {
  display: grid; gap: 20px; padding: 24px; background: var(--site-accent); color: #e9f0ec; font-size: 14px;
}
@media (min-width: 720px) { .site__footer { grid-template-columns: 1fr auto; align-items: start; } }
.site__footer .site__brand { color: #fff; }
.site__footer p { margin: 4px 0 0; }
.site__footer-label { font-weight: 700; color: #fff; margin-bottom: 4px !important; }
.site__footer .pr-hours th { color: #fff; }

/* ── Timeline under the frame ── */
.timeline { margin-top: 20px; }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); }
.timeline time { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); text-align: right; }
.timeline li[data-tone="ok"] span::before { content: '● '; color: var(--ok); }
.timeline li[data-tone="warn"] span::before { content: '● '; color: var(--warn); }

/* ── Bands and sections ── */
.band { background: var(--mist); padding: 72px 0; }
.section { padding-top: 72px; padding-bottom: 72px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--ink-2); margin: 0; }
.steps__n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 800; margin-bottom: 16px;
}

.features { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.features article { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.features article:nth-child(4n + 1) { border-top: 4px solid var(--coral); }
.features article:nth-child(4n + 2) { border-top: 4px solid var(--violet); }
.features article:nth-child(4n + 3) { border-top: 4px solid var(--coral-deep); }
.features article:nth-child(4n + 4) { border-top: 4px solid var(--ink); }
.features h3 { font-size: 16px; }
.features p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ── Under the hood (dark) ── */
.band--dark { background: var(--ink); color: #e8e9ec; }
.band--dark .eyebrow { color: var(--coral); }
.band--dark p { color: #b5b8bf; }

.flow { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 12px; counter-reset: flow; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li {
  position: relative; padding: 20px; border-radius: 12px;
  background: #27282c; border: 1px solid #34363b; display: grid; gap: 6px;
}
.flow strong { color: #fff; font-size: 15px; }
.flow span { color: #b5b8bf; font-size: 14px; }
.flow li::before {
  counter-increment: flow; content: counter(flow);
  font: 800 12px/1 Montserrat, Arial, sans-serif; color: var(--coral);
}
@media (min-width: 860px) {
  .flow li:not(:last-child)::after {
    content: '→'; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
    color: var(--coral); font-weight: 800; z-index: 1;
  }
}

.code-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .code-grid { grid-template-columns: 1fr 1fr; } }
.code-grid h3 { color: #fff; }
.code {
  margin: 0; padding: 18px; border-radius: 12px; background: #111214; border: 1px solid #34363b;
  color: #d8dbe2; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: auto; max-height: 420px; white-space: pre;
}

.faq { border-top: 1px solid #34363b; padding: 18px 0; }
.faq:first-of-type { margin-top: 40px; }
.faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.faq p { margin: 10px 0 0; max-width: 72ch; }

/* ── Footer ── */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--muted);
}
.foot p { margin: 0; }
.foot a { color: var(--coral-deep); font-weight: 600; text-decoration: none; }

/* Grid children default to min-width:auto; long code lines would widen the page on phones. */
.site__grid > *, .code-grid > *, .flow > *, .features > *, .steps > * { min-width: 0; }
html, body { overflow-x: hidden; }
