/* ============================================================
   GUNKOWII SABA — STORE GROWTH BRIEF
   Design tokens
   ============================================================ */
:root {
  --emerald-deep: #14251d;
  --emerald-secondary: #1b3026;
  --gold: #c29d4a;
  --gold-dark: #92702c;
  --cream: #f7f4ed;
  --cream-secondary: #eee8dc;

  --ink: var(--emerald-deep);
  --ink-soft: #3c5347;
  --border: #e2dbc9;
  --error: #a3402f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 12px 40px rgba(20, 37, 29, 0.10), 0 2px 8px rgba(20, 37, 29, 0.06);
  --shadow-soft: 0 4px 14px rgba(20, 37, 29, 0.06);

  --transition: 180ms ease;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 48px;
  background:
    radial-gradient(circle at 15% 0%, rgba(194,157,74,0.10), transparent 45%),
    var(--cream);
}

.brief-header {
  width: 100%;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.brief-header__mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-deep);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brief-header__eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--emerald-deep);
}

.brief-header__role {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.card {
  width: 100%;
  max-width: 620px;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 26px 28px;
  position: relative;
}

.brief-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.7;
  text-align: center;
}

@media (min-width: 640px) {
  .card { padding: 44px 48px 36px; }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--emerald-deep);
}

.intro__subtitle {
  font-size: 17px;
  color: var(--gold-dark);
  font-style: italic;
  font-family: var(--font-display);
  margin: 0 0 16px;
}

.intro__body {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 46ch;
}

.trust-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-list li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-list__check {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
[hidden] {
  display: none !important;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn--primary {
  background: var(--emerald-deep);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover { background: var(--emerald-secondary); }
.btn--primary:active { transform: scale(0.98); }
.btn--primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn--ghost:hover { background: var(--cream-secondary); }

.btn:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* ============================================================
   PROGRESS
   ============================================================ */
.progress { margin-bottom: 26px; }

.progress__label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

.progress__track {
  height: 6px;
  border-radius: 999px;
  background: var(--cream-secondary);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 999px;
  transition: width 320ms ease;
}

/* ============================================================
   STEP CONTENT
   ============================================================ */
.step__heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--emerald-deep);
}

.step__description {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.field { margin-bottom: 20px; }

.field legend {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.req { color: var(--gold-dark); }
.opt {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS zoom */
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(194, 157, 74, 0.20);
}

input.invalid, select.invalid, textarea.invalid {
  border-color: var(--error);
}

.field__hint {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.field__error {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--error);
  min-height: 0;
  display: none;
}

.field__error.show { display: block; }

/* select arrow */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314251d' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================================
   CHECKBOX GRID
   ============================================================ */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  min-height: 46px;
}

.checkbox:has(input:checked) {
  border-color: var(--gold-dark);
  background: #fbf6ea;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-deep);
  flex: 0 0 auto;
}

/* ============================================================
   RADIO CARDS (main goal)
   ============================================================ */
.radio-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-card {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px 16px 14px 44px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.radio-card input {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-deep);
}

.radio-card:has(input:checked) {
  border-color: var(--gold-dark);
  background: #fbf6ea;
  box-shadow: 0 0 0 1px var(--gold-dark);
}

.radio-card__title {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.radio-card__desc {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ============================================================
   PILL GROUP (yes/no/etc.)
   ============================================================ */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  cursor: pointer;
  background: #fff;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.pill:has(input:checked) {
  border-color: var(--emerald-deep);
  background: var(--emerald-deep);
  color: var(--cream);
}

.pill input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ============================================================
   SHOPIFY STEP
   ============================================================ */
.not-shopify {
  background: var(--cream-secondary);
  border-radius: var(--radius-md);
  padding: 20px;
}

.not-shopify__title {
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--emerald-deep);
}

.not-shopify__body {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.security-notice {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--cream-secondary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--border);
}

/* ============================================================
   NAV
   ============================================================ */
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
}

.step-nav .btn { flex: 1; }
.step-nav .btn--ghost { flex: 0 0 auto; }

.submit-status {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--ink-soft);
  min-height: 0;
}

.submit-status.error { color: var(--error); }

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.success { text-align: center; padding: 10px 0 4px; }

.success__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--emerald-deep);
  color: var(--gold);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--emerald-deep);
}

.success__body {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 auto 26px;
}

.success__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================================
   MOTION
   ============================================================ */
.step {
  animation: step-in 220ms ease;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .step, .progress__fill, .btn { animation: none !important; transition: none !important; }
}
