/* Iken Studios — public site
   Job 25 (2 Sep 2026) — mobile-first by construction, not by media query
   retrofit: base rules below target ~360px, `min-width` queries ADD desktop
   layout on top. Most prospects arrive here from a Play Store listing on a
   phone (the Manager's own framing) — that's the primary target, not a
   check at the end.

   Colours are the existing "Service Plz aesthetic — shared across the Iken
   Studios portfolio" tokens (tailwind.config.js in the dashboard), reused
   for visual continuity across products. Nothing here is new brand
   language — see README.md for what's still placeholder. */

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --raised: #334155;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --muted: #94a3b8;
  --ink: #f1f5f9;
  --radius: 0.75rem;
  --max-width: 640px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  /* No horizontal scroll, ever — same discipline as the dashboard. */
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

header.site-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

header.site-header img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

header.site-header .brand {
  font-weight: 600;
  font-size: 1rem;
}

main {
  padding: 1.5rem 0 3rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  padding: 1rem;
}

/* Touch-target floor, same rule the dashboard uses: min-height, not forced
   padding, so a control never shrinks below thumb-sized on a phone. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ok);
  color: #05170c;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

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

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--raised);
  background: rgba(15, 23, 42, 0.6);
  color: var(--ink);
  font-size: 0.9375rem;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ok);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-live {
  background: rgba(34, 197, 94, 0.15);
  color: var(--ok);
}

.pill-muted {
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
}

.deal {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  padding: 0.875rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

.deal .deal-summary {
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.375rem;
}

.deal .deal-code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--muted);
}

.placeholder {
  border: 1px dashed rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
  color: var(--warn);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.notice {
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.notice-warn {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warn);
}

.notice-bad {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--bad);
}

footer.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Desktop enhancement only — every rule above already works standalone at
   360px. This just gives extra breathing room once there's room to give. */
@media (min-width: 768px) {
  main {
    padding: 3rem 0 4rem;
  }

  h1 {
    font-size: 2rem;
  }

  .row-desktop {
    display: flex;
    gap: 1rem;
  }

  .row-desktop > .field {
    flex: 1;
  }
}

/* --- Packages (Job 32) -----------------------------------------------------
   Rendered from GET /public/packages by js/content.js. Deliberately reuses
   .card and .pill rather than introducing a parallel look -- a package card
   and a deal card sitting on the same page should read as the same family. */
.pkg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pkg-tagline {
  margin-top: 0.15rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.pkg-features {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
}
.pkg-features li {
  font-size: 0.95rem;
}
.pkg-cap {
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
#packages .card {
  margin-bottom: 0.75rem;
}
#packages .card:last-child {
  margin-bottom: 0;
}
