.demo {
    --canvas: #edf0f5;
    --surface: #fff;
    --ink: #17263e;
    --dim: #485a71;
    --line: #c7d2df;
    --accent: #164a78;
    --on-accent: #fff;
    background: var(--canvas);
    color: var(--ink);
    min-height: 100vh;
    overflow-wrap: break-word;
}
.demo :is(h1, h2, h3, h4, p) { overflow-wrap: break-word; word-break: normal; }
.demo :is(button, summary, nav a, .demo-back, .demo-action) { overflow-wrap: normal; word-break: normal; }
.demo :is(time, .demo-price, .demo-slots strong) { white-space: nowrap; }
.demo-bold {
    --canvas: #181b20;
    --surface: #242830;
    --ink: #f9f5e9;
    --dim: #d4d0c6;
    --line: #565b65;
    --accent: #f8ca74;
    --on-accent: #1d1a14;
}
.demo-studio {
    --canvas: #f3eee5;
    --surface: #fffaf2;
    --ink: #28352c;
    --dim: #4b594e;
    --line: #c8cfc0;
    --accent: #365843;
    --on-accent: #fff;
}
.demo-clinic { --canvas: #edf6f5; --surface: #fff; --ink: #183734; --dim: #45605e; --line: #bad6d4; --accent: #07655c; }
.demo-clinic .demo-hero img { border-radius: clamp(1rem, 4vw, 3rem) .5rem; object-position: 55% center; }
.demo-clinic .demo-hero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.demo-clinic .demo-story img { border-radius: .65rem; }
.linea { --canvas: #f7f2e9; --surface: #fffdf8; --ink: #271f16; --dim: #564a3e; --line: #d5c7b8; --accent: #704b33; }
.linea-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .45fr); align-items: end; gap: 2rem; padding-block: clamp(3rem, 9vw, 8rem) 2rem; }
.linea-hero h1 { font: 400 clamp(3rem, 8vw, 8rem)/.94 Georgia, serif; letter-spacing: -.062em; text-wrap: balance; margin: 0; }
.linea-hero p { max-width: 32ch; margin-block: 0 .65rem; }
.linea-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.linea-projects article:first-child { grid-column: 1 / -1; }
.linea-projects img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.linea-projects article:first-child img { aspect-ratio: 2 / 1; }
.linea-projects h2, .linea-about h2 { font: 400 clamp(1.6rem, 4vw, 2.75rem)/1.08 Georgia, serif; margin-block: .8rem .4rem; }
.linea-projects p { max-width: 52ch; margin: 0; }
.linea-about { padding-block: clamp(2rem, 6vw, 5rem); }
.linea-admin-projects { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1rem; }
.linea-admin-projects :is(input,textarea) { width: 100%; min-width: 0; }
.linea-admin-projects img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .45rem; }
@media (max-width: 40rem) {
    .linea-hero, .linea-projects { grid-template-columns: minmax(0, 1fr); }
    .linea-hero { gap: 1.2rem; }
    .linea-projects article:first-child img { aspect-ratio: 4 / 3; }
}
.demo-wrap { width: min(calc(100% - 2rem), 73rem); margin-inline: auto; }
.demo a, .demo a:hover { color: var(--accent); text-decoration: none; }
.demo h1, .demo h2, .demo h3 { color: var(--ink); }
.demo p { color: var(--dim); }
.demo :is(a, button, input, textarea, summary):focus-visible,
.examples-page a:focus-visible { outline: 2px solid var(--accent, #ad6f32); outline-offset: 4px; }
.examples-page a, .examples-page a:hover { text-decoration: none; }
.demo-nav { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.demo-nav .demo-wrap { min-height: 4rem; display: grid; grid-template-columns: 5.25rem minmax(0, 1fr) 5.25rem; align-items: center; gap: .25rem .65rem; padding-block: .55rem; }
.demo-nav nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem 1rem; text-align: center; }
.demo-nav-start { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35rem .75rem; text-align: center; }
.demo-nav a, .demo-brand { text-decoration: none; font-weight: 700; }
.demo a.demo-brand { color: var(--ink); }
.demo-nav .demo-nav-start { grid-column: 2; grid-row: 1; }
.demo-nav nav { grid-column: 1 / -1; grid-row: 2; }
.demo-nav .language-menu { grid-column: 3; grid-row: 1; justify-self: end; width: 3rem; z-index: 1; }
a.example-back {
    grid-column: 1; grid-row: 1; justify-self: start;
    display: inline-flex; align-items: center; gap: .4rem; min-height: 2.35rem;
    padding: .3rem .55rem; border: 1px solid color-mix(in srgb, currentColor 44%, transparent);
    border-radius: .5rem; text-decoration: none;
    color: inherit; font-family: Manrope, "Segoe UI", sans-serif;
    font-size: .84rem; font-weight: 650; white-space: nowrap;
}
a.example-back:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 11%, transparent); }
a.example-back:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
a.example-back > :first-child { font-size: 1rem; font-weight: 500; }
.demo-nav .language-menu summary { color: var(--ink); min-width: 0; width: 100%; min-height: 2.15rem; justify-content: center; border: 1px solid var(--line); border-radius: .4rem; }
.demo-nav .language-menu summary:hover { border-color: var(--accent); }
.demo-nav .language-menu ul { background: var(--surface); }
.demo-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2rem, 7vw, 6.5rem); }
.demo-hero h1, .demo-section h1 { font-size: clamp(2rem, 5.7vw, 5rem); line-height: 1.01; letter-spacing: -.045em; margin-block: .25em; }
.demo-hero h1 { font-size: clamp(2rem, 5vw, 4.35rem); line-height: 1.08; text-wrap: balance; }
.demo-hero h1 + p { max-width: 42ch; margin-block: .75rem 1.1rem; }
.demo-hero img, .business-hero-with-photo img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3; }
.demo-bold .demo-hero img { object-position: 57% center; }
.demo-bold .demo-hero h1 { font-weight: 900; }
.demo-studio .demo-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.demo-studio .demo-hero img { grid-column: 1; grid-row: 1; aspect-ratio: 5 / 4; border-radius: 47% 47% 1.25rem 1.25rem; }
.demo-studio .demo-hero h1, .demo-studio h2 { font-family: Georgia, serif; font-weight: 400; }
.demo-essential .demo-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); border-bottom: 2px solid var(--accent); }
.demo-essential .demo-hero img { aspect-ratio: 4 / 3; box-shadow: .55rem .55rem 0 var(--accent); }
.demo-category { font-weight: 700; }
.demo-section { padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.demo-section > h2 { margin-bottom: .3rem; }
.demo[data-demo-mode="admin"] .demo-section .demo-section { padding-block: 1.5rem; }
.demo [id] { scroll-margin-top: 7rem; }
.demo-services, .demo-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-block: 1rem; }
.demo-team { list-style: none; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-services > *, .demo-team li, .demo-booking, .demo-result { padding: clamp(.8rem, 2.6vw, 1.5rem); background: var(--surface); border: 1px solid var(--line); }
.demo-essential .demo-services article { border-top: 3px solid var(--accent); }
.demo-studio .demo-services > *, .demo-studio .demo-team li, .demo-studio .demo-booking, .demo-studio .demo-result { border-radius: 1.15rem; }
.demo-team li { display: grid; gap: .25rem; }
.demo-story { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.demo-story img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.demo-studio .demo-story img { border-radius: 1.15rem; }
.demo-essential .demo-story img { order: 1; }
.demo-lead { margin-top: 0; }
.demo-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); align-items: start; gap: clamp(1rem, 4vw, 3rem); margin-top: 1.25rem; }
.demo-offers { display: grid; gap: .7rem; }
.demo a.demo-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem .7rem; padding: clamp(.85rem, 2.5vw, 1.35rem); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; }
.demo-offer h3, .demo-offer p { margin: 0; }
.demo-offer h3 { font-size: 1.1rem; }
.demo-offer p { margin-top: .3rem; font-size: .93rem; }
.demo-offer .demo-price { align-self: start; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-offer-meta { color: var(--dim); font-size: .88rem; }
.demo-offer-marker { justify-self: end; color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.demo a.demo-offer:hover, .demo a.demo-offer[aria-current] { border-color: var(--accent); }
.demo a.demo-offer[aria-current] { box-shadow: inset 3px 0 var(--accent); background: color-mix(in srgb, var(--surface) 94%, var(--accent)); }
.demo-booking { min-width: 0; border-radius: .85rem; }
.demo-booking:focus, [data-demo-receipt]:focus { outline: none; }
.demo-booking:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.demo-booking h3 { margin: 0 0 .22rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.demo-booking h4 { margin: 1.1rem 0 .55rem; font-size: 1rem; }
.demo-booking p.demo-step { color: var(--accent); margin: 0 0 .45rem; font-size: .83rem; font-weight: 750; }
.demo-booking form { display: grid; gap: .8rem; }
.demo-booking fieldset { min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; }
.demo-booking legend { width: 100%; margin: .9rem 0 .5rem; padding: 0; font-weight: 700; }
.demo-booking legend span { color: var(--dim); font-size: .8rem; font-weight: 500; margin-inline-start: .3rem; }
.demo-dates, .demo-footer, .demo-slots, .demo-schedule-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.demo-dates { margin-block: .6rem; }
.demo-dates a, .demo-dates button, .demo-slots label { border: 1px solid var(--line); border-radius: .45rem; padding: .55rem .65rem; }
.demo-booking .demo-dates, .demo-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.demo-dates a:has(time), .demo-slot-text { display: grid; line-height: 1.3; gap: .15rem; }
.demo-booking .demo-dates a:has(time), .demo-slot-text { text-align: center; }
.demo-dates a:has(time) span, .demo-slot-text small { color: var(--dim); font-size: .76rem; }
.demo-dates time { font-size: .86rem; font-variant-numeric: tabular-nums; }
.demo-dates [aria-current], .demo-slots label:has(:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--surface) 89%, var(--accent)); font-weight: 750; }
.demo-dates a:hover, .demo-slots label:not(:has(:disabled)):hover { border-color: var(--accent); }
.demo-slots label { position: relative; cursor: pointer; }
.demo-slots input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.demo-slots label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-slots label:has(:disabled) { color: var(--dim); cursor: default; background: var(--canvas); border-style: dashed; }
.demo-confirm { display: flex; justify-content: space-between; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: .15rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.demo-confirm p { display: grid; gap: .13rem; margin: 0; font-size: .84rem; }
.demo-confirm strong { color: var(--ink); }
.demo .demo-button { display: inline-block; border: 1px solid transparent; border-radius: .25rem; padding: .72rem 1rem; background: var(--accent); color: var(--on-accent); text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.demo .demo-button:disabled { opacity: .55; cursor: default; }
.demo-link-button, .demo-action { display: inline-block; color: var(--accent); border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); cursor: pointer; text-decoration: none; padding: .35rem .6rem; text-align: start; font: inherit; }
.demo-link-button:hover, .demo-action:hover { border-color: var(--accent); }
.demo-schedule-row { justify-content: space-between; border-bottom: 1px solid var(--line); padding-block: .45rem; }
.demo-appointments { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: .8rem; margin-top: .5rem; }
.demo-appointment, .demo-empty { background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; padding: .9rem 1.05rem; }
.demo-appointment-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; }
.demo-appointment-head h4 { margin: 0; font-size: 1.05rem; }
.demo-count, .demo-status { border-radius: .35rem; font-size: .78rem; padding: .18rem .45rem; background: var(--canvas); color: var(--dim); }
.demo-status[data-demo-status="Confirmed"] { color: var(--accent); background: color-mix(in srgb, var(--surface) 86%, var(--accent)); }
.demo-appointment-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .8rem; margin: .8rem 0; }
.demo-appointment-meta dt { font-size: .79rem; color: var(--dim); }
.demo-appointment-meta dd { margin: 0; font-weight: 650; }
.demo-appointment-actions { display: flex; flex-wrap: wrap; align-items: start; gap: .45rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.demo-appointment-actions details[open] { flex-basis: 100%; }
.demo-appointment-actions details form { margin-top: .6rem; padding: .65rem; background: var(--canvas); border-radius: .4rem; }
.demo-appointment-actions select { min-width: 0; width: 100%; color: var(--ink); background: var(--surface); border-color: var(--line); }
.demo-booking-group { margin-top: .75rem; }
.demo-booking-group summary { cursor: pointer; padding: .6rem 0; font-weight: 700; }
.demo-empty p { margin-bottom: .5rem; }
.demo-result { margin-block: 1rem; border-inline-start: 3px solid var(--accent); border-radius: .45rem; }
.demo-booking .demo-result { margin-bottom: 0; }
.demo-result a { margin: .25rem .5rem .15rem 0; }
.demo-feedback { position: fixed; z-index: 20; inset: auto 1rem 1rem auto; max-width: min(24rem, calc(100% - 2rem)); margin: 0; border-radius: .5rem; }
.demo .demo-feedback:not(:empty) { padding: .7rem 1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--accent); box-shadow: 0 .3rem 1.4rem #0003; }
.demo .demo-feedback.is-error { border-width: 2px; }
.demo-pending :is(.demo-offers, .demo-dates, .demo-confirm) { cursor: progress; }
.demo-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: end; max-width: 48rem; }
.demo-chat-form input { min-width: 0; color: var(--ink); background: var(--surface); border-color: var(--line); }
.demo-chat-services { display: grid; gap: .75rem; padding-inline-start: 1.15rem; }
.demo-chat-services time { display: block; color: var(--muted); font-size: .9rem; }
.demo-chat-times { display: flex; flex-wrap: wrap; gap: .35rem; }
.demo-chat-times a { display: inline-grid; min-height: 2rem; place-items: center; padding-inline: .55rem; margin: .15rem 0; border: 1px solid var(--line); border-radius: .4rem; color: var(--accent); text-decoration: none; }
.demo-chat-times a:hover { border-color: var(--accent); }
.demo-prompts { grid-column: 1 / -1; }
.demo-footer { padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); gap: 1rem 1.5rem; }
.demo .stack :is(input, textarea) { min-width: 0; width: 100%; color: var(--ink); background: var(--canvas); border-color: var(--line); }
.business-hero-with-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.business-hero-with-photo h1, .business-header { overflow-wrap: anywhere; }
.theme-studio .business-hero-with-photo img { grid-column: 1; grid-row: 1; border-radius: 44% 44% 1rem 1rem; }
.theme-essential .business-hero-with-photo img { box-shadow: .4rem .4rem 0 currentColor; }
.business.palette-forest { --ink: #233a30; --brand: #365c46; --brand-hover: #294835; --tint: #e7f0e7; --line: #c9d9cc; }
.business.palette-ocean { --ink: #203857; --brand: #205583; --brand-hover: #173d60; --tint: #e6f0f9; --line: #c9d9e8; }
.business.palette-clay { --ink: #4c2d23; --brand: #8e482e; --brand-hover: #6f3621; --tint: #f6ebe5; --line: #e6d1c6; }
.business.palette-graphite { --ink: #282c33; --brand: #444c59; --brand-hover: #303844; --tint: #edf0f4; --line: #d2d7df; }
.business[class*="palette-"]:not(.theme-bold) .business-hero { background: var(--tint); }
.business[class*="palette-"].theme-bold .business-hero .button { background: var(--tint); }
@media (max-width: 51rem) {
    .demo-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
    .demo-flow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
    .demo-hero, .demo-studio .demo-hero, .demo-essential .demo-hero, .demo-services, .demo-story, .business-hero-with-photo { grid-template-columns: minmax(0, 1fr); }
    .demo-studio .demo-hero img, .theme-studio .business-hero-with-photo img { grid-row: auto; }
    .demo-hero img { max-height: 22rem; }
    .demo-nav nav { gap: .45rem .75rem; }
    .demo-nav .demo-wrap { grid-template-columns: 5.25rem minmax(0, 1fr) 5.25rem; }
    .demo-nav .demo-nav-start { grid-column: 2; grid-row: 1; }
    .demo-nav .language-menu { grid-column: 3; grid-row: 1; }
    .demo-nav nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 23rem) {
    .demo-booking .demo-dates a, .demo-slots label { padding-inline: .32rem; }
    .demo-confirm .demo-button { width: 100%; }
}
.photo-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(18rem, 42vw, 32rem);
    align-content: center;
    padding: clamp(1.6rem, 6vw, 5rem);
    border-radius: var(--example-cover-radius, 1.1rem);
    background: var(--example-cover-fallback, #24342e);
    color: #fff;
}
.photo-hero::after, .photo-hero > img.example-cover {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}
.photo-hero > img.example-cover {
    display: block; object-fit: cover; aspect-ratio: auto; max-height: none;
    border-radius: 0; box-shadow: none;
}
.photo-hero::after { content: ""; background: var(--example-cover-shade, linear-gradient(90deg, #10211bed, #10211b64 84%)); }
.photo-hero :is(h1, p, p.food-type, .forma-kicker) { color: #fff; }
.demo :is(.demo-hero, .food-hero).photo-hero, .forma .forma-hero.photo-hero { grid-template-columns: minmax(0, 38rem); }
.demo :is(.demo-hero, .food-hero).photo-hero, .demo .linea-hero.photo-hero { margin-top: clamp(.65rem, 2vw, 1.65rem); }
.demo-studio .photo-hero { --example-cover-radius: 1.7rem; --example-cover-shade: linear-gradient(100deg, #252137ef, #30263c73); }
.demo-essential .photo-hero { --example-cover-radius: .25rem; --example-cover-shade: linear-gradient(100deg, #0e2236f2, #172c4188); }
.demo-bold .photo-hero { --example-cover-radius: .35rem; --example-cover-shade: linear-gradient(90deg, #161b23f5, #20253069); }
.food-site .photo-hero { --example-cover-shade: linear-gradient(100deg, #2c221ceb, #38291c70); }
.food-site .photo-hero .demo-action { color: #fff; background: #2e241e9c; border-color: #f6e9d0ab; }
.forma .photo-hero { --example-cover-radius: 1.7rem; --example-cover-shade: linear-gradient(95deg, #38251eed, #49362b54); }
.forma .photo-hero > div { padding: 0; }
.examples-heading.photo-hero { display: grid; max-width: none; margin-inline: 0; min-height: clamp(15rem, 30vw, 24rem); }
.examples-heading.photo-hero p { max-width: 42rem; }
.demo-contact-fields { margin-block: .6rem; text-align: start; }
.demo-contact-fields summary { font-size: .88rem; font-weight: 650; cursor: pointer; }
.demo-contact-fields p { margin-block: .4rem; }
.demo-contact-footer { max-width: 74rem; margin-inline: auto; padding: 1.25rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: #e9e6dc; }
@media (max-width: 36rem) {
    .photo-hero { --example-cover-shade: linear-gradient(110deg, #17241be8, #17241b9e); }
    .photo-hero > img.example-cover { object-position: 62% center; }
}
