@import "support.css";
@import "billing.css";
@import "content.css";
@import "knowledge-base.css";
@import "technical-news.css";
@import "my-account.css";

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
    font-family: "Centrale Sans";
    src: url("../fonts/CentraleSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Centrale Sans";
    src: url("../fonts/CentraleSans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Centrale Sans";
    src: url("../fonts/CentraleSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bradley Hand";
    src: url("../fonts/BradleyHandITCTT-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --bg: #f4f4f4;
    --panel: #fff;
    --text: #111827;
    --muted: #8d8d8d;
    --teal: #133D4B;
    --cyan: #d8f1f4;
    --green: #43ad40;
    --red: #fb5a4b;
    --lime: #c7db22;
    --yellow: #ffec79;
    --line: #d9d9d9;
    --radius: 26px;
    --white: #ffffff;
    --grey: #848484;
    --light-grey: #dddddd;
    --blue: #2C515E;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

figure {
    margin: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Centrale Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0 0 15px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

p {
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--teal);
}

strong {
    font-weight: 700;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 72px;
    background: #fff;
}

.brand {
    color: #111;
    font-size: 43px;
    letter-spacing: -2px;
    text-decoration: none;
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.account-nav > * {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 24px;
    border-left: 1px solid var(--line);
    color: #111;
    text-decoration: none;
}

.account-nav > *:first-child {
    border-left: 0;
    gap: 6px;
}

.account-nav .settings {
    display: flex;
    align-items: center;
    gap: 34px;
}

.alerts {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alerts strong {
    display: grid;
    place-items: center;
    width: 46px;
    height: 32px;
    margin-right: 10px;
    border-radius: 23px;
    background: var(--red);
    color: #fff;
}

.account-nav .icon-btn {
	border: 0;
}

.account-nav .icon-btn span {
	font-size: 24px;
}

.account-nav .my-account span,
.account-nav .my-account .account-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
}

.account-nav .my-account .account-icon {
    font-size: 24px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.shell {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    min-height: calc(100vh - 100px);
}

.sidebar {
    position: relative;
    overflow: visible;
    padding: 60px 44px 30px 52px;
}

.sidebar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: url('../images/cloud-illustration.png') no-repeat center;
    background-size: contain;
}

.dashboard {
    min-width: 0;
    padding: 62px 72px 70px 22px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.icon-btn,
.card-head button,
.ticket-card button,
.progress-body button,
.benchmark-grid button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
    line-height: 1;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */

.main-nav {
    display: grid;
    gap: 8px;
}

.main-nav a,
.main-nav div.no-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 20px;
    border-radius: 30px;
    color: #111;
    text-decoration: none;
}

.main-nav a:nth-child(7) {
    margin-top: 38px;
}

.main-nav .active {
    background: var(--cyan);
}

.main-nav span {
    width: 20px;
    font-size: 22px;
    text-align: center;
}

.manager-card {
    margin-top: 50px;
}

.manager-card img {
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border-radius: 50%;
}

.manager-card strong,
.manager-card span {
    display: block;
}

.stars {
    margin: 14px 0;
    color: var(--green);
}

.stars span {
    display: inline;
    color: #d6d6d6;
}

.button-light {
    display: inline-block;
    padding: 12px 26px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #fff;
    color: #111;
    text-decoration: none;
}

.phone {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
}

.partner {
    margin-top: 65px;
    color: #777;
    font-size: 23px;
    line-height: 1;
}

.ms-grid {
    display: inline-grid;
    grid-template-columns: repeat(2, 18px);
    gap: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.ms-grid i {
    width: 18px;
    height: 18px;
    background: #f25022;
}

.ms-grid i:nth-child(2) {
    background: #7fba00;
}

.ms-grid i:nth-child(3) {
    background: #00a4ef;
}

.ms-grid i:nth-child(4) {
    background: #ffb900;
}

.sub-nav {
	margin: -4px 0 8px 32px;
	display: grid;
	gap: 4px;
}

.sub-nav a {
	font-size: 13px;
	line-height: 1.3;
	opacity: .75;
}

.sub-nav a:hover,
.sub-nav a.active {
	opacity: 1;
}

/* ==========================================================================
   Dashboard Cards
   ========================================================================== */

.top-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 1.2fr);
    align-items: stretch;
    gap: 22px;
}

.stat-card,
.cost-card {
    padding: 22px;
    border-radius: 22px;
    background: #fff;
}

.stat-card,
.mini-column {
    width: 100%;
    min-width: 0;
}

.card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 10px;
}

.card-head h2 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
}

.card-head button:first-child{
	margin-bottom: 14px;
}

.stat-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.stat-card p.warning {
    color: var(--red);
}

.donut-svg {
    --color: var(--teal);
    --value: 0;

    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
}

.donut-svg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-svg circle {
    fill: none;
    stroke-width: 12;
}

.donut-track {
    stroke: #e3e3e3;
}

.donut-progress {
    stroke: var(--color);
    stroke-linecap: round;
    stroke-dasharray: 251.327;
    stroke-dashoffset: 251.327;
}

.donut-svg span {
    position: relative;
    z-index: 1;
    color: var(--teal);
    font-size: 26px;
}

.donut-svg.red {
    --color: var(--red);
}

.donut-svg.green {
    --color: var(--green);
}

.donut-svg.teal {
    --color: var(--teal);
}

.donut-svg.lime-donut {
    --color: var(--lime);
}

.mini-column {
    display: grid;
    gap: 20px;
}

.ticket-card {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 64px 34px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 22px;
    background: var(--yellow);
}

.ticket-card small,
.cost-card small {
    display: block;
}

.ticket-card .ticket {
	align-items: center;
	justify-content: center;
	display: flex;
    background: url('../images/ticket-bg.webp') no-repeat;
    color: var(--teal);
    font-size: 28px;
    font-style: normal;
    height: 51px;
    width: 64px;
}

.cost-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.cost-card strong {
    color: var(--teal);
    font-size: 26px;
    font-weight: 400;
}

.app-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
}

/* ==========================================================================
   Journey
   ========================================================================== */

.journey-card {
    margin-top: 42px;
    padding: 42px;
    border-radius: 42px;
    background: #fff;
}

.journey-header {
    display: grid;
    grid-template-columns: 130px 238px minmax(0, 1fr) 100px;
    align-items: center;
    gap: 30px;
}

.journey-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.05;
}

.journey-header img {
    max-width: 250px;
}

.journey-header .score {
    display: flex;
    align-items: center;
}

.score .icon {
    margin: 0 12px;
    color: var(--green);
    font-size: 28px;
}

.upgrade {
    padding: 14px 20px;
    border-radius: 20px;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    height: 40px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 40px 0;
}

.step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

/* Left connector */
.step::before,
.step::after {
    content: "";
    position: absolute;
    top: 56px;
    height: 4px;
    z-index: 0;
}

.step::before {
    left: 0;
    right: calc(50% + 32px);
    background: #d8d8d8;
}
.step.current::before {
    right: calc(50% + 40px);
}

/* Right connector */
.step::after {
    left: calc(50% + 32px);
    right: 0;
    background: #d8d8d8;
}
.step.current::after {
	left: calc(50% + 40px);
}

/* Remove outside connectors */
.step:first-child::before {
    display: none;
}

.step:last-child::after {
    display: none;
}

/* Completed steps */
.step.done::before,
.step.done::after {
    background: var(--green);
}

/* The segment between the last done step and current step */
.step.done:has(+ .step.current)::after {
    background: var(--teal);
}

/* Current step */
.step.current::before {
    background: var(--teal);
}

.step.current::after {
    background: #d8d8d8;
}

.step.current::after {
    background: #d8d8d8;
}

.step small {
    color: #bbb;
    font-weight: 700;
}

.step span {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;

    border: 4px solid #fff;
    border-radius: 50%;

    background: #ddd;
    color: var(--grey);
    font-size: 26px;
}

.step.done span {
    background: var(--green);
    color: var(--white);
}

.step.current span {
    background: var(--teal);
    box-shadow:
        0 0 0 3px var(--teal);
    color: var(--white);
}

.step strong {
    align-items: center;
    display: flex;
    font-size: 16px;
    font-weight: 400;
    justify-content: center;
}

.step.current strong {
    border: 0;
    color: var(--teal);
    font-size: 20px;
}

.section-title {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 26px;
}

/* ==========================================================================
   Progress Panels
   ========================================================================== */

.progress-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.progress-card {
    overflow: hidden;
    border-radius: 20px;
    background: #f3f3f3;
}

.progress-card header {
    padding: 17px 22px;
    font-size: 18px;
}

.progress-card.lime header {
    background: var(--lime);
}

.progress-card.navy header {
    background: var(--teal);
    color: #fff;
}

.progress-body {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 34px;
    gap: 22px;
    padding: 22px;
}

.progress-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.progress-body p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

.progress-body aside {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.progress-body .info-i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8b8b8b;
    color: #fff;
    font-style: normal;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Benchmarks
   ========================================================================== */

.benchmarks {
    margin-top: 42px;
}

.benchmarks header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.benchmarks h2 {
    padding-right: 30px;
    border-right: 1px solid var(--line);
    font-size: 27px;
    font-weight: 400;
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.benchmark-grid article {
    position: relative;
    min-height: 106px;
    padding: 20px 64px 20px 22px;
    border-radius: 22px;
    background: var(--teal);
    color: #fff;
}

.benchmark-grid span,
.benchmark-grid strong {
    display: block;
}

.benchmark-grid strong {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 26px;
    font-weight: 400;
}

.benchmark-grid i {
    position: absolute;
    top: 22px;
    right: 68px;
    width: 12px;
    height: 70px;
    border-radius: 10px;
    background: linear-gradient(to top, var(--lime) 55%, rgba(255, 255, 255, 0.35) 55%);
}

.benchmark-grid button {
    position: absolute;
    top: 26px;
    right: 22px;
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #fff;
}

/* ==========================================================================
   Material Symbols
   ========================================================================== */

.material-symbols-outlined {
    display: inline-block;
    font-family: "Material Symbols Outlined";
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.icon-btn .material-symbols-outlined,
.card-head button .material-symbols-outlined,
.ticket-card button .material-symbols-outlined,
.progress-body button .material-symbols-outlined,
.benchmark-grid button .material-symbols-outlined {
    font-size: 20px;
}

.main-nav .material-symbols-outlined {
    font-size: 23px;
}

.phone .material-symbols-outlined {
    font-size: 28px;
}

.benchmark-grid strong .material-symbols-outlined {
    font-size: 24px;
}

.benchmarks header > .material-symbols-outlined {
    color: var(--teal);
    font-size: 35px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .topbar {
        height: auto;
        align-items: flex-start;
        padding: 24px;
    }

    .journey-header .score {
        grid-column: 1 / -1;
    }

    .steps {
        min-width: 760px;
        overflow: auto;
    }

    .journey-card {
        overflow: hidden;
    }
}

@media (max-width: 650px) {
    .topbar {
        display: block;
    }

    .journey-card {
        padding: 28px 20px;
    }
}