/* Raven Digitals V69 — Raven OS Sites + global typography rhythm */
:root{
  --rd-flow-1:8px;--rd-flow-2:12px;--rd-flow-3:18px;--rd-flow-4:26px;--rd-flow-5:36px;--rd-flow-6:52px;
}

/* ---------------------------------------------------------
   GLOBAL TYPOGRAPHIC RHYTHM — desktop, tablet and mobile
   --------------------------------------------------------- */
body:not([data-portal]) .hero-copy .eyebrow + h1,
body:not([data-portal]) .hero-copy .eyebrow + .display-title{margin-top:18px!important}
body:not([data-portal]) .hero-copy h1,
body:not([data-portal]) .display-title{line-height:.97!important}
body:not([data-portal]) .hero-copy h1 + .hero-lead,
body:not([data-portal]) .display-title + .hero-lead{margin-top:26px!important}
body:not([data-portal]) .hero-lead{line-height:1.66!important}
body:not([data-portal]) .section-head{gap:44px!important;margin-bottom:42px!important}
body:not([data-portal]) .section-head h2{margin-top:10px!important;line-height:1.06!important}
body:not([data-portal]) .section-head p{line-height:1.72!important}
body:not([data-portal]) .statement-card h2{line-height:1.05!important;margin-bottom:28px!important}
body:not([data-portal]) .statement-card p{line-height:1.7!important}
body:not([data-portal]) .service-card h3{margin-bottom:12px!important;line-height:1.22!important}
body:not([data-portal]) .service-card p{line-height:1.66!important}
body:not([data-portal]) .work-info strong{line-height:1.2!important;margin-bottom:5px}
body:not([data-portal]) .work-info small{display:block;line-height:1.5}
body:not([data-portal]) .founder-copy h2{line-height:1.03!important;margin:12px 0 18px!important}
body:not([data-portal]) .home-pricing-intro h2{line-height:1.04!important;margin-top:10px!important}
body:not([data-portal]) .process-card h3{line-height:1.2!important;margin-bottom:14px!important}
body:not([data-portal]) .case-info h2{line-height:1.18!important;margin:13px 0 10px!important}
body:not([data-portal]) .case-outcomes h3,
body:not([data-portal]) .local-offer-grid h3{line-height:1.18!important}
body:not([data-portal]) .raven-trust-head h2{line-height:1.04!important;margin-top:10px!important}
body:not([data-portal]) .raven-trust-grid h3{line-height:1.2!important;margin-bottom:12px!important}

/* Raven OS / portal text rhythm */
body[data-portal] .portal-kicker{line-height:1.35!important;margin-bottom:7px!important}
body[data-portal] .admin-heading{gap:28px!important;margin-bottom:22px!important}
body[data-portal] .admin-heading h1{line-height:1.06!important;margin-top:5px!important}
body[data-portal] .admin-heading-copy{margin:12px 0 32px!important;line-height:1.7!important;max-width:900px}
body[data-portal] .admin-panel-head h2,
body[data-portal] .project-detail-copy h2,
body[data-portal] .quote-card h2,
body[data-portal] .invoice-card h2{line-height:1.18!important}
body[data-portal] .field label{line-height:1.35!important;margin-bottom:7px!important}
body[data-portal] .field input,body[data-portal] .field select,body[data-portal] .field textarea{line-height:1.45!important}
body[data-portal="client"] h1,body[data-portal="client"] h2,body[data-portal="client"] h3{line-height:1.08!important}
body[data-portal="client"] p{line-height:1.68}

/* ---------------------------------------------------------
   RAVEN OS — SITES
   --------------------------------------------------------- */
.raven-sites-main{padding-bottom:92px!important}
.sites-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:28px 0}
.sites-kpis article{padding:21px 22px;border:1px solid var(--v68-line);border-radius:19px;background:rgba(255,255,255,.84);box-shadow:0 15px 42px rgba(41,25,55,.045)}
.sites-kpis small{display:block;color:#8c8494;font-size:7px;font-weight:850;letter-spacing:.13em}
.sites-kpis strong{display:block;margin-top:13px;font-size:32px;line-height:1;letter-spacing:-.045em}
.sites-kpis span{display:block;margin-top:8px;color:#8a8290;font-size:9px;line-height:1.45}
.sites-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 18px}
.sites-toolbar label{min-width:0;flex:1;height:46px;padding:0 14px;display:flex;align-items:center;gap:10px;border:1px solid var(--v68-line);border-radius:14px;background:rgba(255,255,255,.86);box-shadow:0 8px 28px rgba(37,23,49,.035)}
.sites-toolbar label span{color:#8a8292;font-size:17px}.sites-toolbar input{width:100%;border:0;outline:0;background:transparent;color:var(--v68-ink);font:inherit;font-size:10px}
.sites-toolbar button{min-height:46px;padding:0 16px;border:1px solid var(--v68-line);border-radius:14px;background:#fff;color:#4b4251;font-size:9px;font-weight:800;cursor:pointer}
.sites-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.site-os-card{overflow:hidden;border:1px solid var(--v68-line);border-radius:22px;background:rgba(255,255,255,.9);box-shadow:var(--v68-shadow);transition:transform .25s var(--v68-ease),box-shadow .25s var(--v68-ease)}
.site-os-card:hover{transform:translateY(-3px);box-shadow:var(--v68-shadow-hover)}
.site-os-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:20px 20px 17px;border-bottom:1px solid var(--v68-line)}
.site-os-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#2a2034,#7750e8);color:#fff;font-size:10px;font-weight:850;letter-spacing:.04em;box-shadow:0 10px 24px rgba(79,51,125,.18)}
.site-os-card header>div{min-width:0}.site-os-card header strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.25}.site-os-card header small{display:block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;color:#8b8391;font-size:8px;white-space:nowrap}
.site-os-status{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border-radius:999px;background:#f3eff6;color:#766d7e;font-size:7px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.site-os-status i{width:6px;height:6px;border-radius:50%;background:#aaa}.site-os-status.online{background:#eaf7ef;color:#2e7c50}.site-os-status.online i{background:#38a66d;box-shadow:0 0 0 4px rgba(56,166,109,.10)}.site-os-status.error{background:#fff0ef;color:#a44c48}.site-os-status.error i{background:#d45d58}.site-os-status.working{background:#f1edff;color:#6849bc}.site-os-status.working i{background:#7750e8}
.site-os-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--v68-line)}.site-os-preview>div{min-width:0;padding:18px 20px;background:#fbfafd}.site-os-preview span{display:block;color:#98909e;font-size:6px;font-weight:850;letter-spacing:.11em}.site-os-preview strong{display:block;margin-top:8px;overflow:hidden;text-overflow:ellipsis;font-size:9px;line-height:1.45;white-space:nowrap}
.site-os-card>footer{display:flex;flex-wrap:wrap;gap:8px;padding:15px 18px 18px}.site-os-card footer a,.site-os-card footer button{min-height:36px;padding:0 12px;display:inline-flex;align-items:center;border:1px solid #ded6e4;border-radius:10px;background:#fff;color:#493f50;font-size:8px;font-weight:800;text-decoration:none;cursor:pointer}.site-os-card footer a{background:#211829;border-color:#211829;color:#fff}.site-os-card footer button:hover{border-color:#bdaee4;color:#6a49d7}.site-os-card footer button:disabled{opacity:.5;cursor:wait}
.sites-connect-card{min-height:360px;padding:42px;display:grid;grid-template-columns:auto minmax(0,1fr);align-content:center;gap:24px;border:1px dashed #cfc1de;border-radius:24px;background:rgba(255,255,255,.78)}.sites-connect-icon{width:62px;height:62px;display:grid;place-items:center;border-radius:20px;background:#241a2d;color:#fff;box-shadow:0 18px 38px rgba(42,26,54,.13)}.sites-connect-icon svg{width:28px;fill:none;stroke:currentColor;stroke-width:1.6}.sites-connect-card h2{margin:5px 0 12px;font-size:28px;line-height:1.15}.sites-connect-card p{max-width:720px;margin:0;color:#756d7b;font-size:11px;line-height:1.7}.sites-secret-list{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.sites-secret-list code{padding:8px 10px;border:1px solid #ded5e7;border-radius:9px;background:#fff;color:#6243ba;font-size:9px}.sites-connect-note{padding-top:4px}.sites-loading{min-height:280px;display:grid;place-items:center;align-content:center;gap:9px;text-align:center;color:#7c7482}.sites-loading i{width:24px;height:24px;border:2px solid #ded6e8;border-top-color:#7750e8;border-radius:50%;animation:siteSpin .8s linear infinite}.sites-loading strong{font-size:11px}.sites-loading span{font-size:9px}@keyframes siteSpin{to{transform:rotate(360deg)}}
.site-history-modal{width:min(940px,calc(100% - 28px));max-width:none}.deployment-list{display:grid;gap:8px}.deployment-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;padding:15px;border:1px solid var(--v68-line);border-radius:14px;background:#fff}.deployment-index{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f2edf8;color:#7750e8;font-size:8px;font-weight:850}.deployment-list article>div:nth-child(2){min-width:0}.deployment-list strong,.deployment-list small{display:block}.deployment-list strong{font-size:10px}.deployment-list small{margin-top:4px;color:#8e8694;font-size:8px;line-height:1.4}.deployment-state{display:inline-flex;margin-top:7px;padding:5px 7px;border-radius:999px;background:#f1eef4;color:#756d7b;font-size:6px;font-weight:850;text-transform:uppercase}.deployment-state.success{background:#eaf7ef;color:#2f7f52}.deployment-state.failure,.deployment-state.failed{background:#fff0ef;color:#a44c48}.deployment-actions{display:flex;gap:6px}.deployment-actions a,.deployment-actions button{min-height:34px;padding:0 9px;display:inline-flex;align-items:center;border:1px solid #ded6e4;border-radius:9px;background:#fff;color:#493f50;font-size:7px;font-weight:800;text-decoration:none;cursor:pointer}.deployment-actions .rollback{border-color:#cbb9f0;color:#6747bc;background:#f8f5ff}

@media(max-width:980px){.sites-grid{grid-template-columns:1fr}.site-os-preview{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:720px){
  body:not([data-portal]) .hero-copy h1,body:not([data-portal]) .display-title{line-height:1.01!important}
  body:not([data-portal]) .hero-copy .eyebrow + h1,body:not([data-portal]) .hero-copy .eyebrow + .display-title{margin-top:20px!important}
  body:not([data-portal]) .hero-copy h1 + .hero-lead,body:not([data-portal]) .display-title + .hero-lead{margin-top:30px!important}
  body:not([data-portal]) .section-head{margin-bottom:34px!important}.section-head p{margin-top:18px!important}
  body:not([data-portal]) .founder-copy h2{margin-top:14px!important;margin-bottom:20px!important}
  body[data-portal] .admin-heading{margin-bottom:26px!important}.admin-heading-copy{margin-bottom:28px!important}
  .sites-kpis{grid-template-columns:1fr;gap:9px}.sites-kpis article{padding:17px 18px}.sites-kpis strong{font-size:27px}
  .sites-toolbar{align-items:stretch;flex-direction:column}.sites-toolbar label,.sites-toolbar button{width:100%}
  .site-os-card>header{grid-template-columns:auto minmax(0,1fr);padding:17px}.site-os-status{grid-column:1/-1;width:max-content;margin-top:2px}
  .site-os-preview{grid-template-columns:1fr}.site-os-preview>div{padding:14px 17px}.site-os-card>footer{display:grid;grid-template-columns:1fr 1fr;padding:14px 16px 17px}.site-os-card footer a,.site-os-card footer button{justify-content:center}
  .sites-connect-card{min-height:0;padding:26px 20px;grid-template-columns:1fr}.sites-connect-icon{width:54px;height:54px}.sites-connect-card h2{font-size:24px}
  .deployment-list article{grid-template-columns:auto minmax(0,1fr)}.deployment-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}.deployment-actions a,.deployment-actions button{justify-content:center}.site-history-modal{width:calc(100% - 14px);margin:7px}
}
@media(max-width:480px){.site-os-card>footer{grid-template-columns:1fr}.deployment-actions{grid-template-columns:1fr 1fr}.deployment-actions a{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.site-os-card{transition:none!important}.sites-loading i{animation:none!important}}
