/* 99aupairs UI palette
   Pink     #F69599 (PANTONE 1225)  used ONLY for the logo + tiny accents
   Teal     #59BEC9 (PANTONE 2227C) reserved for future use
   CTA green #23A572 picked to complement coral pink — used for every "next step" button
   Body type: Nunito Sans (Arial fallback)
*/
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap");

:root {
  /* Brand */
  --brand: #F69599;
  --brand-deep: #E5727C;
  --brand-soft: #FEEAEC;
  --brand-tint: #FCD6D9;

  /* CTA — the "click here next" colour */
  --cta: #23A572;
  --cta-deep: #1B8259;
  --cta-soft: #DEF3E8;

  /* Neutrals */
  --bg: #F8F8F9;
  --surface: #FFFFFF;
  --ink: #1F2024;
  --muted: #6B6B72;
  --border: #E6E6EB;

  /* Status */
  --green: #23A572;
  --red: #D04A4A;
  --red-soft: #FFE0E0;
  --amber: #F4B643;

  --shadow: 0 1px 3px rgba(20, 20, 30, 0.06);
  --shadow-lg: 0 10px 30px rgba(20, 20, 30, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cta-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* TOPBAR — thin pink accent stripe so brand is felt without dominating */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: white;
  border-bottom: 3px solid var(--brand);
}
.topbar .logo-img { height: 56px; width: auto; }
.topbar .nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; color: var(--muted); }

/* CARDS — neutral white surface */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}

/* HERO — slim white card with logo on top + a slim pink accent bar */
.card.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  padding: 32px 28px 28px;
  position: relative;
}
.card.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--brand) 0%, #FBC0C3 100%);
}
.card.hero .hero-logo { width: 96px; height: auto; margin: 0 auto 12px; display: block; }
.card.hero h1 { color: var(--ink); }
.card.hero .lede { color: var(--muted); font-weight: 500; }

.card h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.card .lede { color: var(--muted); margin: 0 0 18px; font-size: 16px; line-height: 1.45; }

/* BUTTONS — primary CTA is green; pink is reserved for brand-flavoured links only */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cta);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.05s, box-shadow 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--cta-deep); box-shadow: var(--shadow-lg); text-decoration: none; color: white; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn.ghost:hover { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #B33A3A; }
.btn.success { background: var(--cta); }
.btn.success:hover { background: var(--cta-deep); }
.btn.brand { background: var(--brand); }
.btn.brand:hover { background: var(--brand-deep); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.full { display: flex; width: 100%; }
.btn .ic { width: 20px; height: 20px; }

/* INPUTS — neutral, brand only on focus ring */
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--cta-soft);
  border-color: var(--cta);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--ink);
}

.ic { width: 22px; height: 22px; flex: none; }

/* TIP CARDS — white with neutral border, pink-iconed circle as the only colour pop */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}
@media (max-width: 640px) { .tip-grid { grid-template-columns: repeat(2, 1fr); } }
.tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color 0.15s, transform 0.15s;
}
.tip:hover { border-color: var(--brand); transform: translateY(-1px); }
.tip .tip-icon {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
}
.tip .tip-icon svg { width: 24px; height: 24px; }
.tip .tip-label { font-weight: 800; font-size: 14px; color: var(--ink); }
.tip .tip-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* PROGRESS bar — pink for current, green for done so progress feels rewarding */
.progress {
  display: flex; gap: 6px; margin: 12px 0 24px;
}
.progress .seg {
  flex: 1; height: 10px; background: var(--border); border-radius: 6px;
  display: block; transition: background 0.15s, transform 0.1s;
}
.progress a.seg { cursor: pointer; }
.progress a.seg:hover { background: #C9C9D2; transform: translateY(-1px); }
.progress .seg.done { background: var(--cta); }
.progress a.seg.done:hover { background: var(--cta-deep); }
.progress .seg.current { background: var(--brand); }
.progress a.seg.current:hover { background: var(--brand-deep); }

.recorder-stage { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 720px) { .recorder-stage { grid-template-columns: 1fr; } }
.qbox { padding: 8px 4px; }
.qbox .qmeta { font-size: 13px; color: var(--brand-deep); margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.qbox h2 { font-size: 24px; line-height: 1.3; margin: 6px 0 22px; }
.qbox .timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.qbox .timer .ic { color: var(--brand-deep); }

.video-area {
  background: #1a1a1a; aspect-ratio: 4/3; border-radius: 16px;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.video-area video { width: 100%; height: 100%; object-fit: cover; }
.video-area .placeholder { color: white; padding: 24px; text-align: center; font-size: 14px; }
.video-area.recording::after {
  content: "● REC"; position: absolute; top: 14px; right: 14px;
  background: var(--red); color: white; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0.5; } }

.row-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* DASHBOARD — neutral surfaces, pink-deep numbers for emphasis only */
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 8px 0 24px; }
.funnel .stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px;
}
.funnel .stat .num { font-size: 30px; font-weight: 800; color: var(--ink); }
.funnel .stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
@media (max-width: 720px) { .funnel { grid-template-columns: repeat(2, 1fr); } }

table.list { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
table.list th { background: var(--bg); text-align: left; padding: 14px 16px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; border-bottom: 1px solid var(--border); }
table.list td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 14px; }
table.list tr:hover td { background: var(--bg); }
table.list a { color: var(--cta-deep); font-weight: 700; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.pill.live { background: var(--cta-soft); color: var(--cta-deep); }
.pill.pending { background: #FFF6DB; color: #976A00; }
.pill.accepted { background: var(--cta-soft); color: var(--cta-deep); }
.pill.rejected { background: var(--red-soft); color: #B12A2A; }

.video-thumb { width: 100%; max-width: 600px; border-radius: 12px; background: #1a1a1a; }

.scorecard { display: grid; grid-template-columns: 1fr 200px; gap: 8px 16px; align-items: center; margin: 16px 0; }

.muted { color: var(--muted); }
.success-banner { background: var(--cta-soft); color: var(--cta-deep); padding: 14px 18px; border-radius: 12px; margin: 16px 0; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.error-banner { background: var(--red-soft); color: #B12A2A; padding: 14px 18px; border-radius: 12px; margin: 16px 0; font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 15px; }
.checklist li .ic { color: var(--cta); }

.center { text-align: center; }
