/* HosTech Services - red / white / black
   Display: Archivo (variable width)  |  Body: IBM Plex Sans */

:root {
  --red: #E10600;
  --red-deep: #B30500;
  --red-on-dark: #FF4A3F;
  --ink: #000000;
  --paper: #FFFFFF;
  --smoke: #F3F3F2;
  --line: #E1E1E0;
  --mute: #555555;
  --d-line: #2A2A2A;
  --d-mute: #B0B0B0;
  --display: 'Archivo', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --r: 6px;
  --focus: #E10600;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -.015em; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; font-stretch: 108%; margin-bottom: 1.1rem; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-dark { --focus: #FFFFFF; }
.icon { flex: none; vertical-align: middle; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--mute); }
.on-dark .muted { color: var(--d-mute); }
.center-title { text-align: center; margin-bottom: 3rem; }
.cta-inner h2 { margin-bottom: 0; }
.hide-sm { display: inline-flex; }
.inline-form { display: inline; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.35rem; font: 600 .95rem/1.2 var(--body); border: 2px solid transparent; border-radius: var(--r); cursor: pointer; text-decoration: none; transition: background-color .18s, color .18s, border-color .18s; }
.btn-sm { padding: .5rem .95rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: var(--red); color: #fff; }
.btn-line { border-color: #000; color: #000; background: transparent; }
.btn-line:hover { background: #000; color: #fff; }
.btn-line-light { border-color: #fff; color: #fff; background: transparent; }
.btn-line-light:hover { background: #fff; color: #000; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #000; color: #fff; }

/* ---------- Top bar + header ---------- */
.topbar { background: #000; color: #D6D6D6; font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topbar-group { display: flex; gap: 1.5rem; align-items: center; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: #000; }
.brand:hover { color: #000; }
.brand-mark { display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 800 1.4rem/1 var(--display); font-stretch: 112%; letter-spacing: -.02em; }
.brand-text small { font: 500 .78rem/1 var(--body); letter-spacing: .12em; margin-top: .3rem; color: var(--mute); }
.brand-dark, .brand-dark:hover { color: #fff; }
.brand-dark .brand-text small { color: var(--d-mute); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { list-style: none; display: flex; gap: .25rem; }
.nav-links a { display: block; padding: .5rem .8rem; font-weight: 500; text-decoration: none; border-radius: var(--r); }
.nav-links a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; color: #000; }

.flash { background: #000; color: #fff; padding: .8rem 0; font-size: .95rem; }
.flash .wrap { display: flex; align-items: center; gap: .6rem; }
.flash svg { color: var(--red-on-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; background: #000; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 4.5rem 0 5rem; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; font-stretch: 108%; letter-spacing: -.025em; margin-bottom: 1.4rem; }
.lead { font-size: 1.15rem; line-height: 1.6; max-width: 36rem; color: #D2D2D2; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem; color: #E4E4E4; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points svg { color: var(--red-on-dark); }
.hero-art { width: 100%; height: auto; display: block; }
.led-blink { animation: blink 1.8s steps(1, end) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--red); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.7rem 0; }
.trust-item { display: flex; gap: .9rem; align-items: flex-start; }
.trust-item strong { display: block; font-family: var(--display); font-size: 1.02rem; line-height: 1.25; }
.trust-item span { display: block; font-size: .88rem; line-height: 1.45; opacity: .95; margin-top: .2rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-smoke { background: var(--smoke); }
.section-dark { background: #000; color: #fff; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-head { position: sticky; top: 110px; }
.split-head p { max-width: 28rem; }
.split-head .btn { margin-top: .6rem; }

/* Services ledger */
.ledger { list-style: none; border-top: 3px solid #000; }
.ledger-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.3rem; align-items: start; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.ledger-icon { display: grid; place-items: center; width: 56px; height: 56px; background: #000; color: #fff; border-radius: var(--r); transition: background-color .2s; }
.ledger-row:hover .ledger-icon { background: var(--red); }
.ledger-body h3 { margin-bottom: .3rem; }
.ledger-body p { margin: 0; color: var(--mute); max-width: 36rem; }
.ledger-price { font: 600 .9rem/1.3 var(--body); text-align: right; white-space: nowrap; padding-top: .3rem; }

/* Infrastructure */
.infra-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.infra-art { width: 100%; height: auto; display: block; border: 1px solid var(--d-line); }
.specs { list-style: none; margin-top: 2rem; display: grid; gap: 1.3rem; }
.spec { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.3rem; border-top: 1px solid var(--d-line); }
.spec svg { color: var(--red-on-dark); margin-top: .1rem; }
.spec h3 { margin-bottom: .15rem; font-size: 1.05rem; }
.spec p { margin: 0; color: var(--d-mute); font-size: .95rem; }

/* Pricing */
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.pricing-head p { max-width: 34rem; margin: 0; }
.billing { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.billing button { font: 600 .9rem/1 var(--body); padding: .7rem 1.15rem; border: 0; border-radius: 999px; background: transparent; color: #000; cursor: pointer; }
.billing button[aria-pressed="true"] { background: #000; color: #fff; }
.pricing[data-billing="monthly"] .only-yearly, .pricing[data-billing="yearly"] .only-monthly { display: none; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2rem 1.6rem 1.7rem; }
.plan.featured { background: #000; color: #fff; border-color: #000; }
.plan-badge { position: absolute; top: -14px; left: 1.6rem; background: var(--red); color: #fff; font: 600 .8rem/1 var(--body); padding: .45rem .8rem; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.plan-tag { color: var(--mute); font-size: .92rem; min-height: 2.9em; margin-bottom: 1.2rem; }
.plan.featured .plan-tag { color: var(--d-mute); }
.price { display: flex; align-items: baseline; gap: .3rem; margin: 0; font-family: var(--display); }
.price .cur { font-size: 1.1rem; font-weight: 700; }
.price .only-monthly, .price .only-yearly { font-size: 2.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.price .per { font: 500 .9rem var(--body); color: var(--mute); }
.plan.featured .price .per { color: var(--d-mute); }
.price-note { font-size: .84rem; color: var(--mute); margin: .5rem 0 1.4rem; }
.plan.featured .price-note { color: var(--d-mute); }
.plan-list { list-style: none; display: grid; gap: .65rem; margin-bottom: 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.plan.featured .plan-list { border-color: var(--d-line); }
.plan-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; line-height: 1.4; }
.plan-list svg { color: var(--red); margin-top: .05rem; }
.plan.featured .plan-list svg { color: var(--red-on-dark); }
.plan.featured .btn-red:hover { background: #fff; color: #000; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.step { border-top: 4px solid #000; padding-top: 1.4rem; }
.step-num { display: block; font: 800 4rem/1 var(--display); color: var(--red); margin-bottom: 1rem; }
.step p { color: var(--mute); margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid #CFCFCD; }
.faq details:first-child { border-top: 3px solid #000; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; cursor: pointer; list-style: none; font: 700 1.08rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--red); }
.faq details p { color: var(--mute); padding-bottom: 1.4rem; margin: 0; max-width: 40rem; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: clamp(2.5rem, 5vw, 3.8rem) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { max-width: 32rem; margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band .cta-row { margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { color: var(--red); margin-top: .15rem; }
.contact-list strong { display: block; font-family: var(--display); }
.contact-list address, .contact-list span { color: var(--mute); }
.map { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; }
.panel { background: var(--smoke); border-radius: 8px; padding: clamp(1.5rem, 3vw, 2.4rem); border-top: 4px solid var(--red); }
.panel h3 { font-size: 1.5rem; margin-bottom: 1.3rem; }

/* Forms */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.opt { font-weight: 400; color: var(--mute); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; font: inherit; color: #000; padding: .8rem .95rem; background: #fff; border: 1.5px solid #BDBDBB; border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(225, 6, 0, .28); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.fine { font-size: .84rem; color: var(--mute); margin: 1rem 0 0; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #777; pointer-events: none; }
.input-icon input { padding-left: 2.75rem; }
.pw input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .5rem; cursor: pointer; color: #555; display: grid; }
.pw-toggle .off { display: none; }
.pw-toggle.shown .off { display: block; }
.pw-toggle.shown .on { display: none; }
.pw-toggle .icon { position: static; transform: none; color: inherit; }
.meter { height: 4px; background: #E3E3E1; border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.hint { color: var(--mute); font-size: .82rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; margin: 0 0 1.3rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--red); flex: none; }

.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .95rem 1.05rem; margin-bottom: 1.3rem; border: 1.5px solid; border-radius: var(--r); font-size: .93rem; line-height: 1.5; }
.alert ul { list-style: none; display: grid; gap: .3rem; }
.alert svg { margin-top: .1rem; }
.alert-error { border-color: var(--red); background: #FFF3F2; color: #6E0300; }
.alert-error svg { color: var(--red); }
.alert-ok { border-color: #000; background: #fff; }
.alert-ok svg { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #D0D0D0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; padding: 4rem 0 3rem; }
.foot-brand p { margin-top: 1.2rem; max-width: 20rem; font-size: .93rem; color: var(--d-mute); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.site-footer address { font-size: .93rem; line-height: 1.6; }
.foot-bottom { border-top: 1px solid var(--d-line); }
.foot-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0; font-size: .84rem; color: var(--d-mute); }
.foot-links { display: flex; gap: 1.5rem; }

/* ---------- Dialogs ---------- */
.dialog { width: min(92vw, 560px); border: 0; border-top: 6px solid var(--red); border-radius: 8px; padding: 2rem; }
.dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .7rem; margin-bottom: 1.6rem; color: #222; }
.dialog h2 { font-size: 1.6rem; }

/* ---------- Error page ---------- */
.fatal { display: grid; place-items: center; min-height: 100vh; background: #000; color: #fff; padding: 1.5rem; }
.fatal-box { width: min(100%, 520px); }
.fatal-box h1 { font-size: 2.4rem; margin-top: 2.5rem; }
.fatal-box p { color: #D0D0D0; }
.fatal-detail { background: #1A1A1A; padding: 1rem; border-left: 4px solid var(--red); white-space: pre-wrap; word-break: break-word; font-size: .85rem; }

/* ---------- Auth pages ---------- */
.auth-body { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(360px, .9fr) 1.1fr; min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; background: #000; color: #fff; padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.auth-side-top { position: relative; z-index: 1; }
.auth-side h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; font-stretch: 108%; margin: 3rem 0 1rem; }
.auth-art { position: absolute; right: 1.5rem; bottom: -100px; width: min(300px, 60%); pointer-events: none; }
.auth-side-foot { position: relative; z-index: 1; font-size: .8rem; color: var(--d-mute); margin: 0; max-width: 13rem; }
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.auth-card { width: min(100%, 470px); }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 500; text-decoration: none; margin-bottom: 1.8rem; color: var(--mute); }
.back-link:hover { color: var(--red); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 2rem; border-bottom: 2px solid var(--line); }
.tabs a { text-align: center; padding: .9rem 1rem; font: 700 1rem var(--display); text-decoration: none; color: var(--mute); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { color: #000; border-bottom-color: var(--red); }
.tabs a:hover { color: #000; }
.auth-title { font-size: 1.9rem; margin-bottom: 1.5rem; }
.switch { text-align: center; margin: 1.6rem 0 0; color: var(--mute); }
.switch a { color: #000; font-weight: 600; }
.account-block { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.account-block h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.plan-chip { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; background: #000; color: #fff; border-radius: var(--r); margin-bottom: 1rem; }
.plan-chip svg { color: var(--red-on-dark); }
.plan-chip span { margin-left: auto; color: var(--d-mute); font-size: .9rem; }
.kv { display: grid; grid-template-columns: 9rem 1fr; gap: .7rem 1rem; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.account-actions { display: flex; gap: .8rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.4rem; }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-actions { flex-wrap: wrap; }
  .hero-grid { grid-template-columns: 1fr; padding: 3rem 0 3.5rem; }
  .hero-art { max-width: 480px; margin-inline: auto; }
  .split, .infra-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; padding-bottom: 8rem; }
  .auth-side h1 { margin-top: 2rem; }
  .auth-art { width: 240px; right: 1rem; bottom: -110px; }
  .auth-side-foot { display: none; }
}
@media (max-width: 640px) {
  .hide-sm, .topbar .hide-sm { display: none; }
  .trust-grid, .plans, .form-grid, .foot-grid { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 48px 1fr; }
  .ledger-icon { width: 48px; height: 48px; }
  .ledger-price { grid-column: 2; text-align: left; padding-top: 0; }
  .billing { width: 100%; }
  .billing button { flex: 1; padding-inline: .6rem; }
  .cta-row .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: .1rem; }
  .kv dd { margin-bottom: .8rem; }
  .topbar-inner { justify-content: space-between; gap: .5rem; }
  .topbar-group { gap: .8rem; }
  .topbar { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led-blink { animation: none; }
  * { transition: none !important; }
}
