/* ==========================================================================
   e-du-ai — tutoring marketplace
   Design tokens
   ========================================================================== */
:root {
  --brand:        #f2643f;
  --brand-dark:   #d94b28;
  --brand-soft:   #fff1ec;
  --ink:          #16161f;
  --ink-2:        #3d3d4e;
  --muted:        #6e6e85;
  --line:         #e6e6ee;
  --bg:           #ffffff;
  --bg-2:         #faf9f7;
  --bg-3:         #f3f1ee;
  --green:        #14875a;
  --green-soft:   #e6f5ee;
  --amber:        #f5a623;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(22,22,31,.06), 0 8px 24px rgba(22,22,31,.06);
  --shadow-lg:    0 12px 40px rgba(22,22,31,.14);
  --max:          1200px;
  --font:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tint { background: var(--bg-2); }
.section__head { max-width: 680px; margin-bottom: 34px; }
.section__head p { font-size: 1.05rem; color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; transition: .15s ease; white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #ff9068); color: #fff; font-size: .95rem;
}
.nav__links { display: flex; gap: 22px; margin-left: 8px; }
.nav__links a { font-size: .93rem; font-weight: 500; color: var(--ink-2); }
.nav__links a:hover { color: var(--brand); }
.nav__spacer { margin-left: auto; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: 0; padding: 6px; }

/* ---------- hero ---------- */
.hero { padding: 66px 0 54px; background:
  radial-gradient(900px 420px at 88% -10%, #ffeae2 0%, transparent 62%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero p.lede { font-size: 1.13rem; color: var(--ink-2); max-width: 46ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: var(--bg-3); font-size: .82rem; font-weight: 600; color: var(--ink-2);
}

/* search bar */
.searchbar {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: 26px;
}
.searchbar label { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.searchbar__field { padding: 8px 12px; border-radius: var(--radius-sm); }
.searchbar__field:hover { background: var(--bg-2); }
.searchbar input, .searchbar select {
  width: 100%; border: 0; outline: 0; background: transparent; font-size: .95rem;
  font-family: inherit; color: var(--ink); padding: 2px 0;
}

/* hero card collage */
.hero__art { position: relative; }
.hero__art .card-float {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px;
}
.hero__art .float-a { position: absolute; left: -6px; bottom: 26px; width: 235px; z-index: 2; }
.hero__art .float-b { position: absolute; right: -10px; top: 18px; width: 205px; z-index: 2; }
.hero__stage {
  aspect-ratio: 4/3.4; border-radius: 22px; background:
    linear-gradient(150deg, #ffd9cb, #ffeade 45%, #e9f3ff);
  display: grid; place-items: center; overflow: hidden;
}

/* ---------- avatars ---------- */
.avatar {
  border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700;
  flex: none; background: var(--ink); user-select: none;
}
.avatar--sm { width: 36px; height: 36px; font-size: .8rem; }
.avatar--md { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar--lg { width: 104px; height: 104px; font-size: 2rem; border-radius: 18px; }
.avatar--xl { width: 132px; height: 132px; font-size: 2.6rem; border-radius: 20px; }

/* ---------- logo strip ---------- */
.strip { border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg); }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.strip small { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .74rem; }
.strip__logos { display: flex; gap: 34px; flex-wrap: wrap; opacity: .55; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat__n { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.stat p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--on:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- tutor card ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: .18s;
}
.tcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tcard__top { display: flex; gap: 14px; align-items: flex-start; }
.tcard__name { display: flex; align-items: center; gap: 7px; font-weight: 750; font-size: 1.02rem; }
.tcard__meta { font-size: .85rem; color: var(--muted); margin: 2px 0 0; }
.tcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 6px;
  background: var(--bg-3); color: var(--ink-2);
}
.tag--green { background: var(--green-soft); color: var(--green); }
.tcard__bio { font-size: .9rem; color: var(--ink-2); margin: 0; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard__foot { display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 1.15rem; }
.price span { font-weight: 500; font-size: .8rem; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .9rem; }
.rating small { color: var(--muted); font-weight: 500; }
.star { color: var(--amber); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__n {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step p { margin: 0; font-size: .95rem; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: flex; gap: 15px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; flex: none; font-size: 1.15rem; }
.feature h3 { margin-bottom: 4px; font-size: 1.02rem; }
.feature p { margin: 0; font-size: .92rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.plan--hot { border-color: var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.plan--hot::after {
  content: "Most popular"; position: absolute; top: -12px; left: 26px; background: var(--ink);
  color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
}
.plan__price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.plan__price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.plan li { font-size: .92rem; color: var(--ink-2); padding-left: 26px; position: relative; }
.plan li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800;
}

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.quote p { font-size: .96rem; color: var(--ink); }
.quote__who { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.quote__who strong { display: block; font-size: .9rem; }
.quote__who small { color: var(--muted); font-size: .82rem; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: 0; text-align: left; padding: 20px 44px 20px 0;
  font-size: 1.03rem; font-weight: 650; color: var(--ink); position: relative;
}
.faq__q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: .2s;
}
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__a p { padding-bottom: 20px; margin: 0; font-size: .96rem; }

/* ---------- cta ---------- */
.cta {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 54px;
  display: flex; gap: 34px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: #b9b9cb; margin: 0; max-width: 52ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 20px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
.foot h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { font-size: .91rem; color: var(--ink-2); }
.foot a:hover { color: var(--brand); }
.foot__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: var(--muted);
}

/* ---------- listing page ---------- */
.listing { display: grid; grid-template-columns: 268px 1fr; gap: 34px; align-items: start; padding: 34px 0 72px; }
.filters { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.filters__group + .filters__group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.filters h4 { font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.filters select, .filters input[type="search"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.check { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-2); padding: 4px 0; cursor: pointer; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.range__row { display: flex; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.listing__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.listing__bar h1 { font-size: 1.5rem; margin: 0; }
.results { display: grid; gap: 16px; }

/* wide row card for listing */
.rowcard {
  display: grid; grid-template-columns: 132px 1fr 220px; gap: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; transition: .18s;
}
.rowcard:hover { box-shadow: var(--shadow-lg); }
.rowcard__side { display: grid; gap: 10px; justify-items: center; }
.rowcard__book { border-left: 1px solid var(--line); padding-left: 22px; display: grid; gap: 10px; align-content: start; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- profile page ---------- */
.profile { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; padding: 34px 0 72px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 26px; }
.panel + .panel { margin-top: 20px; }
.profile__hero { display: flex; gap: 22px; }
.booking { position: sticky; top: 92px; }
.videobox { aspect-ratio: 16/9; border-radius: var(--radius); background: linear-gradient(150deg,#ffd9cb,#e9f3ff);
  display: grid; place-items: center; margin-bottom: 16px; }
.play { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); font-size: 1.1rem; color: var(--brand); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); }
.schedule { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 8px; }
.schedule__d { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.slot { padding: 9px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: .82rem; font-weight: 600; text-align: center; color: var(--ink-2); }
.slot--free:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.slot--busy { background: var(--bg-3); color: #b6b6c6; cursor: not-allowed; }
.slot--on { background: var(--brand); border-color: var(--brand); color: #fff; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.bars { display: grid; gap: 8px; margin-top: 14px; }
.bar__row { display: grid; grid-template-columns: 60px 1fr 40px; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.bar { height: 7px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--amber); }
.breadcrumb { font-size: .86rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.hide { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 11px;
  font-size: .92rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { display: none; }
  .searchbar { grid-template-columns: 1fr; }
  .cards, .steps, .plans, .quotes, .stats { grid-template-columns: repeat(2, 1fr); }
  .listing, .profile { grid-template-columns: 1fr; }
  .filters, .booking { position: static; }
  .rowcard { grid-template-columns: 96px 1fr; }
  .rowcard__book { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .foot__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}
@media (max-width: 620px) {
  .cards, .steps, .plans, .quotes, .stats, .features { grid-template-columns: 1fr; }
  .cta { padding: 34px; }
  .section { padding: 52px 0; }
}
