/* 4IT Apps hub (4itapps.com) styles. Poppins, dark hero, one accent colour per app. */
:root {
  --gold: #FECB00; --lime: #D7F205; --green: #1F8A4C; --blue: #1E88C8; --navy: #0B3D66;
  --ink: #10161A; --ink-2: #182026; --cream: #F6F4EF; --text: #1A1D20; --muted: #6B7378;
  --line: rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "Poppins", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: "Poppins", system-ui, sans-serif; line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1100px, 92vw); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--a, var(--gold)); color: var(--on-a, var(--ink));
  font-family: inherit; font-weight: 800; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--dark { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 30; background: rgba(16, 22, 26, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: #fff; font-size: 1.15rem; letter-spacing: .3px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { color: var(--gold); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; cursor: pointer; color: #fff; }
.nav-btn svg { width: 24px; height: 24px; fill: currentColor; display: block; }
nav.menu { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
nav.menu a { color: #d9dde0; text-decoration: none; font-weight: 600; font-size: .92rem; padding: .3rem 0; transition: color .15s ease; }
nav.menu a:hover, nav.menu a[aria-current="page"] { color: var(--gold); }
nav.menu .btn { color: var(--ink); padding: .55rem 1.1rem; }
nav.menu .btn:hover { color: var(--ink); }
@media (max-width: 820px) {
  .nav-btn { display: inline-flex; }
  nav.menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  nav.menu a { padding: .95rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  nav.menu .btn { margin: .8rem 1.2rem; }
  .nav-toggle:checked ~ nav.menu { max-height: 640px; }
}

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 520px at 50% -10%, #1d2b33, var(--ink)); color: #fff; text-align: center; padding: clamp(2.8rem, 7vw, 5rem) 0 0; overflow: hidden; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: 3px; font-size: .72rem; color: var(--gold); text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); font-weight: 800; font-style: italic; }
.hero h1 .four { display: inline-block; background: var(--gold); color: var(--ink); border-radius: 14px; padding: 0 .18em; transform: rotate(-3deg); margin: 0 .04em; font-style: normal; }
.hero .lead { font-size: clamp(1.02rem, 2.4vw, 1.25rem); color: #c9d1d6; margin: 1.3rem auto 1.8rem; max-width: 46ch; }
.picker { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.picker a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; font-weight: 700; font-size: .95rem; padding: .65rem 1.1rem; border-radius: 999px; border: 2px solid var(--a); background: rgba(255,255,255,.04); transition: background .15s ease, color .15s ease, transform .15s ease; }
.picker a:hover { background: var(--a); color: var(--on-a); transform: translateY(-2px); }
.picker a[data-app="run4it"] { --a: var(--gold); --on-a: var(--ink); }
.picker a[data-app="pickle4it"] { --a: var(--lime); --on-a: var(--ink); }
.picker a[data-app="ski4it"] { --a: var(--blue); --on-a: #fff; }
.picker i { font-style: normal; font-size: 1.15rem; }
.hero__banner { position: relative; max-width: 1800px; margin: 0 auto; }
.hero__banner img { width: 100%; height: auto; display: block; }
.hero__banner::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, var(--ink), rgba(16,22,26,0)); pointer-events: none; }

/* ---------- tabs ---------- */
section.pad { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.sec-head h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 800; }
.sec-head p { color: var(--muted); margin-top: .7rem; font-size: 1.05rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 2rem; }
.tab { font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; padding: .75rem 1.3rem; border-radius: 999px; border: 2px solid rgba(0,0,0,.12); background: #fff; color: var(--text); display: inline-flex; align-items: center; gap: .55rem; transition: all .15s ease; }
.tab .tile { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 7px; background: var(--a); color: var(--on-a); font-size: .9rem; transform: rotate(-4deg); }
.tab:hover { border-color: var(--a); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-app="run4it"] { --a: var(--gold); --on-a: var(--ink); }
[data-app="pickle4it"] { --a: var(--lime); --on-a: var(--ink); }
[data-app="ski4it"] { --a: var(--blue); --on-a: #fff; }

.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(16, 22, 26, .35); border: 1px solid var(--line); }
.js .panel[hidden] { display: none; }
html:not(.js) .panel { margin-bottom: 2rem; }
.panel__text { padding: clamp(1.6rem, 4vw, 3rem); }
.panel__text .tag { display: inline-block; font-weight: 800; letter-spacing: 3px; font-size: .7rem; text-transform: uppercase; color: var(--text); background: var(--a); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.panel__text .tag { color: var(--on-a); }
.wordmark { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: .5px; }
.wordmark .t { display: inline-block; background: var(--a); color: var(--on-a); border-radius: 10px; padding: 0 .16em; transform: rotate(-3deg); margin: 0 .03em; }
.panel__text h3.tagline { font-size: 1.15rem; font-style: italic; font-weight: 700; margin: .5rem 0 .9rem; color: #394147; }
.panel__text p { color: #4a5258; }
.panel__text ul { list-style: none; margin: 1.1rem 0 1.5rem; display: grid; gap: .5rem; }
.panel__text li { padding-left: 1.7rem; position: relative; font-weight: 600; font-size: .96rem; }
.panel__text li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1rem; height: 1rem; border-radius: 5px; background: var(--a); transform: rotate(-6deg); }
.panel__cta { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.panel__img { height: 100%; min-height: 320px; }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
.btn--app { background: var(--ink); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 12px; border: 1px solid rgba(0,0,0,.2); font-weight: 700; font-size: .82rem; text-decoration: none; color: var(--text); line-height: 1.15; }
.badge small { display: block; font-weight: 600; font-size: .66rem; color: var(--muted); }
.badge svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.badge:hover { border-color: var(--text); }
.badge.is-soon { opacity: .6; cursor: default; }
.badge.is-soon:hover { border-color: rgba(0,0,0,.2); }
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .panel__img { order: -1; min-height: 0; aspect-ratio: 16 / 10; height: auto; }
}

/* ---------- how it works ---------- */
.how { background: var(--ink); color: #fff; overflow: hidden; }
.how .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.how h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; }
.how h2 i { color: var(--gold); }
.how p { color: #c4ccd1; margin-top: 1rem; max-width: 52ch; }
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.8rem 0 1.2rem; font-weight: 800; font-style: italic; font-size: clamp(1.05rem, 3vw, 1.4rem); letter-spacing: 1px; }
.loop span.arrow { opacity: .45; font-style: normal; }
.how .fine { font-size: .85rem; color: #94a0a7; }
.how img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
@media (max-width: 860px) { .how .wrap { grid-template-columns: 1fr; gap: 1.5rem; } .how img { max-width: 480px; margin: 0 auto; } }

/* ---------- per-app modules ---------- */
.mod { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(2rem, 5vw, 3.2rem) 0; }
.mod + .mod { border-top: 1px solid var(--line); }
.mod:nth-child(even) { grid-template-columns: 1.2fr .8fr; }
.mod:nth-child(even) .mod__phone { order: 2; }
.mod__phone { justify-self: center; width: min(250px, 66vw); border-radius: 34px; padding: 9px; background: #07090b; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.mod__phone img { border-radius: 26px; width: 100%; height: auto; }
.mod .tag { display: inline-block; font-weight: 800; letter-spacing: 3px; font-size: .7rem; text-transform: uppercase; background: var(--a); color: var(--on-a); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.mod h3 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
.mod p.d { color: #4a5258; margin-top: .6rem; max-width: 52ch; }
.mod .feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.mod .feats div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; }
.mod .feats b { display: block; font-size: .95rem; }
.mod .feats span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; margin-top: .15rem; }
.mod .see { margin-top: 1.1rem; font-size: .88rem; color: var(--muted); }
.mod .see a { font-weight: 700; color: var(--text); margin-right: .9rem; }
@media (max-width: 860px) { .mod, .mod:nth-child(even) { grid-template-columns: 1fr; } .mod:nth-child(even) .mod__phone { order: 0; } }

/* ---------- blog + support ---------- */
.blog { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { text-decoration: none; background: var(--cream); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.4); }
.card img { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; }
.card div { padding: 1.1rem 1.2rem 1.3rem; }
.card .k { font-size: .7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.card b { display: block; font-size: 1.02rem; line-height: 1.3; margin: .35rem 0 .4rem; }
.card span.s { font-size: .88rem; color: #4a5258; display: block; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.help { background: linear-gradient(135deg, var(--navy), var(--ink)); color: #fff; text-align: center; }
.help h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; }
.help p { color: #c4ccd1; margin: .8rem auto 1.6rem; max-width: 52ch; }
.help .row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- footer ---------- */
footer.site { background: #1B2126; color: #cfd5d9; padding: 3.5rem 0 2rem; font-size: .93rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
footer.site .brand { font-size: 1.05rem; margin-bottom: .6rem; }
footer.site .tag { color: #9aa3a9; max-width: 30ch; }
footer.site h4 { color: #fff; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: .9rem; font-weight: 800; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: .55rem; }
footer.site a { text-decoration: none; color: #cfd5d9; }
footer.site a:hover { color: var(--gold); }
footer.site .fineprint { margin-top: 2.4rem; padding-top: 1.4rem; color: #858d93; font-size: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- doc pages (about / contact) ---------- */
.doc { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.doc .wrap { width: min(760px, 92vw); }
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; }
.doc h2 { font-size: 1.3rem; font-weight: 700; margin: 2.2rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.doc p, .doc li { color: #3a4147; margin-top: .7rem; }
.doc ul { padding-left: 1.2rem; }
.doc a { color: var(--navy); font-weight: 700; }

/* ---------- combined legal pages (/privacy, /terms) ---------- */
.legal .wrap { width: min(820px, 92vw); }
.legal .lead { font-size: 1.1rem; color: #444; }
.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 .4rem; position: sticky; top: 64px; z-index: 5; padding: .6rem 0; background: linear-gradient(var(--cream) 80%, rgba(246,244,239,0)); }
.jump a { text-decoration: none; font-weight: 800; font-size: .9rem; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 2px solid var(--a); color: var(--text); }
.jump a:hover { background: var(--a); color: var(--on-a); }
.policy { scroll-margin-top: 130px; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 3px solid var(--a); }
.policy .app-title { font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 800; margin: 0 0 .6rem; padding: 0; border: 0; display: flex; align-items: center; gap: .6rem; }
.policy .app-title .dot { width: .9rem; height: .9rem; border-radius: 4px; background: var(--a); transform: rotate(-6deg); flex: none; }
.legal h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.legal h4 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 .2rem; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.legal .callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--a); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.legal ul, .legal ol { margin: .6rem 0 .6rem 1.3rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
