/*
 * Public homepage hero (pages/index.php): the pitch and the prompt on the left and a live preview of
 * Wobbio building a bakery website on the right (below the prompt on phones and tablets).
 * The preview is drawn with HTML and CSS only; assets/js/public-website/home-hero.js scales it and runs the loop.
 * Without that script, or with prefers-reduced-motion, the preview shows the finished site.
 */
#public-home-hero {
    --hh-indigo-50: #eef2ff;
    --hh-indigo-200: #c7d2fe;
    --hh-indigo-300: #a5b4fc;
    --hh-indigo-400: #818cf8;
    --hh-indigo-500: #6366f1;
    --hh-indigo-600: #4f46e5;
    --hh-indigo-700: #4338ca;
    --hh-slate-50: #f8fafc;
    --hh-slate-100: #f1f5f9;
    --hh-slate-200: #e2e8f0;
    --hh-slate-300: #cbd5e1;
    --hh-slate-400: #94a3b8;
    --hh-slate-500: #64748b;
    --hh-slate-600: #475569;
    --hh-slate-700: #334155;
    --hh-slate-900: #0f172a;
    --hh-emerald-500: #10b981;
    --hh-emerald-600: #059669;
    --hh-grad: linear-gradient(135deg, #4f46e5, #7c3aed);
    --hh-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 10;
    max-width: 100%;
    overflow: hidden;
    /* 80px fixed header above the hero */
    padding: 108px 0 64px;
}

.home-hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(380px 300px at 50% 250px, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0) 72%),
        radial-gradient(420px 340px at 80% 560px, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0) 70%),
        radial-gradient(320px 260px at 20% 720px, rgba(236, 72, 153, 0.06), rgba(236, 72, 153, 0) 70%);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
}

.home-hero-content {
    width: 100%;
    min-width: 0;
    max-width: 38rem;
    margin: 0 auto;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Badge, headline, subline                                            */
/* ------------------------------------------------------------------ */
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    height: 32px;
    padding: 0 11px 0 13px;
    border: 1px solid var(--hh-indigo-200);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.06), 0 4px 12px -6px rgba(79, 70, 229, 0.25);
    color: var(--hh-indigo-700);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-badge:hover {
    border-color: var(--hh-indigo-300);
    background: #fff;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.08), 0 6px 16px -6px rgba(79, 70, 229, 0.35);
}

.home-hero-badge:focus-visible {
    outline: none;
    border-color: var(--hh-indigo-400);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.home-hero-badge-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hh-indigo-600);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

.home-hero-badge-copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-hero-badge-icon {
    flex: none;
    width: 14px;
    height: 14px;
    margin-left: -2px;
    color: var(--hh-indigo-400);
    transition: transform 0.2s ease;
}

.home-hero-badge:hover .home-hero-badge-icon {
    transform: translateX(2px);
}

.home-hero-title {
    margin: 22px 0 0;
    color: var(--hh-slate-900);
    font-size: clamp(2.3rem, 11vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-hero-title-lead {
    display: block;
    text-wrap: balance;
}

.home-hero-magic {
    display: inline-block;
    padding: 0 0.04em 0.08em 0;
    margin-bottom: -0.08em;
    background: linear-gradient(90deg, #4f46e5, #9333ea, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-tagline {
    max-width: 34rem;
    margin: 14px auto 0;
    color: var(--hh-slate-600);
    font-size: 17px;
    line-height: 1.65;
    text-wrap: pretty;
}

/* ------------------------------------------------------------------ */
/* Prompt                                                              */
/* ------------------------------------------------------------------ */
.home-hero-prompt {
    position: relative;
    margin: 24px 0 0;
}

.home-hero-prompt-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 16px;
    border: 1px solid var(--hh-indigo-300);
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.1),
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 18px 40px -14px rgba(79, 70, 229, 0.28),
        0 8px 16px -10px rgba(15, 23, 42, 0.1);
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-prompt-shell:hover {
    border-color: var(--hh-indigo-400);
}

.home-hero-prompt-shell:focus-within {
    border-color: var(--hh-indigo-500);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.2),
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 18px 40px -14px rgba(79, 70, 229, 0.34),
        0 8px 16px -10px rgba(15, 23, 42, 0.1);
}

.home-hero-prompt-icon {
    display: none;
    flex: none;
    align-self: flex-start;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--hh-indigo-50);
    color: var(--hh-indigo-600);
}

.home-hero-prompt-icon svg,
.home-hero-prompt-icon i {
    display: block;
    width: 18px;
    height: 18px;
}

.home-hero-prompt-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--hh-slate-900);
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    resize: none;
    overflow: hidden;
    outline: none;
    transition: height 0.2s ease;
}

.home-hero-prompt-input:focus {
    outline: none;
    box-shadow: none;
}

.home-hero-prompt-input::placeholder {
    color: var(--hh-slate-500);
    opacity: 1;
}

.home-hero-prompt-submit {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hh-indigo-600);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 1px 2px rgba(49, 46, 129, 0.25),
        0 8px 18px -6px rgba(79, 70, 229, 0.55);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-prompt-submit:hover {
    background: var(--hh-indigo-700);
    transform: translateY(-1px);
}

.home-hero-prompt-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hh-indigo-500);
}

.home-hero-prompt-submit svg,
.home-hero-prompt-submit i {
    display: block;
    width: 20px;
    height: 20px;
    stroke-width: 2.25;
}

/* ------------------------------------------------------------------ */
/* Example chips: one row that scrolls sideways on phones and tablets  */
/* ------------------------------------------------------------------ */
.home-hero-examples-wrap {
    position: relative;
    margin-top: 14px;
}

.home-hero-examples-scroll {
    margin: 0 -16px;
    padding: 4px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.home-hero-examples-scroll::-webkit-scrollbar {
    display: none;
}

.home-hero-examples {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin: 0 auto;
    white-space: nowrap;
}

.home-hero-examples-label {
    flex: none;
    margin-right: 2px;
    color: var(--hh-slate-500);
    font-size: 13px;
    font-weight: 600;
}

.home-hero-example {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px 0 11px;
    border: 1px solid var(--hh-slate-200);
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    color: var(--hh-slate-700);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-example[hidden] {
    display: none;
}

.home-hero-example:hover,
.home-hero-example.is-selected {
    border-color: var(--hh-indigo-300);
    background: var(--hh-indigo-50);
    color: var(--hh-indigo-700);
}

.home-hero-example:focus-visible {
    outline: none;
    border-color: var(--hh-indigo-400);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.home-hero-example-icon {
    display: block;
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--hh-slate-400);
    transition: color 0.2s ease;
}

.home-hero-example:hover .home-hero-example-icon,
.home-hero-example.is-selected .home-hero-example-icon {
    color: var(--hh-indigo-600);
}

/* ------------------------------------------------------------------ */
/* Trust row                                                           */
/* ------------------------------------------------------------------ */
.home-hero-usps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.home-hero-usp {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--hh-slate-600);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}

.home-hero-usp-icon {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--hh-indigo-500);
    stroke-width: 1.9;
}

/* ------------------------------------------------------------------ */
/* Live preview: a 620x580 stage, scaled to the column by home-hero.js */
/* ------------------------------------------------------------------ */
.home-hero-preview {
    position: relative;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 620 / 580;
    margin: 0 auto;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.home-hero-preview-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 620px;
    height: 580px;
    color: var(--hh-slate-900);
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: normal;
    text-align: left;
    transform: scale(var(--home-hero-preview-scale, 1));
    transform-origin: 0 0;
}

.home-hero-preview .hp-icon {
    display: block;
    flex: none;
}

.hp-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid var(--hh-slate-200);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 60px -20px rgba(49, 46, 129, 0.28), 0 12px 24px -12px rgba(15, 23, 42, 0.14);
}

.hp-chrome {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-bottom: 1px solid var(--hh-slate-200);
    background: var(--hh-slate-50);
}

.hp-dots {
    display: flex;
    gap: 6px;
}

.hp-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hh-slate-300);
}

.hp-url {
    position: absolute;
    left: 50%;
    top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 250px;
    height: 26px;
    border: 1px solid var(--hh-slate-200);
    border-radius: 8px;
    background: #fff;
    color: var(--hh-slate-700);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
}

.hp-url .hp-icon {
    width: 12px;
    height: 12px;
    color: var(--hh-emerald-600);
    stroke-width: 2.25;
}

.hp-live {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 160px;
    height: 22px;
    margin-left: auto;
    padding: 0 9px 0 8px;
    border-radius: 9999px;
    background: var(--hh-indigo-50);
    color: var(--hh-indigo-700);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.hp-live i {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hh-indigo-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.hp-live span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The generated bakery site has its own look: warm browns and a Georgia serif. */
.hp-site {
    --hp-skeleton: #eadfcf;
    display: flex;
    flex-direction: column;
    height: 539px;
    overflow: hidden;
    background: #fbf6ee;
    color: #3b2416;
    font-size: 12px;
    line-height: 1.5;
}

.hp-serif {
    font-family: Georgia, 'Times New Roman', serif;
}

.hp-nav {
    display: flex;
    flex: none;
    align-items: center;
    gap: 16px;
    height: 54px;
    padding: 0 22px;
    border-bottom: 1px solid #efe4d3;
}

.hp-logo {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.hp-logo-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3b2416;
    color: #ebc98a;
}

.hp-logo-mark .hp-icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.hp-links {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    margin-left: auto;
    color: #7a5a45;
    font-weight: 500;
    white-space: nowrap;
}

.hp-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 13px 0 11px;
    border-radius: 9999px;
    background: #b4532a;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.hp-btn .hp-icon {
    width: 13px;
    height: 13px;
}

.hp-hero {
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    min-height: 246px;
    padding: 21px 22px;
}

.hp-copy {
    flex: 1 1 0;
    min-width: 0;
}

.hp-eyebrow {
    overflow: hidden;
    color: #b4532a;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 14px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.hp-title {
    margin-top: 10px;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 34px;
    text-wrap: balance;
}

.hp-lead {
    margin-top: 10px;
    color: #7a5a45;
    line-height: 18px;
}

.hp-ctas {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.hp-ctas .hp-btn {
    height: 32px;
    padding: 0 14px 0 12px;
}

.hp-ghost {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #d9c7ae;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
}

/* Hero "photo": a loaf and a baguette on a board, drawn with gradients. */
.hp-photo {
    position: relative;
    flex: none;
    width: 286px;
    height: 204px;
    overflow: hidden;
    border-radius: 14px;
    background: #efe4d6;
}

.hp-art {
    position: absolute;
    inset: 0;
}

.hp-photo .hp-art {
    background:
        radial-gradient(90% 70% at 72% 8%, rgba(255, 219, 160, 0.55), rgba(255, 219, 160, 0) 62%),
        linear-gradient(165deg, #7a4b2a 0%, #4e2f1b 52%, #2e1b10 100%);
}

.hp-board {
    position: absolute;
    left: 20px;
    right: 16px;
    bottom: 18px;
    height: 58px;
    border-radius: 30px;
    background:
        repeating-linear-gradient(180deg, rgba(110, 60, 20, 0) 0 7px, rgba(110, 60, 20, 0.13) 7px 8px),
        linear-gradient(180deg, #d39a58 0%, #b07739 55%, #8c5a28 100%);
    box-shadow: 0 14px 20px -6px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 230, 190, 0.45);
}

.hp-loaf {
    position: absolute;
    left: 34px;
    bottom: 40px;
    width: 138px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(58% 52% at 40% 30%, #f6cf8e 0%, #db9550 42%, #a95d27 78%, #7b3f18 100%);
    box-shadow: inset -10px -12px 20px rgba(80, 35, 10, 0.45), 0 10px 16px -4px rgba(0, 0, 0, 0.45);
}

.hp-loaf::before,
.hp-loaf::after {
    content: "";
    position: absolute;
    width: 92px;
    height: 46px;
    border-top: 3px solid rgba(252, 231, 196, 0.9);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.hp-loaf::before {
    left: 22px;
    top: 24px;
}

.hp-loaf::after {
    left: 26px;
    top: 42px;
    width: 80px;
    opacity: 0.75;
}

.hp-flour {
    position: absolute;
    left: 58px;
    bottom: 76px;
    width: 70px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 250, 240, 0.55), rgba(255, 250, 240, 0));
    transform: rotate(-14deg);
}

.hp-baguette {
    position: absolute;
    right: 26px;
    bottom: 52px;
    width: 150px;
    height: 30px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f2be78 0%, #d08a45 55%, #9c5626 100%);
    box-shadow: 0 8px 12px -4px rgba(0, 0, 0, 0.45);
    transform: rotate(-26deg);
}

.hp-baguette::before {
    content: "";
    position: absolute;
    inset: 6px 16px;
    border-radius: 10px;
    background: repeating-linear-gradient(115deg, rgba(0, 0, 0, 0) 0 14px, rgba(252, 231, 196, 0.9) 14px 17px, rgba(0, 0, 0, 0) 17px 24px);
}

.hp-wheat {
    position: absolute;
    right: 18px;
    top: 16px;
    color: rgba(240, 200, 130, 0.55);
}

.hp-wheat .hp-icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.4;
}

/* "Fresh today" product row */
.hp-section {
    flex: 1 0 auto;
    padding: 0 22px;
    border-top: 1px solid #efe4d3;
    background: #f6eee2;
}

.hp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 52px;
}

.hp-section-title {
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
}

.hp-more {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b4532a;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.hp-more .hp-icon {
    width: 12px;
    height: 12px;
}

.hp-cards {
    display: flex;
    gap: 14px;
}

.hp-card {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(59, 36, 22, 0.08), 0 4px 12px -6px rgba(59, 36, 22, 0.14);
}

.hp-img {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: #f1e7da;
}

.hp-img-bread .hp-art {
    background: radial-gradient(80% 90% at 30% 20%, #f7ebda, #e8d5ba);
}

.hp-mini-loaf {
    position: absolute;
    left: 44px;
    top: 18px;
    width: 94px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(58% 52% at 40% 30%, #f3c98a 0%, #d38d4a 45%, #a45a27 80%, #7b3f18 100%);
    box-shadow: inset -7px -8px 14px rgba(80, 35, 10, 0.4), 0 8px 10px -4px rgba(90, 50, 20, 0.45);
}

.hp-mini-loaf::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 18px;
    width: 62px;
    height: 30px;
    border-top: 2.5px solid rgba(252, 231, 196, 0.9);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.hp-img-buns .hp-art {
    background: radial-gradient(90% 90% at 70% 10%, #6b5140, #3f2d22);
}

.hp-bun {
    position: absolute;
    width: 52px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(55% 50% at 40% 32%, #f4c98b 0%, #d08b45 48%, #98521f 100%);
    box-shadow: inset -5px -6px 10px rgba(80, 35, 10, 0.4), 0 6px 8px -3px rgba(0, 0, 0, 0.5);
}

.hp-bun::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(3px 2.5px at 30% 40%, #3a1c0c 90%, transparent),
        radial-gradient(3px 2.5px at 62% 30%, #3a1c0c 90%, transparent),
        radial-gradient(3px 2.5px at 55% 62%, #3a1c0c 90%, transparent),
        radial-gradient(3px 2.5px at 76% 55%, #3a1c0c 90%, transparent),
        radial-gradient(3px 2.5px at 38% 70%, #3a1c0c 90%, transparent);
}

.hp-bun-1 {
    left: 24px;
    top: 30px;
}

.hp-bun-2 {
    left: 66px;
    top: 14px;
    transform: scale(1.06);
}

.hp-bun-3 {
    left: 106px;
    top: 38px;
}

/* Apple pie with a lattice top on a plate, seen at an angle. */
.hp-img-pie .hp-art {
    background: radial-gradient(90% 100% at 25% 10%, #f8efe3, #e7d4b9);
}

.hp-plate {
    position: absolute;
    left: 50%;
    top: 36px;
    width: 150px;
    height: 58px;
    margin-left: -75px;
    border-radius: 50%;
    background: radial-gradient(closest-side, #fffdf9 72%, #eee5d8 76%, #fbf7f1 84%, #e2d6c5 100%);
    box-shadow: 0 10px 14px -6px rgba(90, 50, 20, 0.35);
}

.hp-pie {
    position: absolute;
    left: 50%;
    top: 27px;
    width: 112px;
    height: 48px;
    margin-left: -56px;
    border-radius: 50%;
    background:
        repeating-linear-gradient(62deg, rgba(0, 0, 0, 0) 0 8px, #eab56c 8px 13px),
        repeating-linear-gradient(-62deg, rgba(0, 0, 0, 0) 0 8px, #e2a95e 8px 13px),
        radial-gradient(closest-side, #a44e1d, #7c3512);
    box-shadow:
        inset 0 0 0 4px #d9984b,
        inset 0 -3px 6px rgba(80, 35, 10, 0.35),
        0 6px 0 -1px #b9692d,
        0 11px 10px -3px rgba(90, 45, 15, 0.4);
}

/* Third card while Wobbio is still choosing its image */
.hp-choosing {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 12px 12px 0 0;
    outline: 1.5px dashed var(--hh-indigo-400);
    outline-offset: -5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hp-choosing-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    height: 24px;
    padding: 0 10px 0 8px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(79, 70, 229, 0.3);
    color: var(--hh-indigo-700);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.hp-choosing-pill span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-choosing-pill .hp-icon {
    width: 13px;
    height: 13px;
    color: var(--hh-indigo-600);
    stroke-width: 2.5;
}

.hp-card-body {
    padding: 10px 12px 12px;
}

.hp-name,
.hp-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-name {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 17px;
}

.hp-meta {
    color: #8a6d58;
    font-size: 11px;
    line-height: 15px;
}

.hp-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.hp-price {
    color: #b4532a;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hp-add {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b2416;
    color: #fbf6ee;
}

.hp-add .hp-icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
}

/* Floating progress card (Wobbio UI) */
.hp-progress {
    position: absolute;
    left: -32px;
    top: 410px;
    z-index: 2;
    width: 250px;
    padding: 14px 16px 12px;
    border: 1px solid var(--hh-slate-200);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 44px -14px rgba(49, 46, 129, 0.34), 0 8px 16px -8px rgba(15, 23, 42, 0.16);
}

.hp-progress-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hp-mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--hh-grad);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hp-mark svg {
    display: block;
    width: 15px;
    height: 15px;
}

.hp-progress-title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--hh-slate-900);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
}

.hp-progress-title-done,
.hp-progress.is-complete .hp-progress-title-busy {
    display: none;
}

.hp-progress.is-complete .hp-progress-title-done {
    display: inline;
}

.hp-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 16px;
    margin-top: 11px;
}

.hp-bar {
    flex: 1 1 auto;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--hh-slate-100);
}

.hp-bar i {
    display: block;
    width: calc(var(--hp-progress, 1) * 100%);
    height: 100%;
    border-radius: 3px;
    background: var(--hh-grad);
}

.hp-pct {
    min-width: 34px;
    color: var(--hh-indigo-600);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hp-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.hp-step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--hh-slate-400);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}

.hp-step .hp-icon {
    display: none;
    width: 17px;
    height: 17px;
}

.hp-step .hp-step-icon-todo {
    display: block;
    color: var(--hh-slate-300);
}

.hp-step.is-active,
.hp-step.is-done {
    color: var(--hh-slate-600);
}

.hp-step.is-active {
    color: var(--hh-slate-900);
    font-weight: 600;
}

.hp-step.is-active .hp-step-icon-todo,
.hp-step.is-done .hp-step-icon-todo {
    display: none;
}

.hp-step.is-active .hp-step-icon-busy {
    display: block;
    color: var(--hh-indigo-600);
    stroke-width: 2.5;
}

.hp-step.is-done .hp-step-icon-done {
    display: block;
    color: var(--hh-emerald-500);
}

.hp-step-label {
    min-width: 0;
}

.hp-step-label-done,
.hp-step.is-done .hp-step-label-busy {
    display: none;
}

.hp-step.is-done .hp-step-label-done {
    display: inline;
}

.hp-eta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--hh-slate-100);
    color: var(--hh-slate-500);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.hp-eta .hp-icon {
    width: 14px;
    height: 14px;
    color: var(--hh-slate-400);
}

/* ------------------------------------------------------------------ */
/* Build loop (home-hero.js adds .is-animated and the step classes)    */
/* Layout blocks fade in, texts replace their skeleton bars, images    */
/* replace their shimmering placeholders.                              */
/* ------------------------------------------------------------------ */
.home-hero-preview.is-animated [data-hp-layout] {
    transition: opacity 0.5s ease, transform 0.6s var(--hh-ease);
}

.home-hero-preview.is-animated [data-hp-layout]:not(.is-laid-out) {
    opacity: 0;
    transform: translateY(8px);
}

.home-hero-preview .hp-text {
    border-radius: 3px;
    background-image: linear-gradient(var(--hp-skeleton), var(--hp-skeleton));
    background-position: 100% 55%;
    background-repeat: no-repeat;
    background-size: 0 64%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.home-hero-preview.is-animated .hp-text {
    transition: color 0.4s ease 0.15s, background-size 0.55s ease-in-out;
}

.home-hero-preview.is-animated [data-hp-write]:not(.is-written) .hp-text {
    color: transparent;
    background-size: 100% 64%;
}

.home-hero-preview.is-animated .hp-btn,
.home-hero-preview.is-animated .hp-ghost,
.home-hero-preview.is-animated .hp-add,
.home-hero-preview.is-animated .hp-logo-mark {
    transition: background-color 0.45s ease, border-color 0.45s ease;
}

.home-hero-preview.is-animated [data-hp-write] .hp-icon {
    transition: opacity 0.45s ease 0.1s;
}

.home-hero-preview.is-animated [data-hp-write]:not(.is-written) .hp-icon {
    opacity: 0;
}

.home-hero-preview.is-animated [data-hp-write]:not(.is-written) .hp-btn,
.home-hero-preview.is-animated [data-hp-write]:not(.is-written) .hp-add,
.home-hero-preview.is-animated [data-hp-write]:not(.is-written) .hp-logo-mark {
    background-color: var(--hp-skeleton);
}

.home-hero-preview.is-animated [data-hp-write]:not(.is-written) .hp-btn .hp-text {
    background-size: 0 64%;
}

.home-hero-preview.is-animated [data-hp-write]:not(.is-written) .hp-ghost {
    border-color: var(--hp-skeleton);
}

.home-hero-preview.is-animated [data-hp-write]:not(.is-written) .hp-ghost .hp-text {
    background-size: 0 64%;
}

.home-hero-preview.is-animated [data-hp-picture] .hp-art {
    transition: opacity 0.7s ease, transform 0.9s var(--hh-ease);
}

.home-hero-preview.is-animated [data-hp-picture]:not(.is-pictured) .hp-art {
    opacity: 0;
    transform: scale(1.04);
}

.home-hero-preview.is-animated [data-hp-picture]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #efe6da 30%, #f8f2ea 48%, #efe6da 66%);
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.home-hero-preview.is-animated [data-hp-picture]:not(.is-pictured)::after {
    opacity: 1;
    animation: hp-shimmer 1.8s linear infinite;
}

.home-hero-preview.is-animated .hp-choosing {
    z-index: 1;
}

.home-hero-preview.is-animated .is-choosing .hp-choosing {
    opacity: 1;
}

.home-hero-preview.is-animated .hp-choosing .hp-icon,
.home-hero-preview.is-animated .hp-step.is-active .hp-step-icon-busy {
    animation: hp-spin 1s linear infinite;
}

.home-hero-preview.is-animated .hp-live i {
    animation: hp-pulse 2.4s ease-in-out infinite;
}

.home-hero-preview.is-paused *,
.home-hero-preview.is-paused *::after {
    animation-play-state: paused !important;
}

/* Used for one frame when the loop (re)starts, so nothing animates out. */
.home-hero-preview.is-instant *,
.home-hero-preview.is-instant *::after {
    transition: none !important;
}

@keyframes hp-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -50% 0; }
}

@keyframes hp-spin {
    to { transform: rotate(360deg); }
}

@keyframes hp-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.08); }
}

/* ------------------------------------------------------------------ */
/* Phones and tablets                                                  */
/* ------------------------------------------------------------------ */
@media (min-width: 480px) {
    .home-hero-prompt-icon {
        display: grid;
    }
}

@media (min-width: 640px) {
    #public-home-hero {
        padding-top: 128px;
    }

    .home-hero-title {
        margin-top: 24px;
        font-size: 3.75rem;
    }

    .home-hero-tagline {
        font-size: 18px;
    }

    .home-hero-examples-scroll {
        margin: 0;
        padding: 4px 0;
    }
}

@media (max-width: 639.98px) {
    /* Leave room on the left for the floating progress card. */
    .home-hero-preview {
        width: calc(100% - 18px);
        margin-right: 0;
    }
}

/* ------------------------------------------------------------------ */
/* Desktop: two columns, the left one aligned with the header logo     */
/* ------------------------------------------------------------------ */
@media (min-width: 1024px) {
    #public-home-hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: max(104px, calc(50vh - 280px)) 0 72px;
        padding-top: max(104px, calc(50svh - 280px));
    }

    .home-hero-backdrop {
        background:
            radial-gradient(420px 320px at 20% 330px, rgba(124, 58, 237, 0.09), rgba(124, 58, 237, 0) 72%),
            radial-gradient(520px 380px at 76% 420px, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0) 70%),
            radial-gradient(360px 260px at 60% 640px, rgba(236, 72, 153, 0.07), rgba(236, 72, 153, 0) 70%);
    }

    .home-hero-grid {
        grid-template-columns: minmax(0, 540fr) minmax(0, 620fr);
        align-items: start;
        column-gap: clamp(40px, 4.4vw, 56px);
    }

    .home-hero-content {
        max-width: none;
        margin: 0;
        padding-top: 46px;
        text-align: left;
    }

    .home-hero-title {
        margin-top: 24px;
        font-size: clamp(3.25rem, 1.2rem + 3.6vw, 4rem);
        line-height: 1.0625;
    }

    .home-hero-tagline {
        max-width: 540px;
        margin: 16px 0 0;
        font-size: 16px;
        line-height: 26px;
        text-wrap: balance;
    }

    .home-hero-prompt {
        margin-top: 28px;
    }

    .home-hero-prompt-shell {
        gap: 14px;
        padding: 18px;
    }

    .home-hero-prompt-input {
        font-size: 16.5px;
    }

    .home-hero-prompt-submit {
        width: 48px;
        height: 48px;
    }

    .home-hero-prompt-submit svg,
    .home-hero-prompt-submit i {
        width: 21px;
        height: 21px;
    }

    .home-hero-examples-wrap {
        margin-top: 16px;
    }

    /* One row; home-hero.js hides the chips that do not fit. */
    .home-hero-examples-scroll {
        margin: -4px;
        padding: 4px;
        overflow: hidden;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .home-hero-examples {
        width: auto;
        margin: 0;
    }

    .home-hero-example {
        height: 32px;
    }

    .home-hero-usps {
        justify-content: flex-start;
        margin-top: 36px;
    }

    .home-hero-preview {
        justify-self: end;
        /* Shrink the preview on short screens so it stays in the first screen. */
        width: min(100%, calc((100vh - 190px) * 1.069));
        width: min(100%, calc((100svh - 190px) * 1.069));
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-badge,
    .home-hero-badge-icon,
    .home-hero-prompt-shell,
    .home-hero-prompt-input,
    .home-hero-prompt-submit,
    .home-hero-example {
        transition: none;
    }

    .home-hero-badge:hover .home-hero-badge-icon,
    .home-hero-prompt-submit:hover {
        transform: none;
    }

    .home-hero-preview *,
    .home-hero-preview *::after {
        animation: none !important;
        transition: none !important;
    }
}
