/* =====================================================
   Landing page styles (cleaned)
   - Removes duplicated/overridden blocks
   - Aligns header + content containers
   - Keeps layout responsive and predictable
   ===================================================== */

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: Inter, Arial, sans-serif;
    background: #f3f6fb;
    color: #111827;
    overflow-x: hidden;
}

/* Design tokens (keeps all grids/cards consistent) */
:root {
    --card-bg: #ffffff;
    --card-radius: 18px;
    --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.08);
    --card-border: 1px solid rgba(17, 24, 39, 0.06);
    --grid-gap: 22px;
}

/* Reusable grid + card primitives (future-proof for new blocks) */
.ui-grid {
    display: grid;
    gap: var(--grid-gap);
    align-items: stretch;
}

.ui-grid > * {
    min-width: 0;
    justify-self: stretch;
}

.ui-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ui-grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.ui-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ui-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ui-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 980px) {
    .ui-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ui-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ui-grid--3, .ui-grid--4, .ui-grid--5 { grid-template-columns: 1fr; }
}

.ui-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
}

.ui-card--hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ui-card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* =====================================================
   Hover details (used across all grids)
   - Adds a consistent "details on hover" pattern
   - Future-proof: add class .ui-reveal and child .ui-hover-details
   ===================================================== */

.ui-reveal {
    position: relative;
    overflow: hidden;
}

/* Reserve space so the hover box doesn't cover titles/icons */
.ui-card.ui-reveal { padding-bottom: 74px; }
.icon-card.ui-reveal { padding-bottom: 74px; }
.tool-item.ui-reveal { padding-bottom: 64px; }

.ui-hover-details {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 24, 39, 0.10);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    font-size: 12px;
    line-height: 1.45;
    color: #4b5563;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.ui-reveal:hover .ui-hover-details,
.ui-reveal:focus .ui-hover-details,
.ui-reveal:focus-within .ui-hover-details {
    opacity: 1;
    transform: translateY(0);
}

.ui-reveal:hover,
.ui-reveal:focus,
.ui-reveal:focus-within {
    z-index: 2;
}

.ui-reveal:focus {
    outline: none;
}

/* Touch devices: keep layout clean */
@media (hover: none) {
    .ui-hover-details { display: none; }
}

/* Shared container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}
.btn-primary:hover { background: #1e4fd8; }

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}
.btn-secondary:hover { background: #d6d9de; }

.btn-lg { font-size: 16px; }

/* Typography helpers */
.section-title {
    text-align: center;
    font-size: 32px;
    margin: 0 0 36px 0;
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
    padding: 24px 0 60px 0;
}

/* The inner promo panel */
.hero .container {
    background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
    border-radius: 26px;
    padding: 56px 56px;
    box-shadow:
        0 26px 52px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.hero-grid {
    display: grid;
    /* Keep both hero blocks the same width */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
    align-items: start;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.2;
    margin: 0 0 18px 0;
}

.hero h1 span { color: #2563eb; }

.hero p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 26px 0;
    color: #4b5563;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.trust {
    margin-top: 18px;
    font-size: 14px;
    color: #6b7280;
}

.hero-card {

    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    padding: 34px 30px;
    align-self: start;
}


.hero-panel {
    padding: 34px 30px;
}

.hero-panel ul {
    margin: 12px 0 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.hero-panel li { color: #374151; }

.hero-card h3 {
    margin: 0 0 14px 0;
    font-size: 18px;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-card li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #374151;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */

.how-block-wrapper {
    padding: 10px 0 64px 0;
}

.how-block {
    background: linear-gradient(180deg, #f6f9ff, #eef4ff);
    border-radius: 26px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.step {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    padding: 26px 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* Keep all cards visually aligned, even with different text lengths */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 170px;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.step span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.step p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
}

.step.highlight {
    border: 2px solid #f97316;
}

.step.highlight span {
    background: #f97316;
}

/* =====================================================
   SERVICES
   ===================================================== */

.section {
    padding: 64px 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--grid-gap);
}

.card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    border: var(--card-border);
    padding: 26px 22px;
    text-align: center;
    font-weight: 700;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: #111827;
    color: #d1d5db;
    padding: 44px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--grid-gap);
    align-items: start;
}

.footer a {
    color: #9ca3af;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.footer a:hover { color: #ffffff; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .hero .container {
        padding: 44px 32px;
        border-radius: 22px;
    }

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

    .hero h1 { font-size: 36px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hero { padding: 18px 0 48px 0; }
    .hero .container { padding: 34px 20px; }
    .hero h1 { font-size: 30px; }
    .section-title { font-size: 26px; }
    .steps { grid-template-columns: 1fr; }
    .how-block { padding: 38px 18px; }
}


/* =====================================================
   NEW SECTIONS (TutorBin-like layout system)
   ===================================================== */

.section {
    padding: 72px 0;
}

.section--tight {
    padding: 44px 0;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title-row .section-title {
    margin: 0;
}

.ui-panel {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(0,0,0,.06);
    border: 1px solid rgba(17,24,39,.06);
    padding: 42px;
}

.ui-panel--soft {
    background: #f7fbff;
}

.ui-panel--dark {
    background: #263341;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.08);
}

.ui-panel--dark p,
.ui-panel--dark li {
    color: rgba(255,255,255,.86);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(17,24,39,.08);
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { filter: brightness(.98); }

.btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
.btn--orange {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.btn--ghost {
    background: transparent;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.icon-card {
    border-radius: 18px;
    border: 1px solid rgba(17,24,39,.06);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(0,0,0,.05);
    padding: 18px 16px;
    text-align: center;

    /* Links as cards: keep clean (no underlines) */
    display: block;
    text-decoration: none;
    color: inherit;
}
.icon-card:hover,
.icon-card:focus,
.icon-card:active {
    text-decoration: none;
}

.icon-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px auto;
    font-size: 22px;
}
.icon-card h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}
.icon-card p {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #6b7280;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
}
@media (max-width: 980px) {
    .split { grid-template-columns: 1fr; }
}

.mock-figure {
    width: 100%;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(249,115,22,.12));
    border: 1px solid rgba(17,24,39,.06);
    min-height: 300px;
}

.tool-stack {
    display: grid;
    gap: 12px;
}
.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(17,24,39,.08);
    background: #ffffff;
}
.tool-item .tool-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tool-item .tool-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(37,99,235,.08);
}

.banner {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr;
    gap: 20px;
    align-items: center;
    padding: 22px 26px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(17,24,39,.06);
    box-shadow: 0 16px 40px rgba(0,0,0,.06);
}
@media (max-width: 980px) {
    .banner { grid-template-columns: 1fr; }
}

.banner-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.banner input {
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(17,24,39,.12);
    min-width: 220px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: stretch;
}
@media (max-width: 980px) {
    .stats-grid { grid-template-columns: 1fr; }
}
.testimonials {
    display: grid;
    gap: 14px;
}
.testimonial {
    padding: 18px 18px;
    border-radius: 18px;
    border: 1px solid rgba(17,24,39,.06);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(0,0,0,.05);
}
.testimonial .meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

.map-wrap {
    display: grid;
    place-items: center;
    text-align: center;
}
.map-svg {
    width: min(880px, 100%);
    height: auto;
    opacity: .9;
    margin: 22px 0 14px 0;
}

.big-footer {
    background: #6f8db7;
    color: rgba(255,255,255,.92);
    padding: 60px 0 40px 0;
    margin-top: 70px;
}
.big-footer a {
    color: rgba(255,255,255,.92);
    text-decoration: none;
}
.big-footer a:hover { text-decoration: underline; }
.big-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.9fr 1.3fr;
    gap: 26px;
    align-items: start;
}
@media (max-width: 980px) {
    .big-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .big-footer-grid { grid-template-columns: 1fr; }
}

.footer-links {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    opacity: .95;
}

.footer-bottom {
    margin-top: 26px;
    font-size: 12px;
    opacity: .9;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
}


/* How It Works cards as links */
.how-card-link{
  text-decoration:none;
  color:inherit;
  display:block;
}
.how-card-link:hover{ text-decoration:none; }
.how-card-link:focus-visible{
  outline:3px solid rgba(37, 99, 235, .45);
  outline-offset:4px;
  border-radius:18px;
}


/* Footer refresh */
.footer-brand-title{font-weight:900;font-size:18px;}
.footer-brand-sub{margin-top:10px;font-size:13px;opacity:.95;max-width:260px;}
.footer-heading{font-weight:800;}
.footer-bottom-links{display:flex;gap:14px;flex-wrap:wrap;}
.footer-profile-card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px;
}
.footer-profile-top{display:flex;gap:12px;align-items:center;}
.footer-profile-photo{
  width:56px;height:56px;border-radius:14px;
  overflow:hidden;
  object-fit: contain;
  background: rgba(255,255,255,.18);
  padding: 4px;
  box-sizing: border-box;
  border:2px solid rgba(255,255,255,.20);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.footer-profile-name{font-weight:900;font-size:16px;line-height:1.1;}
.footer-profile-meta{font-size:12px;opacity:.92;margin-top:3px;}
.footer-profile-copy{margin-top:10px;font-size:13px;opacity:.95;line-height:1.45;}
.footer-profile-cta{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;}
.footer-mini-btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 12px;border-radius:999px;
  background: rgba(255,255,255,.95);
  color:#1b2b44 !important;
  font-weight:800;font-size:12px;
  text-decoration:none !important;
}
.footer-mini-btn:hover{filter:brightness(.98);transform:translateY(-1px);}
.footer-mini-btn-ghost{
  background: transparent;
  color: rgba(255,255,255,.95) !important;
  border:1px solid rgba(255,255,255,.24);
}
@media (max-width: 980px){
  .big-footer-grid{grid-template-columns:1fr 1fr;}
  .footer-brand-sub{max-width:none;}
}
@media (max-width: 560px){
  .big-footer-grid{grid-template-columns:1fr;}
}

/* Shared portrait image rule (prevents "cover" cropping anywhere Dr Jack photo is used) */
.drjack-photo{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
}
