/* v7: ideas taken from the competitor review, restyled to match Hair Theory.
   Rotating top bar, trust strip, shop by concern, bundles row, signup form. */

/* ---------- Rotating top bar ---------- */
.topbar-text { display: inline-block; min-width: 0; transition: opacity .35s ease, transform .35s ease; }
.topbar-text.swap { opacity: 0; transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .topbar-text { transition: none; } }

/* ---------- Trust strip ---------- */
.trust { position: relative; padding: clamp(28px, 4vw, 44px) 0; }
.trust-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px; border: 1px solid var(--accent); border-radius: 20px; background: rgba(255,255,255,.9); transition: border-color .35s, box-shadow .35s; }
.trust-item:hover { border-color: var(--gold); box-shadow: 0 24px 44px -32px rgba(0,0,0,.4); }
.trust-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: var(--gold); }
.trust-ico svg { width: 20px; height: 20px; }
.trust-item b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.02rem; color: var(--dark); line-height: 1.25; }
.trust-item span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 520px) { .trust-item { flex-direction: column; gap: 10px; padding: 16px; } }

/* ---------- Shop by concern ---------- */
.concern { position: relative; padding: clamp(60px, 8vw, 100px) 0; }
.concern-head { max-width: 40rem; margin-bottom: 26px; }
.concern-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.concern-tab { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--accent); background: #fff; color: var(--dark); font-size: 14px; font-weight: 500; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.concern-tab:hover { border-color: var(--dark); transform: translateY(-2px); }
.concern-tab[aria-pressed="true"] { background: var(--dark); color: var(--gold); border-color: var(--dark); }
.concern-note { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 40rem; }
.concern-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .concern-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cc { display: flex; flex-direction: column; border: 1px solid var(--accent); border-radius: 22px; overflow: hidden; background: #fff; opacity: 0; transform: translateY(14px); animation: ccIn .55s var(--ease) forwards; animation-delay: var(--i, 0ms); transition: box-shadow .35s, border-color .35s; }
.cc:hover { box-shadow: 0 30px 52px -34px rgba(0,0,0,.4); border-color: #cfc9bb; }
.cc-photo { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #F9F8F6; }
.cc-photo img.ph { transition: transform .8s var(--ease); }
.cc:hover .cc-photo img.ph { transform: scale(1.05); }
.cc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.cc-tier { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #8a6d1d; }
.cc h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; line-height: 1.25; margin: 0; }
.cc h3 a { color: var(--dark); }
.cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; font-size: 14px; }
.cc-foot b { font-weight: 600; }
.cc-foot a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); font-size: 13px; }
@keyframes ccIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc { animation: none; opacity: 1; transform: none; } }

/* ---------- Bundles row ---------- */
.bundles { position: relative; padding: clamp(60px, 8vw, 100px) 0; }
.bundles-head { max-width: 42rem; margin-bottom: 30px; }
.bundles-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bundles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bundles-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.bd { position: relative; display: flex; flex-direction: column; border: 1px solid var(--accent); border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.95); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.bd:hover { transform: translateY(-6px); box-shadow: 0 40px 64px -38px rgba(0,0,0,.45); border-color: var(--gold); }
.bd-photo { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #F9F8F6; }
.bd-photo img.ph { transition: transform .9s var(--ease); }
.bd:hover .bd-photo img.ph { transform: scale(1.06); }
.bd-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: var(--dark); color: var(--gold); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bd-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.bd h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin: 0; line-height: 1.25; }
.bd h3 a { color: var(--dark); }
.bd p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.bd-price { font-family: var(--serif); font-size: 1.6rem; color: var(--dark); margin-top: auto; padding-top: 8px; }
.bd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bd .btn { padding: 11px 10px; font-size: 12px; width: 100%; justify-content: center; }

/* ---------- Signup ---------- */
.signup { position: relative; padding: clamp(50px, 7vw, 90px) 0; }
.signup-card { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center; padding: clamp(28px, 4.4vw, 54px); border-radius: 32px; background: var(--dark); color: #fff; border: 1px solid rgba(223,182,94,.35); box-shadow: 0 50px 80px -48px rgba(0,0,0,.6); overflow: hidden; position: relative; }
@media (min-width: 900px) { .signup-card { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.signup-card::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(223,182,94,.28), transparent 70%); pointer-events: none; }
.signup-card .kicker { color: var(--gold); }
.signup-card h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; color: #fff; }
.signup-card p { margin: 0; color: #cfc8b8; font-size: .98rem; line-height: 1.7; max-width: 34rem; }
.signup-form { position: relative; z-index: 1; display: grid; gap: 12px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row .input { flex: 1 1 220px; min-width: 0; border-radius: 999px; padding: 15px 20px; font-size: 14px; background: #fff; color: #000; }
.signup-row .btn { flex: none; }
.signup-note { font-size: 12px !important; color: #a9a291 !important; line-height: 1.55 !important; }
.signup-status { min-height: 1.3em; font-size: 13.5px; margin: 0; color: #e6dfcd; }
.signup-status.ok { color: #9fd3a8; } .signup-status.bad { color: #f0a496; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Trust strip: text only, centered */
.trust-item { justify-content: center; align-items: center; text-align: center; }
@media (max-width: 520px) { .trust-item { align-items: center; } }
.trust-row { grid-auto-rows: 1fr; align-items: stretch; }
.trust-item { height: 100%; }

/* Polish pass */
.trust { padding: clamp(36px, 5vw, 60px) 0 clamp(20px, 3vw, 36px); }
.trust-item { min-height: 96px; padding: 20px 22px; }
.trust-item b { text-wrap: balance; }
.trust-item span { text-wrap: balance; }
.h1, .h2, .hero-title { text-wrap: balance; }
p { text-wrap: pretty; }
html { scroll-padding-top: 96px; }
a, button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.logo-mark { transition: transform .5s var(--ease), color .3s; }
.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.06); color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .logo-mark { transition: none; } .logo:hover .logo-mark { transform: none; } }
@media (hover: hover) { .trust-item:hover { transform: translateY(-3px); } }
.trust-item { transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); }
