/* ============================================================
   PhatCode LLC — shared stylesheet
   Theme: "Warm Charcoal" — warm charcoal bg, bold orange-red
   accent, serif display headings. Editorial / design-forward.
   Used by index.html, support.html, privacy.html
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --bg: #1a1816;          /* warm charcoal background */
  --bg-soft: #211e1b;     /* slightly lighter panel background */
  --bg-card: #262320;     /* card background */
  --border: #38322c;      /* warm subtle borders */
  --text: #f0ebe4;        /* warm off-white primary text */
  --text-dim: #a89f94;    /* warm muted / secondary text */
  --accent: #ff5436;      /* bold orange-red accent */
  --accent-soft: #ff8a6b; /* lighter orange tint (links, hovers) */
  --accent-warm: #ffb37a; /* warm amber (secondary touches) */
  --radius: 14px;
  --maxw: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Base reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Narrower column for long-form legal/support text */
.prose-container { max-width: 760px; }

/* ---- Header / nav (shared) ---- */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(26, 24, 22, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 700; font-size: 1.3rem; letter-spacing: 0;
}
.logo .mark {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.95rem;
}
.nav-links { display: flex; gap: 28px; font-size: 0.95rem; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links { gap: 18px; font-size: 0.9rem; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #1a1816;          /* dark ink on the bold accent — punchy, editorial */
  box-shadow: 0 8px 24px rgba(255, 84, 54, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 84, 54, 0.38); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---- Decorative background glow (home only, via body class) ---- */
body.has-glow::before {
  content: "";
  position: fixed;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255, 84, 54, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Hero (home) ---- */
.hero { position: relative; z-index: 1; text-align: center; padding: 116px 0 80px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(255, 179, 122, 0.08);
  border: 1px solid rgba(255, 179, 122, 0.22);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.08; letter-spacing: -0.01em; font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .grad { color: var(--accent); font-style: italic; }
.hero p { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--text-dim); max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Section scaffolding ---- */
section { position: relative; z-index: 1; padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); max-width: 560px; margin: 0 auto; }

/* ---- Products grid (home) ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);   /* warm accent line down the left edge */
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.card .tag {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.tag-service { color: var(--accent-warm); background: rgba(255, 179, 122, 0.12); }
.tag-app { color: var(--accent-soft); background: rgba(255, 84, 54, 0.14); }
.tag-soon { color: var(--text-dim); background: rgba(168, 159, 148, 0.12); }
.card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.98rem; flex-grow: 1; }
.card .more { margin-top: 18px; font-size: 0.9rem; font-weight: 600; color: var(--accent-soft); }

/* ---- About (home) ---- */
.about { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: 18px; }
.about p { color: var(--text-dim); margin-bottom: 16px; }
.stat-row { display: flex; gap: 32px; margin-top: 8px; flex-wrap: wrap; }
.stat .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--accent); }
.stat .lbl { font-size: 0.85rem; color: var(--text-dim); }

/* ---- Contact card (home + support) ---- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 620px; margin: 0 auto;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 84, 54, 0.12); color: var(--accent);
  font-size: 1.1rem;
}
.contact-list .label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-list .value { font-size: 1.05rem; font-weight: 600; }
.contact-list a.value:hover { color: var(--accent-soft); }

/* ---- Long-form prose (support + privacy) ---- */
.page-header { padding: 84px 0 30px; text-align: center; }
.page-header h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.page-header .updated { color: var(--text-dim); font-size: 0.95rem; }
.prose { padding-bottom: 80px; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.005em; margin: 38px 0 14px; }
.prose h3 { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; margin: 24px 0 10px; }
.prose p { color: var(--text-dim); margin-bottom: 16px; }
.prose ul { color: var(--text-dim); margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-soft); text-decoration: underline; }
.prose strong { color: var(--text); }

/* ---- Footer (shared) ---- */
footer { border-top: 1px solid var(--border); padding: 36px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--text-dim); font-size: 0.9rem; }
.foot .logo { font-size: 1.1rem; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: var(--text); }
