/* ===========================================================
   ThriftGoals — design system
   "Your goals. Your store. Your growth."
   =========================================================== */

:root {
  --violet: #6543D9;
  --violet-dark: #4F31B8;
  --violet-light: #8266E6;
  --violet-tint: #EFEAFB;
  --cream: #F8F5EE;
  --ink: #191622;
  --ink-soft: #4A4557;
  --ink-muted: #7B758C;
  --mint: #DDF5E8;
  --mint-ink: #1E6B4C;
  --border: rgba(25, 22, 34, 0.09);
  --shadow-sm: 0 2px 8px rgba(25, 22, 34, 0.06);
  --shadow-md: 0 12px 32px rgba(101, 67, 217, 0.12);
  --shadow-lg: 0 24px 60px rgba(25, 22, 34, 0.14);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --container: 1180px;
  --ff-head: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.mint { color: var(--mint-ink); background: var(--mint); }

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { font-size: 17px; }
.section.alt { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--violet-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-light {
  background: #fff;
  color: var(--violet);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .15s;
}
.nav-links a:hover { color: var(--violet); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(101,67,217,.16), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--violet), #9B6BF2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13.5px; color: var(--ink-muted); }

/* Hero mock browser frame */
.hero-visual { margin-top: 56px; display: flex; justify-content: center; }
.mock-browser {
  width: 100%; max-width: 920px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #F1EEE6;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #D8D3C8; }
.mock-dot:nth-child(1) { background: #F3867A; }
.mock-dot:nth-child(2) { background: #F3C96B; }
.mock-dot:nth-child(3) { background: #8FD6A6; }
.mock-url {
  margin-left: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  flex: 1;
  max-width: 260px;
}
.mock-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 24px;
  background: linear-gradient(180deg, #fff, #FBFAF7);
}
@media (max-width: 700px) { .mock-body { grid-template-columns: 1fr; } }
.mock-store-card {
  border-radius: var(--radius-md);
  background: var(--violet-tint);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.mock-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
}
.mock-line { height: 10px; border-radius: 6px; background: rgba(25,22,34,.1); }
.mock-line.w60 { width: 60%; } .mock-line.w40 { width: 40%; } .mock-line.w80 { width: 80%; }
.mock-btn-pill {
  margin-top: auto;
  background: var(--violet); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; text-align: center;
}
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock-product {
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px;
}
.mock-thumb {
  height: 64px; border-radius: 10px; margin-bottom: 10px;
}
.mock-thumb.c1 { background: linear-gradient(135deg, #FCE3D6, #F7B99D); }
.mock-thumb.c2 { background: linear-gradient(135deg, var(--mint), #AFE6C8); }
.mock-thumb.c3 { background: linear-gradient(135deg, #E3DCFB, #B9A6F2); }
.mock-thumb.c4 { background: linear-gradient(135deg, #FDEBB0, #F6CE6E); }
.mock-price { font-size: 12px; font-weight: 700; color: var(--violet); margin-top: 6px; }

/* ---------- Logo-ish stat strip ---------- */
.stat-strip {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  padding: 40px 0; margin-top: 24px; border-top: 1px solid var(--border);
}
.stat-strip .stat { text-align: center; }
.stat-strip .num { font-family: var(--ff-head); font-weight: 800; font-size: 26px; color: var(--violet); }
.stat-strip .label { font-size: 13px; color: var(--ink-muted); }

/* ---------- Category cards (What you can sell) ---------- */
.cat-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 44px; flex-wrap: wrap; }
.cat-tab {
  font-family: var(--ff-head); font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--border);
  color: var(--ink-soft); cursor: default;
}
.cat-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.tint-violet { background: var(--violet-tint); color: var(--violet); }
.tint-mint { background: var(--mint); color: var(--mint-ink); }
.tint-cream { background: #FBE9D7; color: #B6652A; }
.tint-pink { background: #FAE1EA; color: #C23D74; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; text-align: center; padding: 8px; }
.step-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 800; font-size: 20px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
.step h3 { font-size: 18px; }
.step p { font-size: 14.5px; }
.steps::before {
  content: '';
  position: absolute; top: 28px; left: 14%; right: 14%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
  z-index: 0;
}
@media (max-width: 860px) { .steps::before { display: none; } }

/* ---------- Storefront showcase ---------- */
.showcase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.showcase-top { height: 150px; position: relative; }
.showcase-top.fashion { background: linear-gradient(135deg, #F3D9C4, #E79F7A); }
.showcase-top.digital { background: linear-gradient(135deg, #D7CBFA, #9B7FEE); }
.showcase-top.beauty { background: linear-gradient(135deg, var(--mint), #7FD3A4); }
.showcase-top .badge {
  position: absolute; bottom: 14px; left: 16px;
  background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.showcase-body { padding: 22px; }
.showcase-body h3 { font-size: 16.5px; margin-bottom: 6px; }
.showcase-body p { font-size: 14px; }

/* ---------- Dashboard tools ---------- */
.tools-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .tools-wrap { grid-template-columns: 1fr; } }
.tool-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.tool-item:last-child { border-bottom: none; }
.tool-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.tool-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.tool-item p { font-size: 14px; margin-bottom: 0; }

.dash-mock {
  border-radius: var(--radius-lg);
  background: var(--ink);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.dash-mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.dash-mock-card { background: rgba(255,255,255,.06); border-radius: 12px; padding: 16px; }
.dash-mock-card .k { color: rgba(255,255,255,.55); font-size: 11.5px; margin-bottom: 6px; }
.dash-mock-card .v { color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: 19px; }
.dash-mock-chart {
  height: 120px; border-radius: 12px; background: rgba(255,255,255,.06);
  display: flex; align-items: flex-end; gap: 6px; padding: 14px;
}
.dash-mock-chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--violet-light), var(--violet)); }

/* ---------- Trust / stories ---------- */
.story-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.story-quote { font-size: 15px; color: var(--ink); font-style: italic; }
.story-who { display: flex; align-items: center; gap: 12px; }
.story-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--violet-light)); }
.story-name { font-weight: 700; font-size: 14px; }
.story-role { font-size: 12.5px; color: var(--ink-muted); }
.founder-banner {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
}
.founder-banner h3 { color: #fff; font-size: 22px; }
.founder-banner p { color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column;
}
.price-card.highlight {
  border: 2px solid var(--violet); box-shadow: var(--shadow-md); position: relative;
}
.price-card.highlight::before {
  content: 'Most popular';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--violet); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; }
.price-amount { font-family: var(--ff-head); font-weight: 800; font-size: 36px; margin-bottom: 4px; }
.price-amount small { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.price-fee { font-size: 13px; color: var(--ink-muted); margin-bottom: 22px; }
.price-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); align-items: flex-start; }
.price-list .tick {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint); color: var(--mint-ink);
  display: flex; align-items: center; justify-content: center; font-size: 11px; margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-family: var(--ff-head); font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.faq-q .plus { transition: transform .2s; font-size: 20px; color: var(--violet); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 22px 18px; font-size: 14.5px; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--violet), #4F31B8);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}
.final-cta h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); }
.final-cta p { color: rgba(255,255,255,.82); max-width: 480px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; max-width: 280px; }
footer h5 { font-family: var(--ff-head); color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
footer ul li { margin-bottom: 11px; }
footer ul a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .15s; }
footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.45);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Auth pages (login / register) ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }
.auth-side {
  background: var(--ink);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute; top: -120px; right: -120px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(101,67,217,.35), transparent 70%);
}
.auth-side .brand { color: #fff; }
.auth-pitch { position: relative; z-index: 1; max-width: 420px; }
.auth-pitch h2 { color: #fff; font-size: 30px; margin-top: 60px; }
.auth-pitch p { color: rgba(255,255,255,.65); font-size: 15.5px; }
.auth-pitch-points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-pitch-points li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: rgba(255,255,255,.85); }
.auth-pitch-points .tick {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(221,245,232,.18); color: var(--mint);
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.auth-foot { position: relative; z-index: 1; font-size: 13px; color: rgba(255,255,255,.4); }

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 56px 24px;
}
.auth-box { width: 100%; max-width: 400px; }
.auth-box .brand { display: none; margin-bottom: 28px; }
@media (max-width: 900px) { .auth-box .brand { display: flex; } }
.auth-box h1 { font-size: 26px; margin-bottom: 8px; }
.auth-box .auth-sub { font-size: 14.5px; margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 14.5px; font-family: var(--ff-body); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--ink-muted); }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }
.field-hint { font-size: 12.5px; color: var(--ink-muted); margin-top: 6px; }

.alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 13.5px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert.show { display: flex; }
.alert-error { background: #FDEAEA; color: #B23A3A; border: 1px solid #F6CFCF; }
.alert-info { background: var(--violet-tint); color: var(--violet-dark); border: 1px solid #DCD2F9; }
.alert .icon { flex-shrink: 0; font-weight: 800; }

.auth-switch { text-align: center; font-size: 14px; margin-top: 22px; color: var(--ink-soft); }
.auth-switch a { color: var(--violet); font-weight: 700; }

.shake { animation: shakeField .4s; }
@keyframes shakeField {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
