/* ==========================================================================
   FrameVow — AI Wedding Photo Studio
   Design system + components. No framework, no build step.
   ========================================================================== */

:root {
  --bg: #FFFCFB;
  --bg-warm: #FFF5F3;
  --bg-cool: #F8F5FA;
  --surface: #FFFFFF;
  --surface-2: #FFF9F8;

  --ink: #191320;
  --ink-2: #6A6374;
  --ink-3: #9E97A8;

  --line: #EFE6E8;
  --line-2: #E3D8DC;

  --brand: #D9567C;
  --brand-dark: #B23A5F;
  --brand-soft: #FDEEF1;
  --brand-ring: rgba(217, 86, 124, .28);

  --gold: #C39A5E;
  --gold-soft: #FBF3E7;
  --accent: #7C5CFF;
  --ok: #25956A;
  --warn: #C97A16;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow-xs: 0 1px 2px rgba(25, 19, 32, .05);
  --shadow-sm: 0 1px 2px rgba(25, 19, 32, .04), 0 4px 14px rgba(25, 19, 32, .05);
  --shadow: 0 2px 6px rgba(25, 19, 32, .05), 0 16px 38px rgba(25, 19, 32, .08);
  --shadow-lg: 0 8px 20px rgba(25, 19, 32, .08), 0 32px 70px rgba(25, 19, 32, .16);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --container: 1180px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 680; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--ink-2); }
.tiny { font-size: 13px; }
.serif { font-family: var(--serif); font-style: italic; letter-spacing: 0; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }

.gradient-text {
  background: linear-gradient(100deg, var(--brand) 0%, #E8825B 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================== nav ============================== */

.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 252, 251, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 720; letter-spacing: -.03em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #E8825B 60%, var(--gold));
  box-shadow: 0 4px 12px rgba(217, 86, 124, .32);
}
.brand-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 13px; border-radius: 10px; font-size: 15px; font-weight: 550; color: var(--ink-2);
  transition: background .16s, color .16s;
}
.nav-links a:hover { background: var(--bg-warm); color: var(--ink); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.avatar {
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.credit-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 650;
  background: var(--gold-soft); color: #8A6524; border: 1px solid #F0DFC3;
}
.credit-pill svg { width: 14px; height: 14px; }

/* ============================== buttons ============================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 620; cursor: pointer; white-space: nowrap;
  transition: transform .14s, box-shadow .18s, background .18s, border-color .18s, opacity .18s;
  box-shadow: var(--shadow-xs);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #E0647F 100%);
  color: #fff; box-shadow: 0 2px 6px rgba(217, 86, 124, .28), 0 12px 26px rgba(217, 86, 124, .24);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 4px 10px rgba(217, 86, 124, .32), 0 18px 34px rgba(217, 86, 124, .28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-warm); color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-busy { color: transparent !important; position: relative; }
.btn-busy::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-busy.btn-outline::after { border-color: rgba(25, 19, 32, .2); border-top-color: var(--ink); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================== hero + studio ============================== */

.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 84px;
  background:
    radial-gradient(1100px 520px at 12% -8%, #FDECF1 0%, rgba(253, 236, 241, 0) 62%),
    radial-gradient(900px 460px at 92% 4%, #FBF1E4 0%, rgba(251, 241, 228, 0) 60%);
}
.hero-head { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 66px); letter-spacing: -.035em; margin-bottom: 18px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); max-width: 620px; margin: 0 auto; }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.hero-note b { color: var(--ink); font-weight: 650; }

.studio {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.studio-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }

.studio-left { padding: 26px; border-right: 1px solid var(--line); background: var(--surface-2); }
.studio-right { padding: 26px; min-height: 440px; display: flex; flex-direction: column; }

.step-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.step-num {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
}

/* dropzone */
.dropzone {
  position: relative; border: 2px dashed var(--line-2); border-radius: var(--radius);
  background: var(--surface); padding: 26px 18px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone.dragging { border-color: var(--brand); background: var(--brand-soft); transform: scale(1.01); }
.dropzone.has-files { padding: 14px; }
.dz-icon {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.dz-icon svg { width: 22px; height: 22px; }
.dz-title { font-weight: 650; font-size: 15.5px; margin-bottom: 4px; }
.dz-sub { font-size: 13px; color: var(--ink-3); }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-warm);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; border: none; cursor: pointer;
  background: rgba(25, 19, 32, .62); color: #fff; backdrop-filter: blur(4px);
}
.thumb-x svg { width: 12px; height: 12px; }
.thumb-add {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed var(--line-2); color: var(--ink-3); background: var(--surface);
  font-size: 22px; transition: border-color .18s, color .18s;
}
.thumb-add:hover { border-color: var(--brand); color: var(--brand); }

/* style picker */
.style-scroll {
  display: grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap: 12px;
  max-height: 468px; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 4px 2px;
  scrollbar-width: thin; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.style-scroll::-webkit-scrollbar { width: 8px; }
.style-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.style-card {
  width: 100%; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface); transition: border-color .16s, transform .16s, box-shadow .16s;
  position: relative; text-align: left; padding: 0;
}
.style-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.style-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
/* display:block is load-bearing, not decoration. aspect-ratio has no effect on
   an inline non-replaced box, and .style-thumb is a <span> — so the declared
   2/3 was silently ignored and the card's img:100%-height stretched the
   thumbnail to roughly 1:2 (measured 146x291 for a 900x1350 source). It also
   made overflow:hidden a no-op. Do not remove it. */
.style-thumb { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: linear-gradient(160deg, #F6E9EC, #EFE3E7); }
.style-thumb img { width: 100%; height: 100%; object-fit: cover; }
.style-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-3); }
.style-check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center; background: var(--brand); color: #fff;
  opacity: 0; transform: scale(.7); transition: opacity .16s, transform .16s;
}
.style-card.selected .style-check { opacity: 1; transform: scale(1); }
.style-check svg { width: 12px; height: 12px; }

/* option rows */
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 13.5px; font-weight: 560; color: var(--ink-2);
  cursor: pointer; transition: all .16s;
}
.opt:hover { border-color: var(--brand); color: var(--brand); }
.opt.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.field-label { font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; display: block; }
.input, .textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); font-size: 15px;
  transition: border-color .16s, box-shadow .16s;
}
.input:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring);
}
.textarea { resize: vertical; min-height: 78px; }

/* right pane: results */
.result-pane { flex: 1; display: flex; flex-direction: column; }
.result-empty {
  flex: 1; display: grid; place-items: center; text-align: center; padding: 30px;
  color: var(--ink-3);
}
.result-empty-art { width: 100%; max-width: 300px; margin-bottom: 18px; opacity: .9; }
.result-empty.has-style-preview { position: relative; overflow: hidden; padding: 0; min-height: 420px; background: var(--bg-warm); color: #fff; }
.result-style-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg-warm); }
.result-style-preview-copy { position: relative; z-index: 1; align-self: end; width: 100%; padding: 72px 26px 24px; background: linear-gradient(to top, rgba(20,14,22,.88), rgba(20,14,22,0)); text-align: left; }
.result-style-preview-copy .tiny { color: rgba(255,255,255,.82); }

.results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.result-card {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-warm);
}
.result-card img { width: 100%; height: auto; max-height: 760px; object-fit: contain; display: block; background: var(--bg-warm); }
.result-actions {
  display: flex; gap: 8px; padding: 10px; justify-content: center;
}
.result-actions .btn { padding: 7px 12px; font-size: 13px; }
.result-badge {
  position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(25, 19, 32, .6); color: #fff; font-size: 11.5px; font-weight: 620;
  backdrop-filter: blur(6px);
}
.skeleton {
  border-radius: var(--radius-sm); background: linear-gradient(100deg, #F6EDEE 30%, #FBF6F7 50%, #F6EDEE 70%);
  background-size: 220% 100%; animation: shimmer 1.5s linear infinite; aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* progress */
.gen-status {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 28px;
  border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-dark);
  font-size: 15px; font-weight: 650; text-align: left;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 3px solid rgba(217, 86, 124, .25); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
.gen-status-copy { display: grid; gap: 4px; }
.gen-status-copy small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.progress {
  height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px;
}
.progress i {
  display: block; height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--brand), #E8825B);
  transition: width .5s ease;
}

.studio-cta { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.credit-hint { font-size: 13px; color: var(--ink-3); }
.credit-hint b { color: var(--ink); }

/* ============================== before / after ============================== */

.ba-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.ba-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ba-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.ba-pair--solo { grid-template-columns: 1fr; }
.ba-side { position: relative; }
.ba-side img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.ba-tag {
  position: absolute; top: 9px; left: 9px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(255, 255, 255, .92); color: var(--ink-2); box-shadow: var(--shadow-xs);
}
.ba-tag.after { background: var(--brand); color: #fff; }
.ba-foot { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ba-foot .t { font-size: 14.5px; font-weight: 640; }
.ba-foot .s { font-size: 12.5px; color: var(--ink-3); }

/* ============================== gallery grid ============================== */

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.more-styles-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.more-styles-grid .gal-over .t { font-size: 12px; }
.gal-item {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-warm); box-shadow: var(--shadow-xs);
}
.gal-item.is-filtered-out { display: none; }
.gal-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.04); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination-number { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 14px; font-weight: 650; color: var(--ink-2); }
.pagination-number:hover, .pagination-number.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.gal-over {
  position: absolute; inset: auto 0 0 0; padding: 34px 14px 12px;
  background: linear-gradient(to top, rgba(20, 14, 22, .82), rgba(20, 14, 22, 0));
  color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.gal-over .t { font-size: 14px; font-weight: 620; }
.gal-over .s {
  font-size: 12px; opacity: .78; line-height: 1.42; margin-top: 3px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* ============================== trust strip ============================== */

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--brand);
}
.trust-ico svg { width: 18px; height: 18px; }
.trust-t { font-size: 14.5px; font-weight: 640; }
.trust-d { font-size: 13px; color: var(--ink-3); }

/* ============================== pricing ============================== */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 18px; align-items: start; }
.price-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 26px 22px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; min-height: 100%;
}
.price-card.featured {
  border-color: var(--brand); box-shadow: 0 6px 18px rgba(217, 86, 124, .14), 0 22px 50px rgba(217, 86, 124, .12);
}
.price-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(217, 86, 124, .34);
}
.price-name { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.price-amt { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.price-amt b { font-size: 40px; font-weight: 720; letter-spacing: -.03em; }
.price-amt span { font-size: 14px; color: var(--ink-3); }
.price-per { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.price-blurb { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.price-feats { display: grid; gap: 10px; margin-bottom: 22px; font-size: 14px; }
.price-feats li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); }
.price-feats svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }
.price-card .btn { margin-top: auto; }

.credit-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.credit-table th, .credit-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.credit-table th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.credit-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ============================== faq ============================== */

.faq { display: grid; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; background: none; border: none; cursor: pointer; text-align: left;
  font-size: 15.5px; font-weight: 600;
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .22s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a-inner { padding: 0 20px 19px; color: var(--ink-2); font-size: 15px; }

/* ============================== testimonials ============================== */

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.quote {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 22px; box-shadow: var(--shadow-xs);
}
.stars { display: flex; gap: 3px; margin-bottom: 12px; }
.stars svg { width: 15px; height: 15px; color: var(--gold); }
.quote p { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }
.quote-who { font-size: 14px; font-weight: 640; }
.quote-where { font-size: 12.5px; color: var(--ink-3); }

/* ============================== misc blocks ============================== */

.callout {
  border-radius: var(--radius-lg); padding: 44px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1D1526 0%, #35203A 55%, #4A2438 100%);
}
.callout::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -110px; top: -170px;
  background: radial-gradient(circle, rgba(217, 86, 124, .5), rgba(217, 86, 124, 0) 68%);
}
.callout > * { position: relative; }
.callout h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.callout p { color: rgba(255, 255, 255, .74); font-size: 17px; max-width: 520px; margin-bottom: 26px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 14px; font-weight: 570; color: var(--ink-2); cursor: pointer;
  transition: all .16s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }
.stat b { display: block; font-size: 32px; font-weight: 720; letter-spacing: -.03em; }
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* ============================== toast / modal ============================== */

.toast-wrap { position: fixed; z-index: 200; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 560;
  box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
}
.toast.ok { background: #16704E; }
.toast.err { background: #A32E45; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

.modal {
  position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center;
  background: rgba(20, 14, 22, .5); backdrop-filter: blur(6px); padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px;
  max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); animation: popIn .22s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.modal-box h3 { font-size: 22px; margin-bottom: 10px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.lightbox {
  position: fixed; inset: 0; z-index: 220; display: none; align-items: center; justify-content: center;
  background: rgba(16, 12, 18, .9); padding: 26px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 999px;
  border: none; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center;
}
.lightbox-close svg { width: 18px; height: 18px; }

/* ============================== auth ============================== */

.auth-wrap { min-height: calc(100vh - var(--nav-h) - 120px); display: grid; place-items: center; padding: 60px 0; }
.auth-card {
  width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 27px; margin-bottom: 8px; }

/* ============================== account ============================== */

.acct-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.acct-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--nav-h) + 20px); }
.acct-nav button {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px;
  border: none; background: none; cursor: pointer; font-size: 14.5px; font-weight: 570;
  color: var(--ink-2); text-align: left; width: 100%;
}
.acct-nav button:hover { background: var(--bg-warm); color: var(--ink); }
.acct-nav button.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; }
.acct-panel { display: none; }
.acct-panel.active { display: block; }
.acct-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 24px; box-shadow: var(--shadow-xs); margin-bottom: 18px;
}
.acct-card h3 { font-size: 17px; margin-bottom: 6px; }
.ledger { display: grid; gap: 0; }
.ledger-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-delta { font-weight: 680; font-variant-numeric: tabular-nums; }
.ledger-delta.plus { color: var(--ok); }
.ledger-delta.minus { color: var(--brand); }

.credits-hero {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  border-radius: var(--radius); padding: 26px; color: #fff;
  background: linear-gradient(120deg, var(--brand), #E0647F 60%, var(--gold));
  box-shadow: 0 14px 34px rgba(217, 86, 124, .26);
}
.credits-hero b { font-size: 46px; font-weight: 740; letter-spacing: -.03em; line-height: 1; }
.credits-hero .lbl { font-size: 13px; opacity: .9; letter-spacing: .04em; text-transform: uppercase; }

/* ============================== footer ============================== */

.footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer a { font-size: 14.5px; color: var(--ink-2); }
.footer a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-3);
}

/* ============================== prosa ============================== */

.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin: 34px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 1.72; }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: var(--ink); }

/* ============================== responsive ============================== */

@media (max-width: 980px) {
  /* minmax(0, 1fr), not 1fr. A bare 1fr has an auto minimum, so the column is at
     least as wide as its widest content — and step 2's filmstrip is a single row
     of 36 fixed-width cards (5752px). That stretched .studio-grid to 5804px on
     every screen under 980px, clipped by the rounded corner, so tablets and
     phones saw a cropped slice of the studio instead of a stacked one. The 0
     minimum lets the strip be what it already is: an overflow-x scroller. */
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-left { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .more-styles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: grid; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-toggle {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .section { padding: 62px 0; }
  .hero { padding: 40px 0 56px; }
  .results { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .callout { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .result-actions { opacity: 1; transform: none; }
  .ba-pair { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .more-styles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .style-scroll { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:440px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
