/* ===========================================================================
   TutorPro Online English — shared stylesheet for every static page.

   WHY THIS FILE EXISTS
   --------------------
   Each static page carried its own inline <style> block. They drifted apart
   and, worse, they had all drifted AWAY from the homepage: near-black
   backgrounds and white text, while the homepage is warm cream with purple
   ink. A parent clicking "Pricing" from the homepage landed somewhere that
   looked like a different company.

   One shared file means they cannot drift again, and it is cached once by the
   browser rather than re-downloaded inside every page's HTML.

   The tokens below are copied from src/styles.css so the static pages and the
   React app stay visually identical.
   =========================================================================== */

:root {
  --ink: #321568;
  --muted: #716981;
  --coral: #ff4f87;
  --mint: #dff5a7;
  --line: #e4e0eb;
  --paper: #fdfaf2;
  --card: #ffffff;
  --shadow-sm: 0 8px 24px rgba(50, 21, 104, 0.08);
  --shadow-lg: 0 28px 70px rgba(50, 21, 104, 0.17);
  --radius: 20px;
  --measure: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* A soft wash of the brand colours, echoing the homepage without competing
   with the text. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 0%, rgba(223, 245, 167, 0.5), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(255, 79, 135, 0.09), transparent 30%);
  pointer-events: none;
}

.wrap {
  width: min(var(--measure), calc(100% - 40px));
  margin-inline: auto;
}

/* --- Header ------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 250, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #ff6b6b, var(--coral));
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 79, 135, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 79, 135, 0.34);
}

.btn--quiet {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

.btn--quiet:hover {
  border-color: rgba(50, 21, 104, 0.25);
  transform: translateY(-2px);
}

/* --- Page header -------------------------------------------------------- */

.page-head { padding: 56px 0 12px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(50, 21, 104, 0.06);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 62ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.72;
}

.stamp {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.86rem;
}

/* --- Content ------------------------------------------------------------ */

main { padding-bottom: 60px; }

h2 {
  margin: 46px 0 14px;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  margin: 30px 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
}

p { max-width: 72ch; margin: 0 0 16px; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

ul, ol { max-width: 72ch; margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 9px; }
li::marker { color: var(--coral); }

strong { font-weight: 800; }

/* --- Cards and callouts ------------------------------------------------- */

.card {
  margin: 26px 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.card h2,
.card h3 { margin-top: 0; }

.note {
  margin: 26px 0;
  padding: 22px 26px;
  border: 1px solid rgba(50, 21, 104, 0.1);
  border-left: 4px solid var(--coral);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(223, 245, 167, 0.4), rgba(255, 255, 255, 0.9));
}

.note :last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.pill {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 8px;
}

/* --- Tables ------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.99rem;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: rgba(50, 21, 104, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(223, 245, 167, 0.22); }

/* --- FAQ ---------------------------------------------------------------- */

details {
  margin-bottom: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

summary::after {
  content: '+';
  float: right;
  color: var(--coral);
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after { content: '−'; }
details p { margin: 12px 0 0; color: var(--muted); }

/* --- Closing call to action --------------------------------------------- */

.cta {
  margin: 54px 0 10px;
  padding: 40px 34px;
  border-radius: 26px;
  background: linear-gradient(135deg, #321568, #4c1d95);
  color: #fff;
  text-align: center;
}

.cta h2 { margin-top: 0; color: #fff; }
.cta p { max-width: 54ch; margin-inline: auto; color: rgba(255, 255, 255, 0.85); }
.cta .btn--quiet { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: #fff; }
.cta .actions { justify-content: center; }

/* --- Footer ------------------------------------------------------------- */

.site-foot {
  margin-top: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 14px;
}

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

/* --- Small screens ------------------------------------------------------ */

@media (max-width: 640px) {
  body { font-size: 1rem; }

  /* The pricing table overflowed 58px on a 390px screen. .table-wrap already
     scrolls, but the table itself was still forcing the page wider, so it is
     pinned to the wrapper and the cells are allowed to wrap. */
  .table-wrap { max-width: 100%; }
  table { min-width: 0; font-size: 0.92rem; }
  th, td { padding: 11px 12px; overflow-wrap: anywhere; }
  .wrap { width: calc(100% - 28px); }
  .page-head { padding-top: 34px; }
  .card, .note { padding: 20px; }
  .cta { padding: 30px 20px; }
  .btn { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
}

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