/* finitetech.net site components. Loaded by mu-plugins/finitetech-site.php. */
:root {
  --fti-navy: #0B1B33; --fti-space: #050E22; --fti-blue: #2563EB; --fti-blue-dark: #1D4ED8;
  --fti-sky: #0EA5E9; --fti-sky-light: #7DD3FC; --fti-ice: #EAF2FF; --fti-mist: #F6F8FB;
  --fti-slate: #1E293B; --fti-muted: #52607A; --fti-line: #E2E8F0; --fti-on-dark: #B8C6DB; --fti-on-dark-2: #A9B6CC;
  --fti-head: 'Montserrat', system-ui, sans-serif; --fti-body: 'Source Sans Pro', 'Source Sans 3', system-ui, sans-serif;
}
html, body { overflow-x: hidden; }
.fti, .fti * { box-sizing: border-box; }
.fti { font-family: var(--fti-body); color: var(--fti-slate); font-size: 17px; line-height: 1.6; }
.fti h1, .fti h2, .fti h3, .fti h4 { font-family: var(--fti-head); text-transform: none; color: var(--fti-navy); margin: 0; letter-spacing: normal; }
.fti a { color: var(--fti-blue-dark); }
.fti a:hover { color: var(--fti-blue); }
body .fti .fti-feat h3, body .fti .fti-card h3, body .fti .fti-post h3, body .fti .fti-tl h3 { line-height: 1.3; letter-spacing: -0.005em; }
body .fti .fti-feat h3 { font-size: 19px; }
body .fti .fti-card h3 { font-size: 20px; }
body .fti .fti-card--product h3 { font-size: 26px; letter-spacing: -0.01em; }
body .fti .fti-panel h3 { font-size: 24px; line-height: 1.25; }
body .fti .fti-h2 { letter-spacing: -0.02em; }
body .fti .fti-hero h1 { letter-spacing: -0.025em; }
.fti p { margin: 0; }
.fti a { text-decoration: none; }

/* Full-bleed sections inside TheGem's content container */
.fti-full { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.fti-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; }
.fti-sec { padding: clamp(44px, 4.5vw, 68px) 0; }
.fti-sec--mist { background: var(--fti-mist); }
.fti-sec--ice { background: var(--fti-ice); }
.fti-sec--dark { background: var(--fti-navy); overflow: hidden; }
.fti-stack { display: flex; flex-direction: column; gap: 32px; }

/* Hero: sunrise over the Earth's arc */
.fti-hero { background: var(--fti-space); overflow: hidden; min-height: 460px; display: flex; align-items: flex-start; }
.fti-hero--short { min-height: 360px; }
.fti-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fti-hero .fti-wrap { width: 100%; padding-top: clamp(32px, 3.2vw, 52px); padding-bottom: 120px; }
.fti-hero--short .fti-wrap { padding-bottom: 96px; }
.fti-hero__inner { max-width: 780px; display: flex; flex-direction: column; gap: 18px; }
.fti-hero h1 { color: #fff; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; }
.fti-hero p { color: var(--fti-on-dark); font-size: clamp(17px, 1.4vw, 19px); max-width: 660px; }

.fti-eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--fti-head); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fti-sky-light); }
.fti-eyebrow::before { content: ""; width: 28px; height: 2px; background: #38BDF8; }
.fti-kicker { font-family: var(--fti-head); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fti-blue); }
.fti-h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.fti-sec--dark .fti-h2, .fti-sec--dark h3 { color: #fff; }
.fti-lead { font-size: 18px; color: var(--fti-muted); max-width: 640px; }
.fti-sec--dark .fti-lead { color: var(--fti-on-dark); }
.fti-intro { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.fti-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.fti-split > .fti-lead { max-width: 460px; }

/* Buttons */
.fti-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.fti-btn { display: inline-block; font-family: var(--fti-head); font-weight: 700; font-size: 16px; padding: 15px 25px; border-radius: 10px; border: 1px solid transparent; line-height: 1.2; transition: background .15s, color .15s; }
.fti .fti-btn--primary { background: var(--fti-blue); color: #fff; }
.fti .fti-btn--primary:hover { background: var(--fti-blue-dark); color: #fff; }
.fti .fti-btn--ghost { color: var(--fti-navy); border-color: #CBD5E1; }
.fti .fti-btn--ghost:hover { border-color: var(--fti-navy); }
.fti .fti-btn--ghost-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.fti .fti-btn--ghost-dark:hover { border-color: #fff; color: #fff; }
.fti .fti-btn--white { background: #fff; color: var(--fti-navy); }
.fti .fti-link { font-family: var(--fti-head); font-weight: 700; font-size: 15px; color: var(--fti-blue-dark); }
.fti-sec--dark .fti-link, .fti-panel--dark .fti-link { color: var(--fti-sky-light); }

/* Badges */
.fti-badge { display: inline-block; align-self: flex-start; font-family: var(--fti-head); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--fti-ice); color: var(--fti-blue-dark); }
.fti-badge--now { background: #DCFCE7; color: #166534; }
.fti-badge--soon { background: #EDE9FE; color: #5B21B6; }
.fti-badge--beta { background: #E0F2FE; color: #075985; }
.fti-hero .fti-badge--provider { background: rgba(125,211,252,.15); color: var(--fti-sky-light); }

/* Grids */
.fti-grid { display: grid; gap: 18px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.fti-grid--wide-gap { gap: 28px 40px; }
.fti-grid--five { --cols: 3; gap: 18px; }
.fti-grid--five .fti-card--product { padding: 24px; }
.fti-grid--five .fti-card--product h3 { font-size: 22px; }
@media (max-width: 1320px) { .fti-grid--five { --cols: 3; } }
@media (max-width: 1100px) { .fti-grid { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 680px) { .fti-grid { grid-template-columns: minmax(0, 1fr); } }
.fti-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fti-two--center { align-items: center; }
@media (max-width: 900px) { .fti-two { grid-template-columns: minmax(0, 1fr); } }

/* Icons */
.fti-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--fti-ice); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fti-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--fti-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fti-icon--white { background: #fff; }
.fti-icon--dark { background: rgba(56,189,248,.12); }
.fti-icon--dark svg { stroke: var(--fti-sky-light); }

/* Cards */
.fti-card { border: 1px solid var(--fti-line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.fti-card h3 { font-size: 20px; font-weight: 700; }
.fti-card p { font-size: 16px; color: var(--fti-muted); }
.fti-card--product { box-shadow: 0 1px 2px rgba(11,27,51,.04), 0 12px 32px rgba(11,27,51,.06); padding: 26px; }
.fti-card--product h3 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.fti-card--product .fti-tag { font-family: var(--fti-head); font-size: 16px; font-weight: 600; color: var(--fti-blue); }
.fti-card--product p { flex-grow: 1; }
.fti-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fti-card--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.fti-card--dark h3 { color: #fff; }
.fti-card--dark p { color: var(--fti-on-dark-2); }

/* Feature rows */
.fti-feat { display: flex; gap: 18px; align-items: flex-start; }
.fti-feat h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.fti-feat p { font-size: 16px; color: var(--fti-muted); }
.fti-feats { display: flex; flex-direction: column; gap: 22px; }
.fti-panel { border-radius: 18px; padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.fti-panel--ice { background: var(--fti-ice); }
.fti-panel--dark { background: var(--fti-navy); }
.fti-panel--dark h3 { color: #fff; }
.fti-panel--dark p { color: var(--fti-on-dark); }
.fti-panel h3 { font-size: 24px; font-weight: 800; }
.fti-panel p { font-size: 17px; }
.fti-note { padding: 20px 24px; border-radius: 14px; background: var(--fti-mist); font-size: 15px; color: var(--fti-muted); }
.fti-note strong { color: var(--fti-navy); }
.fti-partners { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--fti-muted); margin-top: 8px; }
.fti-partners strong { font-family: var(--fti-head); color: var(--fti-navy); }

/* CTA band */
.fti-cta { border-radius: 24px; padding: clamp(32px, 5vw, 56px); background: var(--fti-blue); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.fti-cta .fti-h2 { color: #fff; }
.fti-cta p { color: #DBE7FF; max-width: 680px; margin-top: 10px; }
.fti-cta .fti-btn--ghost-dark { border-color: rgba(255,255,255,.5); }

/* Timeline */
.fti-timeline { position: relative; display: flex; flex-direction: column; gap: 28px; }
.fti-timeline::before { content: ""; position: absolute; left: 175px; top: 10px; bottom: 30px; width: 2px; background: #BFD4F7; }
.fti-tl { display: grid; grid-template-columns: 140px 24px minmax(0, 1fr); gap: 24px; align-items: start; }
.fti-tl__year { font-family: var(--fti-head); font-size: 22px; font-weight: 800; color: var(--fti-navy); text-align: right; }
.fti-tl__dot { width: 18px; height: 18px; margin-top: 6px; border-radius: 9px; background: var(--fti-blue); border: 4px solid var(--fti-ice); position: relative; }
.fti-tl--now .fti-tl__dot { background: var(--fti-sky); }
.fti-tl h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.fti-tl p { color: var(--fti-muted); max-width: 760px; }
@media (max-width: 680px) {
  .fti-timeline::before { left: 8px; }
  .fti-tl { grid-template-columns: 18px minmax(0, 1fr); gap: 16px; }
  .fti-tl__year { grid-column: 2; text-align: left; font-size: 18px; }
  .fti-tl__dot { grid-row: 1; grid-column: 1; }
  .fti-tl > div:last-child { grid-column: 2; }
}

/* Posts list */
.fti-post__img { height: 180px; border-radius: 14px; background: #DCE6F5 center / cover no-repeat; }
.fti-post { display: flex; flex-direction: column; gap: 12px; }
.fti-post__meta { font-size: 13px; font-weight: 600; color: var(--fti-blue); }
.fti-post h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.fti-post h3 a { color: var(--fti-navy); }
.fti-post h3 a:hover { color: var(--fti-blue); }

/* Contact blocks */
.fti-contact { display: flex; flex-direction: column; gap: 6px; }
.fti-contact .fti-big { font-family: var(--fti-head); font-size: 26px; font-weight: 800; color: var(--fti-navy); }

/* Footer (TheGem custom footer template) */
.custom-footer .fti-footer { background: #06122A; color: var(--fti-on-dark-2); padding: 64px 0 48px; overflow: hidden; }
.fti-footer__arc { position: absolute; left: 0; top: 0; width: 100%; height: 160px; }
.fti-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 40px; position: relative; }
.fti-footer img { width: 170px; height: auto; }
.fti-footer p { color: var(--fti-on-dark-2); font-size: 15px; margin-top: 16px; }
.fti-footer h4 { font-family: var(--fti-head); font-weight: 700; color: #fff; font-size: 15px; margin: 0 0 12px; text-transform: none; }
.fti-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.fti-footer a { color: var(--fti-on-dark-2); }
.fti-footer a:hover { color: #fff; }
@media (max-width: 1000px) { .fti-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fti-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Page chrome tweaks on FTI-built pages */
body.fti-page #main-content > .block-content, body.fti-page .block-content { padding-top: 0 !important; padding-bottom: 0 !important; }
body.fti-page .page-title-block, body.fti-page #page-title { display: none; }

/* Single blog posts: readable column */
body.single-post .fti-article, body.single-post .post-content { max-width: 820px; margin: 0 auto; }
body.single-post .post-content h2 { font-size: 26px; margin: 36px 0 12px; text-transform: none; }
body.single-post .post-content h3 { font-size: 20px; margin: 28px 0 10px; text-transform: none; }
body.single-post .breadcrumbs { display: none; }

/* Tighter cards: consistent heading/text rhythm, no theme margins */
body .fti .fti-card h3, body .fti .fti-feat h3 { margin: 4px 0 0; }
body .fti .fti-card p { line-height: 1.55; }
/* Dropdown menus: readable and lifted */
#primary-menu.no-responsive > li > ul { box-shadow: 0 12px 32px rgba(11,27,51,.12); border-radius: 0 0 10px 10px; }
#primary-menu.no-responsive > li > ul > li > a { font-weight: 600; }

/* Insights: compact article grid */
.fti-blog { display: flex; flex-direction: column; gap: 24px; }
.fti-blog__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0; }
.fti-topics { display: flex; gap: 8px; flex-wrap: wrap; }
.fti .fti-topic { font-family: var(--fti-head); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid #CBD5E1; color: var(--fti-navy); background: #fff; }
.fti .fti-topic:hover { border-color: var(--fti-blue); color: var(--fti-blue); }
.fti .fti-topic.is-active { background: var(--fti-blue); border-color: var(--fti-blue); color: #fff; }
.fti-search input { font-size: 15px; padding: 9px 14px; border: 1px solid #CBD5E1; border-radius: 999px; min-width: 240px; background: #fff; }
.fti-blog__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .fti-blog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .fti-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fti-blog__grid { grid-template-columns: minmax(0, 1fr); } .fti-search input { min-width: 0; width: 100%; } .fti-search { width: 100%; } }
.fti-tile { border: 1px solid var(--fti-line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.fti-tile:hover { box-shadow: 0 10px 28px rgba(11,27,51,.10); transform: translateY(-2px); }
.fti-tile__img { display: block; aspect-ratio: 16 / 9; background: #DCE6F5 center / cover no-repeat; }
.fti-tile__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
body .fti .fti-tile h3 { font-size: 16px; line-height: 1.3; font-weight: 700; margin: 0; }
.fti .fti-tile h3 a { color: var(--fti-navy); }
.fti .fti-tile h3 a:hover { color: var(--fti-blue); }
.fti-tile p { font-size: 14px; line-height: 1.5; color: var(--fti-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fti-pager { display: flex; gap: 6px; justify-content: center; }
.fti-pager a, .fti-pager span { font-family: var(--fti-head); font-weight: 600; font-size: 14px; min-width: 38px; text-align: center; padding: 8px 12px; border-radius: 8px; border: 1px solid #CBD5E1; }
.fti-pager span.is-active { background: var(--fti-navy); color: #fff; border-color: var(--fti-navy); }

/* Hosting plans */
.fti-plan { position: relative; }
.fti-plan--flag { border: 2px solid var(--fti-blue); box-shadow: 0 12px 32px rgba(37,99,235,.12); }
.fti-plan__promise { font-family: var(--fti-head); font-weight: 600; color: var(--fti-navy) !important; font-size: 16px !important; }
.fti-checks { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.fti-checks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--fti-muted); }
.fti-checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--fti-blue); border-bottom: 2px solid var(--fti-blue); transform: rotate(-45deg); }

/* FAQ accordion */
.fti-faq { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.fti-faq__item { background: #fff; border: 1px solid var(--fti-line); border-radius: 12px; padding: 0 20px; }
.fti-faq__item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-family: var(--fti-head); font-weight: 700; font-size: 17px; color: var(--fti-navy); position: relative; }
.fti-faq__item summary::-webkit-details-marker { display: none; }
.fti-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--fti-blue); }
.fti-faq__item[open] summary::after { content: "\2212"; }
.fti-faq__item p { padding: 0 0 18px; color: var(--fti-muted); font-size: 16px; }
.fti-plan__price { font-family: var(--fti-head); font-weight: 800; font-size: 40px !important; line-height: 1.1; color: var(--fti-navy) !important; margin: 4px 0 8px !important; }
.fti-plan__price small { font-size: 16px; font-weight: 600; color: var(--fti-muted); margin-right: 4px; }
.fti-plan__price span { display: block; font-family: var(--fti-body, inherit); font-size: 13px; font-weight: 500; color: var(--fti-muted); margin-top: 4px; }
.fti-plan__limits { font-size: 13px !important; font-weight: 600; color: var(--fti-blue) !important; margin: 0 0 10px !important; }
.fti-fine { margin-top: 20px !important; font-size: 13px !important; line-height: 1.6; color: var(--fti-muted) !important; }
