/* GRAILS — creator (zowhauls) theme. Poppins, porcelain, pink. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --bg: #fdf6f9;
  --surface: #ffffff;
  --text: #1c1520;
  --muted: #7c6f80;
  --accent: #ec4899;
  --accent-soft: #fce7f3;
  --line: #f3dbe8;
  --radius: 22px;
  --radius-card: 20px;
  --font: "Poppins", system-ui, sans-serif;
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 10px 30px rgba(236, 72, 153, 0.10);
  --shadow-lift: 0 16px 40px rgba(236, 72, 153, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 30px); }
.eyebrow { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 4px; }
.label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 14px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; border-radius: 999px; padding: 12px 26px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--nav { background: var(--accent); color: #fff; font-size: 12px; padding: 9px 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
#products, #faq { scroll-margin-top: 72px; }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); padding-block: var(--s-3); }
.bar > .word { justify-self: start; }
.bar > .btn--nav { justify-self: end; }
.word { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 19px; letter-spacing: 0.14em; color: var(--text); text-decoration: none; }
.word::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); box-shadow: 0 2px 8px rgba(236, 72, 153, 0.5); }
nav a { color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; }
nav a:not(.btn):hover { color: var(--accent); }

/* hero — bold accent panel, white text, mascot clipped at panel bottom w/ head
   poking above, real product photos floating in white cards (zowhauls 1:1) */
.hero-panel { --hero-pad: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--s-8); margin-top: var(--s-12); padding: var(--hero-pad); border-radius: var(--radius); background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ffffff)); box-shadow: var(--shadow); }
.tagchip { display: inline-block; background: color-mix(in srgb, #ffffff 25%, transparent); border: 1px solid color-mix(in srgb, #ffffff 35%, transparent); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 6px 14px; margin-bottom: var(--s-4); }
.hero-copy h1 { font-size: clamp(34px, 5.5vw, 58px); line-height: 1.05; color: #fff; }
.hero-copy h1 em { font-style: normal; color: #fff; opacity: .82; }
.hero-copy .sub { margin: var(--s-4) 0 var(--s-6); max-width: 44ch; color: rgba(255, 255, 255, 0.88); font-size: clamp(15px, 1.6vw, 17px); }
.hero-panel .btn--primary { background: #fff; color: var(--accent); }
.hero-art { position: relative; align-self: stretch; min-height: 280px; margin-bottom: calc(var(--hero-pad) * -1); }
.hero-mascot-clip { position: absolute; inset-inline: 0; bottom: 0; top: -140px; overflow: hidden; pointer-events: none; }
.hero-mascot-clip img { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); width: min(340px, 92%); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18)); }
.hero-float { position: absolute; z-index: 3; width: 86px; height: 96px; padding: 7px; background: #fff; border-radius: 16px; box-shadow: 0 16px 34px -8px rgba(120, 60, 90, 0.4); animation: float 4.4s ease-in-out infinite; }
.hero-float img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }
.hero-float:empty { display: none; }
.hero-float--a { top: -46px; left: 2%; rotate: -9deg; }
.hero-float--b { top: 16%; right: -2%; rotate: 7deg; animation-delay: -1.6s; animation-duration: 5s; }
.hero-float--c { bottom: 20%; left: -4%; rotate: 6deg; animation-delay: -3s; }
.hero-spark { position: absolute; z-index: 3; color: #fff; opacity: .8; pointer-events: none; }
.hero-spark--a { top: 4%; right: 26%; font-size: 15px; }
.hero-spark--b { bottom: 34%; right: 8%; font-size: 11px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-float { animation: none; } }

/* white sub-panel under the hero — CTA pills + honesty note (zowhauls bento row) */
.hero-subpanel { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-4); padding: var(--s-4) var(--s-6); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.subpanel-pills { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.spill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 11px 20px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.spill svg { width: 16px; height: 16px; }
.spill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.subpanel-note { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

/* pill sections */
.pillbar { margin-top: var(--s-16); text-align: center; }
.pillbar .chips { justify-content: center; margin-top: var(--s-4); }

/* index bar + controls */
.indexbar { display: flex; justify-content: space-between; align-items: end; margin: var(--s-16) 0 var(--s-6); }
.controls { display: flex; justify-content: space-between; align-items: start; gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-8); }
.filters { display: grid; gap: var(--s-3); }
.chiprow { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.flabel { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); width: 52px; flex: none; }
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chips--lg .chip { font-size: 13px; padding: 10px 20px; }
.chip { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: all 0.3s var(--ease); box-shadow: 0 2px 8px rgba(236, 72, 153, 0.05); }
.chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.chip.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.search { display: flex; align-items: center; gap: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; transition: border-color 0.3s var(--ease); }
.search:focus-within { border-color: var(--accent); }
.search input { border: none; background: none; outline: none; font-family: var(--font); font-size: 13px; color: var(--text); padding: 7px 2px; width: 190px; }
.search input::placeholder { color: var(--muted); }
.search-btn { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 999px; background: var(--accent); color: #fff; }
.search-btn svg { width: 15px; height: 15px; }

/* budget row as a segmented control (zowhauls) */
#tiers { background: #f6eef4; border-radius: 999px; padding: 4px; gap: 0; }
#tiers .chip { border: none; background: none; box-shadow: none; padding: 6px 14px; }
#tiers .chip:hover { transform: none; }
#tiers .chip.on { background: var(--accent-soft); color: var(--accent); }

/* card tier tone tags */
.row2 { margin-top: 2px; align-items: center; }
.ttag { flex: none; font-size: 10.5px; font-weight: 700; border-radius: 7px; padding: 2px 8px; }
.ttag--green { background: #e2f7ec; color: #12b76a; }
.ttag--blue  { background: #e4eefe; color: #2e7bf6; }
.ttag--pink  { background: var(--accent-soft); color: var(--accent); }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: var(--s-6); padding-bottom: var(--s-16); }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer; background: var(--surface); border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 4px 16px rgba(236, 72, 153, 0.06); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--accent-soft); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .shot img { transform: scale(1.04); }
.tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--surface); color: var(--text); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 999px; padding: 4px 10px; box-shadow: var(--shadow); }
.buy-hint { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 5px 12px; opacity: 0; transform: translateY(4px); transition: all 0.3s var(--ease); }
.card:hover .buy-hint { opacity: 1; transform: translateY(0); }
.meta { display: grid; gap: 2px; padding: var(--s-3) var(--s-4) var(--s-4); }
.row { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.price { font-size: 13px; font-weight: 600; color: var(--accent); flex: none; }
.from { font-size: 11px; color: var(--muted); }
.from b { font-weight: 600; color: var(--text); }

/* community cta */
.cta-card { margin: var(--s-16) 0; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius); background: linear-gradient(135deg, var(--accent) 0%, #f472b6 100%); color: #fff; text-align: center; box-shadow: var(--shadow-lift); }
.cta-card h2 { color: #fff; }
.cta-card .sub { color: rgba(255, 255, 255, 0.85); margin: var(--s-3) 0 var(--s-6); }
.cta-card .btn--primary { background: #fff; color: var(--accent); }

/* faq */
.faq { max-width: 720px; margin: 0 auto var(--s-24); }
.faq h2 { margin-bottom: var(--s-6); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s-4) var(--s-6); margin-bottom: var(--s-3); }
.faq summary { font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 18px; font-weight: 600; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--s-3); color: var(--muted); font-size: 14px; }

/* footer */
.footer-cols { border-top: 1px solid var(--line); background: var(--surface); padding-block: var(--s-12); }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-8); }
.fgrid a { display: block; color: var(--muted); text-decoration: none; font-size: 13px; margin-top: var(--s-2); }
.fgrid a:hover { color: var(--accent); }
.fgrid .label { display: block; margin-bottom: var(--s-2); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(28, 21, 32, 0.5); backdrop-filter: blur(4px); }
.modal__panel { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 64px); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.modal__x { position: absolute; top: 10px; right: 12px; z-index: 2; background: var(--surface); border: none; border-radius: 999px; width: 32px; height: 32px; font-size: 18px; cursor: pointer; box-shadow: var(--shadow); }
.modal__img { background: var(--accent-soft); }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: var(--s-8); overflow-y: auto; display: grid; gap: var(--s-3); align-content: start; }
.modal__body h3 { font-size: 17px; }
.m-meta { display: flex; gap: var(--s-3); align-items: baseline; }
.pr { font-weight: 600; color: var(--accent); }
.agents { display: grid; gap: var(--s-2); }
.agent { display: block; text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; transition: all 0.3s var(--ease); }
.agent:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.agent--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.agent--primary:hover { color: #fff; box-shadow: var(--shadow-lift); }
.m-links { display: flex; gap: var(--s-4); }
.m-links a { font-size: 12px; color: var(--muted); text-decoration: none; }
.m-links a:hover { color: var(--accent); }

/* product page */
.product { padding-block: var(--s-8) var(--s-16); }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product__media { display: flex; flex-direction: column; }
.product__shot { background: var(--accent-soft); }
.product__shot img { width: 100%; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; display: block; }
.pthumbs { display: flex; gap: var(--s-2); padding: var(--s-3); background: var(--surface); overflow-x: auto; scrollbar-width: thin; }
.pthumb { flex: none; width: 62px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--accent-soft); cursor: pointer; transition: border-color 0.2s var(--ease); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb:hover { border-color: var(--line); }
.pthumb.on { border-color: var(--accent); }
.product__info { padding: var(--s-8); display: grid; gap: var(--s-3); align-content: start; }
.product__info h1 { font-size: clamp(20px, 2.6vw, 28px); }
.honest { font-size: 12px; color: var(--muted); font-style: italic; }
.related { margin-top: var(--s-12); }
.related h2 { margin-bottom: var(--s-6); }

/* collection pages (reuse .hero markup) */
.hero { padding-block: var(--s-12) var(--s-8); }
.hero h1 { font-size: clamp(30px, 5vw, 48px); }
.hero .sub { margin-top: var(--s-3); color: var(--muted); max-width: 52ch; }

/* legacy plain footer (product/collection pages) */
footer.wrap { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-6); padding-block: var(--s-12); border-top: 1px solid var(--line); margin-top: var(--s-12); flex-wrap: wrap; }

/* responsive */
@media (max-width: 900px) {
  .hero-panel { grid-template-columns: 1fr; text-align: center; overflow: hidden; }
  .hero-copy .sub { margin-inline: auto; }
  .hero-art { margin-top: var(--s-6); margin-bottom: calc(var(--hero-pad) * -1); min-height: 230px; }
  .hero-mascot-clip { top: 0; }
  .hero-mascot-clip img { width: min(260px, 80%); bottom: -18px; }
  .hero-float--a { top: 0; }
  .modal__panel, .product__grid { grid-template-columns: 1fr; }
  .modal__img { max-height: 40vh; }
  .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .controls { flex-direction: column; }
  .search { width: 100%; }
  .search input { width: 100%; }
  .btn--nav { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .bar > .btn--nav { display: none; }
  nav.nav-seg { justify-self: end; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav.nav-seg::-webkit-scrollbar { display: none; }
  .nav-seg a { padding: 7px 13px; font-size: 12px; white-space: nowrap; }
}

/* nav segmented group (zowhauls) */
.nav-seg { display: flex; gap: 2px; background: color-mix(in srgb, var(--accent-soft) 70%, #fff); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.nav-seg a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 999px; padding: 8px 18px; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.nav-seg a:hover { color: var(--accent); }
.nav-seg a.on { background: var(--accent); color: #fff; box-shadow: 0 4px 12px -2px rgba(236, 72, 153, 0.5); }

/* tool pages (convert / qc) */
.tool-page { max-width: 760px; padding-bottom: var(--s-24); }
.tool-hero { padding-block: var(--s-12) var(--s-6); }
.tool-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.tool-hero .sub { color: var(--muted); margin-top: var(--s-2); }
.tool-input { display: flex; gap: var(--s-3); }
.tool-input input { flex: 1; min-width: 0; font-family: var(--font); font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; outline: none; }
.tool-input input:focus { border-color: var(--accent); }
.tool-error { color: var(--accent); font-size: 13px; margin-top: var(--s-3); }
.tool-result { margin-top: var(--s-8); background: var(--surface); border-radius: var(--radius-card); padding: var(--s-6); box-shadow: var(--shadow); display: grid; gap: var(--s-4); }
.tool-result[hidden] { display: none; }
.conv-source { display: flex; align-items: center; gap: var(--s-3); }
.conv-source a { font-size: 13px; color: var(--muted); }
.conv-agents { display: grid; gap: var(--s-2); }
.conv-row { display: flex; gap: var(--s-2); align-items: center; }
.conv-row .agent { flex: 1; }
.tool-examples { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }
.tool-examples .label { margin-right: 2px; }
.conv-copyall { margin-left: auto; }
.conv-row .agent { flex: 1; text-align: left; }
.tool-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-16); }
.how-step { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s-4); }
.how-n { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.how-step b { font-size: 14px; }
.how-step p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 700px) { .tool-how { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tool-input { flex-direction: column; } }

/* QC widget */
.qc-acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s-3) var(--s-4); }
.qc-acc summary { font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qc-acc summary::after { content: "+"; color: var(--accent); font-size: 18px; font-weight: 600; }
.qc-acc[open] summary::after { content: "–"; }
.qc-album { margin-top: var(--s-3); }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.qc-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; background: var(--accent-soft); }
.qc-empty { color: var(--muted); font-size: 13px; padding-block: var(--s-2); }
.qc-attr { color: var(--muted); font-size: 11px; margin-top: var(--s-3); }
.qc-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(28, 21, 32, 0.85); display: grid; place-items: center; cursor: zoom-out; }
.qc-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; }
