/* ============================================================================
   ShinyShoes design system
   Mood: premium, calm, tactile, warm, artist-forward. Not generic SaaS.
   ============================================================================ */

:root {
  /* Warm neutrals */
  --bg:            #efeae3;   /* warm paper */
  --bg-2:          #e7e1d8;
  --surface:       #fbf8f4;
  --ink:           #2b2622;   /* soft warm dark, not pure black */
  --ink-soft:      #5b534b;
  --ink-faint:     #8a8077;
  --line:          #ddd4c8;

  /* Warm grey — the approved button color (replaced the old "dark forest") */
  --warm-grey:     #6b645c;
  --warm-grey-700: #574f47;
  --warm-grey-300: #cfc7bc;

  --accent:        #b07a52;   /* warm terracotta, used sparingly */
  --danger:        #9c5a4f;

  --ok-bg:         #e8efe6;
  --ok-ink:        #3f5b3a;
  --err-bg:        #f6e7e3;
  --err-ink:       #8a463b;

  /* Soft edges: generous radius + the doubled, blurred softness (shadow) */
  --radius:        18px;
  --radius-lg:     26px;
  --soft-shadow:   0 10px 40px rgba(43, 38, 34, 0.16), 0 2px 8px rgba(43, 38, 34, 0.08);
  --soft-shadow-sm:0 4px 18px rgba(43, 38, 34, 0.14);

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

  --maxw: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
.boot { padding: 4rem 1.5rem; text-align: center; color: var(--ink-faint); font-family: var(--body); }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Display typography: expressive but legible on mobile (thicker strokes) */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* ---- Top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }

/* ---- Buttons: soft-edged, tactile, premium ---- */
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--soft-shadow-sm);
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, white); outline-offset: 2px; }

.btn-primary { background: var(--warm-grey); color: #fbf8f4; }
.btn-primary:hover { background: var(--warm-grey-700); box-shadow: var(--soft-shadow); }

.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #fff; }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.95); }

.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.08rem; border-radius: var(--radius-lg); }

/* ---- Cards / surfaces ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--soft-shadow-sm);
}
.card-glass {
  background: color-mix(in srgb, #ffffff 14%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  color: #fff;
}

/* ---- Forms ---- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--ink); }
.field .hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.3rem; }
.input, .textarea, .select {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--warm-grey);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warm-grey) 22%, transparent);
}
.textarea { min-height: 120px; resize: vertical; }
.field.error .input, .field.error .textarea, .field.error .select { border-color: var(--danger); }
.field .err { color: var(--err-ink); font-size: 0.82rem; margin-top: 0.3rem; }
.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-row input { margin-top: 0.25rem; }

/* ---- Banners / states ---- */
.banner { border-radius: 14px; padding: 0.85rem 1rem; font-size: 0.95rem; margin-bottom: 1rem; }
.banner-ok  { background: var(--ok-bg);  color: var(--ok-ink); }
.banner-err { background: var(--err-bg); color: var(--err-ink); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-faint); }
.empty .display { color: var(--ink-soft); }

/* ---- Spinner ---- */
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--warm-grey-300); border-top-color: var(--warm-grey);
  animation: spin 0.8s linear infinite; margin: 1.5rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Atmospheric artist background ---- */
.atmosphere { position: relative; min-height: 100vh; }
.atmosphere::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  background-image: var(--artist-bg);
}
.atmosphere::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
     rgba(20,16,13,0.55) 0%,
     rgba(20,16,13,0.62) 40%,
     rgba(20,16,13,0.80) 100%);
}
.on-photo { color: #f4efe8; }
.on-photo h1, .on-photo h2, .on-photo h3 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.on-photo p, .on-photo .lead { color: rgba(244,239,232,0.92); }
.on-photo .eyebrow { color: rgba(244,239,232,0.7); }

/* ---- Hero / video block ---- */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 6vw, 4rem); }
.video-block {
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1c1814;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
}
.video-block video, .video-block iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-placeholder { color: rgba(255,255,255,0.6); font-family: var(--display); text-align: center; padding: 1rem; }

/* ---- Process steps ---- */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step .n {
  font-family: var(--display); font-weight: 700; font-size: 1.4rem;
  color: var(--accent); margin-bottom: 0.25rem;
}

/* ---- Dashboard / inbox lists ---- */
.grid-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { text-align: left; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.stat .label { color: var(--ink-faint); font-size: 0.9rem; }

.list { display: flex; flex-direction: column; gap: 0.6rem; }
.list-item {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.1rem; text-decoration: none; color: inherit;
  transition: box-shadow 0.18s ease, transform 0.12s ease;
}
.list-item:hover { box-shadow: var(--soft-shadow-sm); transform: translateY(-1px); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-soft);
}
.tag-new { background: #efe3d6; color: #8a5a2e; }
.tag-booked { background: var(--ok-bg); color: var(--ok-ink); }

/* ---- Auth split layout (signup / login landing) ---- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .auth-split { grid-template-columns: 1.05fr 0.95fr; } }
.auth-aside {
  position: relative; color: #f4efe8;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between;
  background: linear-gradient(160deg, #3b342d 0%, #271f1a 55%, #1a1613 100%);
  min-height: 38vh;
}
.auth-aside .brand { color: #fff; text-decoration: none; font-size: 1.25rem; }
.auth-tagline {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.06;
  color: #fff; max-width: 16ch; margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.auth-aside .aside-foot { color: rgba(244,239,232,0.6); font-size: 0.88rem; }
.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.75rem, 5vw, 4rem); background: var(--bg);
}
.auth-form { width: 100%; max-width: 400px; }

/* ---- Auth / narrow pages ---- */
.narrow { max-width: 440px; margin: 0 auto; }
.page-pad { padding: clamp(2rem, 6vw, 4rem) 0; }

/* ---- Components reference page ---- */
.swatch { height: 64px; border-radius: 12px; border: 1px solid var(--line); }
.ref-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--ink-faint); font-size: 0.9rem; }

/* ---- Reference code chip ---- */
.refchip {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: 0.04em;
  background: var(--surface); border: 1px dashed var(--warm-grey-300);
  border-radius: 14px; padding: 0.6rem 1rem; color: var(--ink);
}
