/* ============================================================
   HirePatti.com — site stylesheet
   Palette: sibling of the product UI — white cards on a soft
   gradient canvas, teal primary, indigo accent.
   ============================================================ */

:root {
  --teal: #0d9488;
  --teal-dark: #0b7c72;
  --teal-soft: #e6f6f4;
  --indigo: #4f46e5;
  --indigo-soft: #eef0fd;
  --ink: #16303a;
  --muted: #43545e;   /* darkened for readability on the lavender canvas */
  --line: #dde8ea;
  --card: #ffffff;
  --canvas-1: #f2faf8;
  --canvas-2: #eef1fb;
  --amber-soft: #fdf3e4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 48, 58, 0.06), 0 10px 30px rgba(22, 48, 58, 0.08);
  --shadow-lift: 0 2px 4px rgba(22, 48, 58, 0.08), 0 18px 44px rgba(22, 48, 58, 0.14);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  /* The product UI's canvas: indigo-lavender, darkest at the top, fading
     out toward the bottom — same family as the admin app in the demos. */
  background: linear-gradient(180deg, #7f86ec 0%, #a9adf4 34%, #cdd0f8 66%, #eef1fb 100%) fixed;
}

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

a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.22rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1em; }

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

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.narrow { width: min(780px, 92vw); margin-left: auto; margin-right: auto; }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .kicker { margin-bottom: 0.6rem; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img { height: 40px; width: auto; }

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wordmark .dot { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav-links a.active { color: var(--teal-dark); }

.nav-cta { margin-left: 0.4rem; }

/* dropdown ("Who it's for") */
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 0.75em; }
.sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
}
.has-sub:hover .sub, .has-sub.open .sub { display: block; }
.sub a { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.32);
}
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-ghost:hover { background: var(--teal-soft); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1.08rem; }

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero .lede {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.hero-note { margin-top: 1rem; font-size: 0.92rem; color: var(--muted); }

.hero-avatar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.hero-avatar img { height: 64px; width: 64px; }
.hero-avatar .hello {
  font-weight: 600;
  color: var(--teal-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  box-shadow: var(--shadow);
}

/* ---------- email example cards ---------- */

.email-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.email-card .email-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: var(--teal-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.email-card .msg { padding: 1rem 1.2rem; }

.email-card .msg + .msg { border-top: 1px dashed var(--line); }

.email-card .who {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.email-card .who.patti { color: var(--teal-dark); }

.email-card .msg p { margin: 0; font-size: 0.98rem; }

.email-card .draft {
  background: linear-gradient(180deg, #f7fdfc, #f2faf8);
}

.email-approve {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--line);
  background: #fbfdfd;
}

.chip {
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.32rem 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.chip.approve { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- generic cards / grids ---------- */

.grid {
  display: grid;
  gap: 1.4rem;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--teal-soft);
  margin-bottom: 0.9rem;
}
.card:nth-child(3n+2) .icon { background: var(--indigo-soft); }
.card:nth-child(3n) .icon { background: var(--amber-soft); }

.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.card .card-link { display: inline-block; margin-top: 0.8rem; font-weight: 700; font-size: 0.92rem; text-decoration: none; }

/* ---------- steps (how it works) ---------- */

.steps { counter-reset: step; display: grid; gap: 1.1rem; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem;
  align-items: start;
}

.step .num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step .num::before { content: counter(step); }

.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- split feature rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split.flip .split-media { order: -1; }

.split-media img,
.shot {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: #fff;
}

.split h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.split ul { margin: 0.8rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.split ul li { margin-bottom: 0.45rem; }

/* ---------- phone-framed screenshot ---------- */

.phone-frame {
  width: min(220px, 70vw);
  margin: 0 auto;
  padding: 12px;
  background: #16303a;
  border-radius: 34px;
  box-shadow: var(--shadow-lift);
}
.phone-frame img {
  border-radius: 24px;
  border: none;
  box-shadow: none;
  width: 100%;
}

/* ---------- band / cta ---------- */

.band {
  background: linear-gradient(120deg, var(--teal) 0%, #11a898 55%, var(--indigo) 160%);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.92); max-width: 40em; margin-left: auto; margin-right: auto; }
.band .btn-primary { background: #fff; color: var(--teal-dark); box-shadow: none; }
.band .btn-primary:hover { background: var(--teal-soft); }

/* ---------- pricing ---------- */

.tiers { align-items: stretch; }

.tier {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
}

.tier.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lift);
  position: relative;
}

.tier .flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  white-space: nowrap;
}

.tier .tier-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.2rem; }
.tier .tier-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.1rem; }

.tier ul { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.tier ul li { padding: 0.42rem 0 0.42rem 1.7rem; position: relative; font-size: 0.97rem; color: var(--ink); }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

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

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

.gallery figure { margin: 0; }

.gallery a.shot-link { display: block; border-radius: var(--radius); overflow: hidden; }

.gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}
.gallery a.shot-link:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.55rem; text-align: center; }

/* lightbox */
img.shot-zoom { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 33, 40, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lightbox .lb-caption { position: absolute; bottom: 2.5vh; left: 0; right: 0; text-align: center; color: #dfeeec; font-size: 0.95rem; }

/* ---------- forms ---------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 2rem;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfd;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  background: #fff;
}

textarea { min-height: 120px; resize: vertical; }

.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 2.6rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.footer-brand img { height: 34px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.footer-nav a:hover { color: var(--teal-dark); }

.footer-fine { margin-top: 1.6rem; color: var(--muted); font-size: 0.85rem; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4vw 1rem;
    box-shadow: var(--shadow-lift);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0.75rem; }
  .nav-cta { margin: 0.5rem 0 0; }

  .sub {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; padding: 1.1rem 1.15rem; }
  .step .num { width: 44px; height: 44px; font-size: 1.2rem; }
}
