/* Flawedworks — Shared Styles */
/* Dark theme: #1A1A1A background, white text, #FFB300 amber accent */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #1A1A1A;
  --bg-card:   #242424;
  --bg-hover:  #2e2e2e;
  --text:      #FFFFFF;
  --text-muted: #999999;
  --amber:     #FFB300;
  --amber-dim: rgba(255, 179, 0, 0.12);
  --border:    #333333;
  --radius:    6px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */

.site-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.site-logo span {
  color: var(--amber);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.5rem;
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--amber);
}

main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.site-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber);
}

/* ── Typography ── */

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.1rem;
  color: var(--text);
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
}

/* ── Components ── */

.amber-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Amber callout box */
.callout {
  border-left: 4px solid var(--amber);
  background: var(--amber-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.callout p {
  color: var(--text);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.callout strong {
  color: var(--amber);
}

/* App card */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.app-card:hover {
  border-color: var(--amber);
  background: var(--bg-hover);
  text-decoration: none;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.app-card-body h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.2rem;
}

.app-card-body p {
  margin: 0;
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid var(--amber);
  margin-bottom: 0.5rem;
}

/* CTA button */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-amber {
  background: var(--amber);
  color: #1A1A1A;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "—";
  color: var(--amber);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* App icon image inside .app-icon div */
.app-icon img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Hero app icon on ZAGNALS landing page */
.app-icon-hero {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  display: block;
  margin-bottom: 1.5rem;
}

/* "Available Now" text inside app card */
.available-now {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber) !important;
  margin: 0.5rem 0 0;
}

/* Screenshot gallery */
.screenshot-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin: 1.5rem 0;
  scrollbar-color: var(--border) transparent;
}

.screenshot-gallery img {
  height: 420px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  main {
    padding: 2.5rem 1.25rem;
  }

  .site-header {
    padding: 1rem 1.25rem;
  }

  .app-card {
    flex-direction: column;
    gap: 1rem;
  }

  .screenshot-gallery img {
    height: 300px;
  }
}
