/* /start/v2 additions on top of start.css (templates/start_v2.html). */

/* Phone order: headline, search and niches, then the photo-to-video examples. */
.v2 .hero-in { grid-template-areas: "copy" "act" "ba"; gap: 14px; }
@media (min-width: 900px) { .v2 .hero-in { grid-template-areas: "copy ba" "act ba"; } }

/* Search box first (Higgsfield): one big field, examples rotating in the placeholder. */
.searchbox {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px;
    height: 58px; padding: 0 16px; max-width: 560px;
    border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--input); box-shadow: var(--shadow);
}
.searchbox:focus-within { border-color: var(--pink); }
.searchbox svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.searchbox input { border: 0 !important; height: 54px; padding: 0; background: transparent; font-family: inherit; font-size: 16.5px; }
.searchbox input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* "What do you sell?" (Dragonly's quiz, one question): one row of chips that scrolls sideways. */
.chips {
    display: flex; gap: 8px; margin: 12px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none;
    max-width: calc(560px + 32px);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.results { margin-top: 12px; max-width: 560px; display: grid; gap: 8px; }
.result {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center;
    padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
    text-align: left; cursor: pointer; width: 100%;
}
.result img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg-alt); }
.result-title {
    font-size: 14px; line-height: 1.3; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.result-price { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.result:hover, .result:focus-visible { border-color: var(--pink); }
.result.is-loading { opacity: 0.5; }
.results-empty { color: var(--ink-2); font-size: 14.5px; padding: 6px 2px; }

/* "Or just paste a product link" under the search box; a pasted TikTok link swaps it for a full-width button. */
.orpaste { margin: 8px 0 0; max-width: 560px; color: var(--ink-2); font-size: 14.5px; cursor: text; }
.orpaste[hidden] { display: none; }
.linkgo { margin-top: 10px; max-width: 560px; height: 54px; font-size: 17px; }
.linkgo[hidden] { display: none; }
.v2 .hint { margin-top: 8px; }

/* Real numbers (BatchBot's stats row). */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.numbers-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.numbers b { display: block; font-size: clamp(22px, 6vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.numbers span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.35; }

/* Every rule of the free plan (Cantina's creator page) and the cost per video (MakeUGC). */
.deal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 760px) { .deal { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; } }
.deal-card {
    display: flex; flex-direction: column; gap: 4px; padding: 26px 22px; border-radius: 22px;
    background: var(--ink); color: var(--bg);
}
.deal-label { font-weight: 600; opacity: 0.75; }
.deal-big { font-size: 84px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--pink); }
.deal-sub { font-size: 15px; opacity: 0.85; }
.deal-rules { list-style: none; display: grid; gap: 14px; }
.deal-rules li { padding-left: 30px; position: relative; color: var(--ink-2); }
.deal-rules li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.deal-rules b { color: var(--ink); }

/* Sticky button at the bottom of a phone (BatchBot), once the search box is off screen. */
.sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.sticky .btn-block { margin-top: 0; max-width: 520px; display: flex; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .sticky { display: none !important; } }
.v2 .foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .v2 .foot { padding-bottom: 28px; } }

/* Reading your product (Arcads' agent): a short checklist before the preview. */
.reading { text-align: center; padding: 18px 4px 6px; }
.reading img { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }
.checks { list-style: none; display: grid; gap: 10px; max-width: 300px; margin: 18px auto 0; text-align: left; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-3); transition: color 0.2s; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--line-strong);
}
.checks li.is-busy::before { border-color: var(--line); border-top-color: var(--pink); animation: spin 0.8s linear infinite; }
.checks li.is-done { color: var(--ink); }
.checks li.is-done::before {
    border-color: var(--pink);
    background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.confirm-h { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .checks li.is-busy::before { animation: none; } }
.searchbox input:focus-visible { outline: none; }      /* the box itself shows focus */

/* Phone: the headline and the small lines under the search are centered. */
@media (max-width: 899px) {
    .v2 .hero-copy, .v2 .hero-act .hint { text-align: center; }
    .v2 .orpaste { text-align: center; }
    .v2 .linkgo { margin-left: auto; margin-right: auto; }
}

/* ── Brand color on v2 ─────────────────────────────────────────────────── */
.searchbox:focus-within { box-shadow: 0 0 0 4px var(--glow); border-color: #fe2c55; }
.searchbox svg { stroke: #fe2c55; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip span { font-size: 15px; line-height: 1; }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 16px var(--glow); }
.numbers b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deal-card { background: linear-gradient(150deg, #1a0b14 0%, #2a0c1f 55%, #2b1150 100%); color: #fff; box-shadow: 0 14px 40px var(--glow); }
.deal-big { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deal-rules li::before { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--grad); background-size: 13px, cover; background-position: center; background-repeat: no-repeat; }
.result-price, .prod-meta b { color: #fe2c55; }
.checks li.is-done::before { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--grad); background-size: 13px, cover; border-color: transparent; }

/* Plan cards (the main page's Pro / Max / Scale cards, cut down): full width, stacked; three across on a computer. */
.mini-plans { display: grid; gap: 14px; margin-top: 24px; }
.mini-plan {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 16px 16px; border-radius: 18px; border: 1.5px solid var(--line-strong); background: var(--surface);
}
.mp-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; }
.mp-name { font-size: 17px; font-weight: 700; margin-top: 4px; }
.mp-price { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.mp-price small { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.mp-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 6px; }
.mp-list li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.mp-list li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; color: var(--ok, #25c48a); }
.mp-btn {
    margin-top: auto; display: block; text-align: center; padding: 12px; border-radius: 12px;
    font-weight: 700; font-size: 15px; color: #fff; text-decoration: none;
}
.mp-pro { border-color: rgba(1, 114, 193, 0.7); }
.mp-pro .mp-tag, .mp-pro .mp-btn { background: linear-gradient(135deg, #0172c1, #3aa0ff); }
.mp-max { border-color: rgba(0, 176, 155, 0.7); }
.mp-max .mp-tag, .mp-max .mp-btn { background: linear-gradient(135deg, #00b09b, #25f4a8); color: #000; }
.mp-scale { border-color: rgba(245, 158, 11, 0.7); }
.mp-scale .mp-tag, .mp-scale .mp-btn { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; }
@media (min-width: 900px) { .mini-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* "Filming it yourself" / "With MakeBOF" are the section's headings now (no title above them). */
.v2 .skip-top > span { font-size: clamp(22px, 6.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.v2 .skip-top { padding-bottom: 16px; }

/* "Free to try" sits right under the headline, small. */
.v2 .hero-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* Each pain and its fix gets an emoji above it; only the pain's words are struck through. */
.v2 .skip-row:not(.skip-top) > span:first-child { text-decoration: none; }
.v2 .skip-row:not(.skip-top) > span:first-child .skip-t { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.v2 .skip-e { display: block; font-size: 30px; line-height: 1; margin-bottom: 8px; }
.v2 .skip-row:not(.skip-top) > span:first-child .skip-e { filter: grayscale(0.6); opacity: 0.75; }
.mp-list li.mp-more { padding-left: 0; }
.mp-list li.mp-more::before { content: none; }

/* Two rows of examples: the second runs the other way. Tapping an example makes a video of that product. */
.v2 .ba-stack { grid-area: ba; min-width: 0; }
.v2 .ba-stack .ba { grid-area: auto; }
.v2 .ba-rev { margin-top: 18px; }
.v2 .ba-pair[data-product-id] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v2 .ba-pair.is-loading { opacity: 0.6; }

/* The product card in the preview: big swipeable photos edge to edge, tags, the name, price and sales, then the
   colours / designs to pick. */
.pcard { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.pc-gallery {
    position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    aspect-ratio: 1 / 1; background: var(--bg-alt);
}
.pc-gallery::-webkit-scrollbar { display: none; }
.pc-gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; scroll-snap-align: start; }
.pc-dots { display: flex; justify-content: center; gap: 6px; margin-top: -22px; position: relative; height: 22px; align-items: center; pointer-events: none; }
.pc-dots[hidden] { display: none; }
.pc-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 2px rgba(0, 0, 0, 0.4); }
.pc-dots span.on { background: #fff; width: 16px; border-radius: 3px; }
.pc-info { padding: 14px 16px 6px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pc-tags span {
    padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3;
    background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink);
}
.pc-tags span:first-child { background: rgba(254, 44, 85, 0.14); border-color: rgba(254, 44, 85, 0.35); }
.pc-info .product-title {
    font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pc-price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--pink-ink, #fe2c55); }
.pc-sold { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pc-sold[hidden] { display: none; }
.pc-variants { padding: 8px 14px 14px; }
.pc-variants[hidden] { display: none; }
.pc-vlabel { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.pc-vlist { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; }
.pc-vlist::-webkit-scrollbar { display: none; }
.pc-opt {
    flex: 0 0 auto; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px;
    border: 1.5px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
    font: inherit;
}
.pc-opt img { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; background: #fff; }
.pc-opt span { font-size: 11.5px; line-height: 1.2; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-opt.is-on { border-color: var(--pink); box-shadow: 0 0 0 2px var(--glow); }

/* The last section lost its line under the heading: keep the button clear of it. */
.v2 .final-in .btn { margin-top: 24px; }
.v2 .final h2 { text-wrap: balance; }

/* Errors under the search box line up with the centred hero on a phone. */
@media (max-width: 899px) { .v2 .hero-act .error { text-align: center; } }
/* The done / held / failed step's way forward. */
.making-actions { display: grid; gap: 8px; margin-top: 14px; }
.making-actions[hidden] { display: none; }
.v2 .sheet-body { overscroll-behavior: contain; }     /* scrolling the sheet never scrolls the page behind it */
.hero-ts { margin-top: 8px; display: flex; justify-content: center; }   /* shows only if Cloudflare asks for a tap */

/* "We're making your video": the product being made, one progress bar, where the link will go. */
.mk { text-align: center; padding-top: 4px; }
.mk-card {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left;
    padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-alt);
}
.mk-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; }
.mk-meta { display: grid; gap: 2px; min-width: 0; }
.mk-meta b, .mk-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-meta b { font-size: 15px; }
.mk-meta span { font-size: 13px; color: var(--ink-2); }
.mk-meta .mk-label { color: var(--pink-ink, #fe2c55); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.mk-bar { height: 6px; margin: 12px 2px 0; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.mk-bar[hidden] { display: none; }
.mk-bar span {
    position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 3px;
    background: linear-gradient(90deg, #fe2c55, #ff6b81); animation: mk-slide 1.6s ease-in-out infinite;
}
@keyframes mk-slide { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .mk-bar span { animation: none; left: 0; width: 60%; } }
.mk .big-h { margin-top: 22px; }
.mk .muted { margin-top: 8px; }
.mk-mail {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 14px; padding: 8px 14px;
    border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.mk-mail[hidden] { display: none; }
.mk-mail span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mk-close { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.mk-close[hidden] { display: none; }
.mk-go { margin-top: 22px; }
