/* Public home page (index.php). Same palette and type as auth.css. */
:root {
    --blue: #0b3d9e;
    --blue-deep: #072a72;
    --blue-soft: #eef3fd;
    --gold: #f5a81c;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --tint: #f6f8fc;
    --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Outfit', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.muted { color: var(--muted); }

/* ───────── Buttons ───────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent;
    font: 600 15px 'Outfit', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 12px 24px -14px rgba(11, 61, 158, .8); }
.btn.primary:hover { background: var(--blue-deep); }
.btn.primary i { transition: transform .25s; }
.btn.primary:hover i { transform: translateX(3px); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.soft { background: var(--blue-soft); color: var(--blue); }
.btn.soft:hover { background: #dfe8fb; }
.btn:active { transform: scale(.985); }
.btn:focus-visible, .portal:focus-visible, .links a:focus-visible, .burger:focus-visible { outline: 3px solid rgba(245, 168, 28, .6); outline-offset: 2px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.eyebrow.light { color: #ffd27a; }

/* ───────── Nav ───────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15, 23, 42, .5); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--blue); line-height: 1.1; }
.brand small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { font-size: 15px; font-weight: 500; color: #334155; text-decoration: none; border-radius: 6px; }
.links a:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 17px; cursor: pointer; }
.only-mobile { display: none !important; }

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
    background: radial-gradient(60% 70% at 100% 0%, rgba(245, 168, 28, .12), transparent 60%), radial-gradient(70% 80% at 0% 100%, var(--blue-soft), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 18px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em; background: var(--gold); opacity: .55; border-radius: 4px; z-index: -1; }
.lead { font-size: clamp(17px, 1.6vw, 19px); font-weight: 300; color: var(--muted); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14px; color: #475569; }
.trust i { color: #16a34a; margin-right: 8px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 480px); }
.photo { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1.05;
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); box-shadow: 0 40px 80px -40px rgba(7, 42, 114, .55); }
.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.4px); background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(160deg, #000, transparent 55%); mask-image: linear-gradient(160deg, #000, transparent 55%); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; mix-blend-mode: normal; }
.float {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
    background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .45); animation: bob 7s ease-in-out infinite;
}
.float i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 16px; flex-shrink: 0; }
.float small { display: block; font-size: 12px; color: var(--muted); }
.float b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; }
.float.f1 { left: -28px; top: 14%; }
.float.f2 { right: -24px; top: 46%; animation-delay: -2.5s; }
.float.f2 i { background: #dcfce7; color: #16a34a; }
.float.f3 { left: -10px; bottom: 7%; animation-delay: -5s; }
.float.f3 i { background: #fff4dc; color: #b7791f; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ───────── Live numbers ───────── */
.stats { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 30px; padding-bottom: 30px; }
.stats-in div { padding: 4px 20px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stats-in div:first-child { border-left: 0; padding-left: 0; }
.stats-in b { display: block; font-size: clamp(28px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.02em; }
.stats-in span { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* ───────── Sections ───────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.tint { background: var(--tint); }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2, .split h2, .app h2 { margin: 12px 0 12px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.head p { font-size: 17px; color: var(--muted); font-weight: 300; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #c8d6f3; box-shadow: 0 24px 40px -30px rgba(11, 61, 158, .45); transform: translateY(-3px); }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 18px; margin-bottom: 18px; }
.card h3, .portal h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.card p, .portal p { font-size: 15px; color: var(--muted); }

.portals { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.portal { display: flex; flex-direction: column; padding: 24px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.portal p { flex: 1; font-size: 14px; }
.portal .go { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--blue); }
.portal .go i { font-size: 12px; margin-left: 4px; transition: transform .2s; }
.portal:hover { border-color: var(--blue); box-shadow: 0 24px 40px -30px rgba(11, 61, 158, .55); transform: translateY(-3px); }
.portal:hover .go i { transform: translateX(4px); }
.portal:hover .ico { background: var(--blue); color: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 40px 80px -50px rgba(15, 23, 42, .6); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split .muted { font-size: 17px; font-weight: 300; }
.steps { list-style: none; display: grid; gap: 16px; margin: 28px 0 6px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold); color: var(--blue-deep); font-size: 15px; }
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }
.steps span strong { color: var(--ink); }

.app { padding-top: 0; }
.app-card {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: 28px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(80% 90% at 100% 0%, rgba(245, 168, 28, .25), transparent 60%), linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.app-card p { color: rgba(255, 255, 255, .78); font-weight: 300; font-size: 16px; }
.app-strip { padding: 18px; border-radius: 18px; background: #fff; color: var(--ink); }
.app-card .app-strip p { color: var(--muted); font-size: 12px; font-weight: 400; }

/* ───────── Footer ───────── */
.foot { background: linear-gradient(170deg, #0a1f4d 0%, #06142f 100%); color: #cbd5e1; padding-top: clamp(44px, 6vw, 64px); position: relative; overflow: hidden; }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: clamp(36px, 5vw, 52px); }
.foot .brand b { color: #fff; }
.foot .brand small { color: #94a3b8; max-width: 260px; }
.foot-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.foot-logo img { width: 32px; height: 32px; }
.foot-brand > p { margin: 16px 0 0; max-width: 360px; font-size: 15px; font-weight: 300; line-height: 1.6; color: #94a3b8; }
.foot-contact { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.foot-contact i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, .06); color: var(--gold); font-size: 13px; }
.foot-contact a, .foot-contact span { color: #e2e8f0; text-decoration: none; padding-top: 5px; overflow-wrap: anywhere; }
.foot-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-col h3 { margin: 4px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.foot-col a { font-size: 15px; color: #cbd5e1; text-decoration: none; transition: color .15s, transform .15s; }
.foot-col a:hover { color: #fff; transform: translateX(3px); }
.foot a:focus-visible { outline: 3px solid rgba(245, 168, 28, .6); outline-offset: 3px; border-radius: 4px; }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: #94a3b8; }
.foot-bar b { color: #fff; font-weight: 600; }

/* ───────── Plans & pricing ───────── */
.plans { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.plan:hover { border-color: #c8d6f3; box-shadow: 0 24px 40px -30px rgba(11, 61, 158, .45); transform: translateY(-3px); }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 30px 50px -34px rgba(11, 61, 158, .7); }
.plan-flag { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #3b2500; font-size: 12px; font-weight: 600; }
.plan-tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.plan h3 { margin: 6px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan-price b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.plan-price small { font-size: 13px; color: var(--muted); }
.plan-list { list-style: none; display: grid; gap: 10px; flex: 1; margin-bottom: 22px; font-size: 14px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list i { width: 16px; margin-top: 3px; color: var(--blue); font-size: 13px; text-align: center; flex-shrink: 0; }
.plan .btn { width: 100%; }

.compare { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.compare summary { cursor: pointer; list-style: none; padding: 16px 22px; font-weight: 600; color: var(--blue); display: flex; gap: 10px; align-items: center; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; margin-left: auto; transition: transform .2s; }
.compare[open] summary::after { transform: rotate(180deg); }
.compare summary:focus-visible { outline: 3px solid rgba(245, 168, 28, .6); outline-offset: -3px; }
.compare-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 11px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { font-weight: 600; background: var(--tint); position: sticky; top: 0; }
.compare td:first-child, .compare th:first-child { text-align: left; width: 38%; }
.compare tr.grp td { background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
.compare .yes { color: #059669; }
.compare .no { color: #cbd5e1; }

.custom-card { margin-top: 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #1d4ed8 0%, var(--blue) 40%, var(--blue-deep) 100%); box-shadow: 0 30px 60px -40px rgba(7, 42, 114, .9); }
.custom-card .eyebrow { color: var(--gold); }
.custom-card h3 { margin: 8px 0 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.custom-card p { color: #dbe6ff; font-weight: 300; }
.factors { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 18px; }
.factors li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #dbe6ff; }
.factors i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; flex-shrink: 0; }
.factors b { display: block; color: #fff; font-weight: 600; }
.custom-cta { display: grid; gap: 12px; }
.custom-cta .btn.primary { background: #fff; color: var(--blue); box-shadow: none; }
.custom-cta .btn.primary:hover { background: #eef3fd; }
.custom-cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); overflow: hidden; text-overflow: ellipsis; }
.custom-cta .btn.ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .custom-card { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .plans, .factors { grid-template-columns: 1fr; } .plan-flag { left: 18px; } }

/* ───────── Inner pages (features, portals, plans, parents, app) ───────── */
.links a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.page-hero { padding: clamp(110px, 14vw, 150px) 0 clamp(36px, 5vw, 56px); background: radial-gradient(120% 90% at 100% 0%, #e7efff 0%, #fff 60%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 820px; margin: 14px 0 14px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-hero .lead { max-width: 680px; font-size: 18px; color: var(--muted); font-weight: 300; }
.page-hero .cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.section.slim { padding-top: clamp(40px, 6vw, 64px); }
.more { margin-top: 22px; }
.more a { font-weight: 600; color: var(--blue); text-decoration: none; }
.more a i { font-size: 12px; margin-left: 4px; transition: transform .2s; }
.more a:hover i { transform: translateX(4px); }
.note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.note a { color: var(--blue); font-weight: 600; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; text-decoration: none; transition: border-color .2s, color .2s; }
.jump a:hover { border-color: var(--blue); color: var(--blue); }
.jump i { color: var(--blue); font-size: 13px; }
.feature-group { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.feature-group:first-of-type { border-top: 0; padding-top: 0; }
.fg-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.fg-head .ico { margin: 0; flex-shrink: 0; }
.fg-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.fg-head p { color: var(--muted); font-size: 16px; }
.fg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tag-premium { display: inline-flex; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #f3e8ff; color: #7c3aed; font-size: 11px; font-weight: 600; letter-spacing: .02em; }

.portal-detail { display: grid; gap: 18px; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pd.alt { background: var(--tint); }
.pd-head { display: flex; gap: 16px; align-items: flex-start; }
.pd-head .ico { margin: 0; flex-shrink: 0; }
.pd-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.pd-head p { color: var(--muted); }
.ticks { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks i { margin-top: 4px; color: #059669; font-size: 13px; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: '\2212'; }
.faq summary:focus-visible { outline: 3px solid rgba(245, 168, 28, .6); outline-offset: -3px; border-radius: 14px; }
.faq p { padding: 0 20px 18px; color: var(--muted); }

.guides { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
.guide-steps { margin: 6px 0 0 18px; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.guide-steps b { color: var(--ink); }
.cta-band { grid-template-columns: 1.4fr 1fr; align-items: center; }
.cta-band .custom-cta .btn.primary { background: #fff; color: var(--blue); }
.cta-band .custom-cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 900px) { .fg-grid, .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pd, .cta-band { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .fg-grid, .guides { grid-template-columns: 1fr; } .page-hero .cta .btn { width: 100%; } }

/* ───────── Premium finish for the inner pages ───────── */
.page-hero { position: relative; overflow: hidden; color: #fff; border-bottom: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
        radial-gradient(120% 120% at 85% -10%, #1f56d6 0%, #0b3d9e 38%, #061c4d 78%, #04122f 100%); }
.page-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, rgba(4, 18, 47, .35)); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.page-hero .orb.o1 { width: 420px; height: 420px; right: -80px; top: -120px; background: radial-gradient(circle, #f5a81c 0%, transparent 65%); opacity: .28; }
.page-hero .orb.o2 { width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(circle, #3b82f6 0%, transparent 65%); }
.page-hero .eyebrow { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #ffd27a; backdrop-filter: blur(6px); }
.page-hero h1 { color: #fff; }
.page-hero h1 em { background: linear-gradient(100deg, #ffd27a 0%, #f5a81c 45%, #ffe7b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { color: #c9d7f5; }
.page-hero .btn.primary { background: linear-gradient(135deg, #f7b733 0%, #f5a81c 60%, #e8920b 100%); color: #2a1a00; box-shadow: 0 16px 34px -16px rgba(245, 168, 28, .9); }
.page-hero .btn.primary:hover { background: linear-gradient(135deg, #ffc44d 0%, #f7b733 100%); }
.page-hero .btn.ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); }
.page-hero .btn.ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 12px; font-size: 14px; color: #e3ebff;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(8px); }
.hero-chips i { color: #ffd27a; font-size: 13px; }

/* Icon tiles: gradient */
.section .ico, .fg-head .ico, .pd-head .ico { background: linear-gradient(140deg, #1d4ed8 0%, #0b3d9e 60%, #072a72 100%); color: #fff;
    box-shadow: 0 12px 24px -14px rgba(11, 61, 158, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }

/* Cards: lift with a gradient edge */
.fg-grid .card, .features .card, .guides .card { position: relative; background: #fff; border-color: #e6ebf5; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.fg-grid .card::before, .features .card::before, .guides .card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, #3b82f6, #f5a81c); opacity: 0; transition: opacity .25s;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.fg-grid .card:hover::before, .features .card:hover::before, .guides .card:hover::before { opacity: 1; }
.fg-grid .card:hover, .features .card:hover, .guides .card:hover { border-color: transparent; box-shadow: 0 28px 50px -34px rgba(11, 61, 158, .55); }

/* Sticky jump bar */
.jump { position: sticky; top: 78px; z-index: 5; padding: 10px; margin: 0 -10px 40px; border-radius: 18px;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 10px 30px -24px rgba(15, 23, 42, .5); }
.jump a { background: #fff; }
.jump a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.jump a:hover i { color: #ffd27a; }

/* Numbered feature sections */
.fg-head { align-items: center; }
.fg-num { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #c7d4ef; min-width: 64px; }
.feature-group:nth-of-type(even) .fg-grid .card { background: linear-gradient(180deg, #fff, #f8faff); }
.tag-premium { background: linear-gradient(120deg, #7c3aed, #a855f7); color: #fff; box-shadow: 0 6px 14px -8px rgba(124, 58, 237, .8); }

/* Portals */
.pd { position: relative; overflow: hidden; border-color: #e6ebf5; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: box-shadow .25s, transform .25s; }
.pd:hover { box-shadow: 0 30px 60px -40px rgba(11, 61, 158, .55); transform: translateY(-2px); }
.pd::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #3b82f6, #f5a81c); }
.pd.alt { background: linear-gradient(135deg, #f7f9ff 0%, #ffffff 70%); }
.ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.ticks li { padding: 10px 12px; border-radius: 12px; background: #f6f8fd; border: 1px solid #edf1f9; }
.ticks i { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: #d1fae5; color: #047857; font-size: 10px; }

/* FAQ */
.faq details { border-color: #e6ebf5; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: #c8d6f3; box-shadow: 0 20px 40px -32px rgba(11, 61, 158, .5); }
.faq summary::after { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); font-size: 18px; flex-shrink: 0; }

/* App page */
.guide-steps { counter-reset: s; list-style: none; margin-left: 0; }
.guide-steps li { counter-increment: s; position: relative; padding-left: 36px; }
.guide-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px;
    background: linear-gradient(140deg, #f7b733, #f5a81c); color: #2a1a00; font-size: 12px; font-weight: 700; }

/* Closing band */
.cta-band { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #1d4ed8 0%, #0b3d9e 45%, #061c4d 100%); }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 168, 28, .35), transparent 65%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .custom-cta .btn.primary { background: linear-gradient(135deg, #f7b733, #f5a81c); color: #2a1a00; }
.features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .features.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ticks { grid-template-columns: 1fr; } .jump { position: static; } .fg-num { display: none; } }
@media (prefers-reduced-motion: reduce) { .pd:hover { transform: none; } }

/* ───────── Photos on the inner pages ───────── */
.page-hero.has-art { padding-top: clamp(100px, 11vw, 124px); }
.page-hero.has-art .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.7; max-height: 430px; object-fit: cover; object-position: center 25%; border-radius: 28px; transform: rotate(1.5deg);
    border: 6px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12); }
.hero-photo::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; border-radius: 30px; border: 1.5px dashed rgba(255, 210, 122, .45); transform: rotate(1.5deg); z-index: -1; }
.hero-badge { position: absolute; left: -26px; bottom: 34px; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 16px;
    background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .55); animation: floaty 6s ease-in-out infinite; }
.hero-badge i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(140deg, #f7b733, #f5a81c); color: #2a1a00; }
.hero-badge small { display: block; font-size: 12px; color: var(--muted); }
.hero-badge b { font-size: 15px; font-weight: 600; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.photo-split .split-img.framed { position: relative; overflow: visible; border-radius: 28px; box-shadow: none; }
.photo-split .split-img.framed img { border-radius: 28px; box-shadow: 0 40px 80px -46px rgba(15, 23, 42, .65); }
.photo-split .split-img.framed::after { content: ''; position: absolute; inset: auto -16px -16px auto; width: 46%; height: 46%; border-radius: 26px; z-index: -1;
    background: linear-gradient(140deg, #f7b733, #f5a81c); opacity: .9; }
.photo-split.flip .split > :first-child { order: 2; }
.photo-split h2 { margin: 12px 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.ticks.one { grid-template-columns: 1fr; margin-top: 22px; }
@media (max-width: 900px) {
    .page-hero.has-art .wrap { grid-template-columns: 1fr; }
    .hero-photo { max-width: 420px; margin-top: 12px; }
    .hero-badge { left: 10px; }
    .photo-split.flip .split > :first-child { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
    .portals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .links { gap: 20px; }
}
@media (max-width: 900px) {
    .hero-in, .split, .app-card { grid-template-columns: 1fr; }
    .hero-art { width: min(100%, 420px); margin-top: 8px; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
    .stats-in div:nth-child(3) { border-left: 0; padding-left: 0; }
    .burger { display: grid; place-items: center; }
    .links {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 18px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(15, 23, 42, .5); display: none;
    }
    .links.open { display: flex; }
    .links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .links .btn { margin-top: 14px; border-bottom: 1.5px solid var(--line); }
    .only-mobile { display: inline-flex !important; }
    .nav-cta .btn.ghost { display: none; }
    .nav-cta { margin-left: auto; } /* the links leave the row here, so this keeps the burger at the right edge */
    .links .btn.primary.only-mobile { display: none !important; } /* still in the header bar at this width */
    .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .features, .portals { grid-template-columns: 1fr; }
    .nav-cta .btn.primary { display: none; }
    .links .btn.primary.only-mobile { display: inline-flex !important; } /* moved into the menu on phones */
    .brand small { max-width: 150px; }
    .cta .btn { width: 100%; }
    .float.f1 { left: -6px; } .float.f2 { right: -6px; } .float.f3 { left: 4px; }
    .float { padding: 10px 12px 10px 10px; } .float b { font-size: 14px; }
    .foot .brand small { max-width: 200px; }
    .foot-bar-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .float { animation: none; }
    * { transition-duration: .01ms !important; }
}

/* ───────── Legal pages ───────── */
.legal { max-width: 900px; }
.legal .jump { position: static; margin-bottom: 28px; box-shadow: none; background: transparent; padding: 0; }
.legal-sec { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.legal-sec h2 span { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; font-size: 14px; color: #fff; background: linear-gradient(140deg, #1d4ed8, #072a72); }
.legal-sec p { color: #334155; font-size: 15.5px; line-height: 1.7; margin-bottom: 10px; }
.legal-sec a { color: var(--blue); font-weight: 600; }
