/* =========================================================
   Homepage v4 — built around real product screenshots.
   Shared tokens (colours, fonts, .btn-x) live in style.css.
   ========================================================= */
.home .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.home section { padding: 6rem 0; }
.h-head { max-width: 640px; margin-bottom: 2.75rem; }
.h-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 0.75rem; }
.h-head p { font-size: 1.1rem; }
.h-head--light h2 { color: #fff; }
.h-head--light p { color: #B4C9C6; }

.btn-x--outline { background: #fff; color: var(--text); border-color: var(--border2); }
.btn-x--outline:hover { border-color: var(--accent-dk); color: var(--accent-ink); }

/* ---------- Screenshot frame ---------- */
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(15,46,45,0.12); box-shadow: 0 2px 4px rgba(15,46,45,0.06), 0 24px 60px -18px rgba(15,46,45,0.35); }
.shot__bar { display: flex; align-items: center; gap: 6px; padding: 0 14px; height: 34px; background: #F1F5F4; border-bottom: 1px solid #DCE6E4; }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #CFDAD8; }
.shot__bar span { margin-left: 10px; font-size: 0.78rem; color: #6A7A77; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; height: auto; }
.shot--sm { border-radius: 12px; box-shadow: 0 16px 40px -20px rgba(15,46,45,0.35); }
.shot--sm .shot__bar { height: 26px; }
.shot--sm .shot__bar i { width: 8px; height: 8px; }

/* ---------- Hero ---------- */
.home .h-hero { padding: 8.5rem 0 0; background: linear-gradient(180deg, #fff 0%, #fff 58%, var(--ink) 58%); }
.h-hero__copy { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.h-hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.8rem); max-width: 12ch; }
.h-hero__sub { font-size: 1.18rem; margin-bottom: 1.75rem; max-width: 46ch; }
.h-hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.shot--hero { border-radius: 16px 16px 0 0; border-bottom: none; box-shadow: 0 -2px 0 rgba(15,46,45,0.04), 0 40px 80px -30px rgba(0,0,0,0.45); }

/* ---------- Proof strip ---------- */
.home .h-proof { background: var(--ink); padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.h-proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.h-proof p { color: #B4C9C6; font-size: 0.98rem; line-height: 1.4; margin: 0; }
.h-proof strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }

/* ---------- CRM tour ---------- */
.home .h-tour { background: var(--ink); padding-top: 4.5rem; }
.tour__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2rem; }
.tour__tab { border: 1px solid rgba(255,255,255,0.18); background: transparent; color: #CFE0DD; font: 600 0.98rem/1 var(--font-body); padding: 0.8rem 1.15rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tour__tab:hover { border-color: #fff; color: #fff; }
.tour__tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.tour__tab:focus-visible { outline: 2px solid var(--marigold); outline-offset: 2px; }
.tour__panel { display: grid; grid-template-columns: 0.75fr 1.6fr; gap: 3rem; align-items: start; }
.tour__panel[hidden] { display: none; }
.tour__text h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.25rem; }
.tour__text ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.75rem; }
.tour__text li { color: #CFE0DD; padding-left: 1.6rem; position: relative; line-height: 1.5; }
.tour__text li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 4px var(--ink); border: 2px solid var(--accent); box-sizing: border-box; }
.link-x--light { color: #fff; }
.link-x--light:hover { color: var(--marigold); }

/* ---------- Also inside ---------- */
.h-inside__grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 3rem; }
.inside-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; border-top: 2px solid var(--text); }
.inside-list > div { padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.inside-list dt { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.3rem; }
.inside-list dd { color: var(--text2); font-size: 0.98rem; line-height: 1.55; }

/* ---------- Industry software ---------- */
.home .h-ind { background: var(--mist); }
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
.ind { display: block; color: inherit; }
.ind .shot { transition: transform .2s ease, box-shadow .2s ease; }
.ind:hover .shot { transform: translateY(-4px); box-shadow: 0 28px 50px -22px rgba(15,46,45,0.45); }
.ind__meta { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-top: 1.25rem; }
.ind h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.ind:hover h3 { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ind__for { font-weight: 600; color: var(--text) !important; margin: 0.15rem 0 0.25rem; }
.ind__meta p { font-size: 0.98rem; }
.ind__price { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--text) !important; white-space: nowrap; }
.ind__price span { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: var(--text3); }

/* ---------- Custom ---------- */
.home .h-custom { background: var(--ink); }
.h-custom__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; }
.h-custom h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 1rem; max-width: 16ch; }
.h-custom__grid > div > p { color: #B4C9C6; font-size: 1.1rem; margin-bottom: 2rem; max-width: 42ch; }
.svc-list { border-top: 1px solid rgba(255,255,255,0.15); }
.svc-list > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.svc-list dt { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.svc-list dt a { color: #fff; }
.svc-list dt a:hover { color: var(--marigold); }
.svc-list dd { color: #B4C9C6; font-size: 0.98rem; line-height: 1.55; }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 1.2rem; left: 1.2rem; right: 1.2rem; height: 2px; background: var(--border); }
.steps li { position: relative; }
.steps b { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--marigold); color: #2B1B00; font: 800 1.05rem var(--font-display); margin-bottom: 1.1rem; position: relative; box-shadow: 0 0 0 6px #fff; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.home .h-quotes { background: var(--mist); }
.h-quotes__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
.quote-big blockquote p { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.3; color: var(--text); letter-spacing: -0.01em; }
.quote-big blockquote p::before { content: '“'; display: block; font-size: 4.5rem; line-height: 0.6; color: var(--marigold); font-weight: 800; margin-bottom: 0.6rem; }
.quote-big figcaption { margin-top: 1.5rem; display: flex; flex-direction: column; }
.quote-big figcaption strong { font-size: 1.05rem; }
.quote-big figcaption span { color: var(--text3); }
.quote-list { display: flex; flex-direction: column; gap: 1.5rem; }
.quote-sm { background: #fff; border-radius: 14px; padding: 1.3rem 1.4rem; border: 1px solid var(--border); margin: 0; }
.quote-sm p { font-size: 1rem; color: var(--text); }
.quote-sm figcaption { margin-top: 0.75rem; font-size: 0.88rem; color: var(--text3); }
.quote-sm figcaption strong { color: var(--text); }

/* ---------- CTA ---------- */
.home .h-cta { background: var(--accent-dk); padding: 4.5rem 0; }
.h-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.h-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.h-cta p { color: #D3EFEC; font-size: 1.1rem; margin-top: 0.4rem; }
.h-cta__btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.h-cta .btn-x--primary { background: #fff; color: var(--ink); }
.h-cta .btn-x--primary:hover { background: var(--marigold); }
.home .faq-section .container { max-width: 1240px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .h-hero__copy, .h-inside__grid, .h-custom__grid, .h-quotes__grid { grid-template-columns: 1fr; gap: 2rem; }
  .tour__panel { grid-template-columns: 1fr; gap: 2rem; }
  .tour__panel .shot { order: -1; }
  .h-proof__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 680px) {
  .home section { padding: 4rem 0; }
  .home .h-hero { padding: 7rem 0 0; background: linear-gradient(180deg, #fff 0%, #fff 72%, var(--ink) 72%); }
  .home .wrap { padding: 0 18px; }
  .h-hero__cta .btn-x { flex: 1; }
  .shot__bar { height: 26px; }
  .shot__bar span { display: none; }
  .tour__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 1.5rem; padding: 0 18px 4px; scrollbar-width: none; }
  .tour__tab { flex-shrink: 0; }
  .inside-list { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .svc-list > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .steps { grid-template-columns: 1fr; }
  .h-proof strong { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .ind .shot { transition: none; } }

/* =========================================================
   v5 — product themes (each product has its own colour)
   ========================================================= */
.p-gym        { --p: #E8601F; --p-dk: #C24B12; --p-wash: #FDF0E8; --p-ink: #8A3409; }
.p-school     { --p: #3B73E6; --p-dk: #2457C5; --p-wash: #EAF1FD; --p-ink: #173F96; }
.p-realestate { --p: #B8862A; --p-dk: #8F6614; --p-wash: #FAF3E3; --p-ink: #6B4B0C; }
.p-salon      { --p: #9B72D9; --p-dk: #7650B8; --p-wash: #F3EEFC; --p-ink: #553489; }

/* Hero product switcher */
.home .h-hero { background: linear-gradient(180deg, #fff 0%, #fff 62%, var(--ink) 62%); }
.switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.25rem; }
.switch__tab { text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 0.85rem 1rem; cursor: pointer; font-family: var(--font-body); transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.switch__tab strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--text); }
.switch__tab span { display: block; font-size: 0.85rem; color: var(--text3); margin-top: 1px; }
.switch__tab::before { content: ''; position: absolute; left: 1rem; top: -1.5px; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--p); }
.switch__tab:hover { border-color: var(--p); }
.switch__tab[aria-selected="true"] { background: var(--p-wash); border-color: var(--p); box-shadow: 0 0 0 3px var(--p-wash); }
.switch__tab[aria-selected="true"] strong { color: var(--p-ink); }
.switch__tab:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.shot--hero[hidden] { display: none; }

/* Product sections */
.home .prod { background: var(--p-wash); padding: 6rem 0; }
.prod__grid { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: 3.5rem; align-items: center; }
.prod--flip .prod__grid { grid-template-columns: 1.5fr 0.85fr; }
.prod--flip .prod__text { order: 2; }
.prod__tag { display: inline-block; font-weight: 700; font-size: 0.92rem; color: var(--p-ink); background: #fff; border: 1px solid var(--p); border-radius: 999px; padding: 0.2rem 0.75rem; margin-bottom: 1rem; }
.prod h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin-bottom: 0.75rem; }
.prod__lead { font-size: 1.12rem; color: var(--text2); margin-bottom: 1.5rem; max-width: 44ch; }
.prod__feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.25rem; margin-bottom: 2rem; }
.prod__feats li { position: relative; padding-left: 1.5rem; font-size: 0.98rem; color: var(--text); line-height: 1.4; }
.prod__feats li::before { content: ''; position: absolute; left: 0; top: 0.2em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.prod__foot { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 1.5rem; }
.prod__price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--text) !important; margin-bottom: 1rem; letter-spacing: -0.02em; }
.prod__price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--text3); letter-spacing: 0; }
.prod__btns { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.btn-x--prod { background: var(--p-dk); color: #fff; }
.btn-x--prod:hover { background: var(--p-ink); }
.prod .link-x { color: var(--p-ink); text-decoration-color: var(--p); }
.prod .shot { box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 30px 60px -24px color-mix(in srgb, var(--p) 55%, transparent); }

@media (max-width: 1024px) {
  .prod__grid, .prod--flip .prod__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .prod--flip .prod__text { order: 0; }
  .switch { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .home .prod { padding: 4rem 0; }
  .prod__feats { grid-template-columns: 1fr; }
  .switch__tab span { display: none; }
  .switch__tab { padding: 0.7rem 0.85rem; }
  .home .h-hero { background: linear-gradient(180deg, #fff 0%, #fff 78%, var(--ink) 78%); }
}
