/* =====================================================================
   LARINA — free trial flow + store preview
   Depends on larina.css for tokens.
   ===================================================================== */

.trial { padding-block: clamp(34px, 5vw, 60px) clamp(64px, 8vw, 100px); }
.trial__col { max-width: 760px; }

/* ---------------------------------------------------------------------
   rate blocked
   --------------------------------------------------------------------- */
.blocked { text-align: center; padding: clamp(30px, 5vw, 46px); }
.blocked__icon {
  width: 58px; height: 58px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-wash); color: var(--accent);
  border: 1px solid var(--gold);
}
.blocked__icon svg { width: 27px; height: 27px; }
.blocked h2 { font-size: 1.55rem; margin-bottom: 10px; }
.blocked p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 24px; }

/* ---------------------------------------------------------------------
   header block
   --------------------------------------------------------------------- */
.trial-head { margin-bottom: 26px; }
.trial-head h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.1rem);
  margin: 18px 0 16px;
}
.trial-head .lead { margin-bottom: 18px; }

.plans-toggle { margin-bottom: 26px; }

/* Plan tabs, cards and grid live in plans.css — shared with /pricing/. */

/* ---------------------------------------------------------------------
   step 1 — upload
   --------------------------------------------------------------------- */
.upload {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 24px; align-items: start;
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .upload { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .upload__body { text-align: left; width: 100%; }
}

.upload__thumb {
  width: 178px; height: 178px; padding: 0;
  border-radius: 16px; cursor: pointer;
  border: 1.5px dashed #D9C7BF;
  background: linear-gradient(150deg, #FFFDFC, var(--ground-sunk));
  display: grid; place-items: center; overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.upload__thumb:hover, .upload__thumb.is-drag {
  border-color: var(--accent); background: var(--accent-wash);
}
.upload__thumb.has-file { border-style: solid; border-color: transparent; padding: 0; }
.upload__thumb.is-locked { cursor: default; opacity: 0.94; }
.upload__thumb img { width: 178px; height: 178px; object-fit: cover; }

.upload__empty { display: grid; justify-items: center; gap: 3px; padding: 12px; }
.upload__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-wash); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 7px;
}
.upload__icon svg { width: 22px; height: 22px; }
.upload__empty strong { font-size: 0.85rem; color: var(--ink); }
.upload__empty small { font-size: 0.73rem; color: var(--ink-mute); }

.upload__body h2 { font-size: 1.14rem; margin-bottom: 8px; }
.upload__body p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }

.btn.is-busy { position: relative; }

/* ---------------------------------------------------------------------
   error
   --------------------------------------------------------------------- */
.errbox {
  margin: 0 0 14px; padding: 13px 16px;
  background: #FEF2F2; border: 1px solid #FCA5A5;
  border-radius: 10px; color: #991B1B; font-size: 0.88rem;
}

/* ---------------------------------------------------------------------
   the hint card
   --------------------------------------------------------------------- */
.hint { margin-bottom: 16px; }
.hint__head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.hint__mic { width: 17px; height: 17px; color: var(--ink-mute); flex: none; }
.hint__head h2 { font-size: 0.98rem; font-family: var(--font-ui); font-weight: 700; margin: 0; flex: 1; }

.pill-free {
  background: #FEF3C7; color: #92400E;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.hint__copy { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }

.hint__input { display: flex; gap: 10px; align-items: flex-start; }
.hint__input textarea {
  flex: 1; resize: vertical; min-height: 62px;
  padding: 11px 13px; border-radius: 10px;
  border: 1px solid #E1D5CE; background: var(--surface);
  font-family: var(--font-ui); font-size: 0.9rem; color: var(--ink);
  line-height: 1.5;
}
.hint__input textarea:focus { border-color: var(--accent); outline-offset: 1px; }

.mic {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #E1D5CE; background: var(--surface);
  color: var(--ink-soft); cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s var(--ease);
}
.mic svg { width: 20px; height: 20px; }
.mic:hover { border-color: var(--accent); color: var(--accent); }
.mic.is-rec {
  background: var(--accent); border-color: var(--accent); color: #fff;
  animation: micPulse 1.4s ease-in-out infinite;
}
@keyframes micPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(192,41,79,0.42); }
  50%     { box-shadow: 0 0 0 9px rgba(192,41,79,0); }
}
@media (prefers-reduced-motion: reduce) { .mic.is-rec { animation: none; } }

.mic-status { font-size: 0.79rem; color: var(--ink-mute); margin: 9px 0 0; }

.hint__place { margin-top: 16px; }
.hint__place label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.83rem; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.hint__place label svg { width: 16px; height: 16px; color: var(--ink-mute); }
.hint__place select {
  width: 100%; min-height: 44px;
  padding: 10px 13px; border-radius: 10px;
  border: 1px solid #E1D5CE; background: var(--surface);
  font-family: var(--font-ui); font-size: 0.88rem; color: var(--ink);
}
.hint__place select:focus { border-color: var(--accent); }

.hint__go { margin-top: 16px; display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .hint__go .btn { width: 100%; } }

/* ---------------------------------------------------------------------
   step 2 — generation
   --------------------------------------------------------------------- */
.gen { margin-bottom: 16px; }
.gen__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.gen__head svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.gen__head h2 { font-size: 0.95rem; font-family: var(--font-ui); font-weight: 700; margin: 0; flex: 1; }
.gen__count { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; }

.gen__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.tile {
  aspect-ratio: 1; border-radius: 9px; overflow: hidden;
  background: var(--ground-sunk); border: 1px solid #EFE3DD;
  display: grid; place-items: center;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.is-done { border-color: var(--gold); }
.tile.is-failed { background: #FEF2F2; border-color: #FCA5A5; }
.tile.is-failed span {
  font-size: 0.68rem; color: #991B1B; text-align: center; padding: 8px;
}

.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gold-soft); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.preview-cta { margin-top: 26px; display: flex; justify-content: center; }

/* =====================================================================
   THE STORE PREVIEW
   A deliberate change of costume: this section drops Larina's brand and
   wears a generic storefront's, because its whole job is to show the
   merchant what THEIR shopper sees.
   ===================================================================== */

.store { background: #fff; color: #0F172A; }

.store__bar { border-bottom: 1px solid #E5E7EB; background: #fff; }
.store__barIn { display: flex; align-items: center; min-height: 64px; }
.store__logo {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.14em;
  color: #0F172A;
}
.store__icons { margin-left: auto; display: flex; align-items: center; gap: 17px; color: #4B5563; }
.store__icons svg { width: 20px; height: 20px; }
.store__bag { position: relative; display: block; }
.store__bag b {
  position: absolute; top: -4px; right: -6px;
  background: #000; color: #fff; font-size: 0.55rem; font-weight: 600;
  width: 15px; height: 15px; border-radius: 50%;
  display: grid; place-items: center;
}

.store__main {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; padding-block: 32px; max-width: 1120px;
}
@media (max-width: 900px) { .store__main { grid-template-columns: 1fr; gap: 26px; } }

.store__gallery img#galleryMain {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px; background: #F3F4F6;
}
.store__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.store__thumb {
  flex: none; width: 78px; height: 78px; padding: 0; cursor: pointer;
  border: 1px solid #D1D5DB; border-radius: 4px; overflow: hidden; background: none;
}
.store__thumb.is-on { border: 2px solid #000; }
.store__thumb img { width: 100%; height: 100%; object-fit: cover; }

.store__crumb { font-size: 0.7rem; color: #6B7280; margin-bottom: 10px; }
.store__info h2#prodTitle, .store__info h1 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 1.95rem);
  font-weight: 700; line-height: 1.2; color: #0F172A; margin-bottom: 12px;
}
.store__stars { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.store__stars span:first-child { color: #EAB308; letter-spacing: 2px; }
.store__stars span:last-child { font-size: 0.78rem; color: #6B7280; }
.store__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.store__price b { font-size: 1.6rem; font-weight: 700; }
.store__price s { font-size: 1rem; color: #9CA3AF; }
.store__short { font-size: 0.9rem; color: #374151; line-height: 1.65; margin-bottom: 24px; }

.store__buy { display: flex; gap: 12px; margin-bottom: 22px; }
.store__qty {
  display: flex; align-items: center; border: 1px solid #D1D5DB; border-radius: 4px;
}
.store__qty button {
  width: 40px; height: 46px; border: 0; background: none; cursor: pointer;
  font-size: 1.05rem; color: #374151;
}
.store__qty b { padding: 0 10px; font-weight: 500; }
.store__cart {
  flex: 1; min-height: 46px; border: 0; cursor: pointer;
  background: #000; color: #fff; letter-spacing: 1px;
  font-family: var(--font-ui); font-size: 0.86rem; font-weight: 600;
}
.store__cart:hover { background: #1F2937; }
.store__ship { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: #4B5563; }
.store__ship svg { width: 16px; height: 16px; flex: none; }

.store__details { background: #F9FAFB; padding-block: 40px; margin-top: 8px; }
.store__details .wrap { max-width: 1000px; }
.store__details h2 {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  color: #0F172A; margin-bottom: 22px;
}
/* The AI ships its own inline styles; describe-render.js strips them so
   the panel reads in the store preview's own typography instead of the
   model's hard-coded greys. That means everything below is styled here. */
.store__table, .store__long { font-size: 0.88rem; line-height: 1.72; color: #374151; }

.store__table { margin-bottom: 24px; }
.store__table table {
  border-collapse: collapse; width: 100%; max-width: 640px;
  background: #fff; border: 1px solid #E5E7EB;
}
.store__table td, .store__table th {
  border: 1px solid #E5E7EB; padding: 10px 14px; text-align: left;
  vertical-align: top;
}
.store__table tr > td:first-child, .store__table tr > th:first-child {
  width: 35%; background: #FAF7F0;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: #1E293B;
}

.store__long h2 {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 600;
  color: #0F172A; margin: 30px 0 12px;
}
.store__long h2:first-child { margin-top: 0; }
.store__long h3 {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 600;
  color: #0F172A; margin: 22px 0 8px;
}
.store__long p { margin-bottom: 1em; }
.store__long ul, .store__long ol { padding-left: 20px; margin-bottom: 1em; }
.store__long small { color: #6B7280; font-size: 0.8rem; }
.store__long em { color: #4B5563; }

/* "Verified Product Details" arrives as a definition list. */
.store__long dl {
  display: grid; grid-template-columns: minmax(140px, 32%) 1fr;
  gap: 0; margin: 0 0 20px;
  border: 1px solid #E5E7EB; background: #fff;
}
.store__long dt {
  margin: 0; padding: 10px 14px;
  border-bottom: 1px solid #E5E7EB; background: #FAF7F0;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: #1E293B;
}
.store__long dd {
  margin: 0; padding: 10px 14px;
  border-bottom: 1px solid #E5E7EB; color: #334155;
}
.store__long dl > dt:last-of-type, .store__long dl > dd:last-of-type {
  border-bottom: 0;
}
@media (max-width: 560px) {
  .store__long dl { grid-template-columns: 1fr; }
  .store__long dt { border-bottom: 0; }
}

.store__cta {
  margin: 40px 0; padding: clamp(34px, 5vw, 48px) clamp(24px, 4vw, 40px);
  background: var(--navy-deep); border-radius: 16px; text-align: center; color: #fff;
}
.store__cta h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 1.75rem);
  font-weight: 700; color: #fff; margin-bottom: 12px;
}
.store__cta p { color: rgba(255,255,255,0.86); font-size: 0.9rem; max-width: 52ch; margin: 0 auto 24px; }
.store__back {
  display: block; margin: 14px auto 0; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,0.8); font-family: var(--font-ui); font-size: 0.86rem;
  padding: 8px 14px; border-radius: 8px;
}
.store__back:hover { color: #fff; text-decoration: underline; }
