/* AIFlow Website Design Explorer: styles for the sample websites.
   Everything is scoped under .demo so it never affects the AIFlow site, and AIFlow styles never leak in. */
.demo { all: initial; display: block; background: var(--d-bg); color: var(--d-ink); font-family: var(--d-font-b, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); font-size: 16px; line-height: 1.55; }
.demo *, .demo *::before, .demo *::after { box-sizing: border-box; }
.demo h1, .demo h2, .demo h3, .demo p, .demo ul, .demo ol, .demo figure, .demo blockquote { margin: 0; }
.demo h1, .demo h2, .demo h3 { font-family: var(--d-font-h, inherit); text-transform: var(--d-heading-case, none); line-height: 1.15; color: inherit; }
.demo a { color: inherit; text-decoration: none; }
.demo .d-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.demo .d-narrow { max-width: 760px; }

/* header */
.demo .d-header { background: var(--d-primary); color: var(--d-on-primary); }
.demo .d-header .d-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.demo .d-logo { font-family: var(--d-font-h, inherit); text-transform: var(--d-heading-case, none); font-weight: 800; font-size: 1.35rem; display: flex; flex-direction: column; line-height: 1.1; }
.demo .d-logo small { font-family: var(--d-font-b, inherit); text-transform: none; font-weight: 400; font-size: .72rem; opacity: .85; margin-top: 2px; }
.demo .d-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.demo .d-nav a { padding: 8px 12px; border-radius: calc(var(--d-radius) - 2px); font-weight: 600; font-size: .95rem; }
.demo .d-nav a:hover { background: rgba(255,255,255,.14); }
.demo .d-nav a[aria-current="page"] { background: var(--d-accent); color: #111; }
.demo .d-header-light { background: #fff; color: var(--d-ink); border-bottom: 1px solid rgba(0,0,0,.08); }
.demo .d-header-light .d-nav a:hover { background: var(--d-soft); }
.demo .d-header-center .d-wrap { flex-direction: column; justify-content: center; text-align: center; }
.demo .d-header-center .d-logo { align-items: center; }

/* buttons */
.demo .d-btnrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.demo .d-btn { display: inline-block; padding: 13px 22px; border-radius: var(--d-radius); font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; text-align: center; }
.demo .d-btn-primary { background: var(--d-accent); color: #111; }
.demo .d-btn-primary:hover { filter: brightness(.94); }
.demo .d-btn-ghost { border-color: currentColor; background: transparent; }
.demo .d-btn-light { background: #fff; color: var(--d-primary); }

/* images and placeholders */
.demo .d-img { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; border-radius: var(--d-radius); }
.demo .d-ph { position: relative; width: 100%; height: 100%; min-height: 240px; border-radius: var(--d-radius); overflow: hidden; display: flex; align-items: flex-end; padding: 14px;
  background: linear-gradient(135deg, var(--d-primary) 0%, var(--d-accent) 130%); color: #fff; }
.demo .d-ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px); }
.demo .d-ph span { position: relative; font-size: .82rem; background: rgba(0,0,0,.38); padding: 4px 10px; border-radius: 999px; }

/* hero */
.demo .d-hero { position: relative; color: #fff; background: var(--d-primary); overflow: hidden; }
.demo .d-hero .d-wrap { position: relative; z-index: 2; display: grid; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
.demo .d-hero h1 { font-size: 2.6rem; max-width: 640px; }
.demo .d-hero p { max-width: 560px; margin-top: 14px; font-size: 1.1rem; opacity: .95; }
.demo .d-eyebrow { font-size: .82rem !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--d-accent); opacity: 1 !important; margin: 0 0 10px !important; }
.demo .d-hero-split .d-wrap { grid-template-columns: 1.1fr .9fr; align-items: center; }
.demo .d-hero-split .d-hero-media { min-height: 280px; }
.demo .d-hero-full .d-hero-bg { position: absolute; inset: 0; z-index: 1; min-height: 0; border-radius: 0; opacity: .55; }
.demo .d-hero-full::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 70%); pointer-events: none; }
.demo .d-hero-full .d-wrap { padding-top: 96px; padding-bottom: 96px; }
.demo .d-hero-center .d-wrap { text-align: center; justify-items: center; }
.demo .d-hero-center .d-btnrow { justify-content: center; }
.demo .d-hero-center p { margin-left: auto; margin-right: auto; }

/* sections */
.demo .d-sec { padding: 56px 0; }
.demo .d-sec h2 { font-size: 1.9rem; margin-bottom: 14px; }
.demo .d-soft { background: var(--d-soft); }
.demo .d-intro { max-width: 640px; margin-bottom: 22px; opacity: .85; }
.demo .d-cards { display: grid; gap: 18px; margin-top: 20px; }
.demo .d-cols-2 { grid-template-columns: repeat(2, 1fr); }
.demo .d-cols-3 { grid-template-columns: repeat(3, 1fr); }
.demo .d-cols-4 { grid-template-columns: repeat(4, 1fr); }
.demo .d-card, .demo .d-quote { background: #fff; border-radius: var(--d-radius); padding: 22px; border: 1px solid rgba(0,0,0,.08); }
.demo .d-soft .d-card { background: #fff; }
.demo.d-card-round .d-card, .demo.d-card-round .d-quote { box-shadow: 0 6px 18px rgba(0,0,0,.06); border-color: transparent; }
.demo.d-card-square .d-card, .demo.d-card-square .d-quote { border-radius: 2px; border-left: 5px solid var(--d-accent); }
.demo.d-card-outline .d-card, .demo.d-card-outline .d-quote { background: transparent; border: 2px solid var(--d-primary); }
.demo .d-card h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.demo .d-card p { font-size: .96rem; opacity: .85; }
.demo .d-card-ic { color: var(--d-primary); }
.demo .d-quote p { font-style: italic; }
.demo .d-quote cite { display: block; margin-top: 10px; font-size: .78rem; opacity: .6; font-style: normal; }
.demo .d-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.demo .d-rev > div:first-child { order: 2; }
.demo .d-split p { margin-bottom: 14px; }
.demo .d-checks { list-style: none; padding: 0; margin: 0 0 18px; }
.demo .d-checks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.demo .d-checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--d-primary); font-weight: 800; }
.demo .d-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.demo .d-fig .d-ph, .demo .d-fig .d-img { min-height: 180px; }
.demo .d-fig figcaption { font-size: .88rem; margin-top: 6px; opacity: .75; }
.demo .d-steps { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 18px; grid-template-columns: repeat(4, 1fr); }
.demo .d-steps li { display: flex; gap: 12px; align-items: flex-start; }
.demo .d-num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--d-primary); color: var(--d-on-primary); display: grid; place-items: center; font-weight: 800; }
.demo .d-steps h3 { font-size: 1.02rem; margin-bottom: 2px; }
.demo .d-steps p { font-size: .92rem; opacity: .8; }
.demo .d-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.demo .d-pills li { display: flex; align-items: center; gap: 6px; background: var(--d-soft); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.demo .d-pills .d-ic { width: 18px; height: 18px; color: var(--d-primary); }
.demo .d-cta { background: var(--d-primary); color: var(--d-on-primary); text-align: center; padding: 48px 0; }
.demo .d-cta h2 { font-size: 1.8rem; }
.demo .d-cta p { margin: 10px auto 20px; max-width: 560px; opacity: .92; }
.demo .d-cta .d-btn { margin-top: 18px; }
.demo .d-cta p + .d-btn { margin-top: 0; }

/* menu */
.demo .d-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 14px; }
.demo .d-menu-cat h3 { font-size: 1.25rem; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--d-accent); }
.demo .d-menu-cat ul { list-style: none; padding: 0; }
.demo .d-menu-cat li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(0,0,0,.15); }
.demo .d-menu-cat li strong { display: block; }
.demo .d-menu-cat li span { font-size: .9rem; opacity: .75; }
.demo .d-menu-cat li em { font-style: normal; font-weight: 700; color: var(--d-primary); }

/* contact + form */
.demo .d-contact { list-style: none; padding: 0; margin-top: 8px; }
.demo .d-contact li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.demo .d-contact .d-ic { width: 20px; height: 20px; color: var(--d-primary); }
.demo .d-form { background: var(--d-soft); padding: 22px; border-radius: var(--d-radius); display: grid; gap: 6px; }
.demo .d-form label { font-weight: 600; font-size: .9rem; margin-top: 6px; }
.demo .d-form input, .demo .d-form select, .demo .d-form textarea { width: 100%; padding: 11px; border: 1px solid rgba(0,0,0,.18); border-radius: calc(var(--d-radius) - 2px); font: inherit; background: #fff; color: var(--d-ink); }
.demo .d-form .d-btn { margin-top: 12px; }
.demo .d-form-note { font-size: .85rem; color: var(--d-primary); min-height: 1.2em; margin-top: 6px; }

/* "what happens next" automation strip */
.demo .d-flow { background: #101820; color: #fff; padding: 22px 0; }
.demo .d-flow-label { display: flex; align-items: center; gap: 8px; font-size: .85rem; opacity: .85; margin-bottom: 10px; }
.demo .d-flow-label .d-ic { width: 18px; height: 18px; color: var(--d-accent); }
.demo .d-flow-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 4px; counter-reset: f; }
.demo .d-flow-steps li { background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.demo .d-flow-steps li:not(:last-child)::after { content: "\2192"; margin-left: 12px; color: var(--d-accent); }

/* footer */
.demo .d-footer { background: #0e1620; color: #c9d3dd; padding: 30px 0; font-size: .9rem; }
.demo .d-footer .d-wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-start; }
.demo .d-footer strong { color: #fff; font-size: 1.05rem; }
.demo .d-demo-note { max-width: 380px; font-size: .8rem; opacity: .8; }

@media (max-width: 860px) {
  .demo .d-wrap { padding: 0 18px; }
  .demo .d-hero h1 { font-size: 2rem; }
  .demo .d-hero-split .d-wrap, .demo .d-split { grid-template-columns: 1fr; }
  .demo .d-rev > div:first-child { order: 0; }
  .demo .d-cols-2, .demo .d-cols-3, .demo .d-cols-4, .demo .d-gallery, .demo .d-steps, .demo .d-menu { grid-template-columns: 1fr; }
  .demo .d-hero .d-wrap { padding-top: 40px; padding-bottom: 40px; }
  .demo .d-hero-full .d-wrap { padding-top: 56px; padding-bottom: 56px; }
  .demo .d-sec { padding: 38px 0; }
  .demo .d-header .d-wrap { flex-direction: column; align-items: flex-start; }
  .demo .d-header-center .d-wrap { align-items: center; }
  .demo .d-nav a { padding: 7px 10px; }
}
