/* Features / Trust / Showcase / Contact */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: 20px;
}
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 320px; }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
}


.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .feature-card { background: var(--card); }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--lav-2);
  box-shadow: var(--shadow-md);
}
.feature-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}
.feature-num { color: var(--brand-a); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; }
.feature-tag {
  background: var(--bg-2); color: var(--ink-2);
  padding: 4px 10px; border-radius: 100px; font-size: 11px;
  letter-spacing: 0.05em;
}
.feature-visual {
  flex: 1;
  background: var(--bg-2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feature-text h3 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.feature-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* feature visuals */

/* --- Scrolling Category Marquee (feature 01 — Templates) --- */
.fv-cats-scroll-wrap {
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.fv-cats-scroll-track {
  display: flex; flex-direction: column; gap: 8px;
  animation: scrollUp 18s linear infinite;
}
.fv-cats-scroll-wrap:hover .fv-cats-scroll-track {
  animation-play-state: paused;
}
@keyframes scrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.fv-cat-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.07);
  white-space: nowrap;
  transition: transform .2s ease;
}
.fv-cat-chip-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.fv-cat-chip-emoji { font-size: 14px; line-height: 1; }
.fv-cat-chip-name { font-size: 12px; font-weight: 500; color: var(--ink); }

/* --- Restored Business Poster Studio (feature 03) --- */
.fv-business {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.fv-cat {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  animation: slideIn 0.6s ease-out backwards;
}
[data-theme="dark"] .fv-cat { background: var(--bg-2); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } }
.fv-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }


/* --- Editor Preview (feature 02) matching screenshot --- */
.fv-editor-v2 {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
}
.fv-editor-v2-canvas {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.fv-editor-v2-name {
  font-family: var(--ff-display); font-style: italic;
  font-size: 42px; color: var(--brand-a);
  letter-spacing: -0.02em; position: relative;
}
.fv-editor-v2-cursor {
  position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border: 2px solid var(--brand-a); border-radius: 2px;
  animation: cursorBlink 1.8s ease-in-out infinite;
}
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }
.fv-editor-v2-tools {
  display: flex; gap: 8px;
}
.fv-editor-v2-btn {
  height: 40px; min-width: 40px; padding: 0 10px;
  border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-2);
  font-weight: 500;
  transition: all .15s ease; cursor: pointer;
}
[data-theme="dark"] .fv-editor-v2-btn { background: var(--bg-2); }
.fv-editor-v2-btn.active {
  background: var(--brand-a); color: #fff;
  border-color: var(--brand-a);
  box-shadow: 0 4px 12px rgba(108,99,255,0.4);
}
.fv-editor-v2-btn svg { width: 16px; height: 16px; }


.fv-share {
  display: flex; align-items: stretch; justify-content: space-between;
  width: 100%; height: 100%; gap: 8px;
}
/* keep the flow arrows centred even when siblings stretch */
.fv-share .fv-arrows { align-self: center; }
.fv-share .fv-apps   { align-self: center; }
.fv-poster-mini {
  width: 50px; height: 70px; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 6px 16px rgba(108,99,255,0.35);
}
.fv-arrows {
  display: flex; flex-direction: column; font-size: 14px; color: var(--brand-a); gap: 4px;
  animation: arrowFlow 2s ease-in-out infinite;
}
@keyframes arrowFlow { 0%,100%{transform:translateX(0)} 50%{transform:translateX(4px)} }
.fv-apps { display: flex; flex-direction: column; gap: 6px; }
.fv-app {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.fv-ai { display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; }
.fv-prompt {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  font-size: 12px; color: var(--ink-2);
}
[data-theme="dark"] .fv-prompt { background: var(--bg-2); }
.fv-prompt em { color: var(--brand-a); font-style: italic; font-family: var(--ff-display); font-size: 14px; }
.fv-sparkle { color: var(--brand-a); font-size: 14px; }
.fv-suggestions {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  flex: 1; min-height: 0; align-items: stretch;
}
@keyframes pulseIn { from { opacity: 0; transform: scale(0.9); } }

.fv-brand { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.fv-brand-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px;
}
[data-theme="dark"] .fv-brand-card { background: var(--bg-2); }
.fv-brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.fv-brand-name { font-weight: 600; font-size: 14px; }
.fv-brand-meta { font-size: 11px; color: var(--muted); }
.fv-brand-swatches { display: flex; gap: 6px; }
.fv-brand-swatches span {
  width: 24px; height: 24px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
}

/* ----- Trust section ----- */
.trust {
  background: linear-gradient(180deg, var(--bg), #fff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .trust { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  margin-bottom: 72px;
}
[data-theme="dark"] .stats-row { background: var(--card); }
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }
@media (max-width: 760px) {
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 8px;
}
.stat-num em { color: var(--brand-a); font-style: italic; }
.stat-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.testimonials-carousel-wrap {
  position: relative;
}
.testimonials-wrap {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.testimonials-wrap::-webkit-scrollbar { display: none; }
.t-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background .2s, box-shadow .2s;
}
.t-nav-btn:hover { background: var(--brand-a); color: #fff; border-color: var(--brand-a); }
.t-nav-btn.prev { left: -20px; }
.t-nav-btn.next { right: -20px; }
@media (max-width: 900px) {
  .t-nav-btn.prev { left: -12px; }
  .t-nav-btn.next { right: -12px; }
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
  scroll-snap-align: start;
}
@media (max-width: 900px) { .testimonial { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 600px) { .testimonial { flex: 0 0 85%; } }
[data-theme="dark"] .testimonial { background: var(--card); }
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial .stars { color: #F5A623; font-size: 14px; letter-spacing: 2px; }
.testimonial p {
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.testimonial footer {
  display: flex; align-items: center; gap: 12px;
}
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: var(--brand-deep);
}
.t-name { font-weight: 600; font-size: 14px; }
.t-role { font-size: 12px; color: var(--muted); }
.placeholder-note {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; color: var(--muted-2); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
}

/* ----- Showcase ----- */
.showcase {
  background: var(--bg-2);
  overflow: hidden;
}
.showcase-filters {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.chip {
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
}
[data-theme="dark"] .chip { background: var(--card); color: var(--ink-2); }
[data-theme="dark"] .chip.active { background: var(--brand-a); color: #fff; border-color: var(--brand-a); }

/* fv-cat-chip: backgrounds are inline pastels (always light), so keep text dark in both modes */
.fv-cat-chip-name { color: #1A1830; }
[data-theme="dark"] .fv-cat-chip { border-color: rgba(0,0,0,0.15); }
.chip:hover { border-color: var(--brand-a); color: var(--brand-a); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.showcase-carousel-wrap {
  position: relative;
}

.showcase-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.showcase-grid::-webkit-scrollbar {
  display: none;
}
.showcase-grid > * {
  flex: 0 0 calc(20% - 13px);
  scroll-snap-align: start;
}
@media (max-width: 1000px) { .showcase-grid > * { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 600px) { .showcase-grid > * { flex: 0 0 calc(50% - 8px); } }

.sc-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: all .2s;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}
[data-theme="dark"] .sc-nav-btn { background: var(--card); }
.sc-nav-btn:hover { background: var(--brand-a); color: #fff; border-color: var(--brand-a); }
.sc-nav-btn.prev { left: -20px; }
.sc-nav-btn.next { right: -20px; }
@media (max-width: 760px) {
  .sc-nav-btn { display: none; }
}

.sc-card {
  position: relative;
  aspect-ratio: 400/560;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.sc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

@keyframes scFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sc-card.in { opacity: 1; }

.sc-label {
  position: absolute; bottom: 10px; left: 10px;
  display: inline-flex; gap: 6px; align-items: center;
  padding: 5px 10px; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 100px; font-size: 11px; font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: all .25s ease;
}
.sc-card:hover .sc-label { opacity: 1; transform: translateY(0); }
.sc-label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-a); }

/* ----- Download band ----- */
.download-band {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff;
  border-radius: 32px;
  padding: 80px 60px;
  margin: 80px auto;
  max-width: 1240px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) {
  .download-band { padding: 60px 32px; margin: 60px 20px; border-radius: 24px; }
}
.download-band::before, .download-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(30px);
}
.download-band::before { width: 360px; height: 360px; top: -120px; right: -100px; }
.download-band::after { width: 240px; height: 240px; bottom: -80px; left: -40px; }
.dl-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) { .dl-inner { grid-template-columns: 1fr; } }
.dl-left h2 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.dl-left h2 em { font-style: italic; opacity: 0.9; }
.dl-left p { font-size: 17px; opacity: 0.9; margin: 0 0 28px; max-width: 520px; }
.dl-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-ctas .btn {
  background: #fff; color: var(--brand-deep);
  padding: 14px 24px; border-radius: 100px;
  font-weight: 500;
}
.dl-ctas .btn.outlined { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.dl-qr {
  display: flex; justify-content: center; align-items: center;
}
.qr-card {
  background: #fff;
  border-radius: 14px;
  padding: 5px;
  color: var(--ink);
  text-align: center;
  width: 192px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
[data-theme="dark"] .qr-card { background: var(--card); }
.qr-img { width: 180px; height: 180px; margin: 0 auto 8px; background: var(--ink); border-radius: 12px; position: relative; overflow: hidden; }
.qr-img svg { width: 100%; height: 100%; }
.qr-card .caption { font-size: 12px; color: var(--muted); }
.qr-card .caption strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-left h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 16px;
  font-weight: 400;
}
.contact-left h2 em { font-style: italic; color: var(--brand-a); }
.contact-left p { font-size: 16px; color: var(--muted); margin: 0 0 32px; line-height: 1.6; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.c-method {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s ease;
}
[data-theme="dark"] .c-method { background: var(--card); }
.c-method:hover { border-color: var(--brand-a); }
.c-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--lav-1); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.c-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.c-value { font-size: 15px; font-weight: 500; color: var(--ink); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
[data-theme="dark"] .contact-form { background: var(--card); }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.field input, .field textarea {
  font-family: inherit; font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  resize: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-a);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}

/* When focus background becomes white in dark theme, ensure typed text is dark and readable */
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus {
  color: #0F0E1C;
}
.field textarea { min-height: 120px; }
.form-submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s ease, transform .15s ease;
}
.form-submit:hover { background: var(--brand-deep); transform: translateY(-1px); }
.form-submit.sent { background: #0E7C66; }

[data-theme="dark"] .form-submit {
  background: #fff;
  color: #0F0E1C;
}
[data-theme="dark"] .form-submit:hover {
  background: var(--lav-2);
  color: var(--brand-a);
}

/* ----- Tweaks panel ----- */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 20px 60px rgba(22, 15, 90, 0.18);
  z-index: 100;
  font-family: var(--ff-body);
}
[data-theme="dark"] .tweaks-panel { background: var(--card); }
.tweaks-panel h4 {
  margin: 0 0 14px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel h4 button { color: var(--muted); font-size: 16px; line-height: 1; }
.tweak-group { margin-bottom: 16px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-group > label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 32px; height: 32px; border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--ink); }
.tweak-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit; font-size: 13px;
  background: var(--bg);
}
.tweak-input:focus { outline: none; border-color: var(--brand-a); }
