/* Consolidate.photos — design tokens + layout */
:root {
  --bg:        #FAFAF7;
  --surface:   #FFFFFF;
  --ink:       #1F2230;
  --ink-2:     #5F6478;
  --ink-3:     #8B8F9F;
  --line:      #EAEAE3;
  --line-2:    #DCDCD2;
  --accent:    #2D7A6B;
  --accent-h:  #246256;
  --accent-soft: #E5F1ED;
  --warm:      #DC9D5B;
  --warm-soft: #FAEFDD;
  --danger:    #B23A3A;
  --danger-soft:#F7E3E3;
  --shadow-sm: 0 1px 2px rgba(20, 24, 35, 0.04), 0 0 0 1px rgba(20,24,35,0.04);
  --shadow:    0 6px 20px rgba(20, 24, 35, 0.08), 0 0 0 1px rgba(20,24,35,0.04);
  --radius:    14px;
  --radius-sm: 8px;
  --w-narrow:  640px;
  --w-wide:    1180px;
  --font:      -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); text-decoration: underline; }

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

/* Layout */
.wrap, .wrap-narrow { margin-inline: auto; padding: 0 24px; }
.wrap         { max-width: var(--w-wide); }
.wrap-narrow  { max-width: var(--w-narrow); }

/* Marketing header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  max-width: var(--w-wide); margin-inline: auto;
}
.brand {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .dot { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .cta {
  background: var(--ink); color: var(--bg); padding: 8px 16px;
  border-radius: 999px; font-weight: 500;
}
.nav .cta:hover { background: var(--accent); color: #fff; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 820px; margin-inline: auto;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 20px;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
}
.hero p.lead {
  font-size: 19px; color: var(--ink-2);
  margin: 0 0 36px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn-block { display: flex; width: 100%; padding: 14px 22px; font-size: 16px; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}

/* Sections */
.section { padding: 60px 24px; }
.section h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.01em; margin: 0 0 12px;
}
.section .lead { color: var(--ink-2); margin: 0 auto 40px; max-width: 560px; }
.section.center { text-align: center; }

.steps {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: var(--w-wide); margin: 0 auto;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-2); }

/* Source strip */
.sources-strip {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 920px; margin: 0 auto;
}
.source-tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 14px;
  text-align: center; position: relative;
}
.source-tile .source-name { font-weight: 500; color: var(--ink); font-size: 14px; }
.source-tile .source-icon {
  width: 36px; height: 36px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 8px; font-size: 20px;
}
.source-tile .badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: var(--warm-soft); color: #8B5A1F; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  color: var(--ink-3); font-size: 14px;
  margin-top: 60px;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--ink-2); margin-right: 18px; }

/* Auth cards */
.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 32px;
  max-width: 420px; margin: 80px auto;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 {
  font-size: 26px; letter-spacing: -0.01em; margin: 0 0 8px;
}
.auth-card p.sub { color: var(--ink-2); margin: 0 0 28px; font-size: 15px; }

/* Forms */
.field { display: block; margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 6px;
}
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=search],
.field textarea, .field select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line-2); background: var(--bg);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-tail { margin-top: 22px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* Alerts */
.alert {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 18px;
}
.alert-error   { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--accent-soft); color: var(--accent-h); }
.alert-info    { background: #F0F2F7; color: var(--ink-2); }

/* App shell (logged-in) */
.app-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.app-nav { display: flex; gap: 4px; align-items: center; }
.app-nav a {
  color: var(--ink-2); padding: 8px 14px; border-radius: 8px; font-size: 14px;
  font-weight: 500;
}
.app-nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.app-nav a.active { background: var(--accent-soft); color: var(--accent-h); }
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 12px;
  font-size: 13px; color: var(--ink-2);
}
.user-pill .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}

.app-main { padding: 32px 24px; max-width: var(--w-wide); margin-inline: auto; }
.page-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.page-title h1 { margin: 0; font-size: 26px; letter-spacing: -0.01em; }
.page-title p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

/* Empty state */
.empty {
  background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--radius); padding: 56px 32px;
  text-align: center; color: var(--ink-2);
}
.empty h3 { color: var(--ink); margin: 0 0 8px; font-size: 19px; }
.empty p  { margin: 0 auto 22px; max-width: 440px; }

/* Photo grid */
.month-group { margin-bottom: 36px; }
.month-group h3 {
  margin: 0 0 14px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase;
}
.photo-grid {
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.photo-tile {
  aspect-ratio: 1; background: var(--surface); overflow: hidden;
  border-radius: 6px; cursor: pointer; position: relative;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile:hover { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sources page */
.sources-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.source-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.source-card .head { display: flex; gap: 14px; align-items: center; }
.source-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.source-card h3 { margin: 0; font-size: 16px; }
.source-card p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.source-card .actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.source-card .badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.source-card .badge.coming   { background: var(--warm-soft); color: #8B5A1F; }
.source-card .badge.live     { background: var(--accent-soft); color: var(--accent-h); }

@media (max-width: 600px) {
  .site-header { padding: 16px 18px; }
  .nav { gap: 14px; font-size: 14px; }
  .hero { padding: 56px 18px 40px; }
  .auth-card { margin: 40px 16px; padding: 28px 22px; }
  .app-main { padding: 22px 16px; }
}
