/* HireByHour website. Colours from design_guidelines.md */
:root {
  --primary: #0d9488;
  --primary-strong: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #f97316;
  --accent-light: #ffedd5;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f9fafb;
  --card: #ffffff;
  --soft: #f3f4f6;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --frame: #111827;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #14b8a6;
    --primary-strong: #2dd4bf;
    --primary-light: rgba(20, 184, 166, 0.2);
    --accent: #fb923c;
    --accent-light: rgba(251, 146, 60, 0.2);
    --text: #f9fafb;
    --muted: #9ca3af;
    --bg: #111827;
    --card: #1f2937;
    --soft: #1a2332;
    --border: #374151;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --frame: #4b5563;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Inter",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 16px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.accent {
  color: var(--primary);
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 9px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.top-nav a:not(.button):hover {
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-strong);
}

.button.secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.button.ghost {
  min-height: 40px;
  padding: 0 18px;
  color: var(--primary);
  border-color: var(--primary);
}

.button.light {
  background: #fff;
  color: #0f766e;
}

.button.outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.actions.center {
  justify-content: center;
}

/* Hero */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(circle at 85% 20%, var(--accent-light), transparent 40%),
    radial-gradient(circle at 10% 90%, var(--primary-light), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

/* App mock-up in the hero (illustration only) */
.mock {
  position: relative;
  justify-self: center;
}

.mock-phone {
  width: 320px;
  padding: 18px 14px 22px;
  border-radius: 36px;
  background: var(--bg);
  border: 8px solid var(--frame);
  box-shadow: var(--shadow);
}

.mock-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.card-who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
}

.avatar.alt {
  background: var(--accent-light);
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 6px 0 2px;
}

.card-rate {
  color: var(--primary);
}

.card-rate b {
  font-size: 1.05rem;
}

.sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 6px;
  background: var(--border);
}

.pill {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
}

.card-line {
  color: var(--muted);
}

.sticker {
  position: absolute;
  top: -18px;
  right: -36px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  transform: rotate(10deg);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--soft);
}

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36em;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li,
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.steps p,
.feature p {
  color: var(--muted);
  margin: 0;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.ticks li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
}

.ticks li b {
  color: var(--text);
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.cta {
  padding-top: 0;
}

.cta-box {
  text-align: center;
  padding: 56px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0;
}

/* Footer */
.foot {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot p {
  margin: 8px 0 0;
}

.foot .company {
  font-size: 0.85rem;
}

.foot nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 4px;
}

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

.foot a:hover {
  color: var(--primary);
}

.small-brand {
  font-size: 1rem;
}

.small-brand img {
  border-radius: 7px;
}

.foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Skip link for keyboard users */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.skip:focus {
  left: 8px;
}

.top-nav a[aria-current="page"] {
  color: var(--primary);
}

/* Menu on small screens */
.menu {
  display: none;
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu nav {
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.menu nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.menu nav a:hover,
.menu nav a[aria-current="page"] {
  background: var(--primary-light);
  color: var(--primary);
}

/* Info pages */
.page-hero {
  padding: 64px 0 40px;
  background: radial-gradient(
    circle at 90% 0%,
    var(--primary-light),
    transparent 45%
  );
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
}

.narrow {
  max-width: 780px;
}

.center-text {
  text-align: center;
}

.center-block {
  margin-left: auto;
  margin-right: auto;
}

.section.tight-top {
  padding-top: 16px;
}

.tabs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 40px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 32px;
}

.timeline {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px 0 32px;
}

.timeline li {
  position: relative;
  counter-increment: step;
  padding: 0 0 28px 64px;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline li:last-child::after {
  display: none;
}

.timeline p {
  color: var(--muted);
  margin: 0;
}

/* FAQ */
.faq h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
}

.faq h2:first-child {
  margin-top: 0;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 1.4rem;
  color: var(--primary);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.field textarea {
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.button {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

button.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 14px 0 0;
  font-weight: 500;
}

.form-status.ok {
  color: var(--primary);
}

.form-status.error {
  color: #dc2626;
}

.contact-side h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.contact-side p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Smaller screens */
@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps,
  .features,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .sticker {
    right: -12px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .mock-phone {
    width: 280px;
  }

  .sticker {
    top: -44px;
    right: -20px;
    width: 92px;
    height: 92px;
    font-size: 0.75rem;
  }

  .actions .button {
    flex: 1 1 auto;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 40px 0 24px;
  }

  .form-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
