/*
 * Pinna stylesheet — palette + a small kit for plain-HTML branded pages.
 *
 * The landing page (index.html) and 404.html ship self-contained inline styles;
 * this file is the shared brand source for any additional plain-HTML pages added
 * later (e.g. simple legal/landing pages that opt in via <link rel="stylesheet">).
 *
 * Palette motif: teal/cyan is the audio signal (primary), warm amber is the
 * second voice (speaker-distinction accent) — the diarization idea in two colors.
 */

:root {
  /* Slate scale (cool, slightly teal-tinted dark) */
  --slate-950: #0a1214;
  --slate-900: #0f1c20;
  --slate-800: #16282d;
  --slate-700: #243a40;
  --slate-600: #3f5a61;
  --slate-500: #5e7d85;
  --slate-400: #8aa6ad;
  --slate-300: #b4cdd2;
  --slate-200: #d6e6e9;
  --slate-100: #eef6f7;

  /* Pinna primary = teal/cyan (the audio signal) */
  --aud:        #2dd4bf;
  --aud-deep:   #14b8a6;
  --aud-glow:   rgba(20, 184, 166, 0.10);
  --aud-border: rgba(45, 212, 191, 0.25);

  /* Speaker accent = warm amber (the second voice) */
  --spk:        #fbbf24;
  --spk-deep:   #f59e0b;
  --spk-glow:   rgba(245, 158, 11, 0.10);
  --spk-border: rgba(251, 191, 36, 0.25);

  /* Status accents */
  --red:  #f87171;
  --blue: #38bdf8;

  /* Semantic */
  --bg:     var(--slate-950);
  --bg2:    var(--slate-900);
  --bg3:    var(--slate-800);
  --fg:     var(--slate-100);
  --fg2:    var(--slate-400);
  --fg3:    var(--slate-500);
  --border: rgba(63, 90, 97, 0.40);

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Force dark color-scheme regardless of OS preference */
html { color-scheme: dark; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100%;
}

a {
  color: var(--aud);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--fg); }

/* Brand area (card header on plain pages) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.brand .name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
/* Wordmark renders "pinna" as one unit (no pin|na split); the mark/favicon
   carries the teal+amber. Keep .accent for incidental emphasis only — do not
   use it to split the wordmark. */
.brand .name .accent { color: var(--aud); }

/* Card */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aud), var(--spk));
}

/* Typography inside cards */
.card h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 6px;
}
.card p.lead {
  margin: 0 0 22px;
  color: var(--fg2);
  font-size: 14px;
}
.card label {
  display: block;
  font-size: 13px;
  color: var(--fg2);
  margin: 0 0 6px;
}

/* Form controls — scoped under .card */
.card input[type="email"],
.card input[type="tel"],
.card input[type="text"] {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.card input::placeholder { color: var(--fg3); }
.card input:focus {
  outline: none;
  border-color: var(--aud);
  box-shadow: 0 0 0 3px var(--aud-glow);
}

.card button {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  background: var(--aud-deep);
  color: #04201c;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.card button:hover {
  background: var(--aud);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
}
.card button:disabled {
  background: var(--slate-700);
  color: var(--fg3);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* States */
.err {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 8px;
  font-size: 14px;
}
.helptext {
  color: var(--fg2);
  font-size: 13px;
  margin: 14px 0 0;
}
.meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--fg3);
  text-align: center;
}
.meta a { color: var(--aud); }

/* Generic button kit (non-form) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--aud-deep); color: #04201c; }
.btn-primary:hover {
  background: var(--aud); color: #04201c;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
}
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--aud); color: var(--aud); transform: translateY(-1px); }

/* Entrance animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
